Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[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 _FXFA_FORMFILLER_DOCHANDLER_IMP_H\r
8 #define _FXFA_FORMFILLER_DOCHANDLER_IMP_H\r
9 class CXFA_FFDocHandler : public IXFA_DocHandler, public CFX_Object\r
10 {\r
11 public:\r
12     CXFA_FFDocHandler();\r
13     ~CXFA_FFDocHandler();\r
14     virtual void                                ReleaseDoc(XFA_HDOC hDoc);\r
15     virtual IXFA_DocProvider*   GetDocProvider(XFA_HDOC hDoc);\r
16     virtual FX_DWORD            GetDocType(XFA_HDOC hDoc);\r
17     virtual     FX_INT32                StartLoad(XFA_HDOC hDoc);\r
18     virtual FX_INT32            DoLoad(XFA_HDOC hDoc, IFX_Pause *pPause = NULL);\r
19     virtual void                        StopLoad(XFA_HDOC hDoc);\r
20 \r
21     virtual IXFA_DocView*       CreateDocView(XFA_HDOC hDoc, FX_DWORD dwView = 0);\r
22     virtual FX_INT32                    CountPackages(XFA_HDOC hDoc);\r
23     virtual     void                            GetPackageName(XFA_HDOC hDoc, FX_INT32 iPackage, CFX_WideStringC &wsPackage);\r
24     virtual IFDE_XMLElement*    GetPackageData(XFA_HDOC hDoc, FX_WSTR wsPackage);\r
25     virtual FX_BOOL                     SavePackage(XFA_HDOC hDoc, FX_WSTR wsPackage, IFX_FileWrite* pFile, IXFA_ChecksumContext *pCSContext = NULL);\r
26     virtual FX_BOOL                     CloseDoc(XFA_HDOC hDoc);\r
27     virtual FX_BOOL                     ImportData(XFA_HDOC hDoc, IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);\r
28     virtual     void                    SetJSERuntime(XFA_HDOC hDoc, FXJSE_HRUNTIME hRuntime);\r
29     virtual FXJSE_HVALUE                GetXFAScriptObject(XFA_HDOC hDoc);\r
30     virtual XFA_ATTRIBUTEENUM   GetRestoreState(XFA_HDOC hDoc);\r
31     virtual FX_BOOL                     RunDocScript(XFA_HDOC hDoc, XFA_SCRIPTTYPE eScriptType, FX_WSTR wsScript, FXJSE_HVALUE hRetValue, FXJSE_HVALUE hThisObject);\r
32 protected:\r
33 };\r
34 #endif\r