summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_document_serialize.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-03-31 20:34:43 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-31 20:34:43 -0700
commitdf4bc596c64fb848647c670be66a29ea0861b4f4 (patch)
tree096f18bc5903e45982291daf81424d0d4954d158 /xfa/fxfa/parser/xfa_document_serialize.h
parent64376be4aac4710848b36b823fd98aae75095336 (diff)
downloadpdfium-df4bc596c64fb848647c670be66a29ea0861b4f4.tar.xz
Remove IXFA_* interfaces.
This CL removes the IXFA_* interfaces which are: - Implemented once. - Not implemented by an fpdfsdk class. This requires making a few classes visible to fpdfsdk so we can have the correct instances available instead of the IXFA types. Review URL: https://codereview.chromium.org/1846993002
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_