OLD | NEW |
| (Empty) |
1 // Copyright 2014 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_SRC_FXFA_PARSER_XFA_SCRIPT_LAYOUTPSEUDOMODEL_H_ | |
8 #define XFA_SRC_FXFA_PARSER_XFA_SCRIPT_LAYOUTPSEUDOMODEL_H_ | |
9 | |
10 #include "xfa/src/fxfa/parser/xfa_doclayout.h" | |
11 #include "xfa/src/fxfa/parser/xfa_object.h" | |
12 | |
13 enum XFA_LAYOUTMODEL_HWXY { | |
14 XFA_LAYOUTMODEL_H, | |
15 XFA_LAYOUTMODEL_W, | |
16 XFA_LAYOUTMODEL_X, | |
17 XFA_LAYOUTMODEL_Y | |
18 }; | |
19 | |
20 class CScript_LayoutPseudoModel : public CXFA_OrdinaryObject { | |
21 public: | |
22 explicit CScript_LayoutPseudoModel(CXFA_Document* pDocument); | |
23 ~CScript_LayoutPseudoModel(); | |
24 | |
25 void Script_LayoutPseudoModel_Ready(FXJSE_HVALUE hValue, | |
26 FX_BOOL bSetting, | |
27 XFA_ATTRIBUTE eAttribute); | |
28 | |
29 void Script_LayoutPseudoModel_HWXY(CFXJSE_Arguments* pArguments, | |
30 XFA_LAYOUTMODEL_HWXY layoutModel); | |
31 void Script_LayoutPseudoModel_H(CFXJSE_Arguments* pArguments); | |
32 void Script_LayoutPseudoModel_W(CFXJSE_Arguments* pArguments); | |
33 void Script_LayoutPseudoModel_X(CFXJSE_Arguments* pArguments); | |
34 void Script_LayoutPseudoModel_Y(CFXJSE_Arguments* pArguments); | |
35 void Script_LayoutPseudoModel_NumberedPageCount(CFXJSE_Arguments* pArguments, | |
36 FX_BOOL bNumbered); | |
37 void Script_LayoutPseudoModel_PageCount(CFXJSE_Arguments* pArguments); | |
38 void Script_LayoutPseudoModel_PageSpan(CFXJSE_Arguments* pArguments); | |
39 void Script_LayoutPseudoModel_Page(CFXJSE_Arguments* pArguments); | |
40 void Script_LayoutPseudoModel_PageContent(CFXJSE_Arguments* pArguments); | |
41 void Script_LayoutPseudoModel_AbsPageCount(CFXJSE_Arguments* pArguments); | |
42 void Script_LayoutPseudoModel_AbsPageCountInBatch( | |
43 CFXJSE_Arguments* pArguments); | |
44 void Script_LayoutPseudoModel_SheetCountInBatch(CFXJSE_Arguments* pArguments); | |
45 void Script_LayoutPseudoModel_Relayout(CFXJSE_Arguments* pArguments); | |
46 void Script_LayoutPseudoModel_AbsPageSpan(CFXJSE_Arguments* pArguments); | |
47 void Script_LayoutPseudoModel_AbsPageInBatch(CFXJSE_Arguments* pArguments); | |
48 void Script_LayoutPseudoModel_SheetInBatch(CFXJSE_Arguments* pArguments); | |
49 void Script_LayoutPseudoModel_Sheet(CFXJSE_Arguments* pArguments); | |
50 void Script_LayoutPseudoModel_RelayoutPageArea(CFXJSE_Arguments* pArguments); | |
51 void Script_LayoutPseudoModel_SheetCount(CFXJSE_Arguments* pArguments); | |
52 void Script_LayoutPseudoModel_AbsPage(CFXJSE_Arguments* pArguments); | |
53 | |
54 protected: | |
55 void Script_LayoutPseudoModel_GetObjArray(IXFA_DocLayout* pDocLayout, | |
56 int32_t iPageNo, | |
57 const CFX_WideString& wsType, | |
58 FX_BOOL bOnPageArea, | |
59 CXFA_NodeArray& retArray); | |
60 void Script_LayoutPseudoModel_PageImp(CFXJSE_Arguments* pArguments, | |
61 FX_BOOL bAbsPage); | |
62 }; | |
63 | |
64 #endif // XFA_SRC_FXFA_PARSER_XFA_SCRIPT_LAYOUTPSEUDOMODEL_H_ | |
OLD | NEW |