Initial commit.
[pdfium.git] / fpdfsdk / src / javascript / report.cpp
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4  \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #include "../../include/javascript/JavaScript.h"\r
8 #include "../../include/javascript/IJavaScript.h"\r
9 #include "../../include/javascript/JS_Define.h"\r
10 #include "../../include/javascript/JS_Object.h"\r
11 #include "../../include/javascript/JS_Value.h"\r
12 #include "../../include/javascript/report.h"\r
13 \r
14 /* ---------------------- report ---------------------- */\r
15 \r
16 BEGIN_JS_STATIC_CONST(CJS_Report)\r
17 END_JS_STATIC_CONST()\r
18 \r
19 BEGIN_JS_STATIC_PROP(CJS_Report)\r
20 END_JS_STATIC_PROP()\r
21 \r
22 BEGIN_JS_STATIC_METHOD(CJS_Report) \r
23         JS_STATIC_METHOD_ENTRY(save, 1)\r
24         JS_STATIC_METHOD_ENTRY(writeText,1)\r
25 END_JS_STATIC_METHOD()\r
26 \r
27 IMPLEMENT_JS_CLASS(CJS_Report, Report)\r
28         \r
29 Report::Report(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject)\r
30 {\r
31 \r
32 }\r
33 \r
34 Report::~Report()\r
35 {\r
36         \r
37 }\r
38 \r
39 FX_BOOL Report::writeText(OBJ_METHOD_PARAMS)\r
40 {\r
41         if (IsSafeMode(cc)) return TRUE;\r
42         return TRUE;\r
43 }\r
44 \r
45 FX_BOOL Report::save(OBJ_METHOD_PARAMS)\r
46 {\r
47         if (IsSafeMode(cc)) return TRUE;\r
48         return TRUE;    \r
49 }\r
50 \r