blob: 05e7ddd803b3fa15baed83c4491ad6a7e0caba45 [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// Copyright 2014 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 _REPORT_H_
8#define _REPORT_H_
9
Tom Sepez9a3f8122015-04-07 15:35:48 -070010#include "JS_Define.h"
11
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070012class Report : public CJS_EmbedObj
13{
14public:
15 Report(CJS_Object * pJSObject);
16 virtual ~Report();
17
18public:
Tom Sepez2f3dfef2015-03-02 15:35:26 -080019 FX_BOOL save(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
20 FX_BOOL writeText(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070021};
22
23class CJS_Report : public CJS_Object
24{
25public:
26 CJS_Report(JSFXObject pObject) : CJS_Object(pObject){};
27 virtual ~CJS_Report(){};
28
29public:
30 DECLARE_JS_CLASS(CJS_Report);
31
32 JS_STATIC_METHOD(save, Report)
33 JS_STATIC_METHOD(writeText, Report);
34};
35
36#endif //_REPORT_H_
37