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