22#include <com/sun/star/io/XInputStream.hpp>
37using ::oox::core::FilterBase;
44void RootStorageObject::implDumpStream(
const Reference< XInputStream >& rxStrm,
const OUString& rStrgPath,
const OUString& rStrmName,
const OUString& rSysFileName )
70 ::oox::dump::biff::Dumper(
getContext(), rxStrm, rSysFileName ).dump();
78 XmlStreamObject( *
this, rxStrm, rSysFileName ).dump();
82 if( rStrgPath ==
"ppt" && rStrmName ==
"vbaProject.bin" )
85 VbaProjectStorageObject( *
this, xStrg, rSysFileName ).dump();
87 else if ( rStrgPath ==
"ppt/embeddings" )
90 OleStorageObject( *
this, xStrg, rSysFileName ).dump();
92 else if ( rStrgPath ==
"ppt/activeX" )
95 ActiveXStorageObject( *
this, xStrg, rSysFileName ).dump();
99 BinaryStreamObject( *
this, rxStrm, rSysFileName ).dump();
104#define DUMP_PPTX_CONFIG_ENVVAR "OOO_PPTXDUMPER"
112Dumper::Dumper(
const Reference< XComponentContext >& rxContext,
const Reference< XInputStream >& rxInStrm,
const OUString& rSysFileName )
114 if( rxContext.is() && rxInStrm.is() )
116 StorageRef xStrg = std::make_shared<ZipStorage>( rxContext, rxInStrm );
Base class for a file dumper.
void construct(const ConfigRef &rxConfig)
const css::uno::Reference< css::uno::XComponentContext > & getContext() const
void construct(const ObjectBase &rParent, const StorageRef &rxStrg, const OUString &rSysPath)
Dumper(const ::oox::core::FilterBase &rFilter)
virtual void implDump() override
virtual void implDumpStream(const css::uno::Reference< css::io::XInputStream > &rxStrm, const OUString &rStrgPath, const OUString &rStrmName, const OUString &rSysFileName) override
RootStorageObject(const DumperBase &rParent)
bool equalsIgnoreAsciiCase(std::u16string_view s1, std::u16string_view s2)
std::shared_ptr< Config > ConfigRef
std::shared_ptr< StorageBase > StorageRef
#define DUMP_PPTX_CONFIG_ENVVAR