OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ |
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ |
9 | 9 |
10 #include "JS_Define.h" | 10 #include "JS_Define.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 CFX_WideString CutString(CFX_WideString cbFrom)
; | 175 CFX_WideString CutString(CFX_WideString cbFrom)
; |
176 bool IsEnclosedInRect(CFX_FloatRect r
ect, CFX_FloatRect LinkRect); | 176 bool IsEnclosedInRect(CFX_FloatRect r
ect, CFX_FloatRect LinkRect); |
177 int CountWords(CPDF_TextObject* pTex
tObj); | 177 int CountWords(CPDF_TextObject* pTex
tObj); |
178 CFX_WideString GetObjWordStr(CPDF_TextObject* p
TextObj, int nWordIndex); | 178 CFX_WideString GetObjWordStr(CPDF_TextObject* p
TextObj, int nWordIndex); |
179 FX_BOOL ParserParams(JSObject *pObj,CJS_
AnnotObj& annotobj); | 179 FX_BOOL ParserParams(JSObject *pObj,CJS_
AnnotObj& annotobj); |
180 | 180 |
181 v8::Isolate* m_isolate; | 181 v8::Isolate* m_isolate; |
182 IconTree* m_pIconTree; | 182 IconTree* m_pIconTree; |
183 CPDFSDK_Document* m_pDocument; | 183 CPDFSDK_Document* m_pDocument; |
184 CFX_WideString m_cwBaseURL; | 184 CFX_WideString m_cwBaseURL; |
185 » FX_BOOL m_bDelay; | 185 » bool m_bDelay; |
186 CFX_ArrayTemplate<CJS_DelayData*> m_DelayData; | 186 CFX_ArrayTemplate<CJS_DelayData*> m_DelayData; |
187 CFX_ArrayTemplate<CJS_AnnotObj*> m_DelayAnnotData; | 187 CFX_ArrayTemplate<CJS_AnnotObj*> m_DelayAnnotData; |
188 }; | 188 }; |
189 | 189 |
190 class CJS_Document : public CJS_Object | 190 class CJS_Document : public CJS_Object |
191 { | 191 { |
192 public: | 192 public: |
193 CJS_Document(JSFXObject pObject) : CJS_Object(pObject) {}; | 193 CJS_Document(JSFXObject pObject) : CJS_Object(pObject) {}; |
194 virtual ~CJS_Document(){}; | 194 virtual ~CJS_Document(){}; |
195 | 195 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 JS_STATIC_METHOD(removeField, Document); | 265 JS_STATIC_METHOD(removeField, Document); |
266 JS_STATIC_METHOD(replacePages, Document); | 266 JS_STATIC_METHOD(replacePages, Document); |
267 JS_STATIC_METHOD(removeIcon, Document); | 267 JS_STATIC_METHOD(removeIcon, Document); |
268 JS_STATIC_METHOD(resetForm, Document); | 268 JS_STATIC_METHOD(resetForm, Document); |
269 JS_STATIC_METHOD(saveAs, Document); | 269 JS_STATIC_METHOD(saveAs, Document); |
270 JS_STATIC_METHOD(submitForm, Document); | 270 JS_STATIC_METHOD(submitForm, Document); |
271 JS_STATIC_METHOD(mailDoc, Document); | 271 JS_STATIC_METHOD(mailDoc, Document); |
272 }; | 272 }; |
273 | 273 |
274 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ | 274 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ |
OLD | NEW |