summaryrefslogtreecommitdiff
path: root/fxjs/cjs_printparamsobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_printparamsobj.h')
-rw-r--r--fxjs/cjs_printparamsobj.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/fxjs/cjs_printparamsobj.h b/fxjs/cjs_printparamsobj.h
index aa2b365888..97028dd557 100644
--- a/fxjs/cjs_printparamsobj.h
+++ b/fxjs/cjs_printparamsobj.h
@@ -9,32 +9,34 @@
#include "fxjs/JS_Define.h"
-class PrintParamsObj : public CJS_EmbedObj {
- public:
- explicit PrintParamsObj(CJS_Object* pJSObject);
- ~PrintParamsObj() override {}
-
- public:
- bool bUI;
- int nStart;
- int nEnd;
- bool bSilent;
- bool bShrinkToFit;
- bool bPrintAsImage;
- bool bReverse;
- bool bAnnotations;
-};
-
class CJS_PrintParamsObj : public CJS_Object {
public:
static int GetObjDefnID();
static void DefineJSObjects(CFXJS_Engine* pEngine);
explicit CJS_PrintParamsObj(v8::Local<v8::Object> pObject);
- ~CJS_PrintParamsObj() override = default;
+ ~CJS_PrintParamsObj() override;
+
+ bool GetUI() const { return bUI; }
+ int GetStart() const { return nStart; }
+ int GetEnd() const { return nEnd; }
+ bool GetSilent() const { return bSilent; }
+ bool GetShrinkToFit() const { return bShrinkToFit; }
+ bool GetPrintAsImage() const { return bPrintAsImage; }
+ bool GetReverse() const { return bReverse; }
+ bool GetAnnotations() const { return bAnnotations; }
private:
static int ObjDefnID;
+
+ bool bUI = true;
+ int nStart = 0;
+ int nEnd = 0;
+ bool bSilent = false;
+ bool bShrinkToFit = false;
+ bool bPrintAsImage = false;
+ bool bReverse = false;
+ bool bAnnotations = true;
};
#endif // FXJS_CJS_PRINTPARAMSOBJ_H_