1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef _XFA_DOCDATA_H 8 #define _XFA_DOCDATA_H 9 enum XFA_DATAFORMAT { 10 XFA_DATAFORMAT_XDP, 11 }; 12 class IXFA_PacketExport { 13 public: 14 static IXFA_PacketExport* Create(CXFA_Document* pDocument, 15 XFA_DATAFORMAT eFormat = XFA_DATAFORMAT_XDP); ~IXFA_PacketExport()16 virtual ~IXFA_PacketExport() {} 17 virtual void Release() = 0; 18 virtual FX_BOOL Export(IFX_FileWrite* pWrite) = 0; 19 virtual FX_BOOL Export(IFX_FileWrite* pWrite, 20 CXFA_Node* pNode, 21 FX_DWORD dwFlag = 0, 22 const FX_CHAR* pChecksum = NULL) = 0; 23 }; 24 class IXFA_PacketImport { 25 public: 26 static IXFA_PacketImport* Create(CXFA_Document* pDstDoc); ~IXFA_PacketImport()27 virtual ~IXFA_PacketImport() {} 28 virtual void Release() = 0; 29 virtual FX_BOOL ImportData(IFX_FileRead* pDataDocument) = 0; 30 }; 31 #endif 32