summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_document_serialize.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/xfa_document_serialize.h')
-rw-r--r--xfa/fxfa/parser/xfa_document_serialize.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/xfa/fxfa/parser/xfa_document_serialize.h b/xfa/fxfa/parser/xfa_document_serialize.h
index f18e163a8d..9bde4b038e 100644
--- a/xfa/fxfa/parser/xfa_document_serialize.h
+++ b/xfa/fxfa/parser/xfa_document_serialize.h
@@ -9,32 +9,34 @@
#include "xfa/fxfa/parser/xfa_docdata.h"
-class CXFA_DataImporter : public IXFA_PacketImport {
+class CXFA_DataImporter {
public:
- CXFA_DataImporter(CXFA_Document* pDocument);
- virtual void Release() { delete this; }
- virtual FX_BOOL ImportData(IFX_FileRead* pDataDocument);
+ explicit CXFA_DataImporter(CXFA_Document* pDocument);
+
+ void Release() { delete this; }
+ FX_BOOL ImportData(IFX_FileRead* pDataDocument);
protected:
- CXFA_Document* m_pDocument;
+ CXFA_Document* const m_pDocument;
};
-class CXFA_DataExporter : public IXFA_PacketExport {
+class CXFA_DataExporter {
public:
- CXFA_DataExporter(CXFA_Document* pDocument);
- virtual void Release() { delete this; }
- virtual FX_BOOL Export(IFX_FileWrite* pWrite);
- virtual FX_BOOL Export(IFX_FileWrite* pWrite,
- CXFA_Node* pNode,
- uint32_t dwFlag = 0,
- const FX_CHAR* pChecksum = NULL);
+ explicit CXFA_DataExporter(CXFA_Document* pDocument);
+
+ void Release() { delete this; }
+ FX_BOOL Export(IFX_FileWrite* pWrite);
+ FX_BOOL Export(IFX_FileWrite* pWrite,
+ CXFA_Node* pNode,
+ uint32_t dwFlag = 0,
+ const FX_CHAR* pChecksum = NULL);
protected:
FX_BOOL Export(IFX_Stream* pStream,
CXFA_Node* pNode,
uint32_t dwFlag,
const FX_CHAR* pChecksum);
- CXFA_Document* m_pDocument;
+ CXFA_Document* const m_pDocument;
};
#endif // XFA_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_