Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxfa / src / common / xfa_docdata.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_DOCDATA_H\r
8 #define _XFA_DOCDATA_H\r
9 enum XFA_DATAFORMAT {\r
10     XFA_DATAFORMAT_XDP,\r
11 };\r
12 class IXFA_PacketExport\r
13 {\r
14 public:\r
15     static IXFA_PacketExport*   Create(CXFA_Document *pDocument, XFA_DATAFORMAT eFormat = XFA_DATAFORMAT_XDP);\r
16     virtual void                                Release() = 0;\r
17     virtual FX_BOOL                             Export(IFX_FileWrite *pWrite) = 0;\r
18     virtual FX_BOOL                             Export(IFX_FileWrite *pWrite, CXFA_Node *pNode, FX_DWORD dwFlag = 0, FX_LPCSTR pChecksum = NULL) = 0;\r
19 };\r
20 class IXFA_PacketImport\r
21 {\r
22 public:\r
23     static IXFA_PacketImport*   Create(CXFA_Document *pDstDoc);\r
24     virtual void                                Release() = 0;\r
25     virtual FX_BOOL                             ImportData(IFX_FileRead* pDataDocument) = 0;\r
26 };\r
27 #endif\r