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_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_ | 7 #ifndef XFA_FXFA_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_ |
8 #define XFA_FXFA_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_ | 8 #define XFA_FXFA_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_ |
9 | 9 |
10 #include "fxjs/include/cfxjse_arguments.h" | 10 #include "fxjs/include/cfxjse_arguments.h" |
11 #include "xfa/fxfa/parser/xfa_doclayout.h" | |
12 #include "xfa/fxfa/parser/xfa_object.h" | 11 #include "xfa/fxfa/parser/xfa_object.h" |
13 | 12 |
14 enum XFA_LAYOUTMODEL_HWXY { | 13 enum XFA_LAYOUTMODEL_HWXY { |
15 XFA_LAYOUTMODEL_H, | 14 XFA_LAYOUTMODEL_H, |
16 XFA_LAYOUTMODEL_W, | 15 XFA_LAYOUTMODEL_W, |
17 XFA_LAYOUTMODEL_X, | 16 XFA_LAYOUTMODEL_X, |
18 XFA_LAYOUTMODEL_Y | 17 XFA_LAYOUTMODEL_Y |
19 }; | 18 }; |
20 | 19 |
| 20 class CXFA_LayoutProcessor; |
| 21 |
21 class CScript_LayoutPseudoModel : public CXFA_Object { | 22 class CScript_LayoutPseudoModel : public CXFA_Object { |
22 public: | 23 public: |
23 explicit CScript_LayoutPseudoModel(CXFA_Document* pDocument); | 24 explicit CScript_LayoutPseudoModel(CXFA_Document* pDocument); |
24 ~CScript_LayoutPseudoModel() override; | 25 ~CScript_LayoutPseudoModel() override; |
25 | 26 |
26 void Ready(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); | 27 void Ready(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); |
27 | 28 |
28 void HWXY(CFXJSE_Arguments* pArguments, XFA_LAYOUTMODEL_HWXY layoutModel); | 29 void HWXY(CFXJSE_Arguments* pArguments, XFA_LAYOUTMODEL_HWXY layoutModel); |
29 void H(CFXJSE_Arguments* pArguments); | 30 void H(CFXJSE_Arguments* pArguments); |
30 void W(CFXJSE_Arguments* pArguments); | 31 void W(CFXJSE_Arguments* pArguments); |
(...skipping 19 matching lines...) Expand all Loading... |
50 protected: | 51 protected: |
51 void GetObjArray(CXFA_LayoutProcessor* pDocLayout, | 52 void GetObjArray(CXFA_LayoutProcessor* pDocLayout, |
52 int32_t iPageNo, | 53 int32_t iPageNo, |
53 const CFX_WideString& wsType, | 54 const CFX_WideString& wsType, |
54 FX_BOOL bOnPageArea, | 55 FX_BOOL bOnPageArea, |
55 CXFA_NodeArray& retArray); | 56 CXFA_NodeArray& retArray); |
56 void PageImp(CFXJSE_Arguments* pArguments, FX_BOOL bAbsPage); | 57 void PageImp(CFXJSE_Arguments* pArguments, FX_BOOL bAbsPage); |
57 }; | 58 }; |
58 | 59 |
59 #endif // XFA_FXFA_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_ | 60 #endif // XFA_FXFA_PARSER_CSCRIPT_LAYOUTPSEUDOMODEL_H_ |
OLD | NEW |