OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_FM2JS_XFA_EXPRESSION_H_ | 7 #ifndef XFA_FXFA_FM2JS_XFA_EXPRESSION_H_ |
8 #define XFA_FXFA_FM2JS_XFA_EXPRESSION_H_ | 8 #define XFA_FXFA_FM2JS_XFA_EXPRESSION_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 24 matching lines...) Expand all Loading... |
35 protected: | 35 protected: |
36 XFA_FM_EXPTYPE m_type; | 36 XFA_FM_EXPTYPE m_type; |
37 uint32_t m_line; | 37 uint32_t m_line; |
38 }; | 38 }; |
39 | 39 |
40 class CXFA_FMFunctionDefinition : public CXFA_FMExpression { | 40 class CXFA_FMFunctionDefinition : public CXFA_FMExpression { |
41 public: | 41 public: |
42 // Takes ownership of |pExpressions|. | 42 // Takes ownership of |pExpressions|. |
43 CXFA_FMFunctionDefinition( | 43 CXFA_FMFunctionDefinition( |
44 uint32_t line, | 44 uint32_t line, |
45 FX_BOOL isGlobal, | 45 bool isGlobal, |
46 const CFX_WideStringC& wsName, | 46 const CFX_WideStringC& wsName, |
47 std::unique_ptr<CFX_WideStringCArray> pArguments, | 47 std::unique_ptr<CFX_WideStringCArray> pArguments, |
48 CFX_ArrayTemplate<CXFA_FMExpression*>* pExpressions); | 48 CFX_ArrayTemplate<CXFA_FMExpression*>* pExpressions); |
49 ~CXFA_FMFunctionDefinition() override; | 49 ~CXFA_FMFunctionDefinition() override; |
50 | 50 |
51 void ToJavaScript(CFX_WideTextBuf& javascript) override; | 51 void ToJavaScript(CFX_WideTextBuf& javascript) override; |
52 void ToImpliedReturnJS(CFX_WideTextBuf&) override; | 52 void ToImpliedReturnJS(CFX_WideTextBuf&) override; |
53 | 53 |
54 private: | 54 private: |
55 CFX_WideStringC m_wsName; | 55 CFX_WideStringC m_wsName; |
56 std::unique_ptr<CFX_WideStringCArray> m_pArguments; | 56 std::unique_ptr<CFX_WideStringCArray> m_pArguments; |
57 CFX_ArrayTemplate<CXFA_FMExpression*>* m_pExpressions; | 57 CFX_ArrayTemplate<CXFA_FMExpression*>* m_pExpressions; |
58 FX_BOOL m_isGlobal; | 58 bool m_isGlobal; |
59 }; | 59 }; |
60 | 60 |
61 class CXFA_FMVarExpression : public CXFA_FMExpression { | 61 class CXFA_FMVarExpression : public CXFA_FMExpression { |
62 public: | 62 public: |
63 CXFA_FMVarExpression(uint32_t line, | 63 CXFA_FMVarExpression(uint32_t line, |
64 const CFX_WideStringC& wsName, | 64 const CFX_WideStringC& wsName, |
65 CXFA_FMExpression* pInit); | 65 CXFA_FMExpression* pInit); |
66 ~CXFA_FMVarExpression() override; | 66 ~CXFA_FMVarExpression() override; |
67 | 67 |
68 void ToJavaScript(CFX_WideTextBuf& javascript) override; | 68 void ToJavaScript(CFX_WideTextBuf& javascript) override; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 void ToJavaScript(CFX_WideTextBuf& javascript) override; | 204 void ToJavaScript(CFX_WideTextBuf& javascript) override; |
205 void ToImpliedReturnJS(CFX_WideTextBuf&) override; | 205 void ToImpliedReturnJS(CFX_WideTextBuf&) override; |
206 | 206 |
207 private: | 207 private: |
208 CFX_WideStringC m_wsIdentifier; | 208 CFX_WideStringC m_wsIdentifier; |
209 CFX_ArrayTemplate<CXFA_FMSimpleExpression*>* m_pAccessors; | 209 CFX_ArrayTemplate<CXFA_FMSimpleExpression*>* m_pAccessors; |
210 std::unique_ptr<CXFA_FMExpression> m_pList; | 210 std::unique_ptr<CXFA_FMExpression> m_pList; |
211 }; | 211 }; |
212 | 212 |
213 #endif // XFA_FXFA_FM2JS_XFA_EXPRESSION_H_ | 213 #endif // XFA_FXFA_FM2JS_XFA_EXPRESSION_H_ |
OLD | NEW |