OLD | NEW |
| (Empty) |
1 // 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 XFA_FXFA_APP_XFA_FFDOCHANDLER_H_ | |
8 #define XFA_FXFA_APP_XFA_FFDOCHANDLER_H_ | |
9 | |
10 #include "xfa/include/fxfa/fxfa.h" | |
11 | |
12 class CXFA_FFDocHandler : public IXFA_DocHandler { | |
13 public: | |
14 CXFA_FFDocHandler(); | |
15 ~CXFA_FFDocHandler(); | |
16 | |
17 void ReleaseDoc(IXFA_Doc* hDoc) override; | |
18 IXFA_DocProvider* GetDocProvider(IXFA_Doc* hDoc) override; | |
19 uint32_t GetDocType(IXFA_Doc* hDoc) override; | |
20 int32_t StartLoad(IXFA_Doc* hDoc) override; | |
21 int32_t DoLoad(IXFA_Doc* hDoc, IFX_Pause* pPause = NULL) override; | |
22 void StopLoad(IXFA_Doc* hDoc) override; | |
23 | |
24 IXFA_DocView* CreateDocView(IXFA_Doc* hDoc, uint32_t dwView = 0) override; | |
25 int32_t CountPackages(IXFA_Doc* hDoc) override; | |
26 void GetPackageName(IXFA_Doc* hDoc, | |
27 int32_t iPackage, | |
28 CFX_WideStringC& wsPackage) override; | |
29 CFDE_XMLElement* GetPackageData(IXFA_Doc* hDoc, | |
30 const CFX_WideStringC& wsPackage); | |
31 FX_BOOL SavePackage(IXFA_Doc* hDoc, | |
32 const CFX_WideStringC& wsPackage, | |
33 IFX_FileWrite* pFile, | |
34 IXFA_ChecksumContext* pCSContext = NULL) override; | |
35 FX_BOOL CloseDoc(IXFA_Doc* hDoc) override; | |
36 FX_BOOL ImportData(IXFA_Doc* hDoc, | |
37 IFX_FileRead* pStream, | |
38 FX_BOOL bXDP = TRUE) override; | |
39 void SetJSERuntime(IXFA_Doc* hDoc, FXJSE_HRUNTIME hRuntime) override; | |
40 FXJSE_HVALUE GetXFAScriptObject(IXFA_Doc* hDoc) override; | |
41 XFA_ATTRIBUTEENUM GetRestoreState(IXFA_Doc* hDoc) override; | |
42 FX_BOOL RunDocScript(IXFA_Doc* hDoc, | |
43 XFA_SCRIPTTYPE eScriptType, | |
44 const CFX_WideStringC& wsScript, | |
45 FXJSE_HVALUE hRetValue, | |
46 FXJSE_HVALUE hThisObject) override; | |
47 | |
48 protected: | |
49 }; | |
50 | |
51 #endif // XFA_FXFA_APP_XFA_FFDOCHANDLER_H_ | |
OLD | NEW |