|
LibreOffice Module writerfilter (master) 1
|
#include <OOXMLStreamImpl.hxx>
Public Types | |
| typedef tools::SvRef< OOXMLStreamImpl > | Pointer_t |
Public Types inherited from writerfilter::ooxml::OOXMLStream | |
| enum | StreamType_t { UNKNOWN , DOCUMENT , STYLES , WEBSETTINGS , FONTTABLE , NUMBERING , FOOTNOTES , ENDNOTES , COMMENTS , COMMENTS_EXTENDED , THEME , CUSTOMXML , CUSTOMXMLPROPS , GLOSSARY , CHARTS , EMBEDDINGS , SETTINGS , VBAPROJECT , FOOTER , HEADER , VBADATA } |
| typedef tools::SvRef< OOXMLStream > | Pointer_t |
Public Member Functions | |
| OOXMLStreamImpl (OOXMLStreamImpl const &rStream, StreamType_t nType) | |
| OOXMLStreamImpl (css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::io::XInputStream > xStorageStream, StreamType_t nType, bool bRepairStorage) | |
| OOXMLStreamImpl (OOXMLStreamImpl const &rStream, OUString aId) | |
| virtual | ~OOXMLStreamImpl () override |
| virtual css::uno::Reference< css::xml::sax::XFastParser > | getFastParser () override |
| Returns fast parser for this stream. More... | |
| virtual css::uno::Reference< css::io::XInputStream > | getDocumentStream () override |
| virtual css::uno::Reference< css::uno::XComponentContext > | getContext () override |
| Returns component context for this stream. More... | |
| virtual OUString | getTargetForId (const OUString &rId) override |
| Returns target URL from relationships for a given id. More... | |
| virtual const OUString & | getTarget () const override |
| virtual css::uno::Reference< css::xml::sax::XFastTokenHandler > | getFastTokenHandler () override |
| const css::uno::Reference< css::io::XStream > & | accessDocumentStream () |
| virtual css::uno::Reference< css::xml::sax::XFastParser > | getFastParser ()=0 |
| Returns fast parser for this stream. More... | |
| virtual css::uno::Reference< css::io::XInputStream > | getDocumentStream ()=0 |
| virtual css::uno::Reference< css::uno::XComponentContext > | getContext ()=0 |
| Returns component context for this stream. More... | |
| virtual OUString | getTargetForId (const OUString &rId)=0 |
| Returns target URL from relationships for a given id. More... | |
| virtual const OUString & | getTarget () const =0 |
| virtual css::uno::Reference< css::xml::sax::XFastTokenHandler > | getFastTokenHandler ()=0 |
Public Member Functions inherited from SvRefBase | |
| SvRefBase () | |
| SvRefBase (const SvRefBase &) | |
| SvRefBase & | operator= (const SvRefBase &) |
| void | RestoreNoDelete () |
| void | AddNextRef () |
| void | AddFirstRef () |
| void | ReleaseRef () |
| unsigned int | GetRefCount () const |
Private Member Functions | |
| void | init () |
| bool | lcl_getTarget (const css::uno::Reference< css::embed::XRelationshipAccess > &xRelationshipAccess, StreamType_t nStreamType, const OUString &rId, OUString &rDocumentTarget) |
Private Attributes | |
| css::uno::Reference< css::uno::XComponentContext > | mxContext |
| css::uno::Reference< css::io::XInputStream > | mxStorageStream |
| css::uno::Reference< css::embed::XStorage > | mxStorage |
| css::uno::Reference< css::embed::XRelationshipAccess > | mxRelationshipAccess |
| css::uno::Reference< css::io::XStream > | mxDocumentStream |
| css::uno::Reference< css::xml::sax::XFastParser > | mxFastParser |
| css::uno::Reference< css::xml::sax::XFastTokenHandler > | mxFastTokenHandler |
| StreamType_t | mnStreamType |
| OUString | msId |
| OUString | msPath |
| OUString | msTarget |
| std::map< OUString, OUString > | maIdCache |
| Cache holding an Id <-> Target map of external relations. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SvRefBase | |
| virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Definition at line 32 of file OOXMLStreamImpl.hxx.
Definition at line 58 of file OOXMLStreamImpl.hxx.
| writerfilter::ooxml::OOXMLStreamImpl::OOXMLStreamImpl | ( | OOXMLStreamImpl const & | rStream, |
| StreamType_t | nType | ||
| ) |
Definition at line 47 of file OOXMLStreamImpl.cxx.
References init(), mxContext, mxDocumentStream, mxRelationshipAccess, and mxStorage.
| writerfilter::ooxml::OOXMLStreamImpl::OOXMLStreamImpl | ( | css::uno::Reference< css::uno::XComponentContext > const & | xContext, |
| css::uno::Reference< css::io::XInputStream > | xStorageStream, | ||
| StreamType_t | nType, | ||
| bool | bRepairStorage | ||
| ) |
| writerfilter::ooxml::OOXMLStreamImpl::OOXMLStreamImpl | ( | OOXMLStreamImpl const & | rStream, |
| OUString | aId | ||
| ) |
Definition at line 60 of file OOXMLStreamImpl.cxx.
References init(), mxContext, mxDocumentStream, mxRelationshipAccess, mxStorage, sId, and UNKNOWN.
|
overridevirtual |
Definition at line 74 of file OOXMLStreamImpl.cxx.
|
inline |
Definition at line 79 of file OOXMLStreamImpl.hxx.
References mxDocumentStream.
Referenced by writerfilter::ooxml::OOXMLDocumentImpl::resolveCustomXmlStream(), writerfilter::ooxml::OOXMLDocumentImpl::resolveEmbeddingsStream(), and writerfilter::ooxml::OOXMLDocumentImpl::resolveGlossaryStream().
|
overridevirtual |
Returns component context for this stream.
Implements writerfilter::ooxml::OOXMLStream.
Definition at line 389 of file OOXMLStreamImpl.cxx.
References mxContext.
|
overridevirtual |
Implements writerfilter::ooxml::OOXMLStream.
Definition at line 379 of file OOXMLStreamImpl.cxx.
References mxDocumentStream.
|
overridevirtual |
Returns fast parser for this stream.
Implements writerfilter::ooxml::OOXMLStream.
|
overridevirtual |
Implements writerfilter::ooxml::OOXMLStream.
Definition at line 394 of file OOXMLStreamImpl.cxx.
References mxFastTokenHandler.
|
overridevirtual |
Implements writerfilter::ooxml::OOXMLStream.
Definition at line 78 of file OOXMLStreamImpl.cxx.
References msTarget.
|
overridevirtual |
Returns target URL from relationships for a given id.
| rId | the id to look for |
Implements writerfilter::ooxml::OOXMLStream.
Definition at line 339 of file OOXMLStreamImpl.cxx.
References lcl_getTarget(), mxDocumentStream, and writerfilter::ooxml::OOXMLStream::UNKNOWN.
|
private |
Definition at line 352 of file OOXMLStreamImpl.cxx.
References lcl_getTarget(), maIdCache, mnStreamType, msId, msPath, msTarget, mxDocumentStream, mxRelationshipAccess, and mxStorage.
Referenced by OOXMLStreamImpl().
|
private |
Definition at line 83 of file OOXMLStreamImpl.cxx.
References writerfilter::ooxml::OOXMLStream::CHARTS, writerfilter::ooxml::OOXMLStream::COMMENTS, writerfilter::ooxml::OOXMLStream::COMMENTS_EXTENDED, customTarget, writerfilter::ooxml::OOXMLStream::CUSTOMXML, writerfilter::ooxml::OOXMLStream::CUSTOMXMLPROPS, writerfilter::ooxml::OOXMLStream::DOCUMENT, writerfilter::ooxml::OOXMLStream::EMBEDDINGS, embeddingsTarget, writerfilter::ooxml::OOXMLStream::ENDNOTES, writerfilter::ooxml::OOXMLStream::FONTTABLE, writerfilter::ooxml::OOXMLStream::FOOTER, writerfilter::ooxml::OOXMLStream::FOOTNOTES, writerfilter::ooxml::OOXMLStream::GLOSSARY, writerfilter::ooxml::OOXMLStream::HEADER, maIdCache, msPath, mxContext, writerfilter::ooxml::OOXMLStream::NUMBERING, writerfilter::ooxml::OOXMLStream::SETTINGS, sId, writerfilter::ooxml::OOXMLStream::STYLES, sType, writerfilter::ooxml::OOXMLStream::THEME, u, writerfilter::ooxml::OOXMLStream::VBADATA, writerfilter::ooxml::OOXMLStream::VBAPROJECT, and writerfilter::ooxml::OOXMLStream::WEBSETTINGS.
Referenced by getTargetForId(), and init().
|
private |
Cache holding an Id <-> Target map of external relations.
Definition at line 51 of file OOXMLStreamImpl.hxx.
Referenced by init(), and lcl_getTarget().
|
private |
Definition at line 44 of file OOXMLStreamImpl.hxx.
Referenced by init().
|
private |
Definition at line 46 of file OOXMLStreamImpl.hxx.
Referenced by init().
|
private |
Definition at line 47 of file OOXMLStreamImpl.hxx.
Referenced by init(), and lcl_getTarget().
|
private |
Definition at line 48 of file OOXMLStreamImpl.hxx.
Referenced by getTarget(), and init().
|
private |
Definition at line 36 of file OOXMLStreamImpl.hxx.
Referenced by getContext(), and lcl_getTarget().
|
private |
Definition at line 40 of file OOXMLStreamImpl.hxx.
Referenced by accessDocumentStream(), getDocumentStream(), getTargetForId(), init(), and OOXMLStreamImpl().
|
private |
Definition at line 41 of file OOXMLStreamImpl.hxx.
|
private |
Definition at line 42 of file OOXMLStreamImpl.hxx.
Referenced by getFastTokenHandler().
|
private |
Definition at line 39 of file OOXMLStreamImpl.hxx.
Referenced by init(), and OOXMLStreamImpl().
|
private |
Definition at line 38 of file OOXMLStreamImpl.hxx.
Referenced by init().
|
private |
Definition at line 37 of file OOXMLStreamImpl.hxx.