| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FXFA_PARSER_CXFA_SCRIPT_H_ | 7 #ifndef XFA_FXFA_PARSER_CXFA_SCRIPT_H_ |
| 8 #define XFA_FXFA_PARSER_CXFA_SCRIPT_H_ | 8 #define XFA_FXFA_PARSER_CXFA_SCRIPT_H_ |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include "core/fxcrt/include/fx_string.h" | 12 #include "core/fxcrt/fx_string.h" |
| 13 #include "xfa/fxfa/parser/cxfa_data.h" | 13 #include "xfa/fxfa/parser/cxfa_data.h" |
| 14 | 14 |
| 15 enum XFA_SCRIPTTYPE { | 15 enum XFA_SCRIPTTYPE { |
| 16 XFA_SCRIPTTYPE_Formcalc = 0, | 16 XFA_SCRIPTTYPE_Formcalc = 0, |
| 17 XFA_SCRIPTTYPE_Javascript, | 17 XFA_SCRIPTTYPE_Javascript, |
| 18 XFA_SCRIPTTYPE_Unkown, | 18 XFA_SCRIPTTYPE_Unkown, |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 class CXFA_Node; | 21 class CXFA_Node; |
| 22 | 22 |
| 23 class CXFA_Script : public CXFA_Data { | 23 class CXFA_Script : public CXFA_Data { |
| 24 public: | 24 public: |
| 25 explicit CXFA_Script(CXFA_Node* pNode); | 25 explicit CXFA_Script(CXFA_Node* pNode); |
| 26 | 26 |
| 27 XFA_SCRIPTTYPE GetContentType(); | 27 XFA_SCRIPTTYPE GetContentType(); |
| 28 int32_t GetRunAt(); | 28 int32_t GetRunAt(); |
| 29 void GetExpression(CFX_WideString& wsExpression); | 29 void GetExpression(CFX_WideString& wsExpression); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 #endif // XFA_FXFA_PARSER_CXFA_SCRIPT_H_ | 32 #endif // XFA_FXFA_PARSER_CXFA_SCRIPT_H_ |
| OLD | NEW |