Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: xfa/include/fxfa/xfa_ffdochandler.h

Issue 1857893002: Cleanup the FF Handler proxy methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/include/fxfa/xfa_ffapp.h ('k') | xfa/include/fxfa/xfa_ffwidget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 XFA_INCLUDE_FXFA_XFA_FFDOCHANDLER_H_ 7 #ifndef XFA_INCLUDE_FXFA_XFA_FFDOCHANDLER_H_
8 #define XFA_INCLUDE_FXFA_XFA_FFDOCHANDLER_H_ 8 #define XFA_INCLUDE_FXFA_XFA_FFDOCHANDLER_H_
9 9
10 #include "xfa/include/fxfa/fxfa.h" 10 #include "xfa/include/fxfa/fxfa.h"
11 11
12 class CXFA_ChecksumContext; 12 class CXFA_ChecksumContext;
13 13
14 class CXFA_FFDocHandler { 14 class CXFA_FFDocHandler {
15 public: 15 public:
16 CXFA_FFDocHandler(); 16 CXFA_FFDocHandler();
17 ~CXFA_FFDocHandler(); 17 ~CXFA_FFDocHandler();
18 18
19 void ReleaseDoc(CXFA_FFDoc* hDoc);
20 IXFA_DocProvider* GetDocProvider(CXFA_FFDoc* hDoc);
21 uint32_t GetDocType(CXFA_FFDoc* hDoc);
22 int32_t StartLoad(CXFA_FFDoc* hDoc);
23 int32_t DoLoad(CXFA_FFDoc* hDoc, IFX_Pause* pPause = NULL);
24 void StopLoad(CXFA_FFDoc* hDoc);
25
26 CXFA_FFDocView* CreateDocView(CXFA_FFDoc* hDoc, uint32_t dwView = 0);
27 int32_t CountPackages(CXFA_FFDoc* hDoc);
28 void GetPackageName(CXFA_FFDoc* hDoc,
29 int32_t iPackage,
30 CFX_WideStringC& wsPackage);
31 CFDE_XMLElement* GetPackageData(CXFA_FFDoc* hDoc,
32 const CFX_WideStringC& wsPackage);
33 FX_BOOL SavePackage(CXFA_FFDoc* hDoc,
34 const CFX_WideStringC& wsPackage,
35 IFX_FileWrite* pFile,
36 CXFA_ChecksumContext* pCSContext = NULL);
37 FX_BOOL CloseDoc(CXFA_FFDoc* hDoc);
38 FX_BOOL ImportData(CXFA_FFDoc* hDoc,
39 IFX_FileRead* pStream,
40 FX_BOOL bXDP = TRUE);
41 void SetJSERuntime(CXFA_FFDoc* hDoc, FXJSE_HRUNTIME hRuntime);
42 FXJSE_HVALUE GetXFAScriptObject(CXFA_FFDoc* hDoc); 19 FXJSE_HVALUE GetXFAScriptObject(CXFA_FFDoc* hDoc);
43 XFA_ATTRIBUTEENUM GetRestoreState(CXFA_FFDoc* hDoc); 20 XFA_ATTRIBUTEENUM GetRestoreState(CXFA_FFDoc* hDoc);
21
44 FX_BOOL RunDocScript(CXFA_FFDoc* hDoc, 22 FX_BOOL RunDocScript(CXFA_FFDoc* hDoc,
45 XFA_SCRIPTTYPE eScriptType, 23 XFA_SCRIPTTYPE eScriptType,
46 const CFX_WideStringC& wsScript, 24 const CFX_WideStringC& wsScript,
47 FXJSE_HVALUE hRetValue, 25 FXJSE_HVALUE hRetValue,
48 FXJSE_HVALUE hThisObject); 26 FXJSE_HVALUE hThisObject);
49 27
50 protected: 28 protected:
51 }; 29 };
52 30
53 #endif // XFA_INCLUDE_FXFA_XFA_FFDOCHANDLER_H_ 31 #endif // XFA_INCLUDE_FXFA_XFA_FFDOCHANDLER_H_
OLDNEW
« no previous file with comments | « xfa/include/fxfa/xfa_ffapp.h ('k') | xfa/include/fxfa/xfa_ffwidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698