Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxfa / src / parser / xfa_script_layoutpseudomodel.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _SCRIPT_LAYOUTPSEUDOMODEL_H_\r
8 #define _SCRIPT_LAYOUTPSEUDOMODEL_H_\r
9 enum XFA_LAYOUTMODEL_HWXY {\r
10     XFA_LAYOUTMODEL_H,\r
11     XFA_LAYOUTMODEL_W,\r
12     XFA_LAYOUTMODEL_X,\r
13     XFA_LAYOUTMODEL_Y\r
14 };\r
15 class CScript_LayoutPseudoModel : public CXFA_OrdinaryObject\r
16 {\r
17 public:\r
18     CScript_LayoutPseudoModel(CXFA_Document* pDocument);\r
19     ~CScript_LayoutPseudoModel();\r
20 \r
21     void        Script_LayoutPseudoModel_Ready(FXJSE_HVALUE hValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute);\r
22 \r
23     void        Script_LayoutPseudoModel_HWXY(CFXJSE_Arguments* pArguments, XFA_LAYOUTMODEL_HWXY layoutModel);\r
24     void        Script_LayoutPseudoModel_H(CFXJSE_Arguments* pArguments);\r
25     void        Script_LayoutPseudoModel_W(CFXJSE_Arguments* pArguments);\r
26     void        Script_LayoutPseudoModel_X(CFXJSE_Arguments* pArguments);\r
27     void        Script_LayoutPseudoModel_Y(CFXJSE_Arguments* pArguments);\r
28     void        Script_LayoutPseudoModel_NumberedPageCount(CFXJSE_Arguments* pArguments, FX_BOOL bNumbered);\r
29     void        Script_LayoutPseudoModel_PageCount(CFXJSE_Arguments* pArguments);\r
30     void        Script_LayoutPseudoModel_PageSpan(CFXJSE_Arguments* pArguments);\r
31     void        Script_LayoutPseudoModel_Page(CFXJSE_Arguments* pArguments);\r
32     void        Script_LayoutPseudoModel_PageContent(CFXJSE_Arguments* pArguments);\r
33     void        Script_LayoutPseudoModel_AbsPageCount(CFXJSE_Arguments* pArguments);\r
34     void        Script_LayoutPseudoModel_AbsPageCountInBatch(CFXJSE_Arguments* pArguments);\r
35     void        Script_LayoutPseudoModel_SheetCountInBatch(CFXJSE_Arguments* pArguments);\r
36     void        Script_LayoutPseudoModel_Relayout(CFXJSE_Arguments* pArguments);\r
37     void        Script_LayoutPseudoModel_AbsPageSpan(CFXJSE_Arguments* pArguments);\r
38     void        Script_LayoutPseudoModel_AbsPageInBatch(CFXJSE_Arguments* pArguments);\r
39     void        Script_LayoutPseudoModel_SheetInBatch(CFXJSE_Arguments* pArguments);\r
40     void        Script_LayoutPseudoModel_Sheet(CFXJSE_Arguments* pArguments);\r
41     void        Script_LayoutPseudoModel_RelayoutPageArea(CFXJSE_Arguments* pArguments);\r
42     void        Script_LayoutPseudoModel_SheetCount(CFXJSE_Arguments* pArguments);\r
43     void        Script_LayoutPseudoModel_AbsPage(CFXJSE_Arguments* pArguments);\r
44 protected:\r
45     void        Script_LayoutPseudoModel_GetObjArray(IXFA_DocLayout* pDocLayout, FX_INT32 iPageNo, const CFX_WideString &wsType, FX_BOOL bOnPageArea, CXFA_NodeArray &retArray);\r
46     void        Script_LayoutPseudoModel_PageImp(CFXJSE_Arguments* pArguments, FX_BOOL bAbsPage);\r
47 };\r
48 #endif\r