| OLD | NEW |
| (Empty) |
| 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_SRC_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_ | |
| 8 #define XFA_SRC_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_ | |
| 9 | |
| 10 #include "xfa/src/fxfa/parser/xfa_docdata.h" | |
| 11 | |
| 12 class CXFA_DataImporter : public IXFA_PacketImport { | |
| 13 public: | |
| 14 CXFA_DataImporter(CXFA_Document* pDocument); | |
| 15 virtual void Release() { delete this; } | |
| 16 virtual FX_BOOL ImportData(IFX_FileRead* pDataDocument); | |
| 17 | |
| 18 protected: | |
| 19 CXFA_Document* m_pDocument; | |
| 20 }; | |
| 21 | |
| 22 class CXFA_DataExporter : public IXFA_PacketExport { | |
| 23 public: | |
| 24 CXFA_DataExporter(CXFA_Document* pDocument); | |
| 25 virtual void Release() { delete this; } | |
| 26 virtual FX_BOOL Export(IFX_FileWrite* pWrite); | |
| 27 virtual FX_BOOL Export(IFX_FileWrite* pWrite, | |
| 28 CXFA_Node* pNode, | |
| 29 FX_DWORD dwFlag = 0, | |
| 30 const FX_CHAR* pChecksum = NULL); | |
| 31 | |
| 32 protected: | |
| 33 FX_BOOL Export(IFX_Stream* pStream, | |
| 34 CXFA_Node* pNode, | |
| 35 FX_DWORD dwFlag, | |
| 36 const FX_CHAR* pChecksum); | |
| 37 CXFA_Document* m_pDocument; | |
| 38 }; | |
| 39 | |
| 40 #endif // XFA_SRC_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_ | |
| OLD | NEW |