Replace XFA_HDOC with IXFA_Doc*
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffdochandler.h
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 #ifndef XFA_FFDOCHANDLER_H_\r
8 #define XFA_FFDOCHANDLER_H_\r
9 \r
10 class CXFA_FFDocHandler : public IXFA_DocHandler\r
11 {\r
12 public:\r
13     CXFA_FFDocHandler();\r
14     ~CXFA_FFDocHandler();\r
15     virtual void                                ReleaseDoc(IXFA_Doc* hDoc);\r
16     virtual IXFA_DocProvider*   GetDocProvider(IXFA_Doc* hDoc);\r
17     virtual FX_DWORD            GetDocType(IXFA_Doc* hDoc);\r
18     virtual     FX_INT32                StartLoad(IXFA_Doc* hDoc);\r
19     virtual FX_INT32            DoLoad(IXFA_Doc* hDoc, IFX_Pause *pPause = NULL);\r
20     virtual void                        StopLoad(IXFA_Doc* hDoc);\r
21 \r
22     virtual IXFA_DocView*       CreateDocView(IXFA_Doc* hDoc, FX_DWORD dwView = 0);\r
23     virtual FX_INT32                    CountPackages(IXFA_Doc* hDoc);\r
24     virtual     void                            GetPackageName(IXFA_Doc* hDoc, FX_INT32 iPackage, CFX_WideStringC &wsPackage);\r
25     virtual IFDE_XMLElement*    GetPackageData(IXFA_Doc* hDoc, FX_WSTR wsPackage);\r
26     virtual FX_BOOL                     SavePackage(IXFA_Doc* hDoc, FX_WSTR wsPackage, IFX_FileWrite* pFile, IXFA_ChecksumContext *pCSContext = NULL);\r
27     virtual FX_BOOL                     CloseDoc(IXFA_Doc* hDoc);\r
28     virtual FX_BOOL                     ImportData(IXFA_Doc* hDoc, IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);\r
29     virtual     void                    SetJSERuntime(IXFA_Doc* hDoc, FXJSE_HRUNTIME hRuntime);\r
30     virtual FXJSE_HVALUE                GetXFAScriptObject(IXFA_Doc* hDoc);\r
31     virtual XFA_ATTRIBUTEENUM   GetRestoreState(IXFA_Doc* hDoc);\r
32     virtual FX_BOOL                     RunDocScript(IXFA_Doc* hDoc, XFA_SCRIPTTYPE eScriptType, FX_WSTR wsScript, FXJSE_HVALUE hRetValue, FXJSE_HVALUE hThisObject);\r
33 protected:\r
34 };\r
35 \r
36 #endif  // XFA_FFDOCHANDLER_H_\r