blob: 572d7d8bcd764ed4b6e97825ee5351ca77897343 [file] [log] [blame] [edit]
// 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/js_define.h"
class CJS_PrintParamsObj : 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_