1 // Copyright 2017 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 FXJS_CJS_PRINTPARAMSOBJ_H_ 8 #define FXJS_CJS_PRINTPARAMSOBJ_H_ 9 10 #include "fxjs/JS_Define.h" 11 12 class PrintParamsObj : public CJS_EmbedObj { 13 public: 14 explicit PrintParamsObj(CJS_Object* pJSObject); ~PrintParamsObj()15 ~PrintParamsObj() override {} 16 17 public: 18 bool bUI; 19 int nStart; 20 int nEnd; 21 bool bSilent; 22 bool bShrinkToFit; 23 bool bPrintAsImage; 24 bool bReverse; 25 bool bAnnotations; 26 }; 27 28 class CJS_PrintParamsObj : public CJS_Object { 29 public: 30 static int GetObjDefnID(); 31 static void DefineJSObjects(CFXJS_Engine* pEngine); 32 CJS_PrintParamsObj(v8::Local<v8::Object> pObject)33 explicit CJS_PrintParamsObj(v8::Local<v8::Object> pObject) 34 : CJS_Object(pObject) {} ~CJS_PrintParamsObj()35 ~CJS_PrintParamsObj() override {} 36 37 private: 38 static int ObjDefnID; 39 }; 40 41 #endif // FXJS_CJS_PRINTPARAMSOBJ_H_ 42