20#ifndef INCLUDED_OOX_CORE_FASTPARSER_HXX
21#define INCLUDED_OOX_CORE_FASTPARSER_HXX
23#include <com/sun/star/uno/Reference.hxx>
24#include <rtl/ustring.hxx>
30 namespace io {
class XInputStream; }
31 namespace uno {
class XComponentContext; }
32 namespace xml::sax {
class XFastDocumentHandler; }
33 namespace xml::sax {
class XFastParser; }
34 namespace xml::sax {
class XFastTokenHandler; }
35 namespace xml::sax {
struct InputSource; }
68 void registerNamespace( sal_Int32 nNamespaceId );
73 void setDocumentHandler(
74 const css::uno::Reference< css::xml::sax::XFastDocumentHandler >& rxDocHandler );
76 void clearDocumentHandler();
84 void parseStream(
const css::xml::sax::InputSource& rInputSource,
bool bCloseStream =
false );
93 const css::uno::Reference< css::io::XInputStream >& rxInStream,
94 const OUString& rStreamName );
102 void parseStream(
StorageBase& rStorage,
const OUString& rStreamName );
104 const css::uno::Reference< css::xml::sax::XFastTokenHandler >&
Base class for storage access implementations.
Wrapper for a fast SAX parser that works on automatically generated OOXML token and namespace identif...
void parseStream(const css::xml::sax::InputSource &rInputSource, bool bCloseStream=false)
Parses the passed SAX input source.
FastParser(const FastParser &)=delete
FastParser & operator=(const FastParser &)=delete
const NamespaceMap & mrNamespaceMap
css::uno::Reference< css::xml::sax::XFastTokenHandler > mxTokenHandler
void parseStream(const css::uno::Reference< css::io::XInputStream > &rxInStream, const OUString &rStreamName)
Parses the passed input stream.
rtl::Reference< sax_fastparser::FastSaxParser > mxParser
const css::uno::Reference< css::xml::sax::XFastTokenHandler > & getTokenHandler() const
A map that contains all XML namespace URLs used in the filters.