| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 CFX_WideString CutString(CFX_WideString cbFrom)
; | 176 CFX_WideString CutString(CFX_WideString cbFrom)
; |
| 177 bool IsEnclosedInRect(CFX_FloatRect r
ect, CFX_FloatRect LinkRect); | 177 bool IsEnclosedInRect(CFX_FloatRect r
ect, CFX_FloatRect LinkRect); |
| 178 int CountWords(CPDF_TextObject* pTex
tObj); | 178 int CountWords(CPDF_TextObject* pTex
tObj); |
| 179 CFX_WideString GetObjWordStr(CPDF_TextObject* p
TextObj, int nWordIndex); | 179 CFX_WideString GetObjWordStr(CPDF_TextObject* p
TextObj, int nWordIndex); |
| 180 FX_BOOL ParserParams(JSObject *pObj,CJS_
AnnotObj& annotobj); | 180 FX_BOOL ParserParams(JSObject *pObj,CJS_
AnnotObj& annotobj); |
| 181 | 181 |
| 182 v8::Isolate* m_isolate; | 182 v8::Isolate* m_isolate; |
| 183 IconTree* m_pIconTree; | 183 IconTree* m_pIconTree; |
| 184 CPDFSDK_Document* m_pDocument; | 184 CPDFSDK_Document* m_pDocument; |
| 185 CFX_WideString m_cwBaseURL; | 185 CFX_WideString m_cwBaseURL; |
| 186 » FX_BOOL m_bDelay; | 186 » bool m_bDelay; |
| 187 CFX_ArrayTemplate<CJS_DelayData*> m_DelayData; | 187 CFX_ArrayTemplate<CJS_DelayData*> m_DelayData; |
| 188 CFX_ArrayTemplate<CJS_AnnotObj*> m_DelayAnnotData; | 188 CFX_ArrayTemplate<CJS_AnnotObj*> m_DelayAnnotData; |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 class CJS_Document : public CJS_Object | 191 class CJS_Document : public CJS_Object |
| 192 { | 192 { |
| 193 public: | 193 public: |
| 194 CJS_Document(JSFXObject pObject) : CJS_Object(pObject) {}; | 194 CJS_Document(JSFXObject pObject) : CJS_Object(pObject) {}; |
| 195 virtual ~CJS_Document(){}; | 195 virtual ~CJS_Document(){}; |
| 196 | 196 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 JS_STATIC_METHOD(removeField, Document); | 266 JS_STATIC_METHOD(removeField, Document); |
| 267 JS_STATIC_METHOD(replacePages, Document); | 267 JS_STATIC_METHOD(replacePages, Document); |
| 268 JS_STATIC_METHOD(removeIcon, Document); | 268 JS_STATIC_METHOD(removeIcon, Document); |
| 269 JS_STATIC_METHOD(resetForm, Document); | 269 JS_STATIC_METHOD(resetForm, Document); |
| 270 JS_STATIC_METHOD(saveAs, Document); | 270 JS_STATIC_METHOD(saveAs, Document); |
| 271 JS_STATIC_METHOD(submitForm, Document); | 271 JS_STATIC_METHOD(submitForm, Document); |
| 272 JS_STATIC_METHOD(mailDoc, Document); | 272 JS_STATIC_METHOD(mailDoc, Document); |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ | 275 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ |
| OLD | NEW |