summaryrefslogtreecommitdiff
path: root/fxjs/cjx_layoutpseudomodel.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-12-07 22:33:43 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-07 22:33:43 +0000
commit93bb725b62f9779534c9444c1e1319fe8c28912e (patch)
treeaf0c758c1129dc076cbf67a89f1c23e4703e02bd /fxjs/cjx_layoutpseudomodel.h
parentce6979f8d064507300fe0b3a856687fb958c9a5c (diff)
downloadpdfium-93bb725b62f9779534c9444c1e1319fe8c28912e.tar.xz
[xfa] Move JS method information to files.chromium/3288
This CL moves the XFA SOM JS Method information out of the c-array and into individual CJX class files. Change-Id: I401046a06aacaf1f04e5a51eb899e479de012e15 Reviewed-on: https://pdfium-review.googlesource.com/20450 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjx_layoutpseudomodel.h')
-rw-r--r--fxjs/cjx_layoutpseudomodel.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/fxjs/cjx_layoutpseudomodel.h b/fxjs/cjx_layoutpseudomodel.h
index 66adb79927..9eba2ac85f 100644
--- a/fxjs/cjx_layoutpseudomodel.h
+++ b/fxjs/cjx_layoutpseudomodel.h
@@ -9,6 +9,7 @@
#include <vector>
+#include "fxjs/CJX_Define.h"
#include "fxjs/cjx_object.h"
enum XFA_LAYOUTMODEL_HWXY {
@@ -31,25 +32,25 @@ class CJX_LayoutPseudoModel : public CJX_Object {
void Ready(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute);
- void H(CFXJSE_Arguments* pArguments);
- void W(CFXJSE_Arguments* pArguments);
- void X(CFXJSE_Arguments* pArguments);
- void Y(CFXJSE_Arguments* pArguments);
- void PageCount(CFXJSE_Arguments* pArguments);
- void PageSpan(CFXJSE_Arguments* pArguments);
- void Page(CFXJSE_Arguments* pArguments);
- void PageContent(CFXJSE_Arguments* pArguments);
- void AbsPageCount(CFXJSE_Arguments* pArguments);
- void AbsPageCountInBatch(CFXJSE_Arguments* pArguments);
- void SheetCountInBatch(CFXJSE_Arguments* pArguments);
- void Relayout(CFXJSE_Arguments* pArguments);
- void AbsPageSpan(CFXJSE_Arguments* pArguments);
- void AbsPageInBatch(CFXJSE_Arguments* pArguments);
- void SheetInBatch(CFXJSE_Arguments* pArguments);
- void Sheet(CFXJSE_Arguments* pArguments);
- void RelayoutPageArea(CFXJSE_Arguments* pArguments);
- void SheetCount(CFXJSE_Arguments* pArguments);
- void AbsPage(CFXJSE_Arguments* pArguments);
+ JS_METHOD(absPage, CJX_LayoutPseudoModel);
+ JS_METHOD(absPageCount, CJX_LayoutPseudoModel);
+ JS_METHOD(absPageCountInBatch, CJX_LayoutPseudoModel);
+ JS_METHOD(absPageInBatch, CJX_LayoutPseudoModel);
+ JS_METHOD(absPageSpan, CJX_LayoutPseudoModel);
+ JS_METHOD(h, CJX_LayoutPseudoModel);
+ JS_METHOD(page, CJX_LayoutPseudoModel);
+ JS_METHOD(pageContent, CJX_LayoutPseudoModel);
+ JS_METHOD(pageCount, CJX_LayoutPseudoModel);
+ JS_METHOD(pageSpan, CJX_LayoutPseudoModel);
+ JS_METHOD(relayout, CJX_LayoutPseudoModel);
+ JS_METHOD(relayoutPageArea, CJX_LayoutPseudoModel);
+ JS_METHOD(sheet, CJX_LayoutPseudoModel);
+ JS_METHOD(sheetCount, CJX_LayoutPseudoModel);
+ JS_METHOD(sheetCountInBatch, CJX_LayoutPseudoModel);
+ JS_METHOD(sheetInBatch, CJX_LayoutPseudoModel);
+ JS_METHOD(w, CJX_LayoutPseudoModel);
+ JS_METHOD(x, CJX_LayoutPseudoModel);
+ JS_METHOD(y, CJX_LayoutPseudoModel);
private:
void NumberedPageCount(CFXJSE_Arguments* pArguments, bool bNumbered);
@@ -59,6 +60,8 @@ class CJX_LayoutPseudoModel : public CJX_Object {
const WideString& wsType,
bool bOnPageArea);
void PageInternals(CFXJSE_Arguments* pArguments, bool bAbsPage);
+
+ static const CJX_MethodSpec MethodSpecs[];
};
#endif // FXJS_CJX_LAYOUTPSEUDOMODEL_H_