1 // Copyright 2016 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_FXFA_PARSER_CXFA_DATAEXPORTER_H_ 8 #define XFA_FXFA_PARSER_CXFA_DATAEXPORTER_H_ 9 10 #include "core/fxcrt/cfx_retain_ptr.h" 11 #include "core/fxcrt/fx_string.h" 12 13 class CXFA_Document; 14 class CXFA_Node; 15 class IFX_SeekableWriteStream; 16 class IFGAS_Stream; 17 18 class CXFA_DataExporter { 19 public: 20 explicit CXFA_DataExporter(CXFA_Document* pDocument); 21 22 bool Export(const CFX_RetainPtr<IFX_SeekableWriteStream>& pWrite); 23 bool Export(const CFX_RetainPtr<IFX_SeekableWriteStream>& pWrite, 24 CXFA_Node* pNode, 25 uint32_t dwFlag, 26 const FX_CHAR* pChecksum); 27 28 protected: 29 bool Export(const CFX_RetainPtr<IFGAS_Stream>& pStream, 30 CXFA_Node* pNode, 31 uint32_t dwFlag, 32 const FX_CHAR* pChecksum); 33 34 CXFA_Document* const m_pDocument; 35 }; 36 37 #endif // XFA_FXFA_PARSER_CXFA_DATAEXPORTER_H_ 38