cxfa_script.h revision 4d3acf4ec42bf6e838f9060103aff98fbf170794
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
15enum XFA_SCRIPTTYPE {
16  XFA_SCRIPTTYPE_Formcalc = 0,
17  XFA_SCRIPTTYPE_Javascript,
18  XFA_SCRIPTTYPE_Unkown,
19};
20
21class CXFA_Node;
22
23class 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