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