Replace XFA_HDOC with IXFA_Doc*
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffdochandler.h
index 27b5b92..95abc6a 100644 (file)
@@ -4,31 +4,33 @@
 \r
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
 \r
-#ifndef _FXFA_FORMFILLER_DOCHANDLER_IMP_H\r
-#define _FXFA_FORMFILLER_DOCHANDLER_IMP_H\r
+#ifndef XFA_FFDOCHANDLER_H_\r
+#define XFA_FFDOCHANDLER_H_\r
+\r
 class CXFA_FFDocHandler : public IXFA_DocHandler\r
 {\r
 public:\r
     CXFA_FFDocHandler();\r
     ~CXFA_FFDocHandler();\r
-    virtual void                               ReleaseDoc(XFA_HDOC hDoc);\r
-    virtual IXFA_DocProvider*  GetDocProvider(XFA_HDOC hDoc);\r
-    virtual FX_DWORD           GetDocType(XFA_HDOC hDoc);\r
-    virtual    FX_INT32                StartLoad(XFA_HDOC hDoc);\r
-    virtual FX_INT32           DoLoad(XFA_HDOC hDoc, IFX_Pause *pPause = NULL);\r
-    virtual void                       StopLoad(XFA_HDOC hDoc);\r
+    virtual void                               ReleaseDoc(IXFA_Doc* hDoc);\r
+    virtual IXFA_DocProvider*  GetDocProvider(IXFA_Doc* hDoc);\r
+    virtual FX_DWORD           GetDocType(IXFA_Doc* hDoc);\r
+    virtual    FX_INT32                StartLoad(IXFA_Doc* hDoc);\r
+    virtual FX_INT32           DoLoad(IXFA_Doc* hDoc, IFX_Pause *pPause = NULL);\r
+    virtual void                       StopLoad(IXFA_Doc* hDoc);\r
 \r
-    virtual IXFA_DocView*      CreateDocView(XFA_HDOC hDoc, FX_DWORD dwView = 0);\r
-    virtual FX_INT32                   CountPackages(XFA_HDOC hDoc);\r
-    virtual    void                            GetPackageName(XFA_HDOC hDoc, FX_INT32 iPackage, CFX_WideStringC &wsPackage);\r
-    virtual IFDE_XMLElement*   GetPackageData(XFA_HDOC hDoc, FX_WSTR wsPackage);\r
-    virtual FX_BOOL                    SavePackage(XFA_HDOC hDoc, FX_WSTR wsPackage, IFX_FileWrite* pFile, IXFA_ChecksumContext *pCSContext = NULL);\r
-    virtual FX_BOOL                    CloseDoc(XFA_HDOC hDoc);\r
-    virtual FX_BOOL                    ImportData(XFA_HDOC hDoc, IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);\r
-    virtual    void                    SetJSERuntime(XFA_HDOC hDoc, FXJSE_HRUNTIME hRuntime);\r
-    virtual FXJSE_HVALUE               GetXFAScriptObject(XFA_HDOC hDoc);\r
-    virtual XFA_ATTRIBUTEENUM  GetRestoreState(XFA_HDOC hDoc);\r
-    virtual FX_BOOL                    RunDocScript(XFA_HDOC hDoc, XFA_SCRIPTTYPE eScriptType, FX_WSTR wsScript, FXJSE_HVALUE hRetValue, FXJSE_HVALUE hThisObject);\r
+    virtual IXFA_DocView*      CreateDocView(IXFA_Doc* hDoc, FX_DWORD dwView = 0);\r
+    virtual FX_INT32                   CountPackages(IXFA_Doc* hDoc);\r
+    virtual    void                            GetPackageName(IXFA_Doc* hDoc, FX_INT32 iPackage, CFX_WideStringC &wsPackage);\r
+    virtual IFDE_XMLElement*   GetPackageData(IXFA_Doc* hDoc, FX_WSTR wsPackage);\r
+    virtual FX_BOOL                    SavePackage(IXFA_Doc* hDoc, FX_WSTR wsPackage, IFX_FileWrite* pFile, IXFA_ChecksumContext *pCSContext = NULL);\r
+    virtual FX_BOOL                    CloseDoc(IXFA_Doc* hDoc);\r
+    virtual FX_BOOL                    ImportData(IXFA_Doc* hDoc, IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);\r
+    virtual    void                    SetJSERuntime(IXFA_Doc* hDoc, FXJSE_HRUNTIME hRuntime);\r
+    virtual FXJSE_HVALUE               GetXFAScriptObject(IXFA_Doc* hDoc);\r
+    virtual XFA_ATTRIBUTEENUM  GetRestoreState(IXFA_Doc* hDoc);\r
+    virtual FX_BOOL                    RunDocScript(IXFA_Doc* hDoc, XFA_SCRIPTTYPE eScriptType, FX_WSTR wsScript, FXJSE_HVALUE hRetValue, FXJSE_HVALUE hThisObject);\r
 protected:\r
 };\r
-#endif\r
+\r
+#endif  // XFA_FFDOCHANDLER_H_\r