• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "fxjs/cjs_printparamsobj.h"
8 
9 int CJS_PrintParamsObj::ObjDefnID = -1;
10 
11 // static
GetObjDefnID()12 int CJS_PrintParamsObj::GetObjDefnID() {
13   return ObjDefnID;
14 }
15 
16 // static
DefineJSObjects(CFXJS_Engine * pEngine)17 void CJS_PrintParamsObj::DefineJSObjects(CFXJS_Engine* pEngine) {
18   ObjDefnID =
19       pEngine->DefineObj("PrintParamsObj", FXJSOBJTYPE_DYNAMIC,
20                          JSConstructor<CJS_PrintParamsObj, PrintParamsObj>,
21                          JSDestructor<CJS_PrintParamsObj>);
22 }
23 
PrintParamsObj(CJS_Object * pJSObject)24 PrintParamsObj::PrintParamsObj(CJS_Object* pJSObject)
25     : CJS_EmbedObj(pJSObject) {
26   bUI = true;
27   nStart = 0;
28   nEnd = 0;
29   bSilent = false;
30   bShrinkToFit = false;
31   bPrintAsImage = false;
32   bReverse = false;
33   bAnnotations = true;
34 }
35