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 FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_
9 
10 #include "JS_Define.h"
11 
12 /* ------------------------------ border ------------------------------ */
13 
14 class CJS_Border : public CJS_Object
15 {
16 public:
CJS_Border(JSFXObject pObject)17 	CJS_Border(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_Border(void)18 	virtual ~CJS_Border(void){};
19 
20 	DECLARE_JS_CLASS_CONST();
21 };
22 
23 /* ------------------------------ display ------------------------------ */
24 
25 class CJS_Display : public CJS_Object
26 {
27 public:
CJS_Display(JSFXObject pObject)28 	CJS_Display(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_Display(void)29 	virtual ~CJS_Display(void){};
30 
31 	DECLARE_JS_CLASS_CONST();
32 };
33 
34 /* ------------------------------ font ------------------------------ */
35 
36 class CJS_Font : public CJS_Object
37 {
38 public:
CJS_Font(JSFXObject pObject)39 	CJS_Font(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_Font(void)40 	virtual ~CJS_Font(void){};
41 
42 	DECLARE_JS_CLASS_CONST();
43 };
44 
45 /* ------------------------------ highlight ------------------------------ */
46 
47 class CJS_Highlight : public CJS_Object
48 {
49 public:
CJS_Highlight(JSFXObject pObject)50 	CJS_Highlight(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_Highlight(void)51 	virtual ~CJS_Highlight(void){};
52 
53 	DECLARE_JS_CLASS_CONST();
54 };
55 
56 /* ------------------------------ position ------------------------------ */
57 
58 class CJS_Position : public CJS_Object
59 {
60 public:
CJS_Position(JSFXObject pObject)61 	CJS_Position(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_Position(void)62 	virtual ~CJS_Position(void){};
63 
64 	DECLARE_JS_CLASS_CONST();
65 };
66 
67 /* ------------------------------ scaleHow ------------------------------ */
68 
69 class CJS_ScaleHow : public CJS_Object
70 {
71 public:
CJS_ScaleHow(JSFXObject pObject)72 	CJS_ScaleHow(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_ScaleHow(void)73 	virtual ~CJS_ScaleHow(void){};
74 
75 	DECLARE_JS_CLASS_CONST();
76 };
77 
78 /* ------------------------------ scaleWhen ------------------------------ */
79 
80 class CJS_ScaleWhen : public CJS_Object
81 {
82 public:
CJS_ScaleWhen(JSFXObject pObject)83 	CJS_ScaleWhen(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_ScaleWhen(void)84 	virtual ~CJS_ScaleWhen(void){};
85 
86 	DECLARE_JS_CLASS_CONST();
87 };
88 
89 /* ------------------------------ style ------------------------------ */
90 
91 class CJS_Style : public CJS_Object
92 {
93 public:
CJS_Style(JSFXObject pObject)94 	CJS_Style(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_Style(void)95 	virtual ~CJS_Style(void){};
96 
97 	DECLARE_JS_CLASS_CONST();
98 };
99 
100 /* ------------------------------ zoomtype ------------------------------ */
101 
102 class CJS_Zoomtype : public CJS_Object
103 {
104 public:
CJS_Zoomtype(JSFXObject pObject)105 	CJS_Zoomtype(JSFXObject  pObject) : CJS_Object(pObject) {};
~CJS_Zoomtype(void)106 	virtual ~CJS_Zoomtype(void){};
107 
108 	DECLARE_JS_CLASS_CONST();
109 };
110 
111 /* ------------------------------ CJS_GlobalConsts ------------------------------ */
112 
113 class CJS_GlobalConsts : public CJS_Object
114 {
115 public:
116 	static int				Init(IJS_Runtime* pRuntime);
117 };
118 
119 /* ------------------------------ CJS_GlobalArrays ------------------------------ */
120 
121 class CJS_GlobalArrays : public CJS_Object
122 {
123 public:
124 	static int				Init(IJS_Runtime* pRuntime);
125 };
126 
127 #endif  // FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_
128