blob: f8b055729ce50e66b690ad4a6953330caf74e8fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef FXJS_CJS_PRINTPARAMSOBJ_H_
#define FXJS_CJS_PRINTPARAMSOBJ_H_
#include "fxjs/cjs_object.h"
class CJS_PrintParamsObj final : public CJS_Object {
public:
static int GetObjDefnID();
static void DefineJSObjects(CFXJS_Engine* pEngine);
CJS_PrintParamsObj(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
~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_
|