LibreOffice Module oox (master) 1
|
Document handler specifically designed for detecting OOXML file formats. More...
#include <filterdetect.hxx>
Public Member Functions | |
FilterDetectDocHandler (const css::uno::Reference< css::uno::XComponentContext > &rxContext, OUString &rFilter, OUString aFileName) | |
virtual | ~FilterDetectDocHandler () override |
virtual void SAL_CALL | startDocument () override |
virtual void SAL_CALL | endDocument () override |
virtual void SAL_CALL | processingInstruction (const OUString &rTarget, const OUString &rData) override |
virtual void SAL_CALL | setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override |
virtual void SAL_CALL | startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | endFastElement (sal_Int32 Element) override |
virtual void SAL_CALL | endUnknownElement (const OUString &Namespace, const OUString &Name) override |
virtual css::uno::Reference< XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual css::uno::Reference< XFastContextHandler > SAL_CALL | createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | characters (const OUString &aChars) override |
Private Types | |
typedef ::std::vector< sal_Int32 > | ContextVector |
Private Member Functions | |
void | parseRelationship (const AttributeList &rAttribs) |
OUString | getFilterNameFromContentType (std::u16string_view rContentType, std::u16string_view rFileName) |
void | parseContentTypesDefault (const AttributeList &rAttribs) |
void | parseContentTypesOverride (const AttributeList &rAttribs) |
Private Attributes | |
OUString & | mrFilterName |
OUString | maFileName |
ContextVector | maContextStack |
OUString | maTargetPath |
OOXMLVariant | maOOXMLVariant |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
Document handler specifically designed for detecting OOXML file formats.
It takes a reference to the filter string object via its constructor, and puts the name of the detected filter to it, if it successfully finds one.
Definition at line 63 of file filterdetect.hxx.
|
private |
Definition at line 92 of file filterdetect.hxx.
|
explicit |
Definition at line 56 of file filterdetect.cxx.
References oox::core::ECMA_Transitional, maContextStack, and mxContext.
|
overridevirtual |
Definition at line 65 of file filterdetect.cxx.
|
overridevirtual |
Definition at line 141 of file filterdetect.cxx.
|
overridevirtual |
Definition at line 129 of file filterdetect.cxx.
|
overridevirtual |
Definition at line 135 of file filterdetect.cxx.
|
overridevirtual |
Definition at line 73 of file filterdetect.cxx.
|
overridevirtual |
Definition at line 119 of file filterdetect.cxx.
References maContextStack.
|
overridevirtual |
Definition at line 124 of file filterdetect.cxx.
|
private |
Definition at line 179 of file filterdetect.cxx.
References oox::core::ECMA_Transitional, o3tl::endsWithIgnoreAsciiCase(), oox::core::ISO_Strict, oox::core::ISO_Transitional, maOOXMLVariant, and u.
Referenced by parseContentTypesDefault(), and parseContentTypesOverride().
|
private |
Definition at line 241 of file filterdetect.cxx.
References getFilterNameFromContentType(), oox::AttributeList::getStringDefaulted(), maFileName, maTargetPath, and mrFilterName.
Referenced by startFastElement().
|
private |
Definition at line 254 of file filterdetect.cxx.
References getFilterNameFromContentType(), oox::AttributeList::getStringDefaulted(), maFileName, maTargetPath, and mrFilterName.
Referenced by startFastElement().
|
private |
Definition at line 145 of file filterdetect.cxx.
References oox::core::ECMA_Transitional, Exception, oox::AttributeList::getStringDefaulted(), oox::core::ISO_Strict, oox::core::ISO_Transitional, maOOXMLVariant, maTargetPath, mxContext, and xFactory.
Referenced by startFastElement().
|
overridevirtual |
Definition at line 77 of file filterdetect.cxx.
|
overridevirtual |
Definition at line 81 of file filterdetect.cxx.
|
overridevirtual |
Definition at line 69 of file filterdetect.cxx.
|
overridevirtual |
Definition at line 85 of file filterdetect.cxx.
References Default, maContextStack, parseContentTypesDefault(), parseContentTypesOverride(), parseRelationship(), and Types.
|
overridevirtual |
Definition at line 114 of file filterdetect.cxx.
|
private |
Definition at line 96 of file filterdetect.hxx.
Referenced by endFastElement(), FilterDetectDocHandler(), and startFastElement().
|
private |
Definition at line 95 of file filterdetect.hxx.
Referenced by parseContentTypesDefault(), and parseContentTypesOverride().
|
private |
Definition at line 98 of file filterdetect.hxx.
Referenced by getFilterNameFromContentType(), and parseRelationship().
|
private |
Definition at line 97 of file filterdetect.hxx.
Referenced by parseContentTypesDefault(), parseContentTypesOverride(), and parseRelationship().
|
private |
Definition at line 94 of file filterdetect.hxx.
Referenced by parseContentTypesDefault(), and parseContentTypesOverride().
|
private |
Definition at line 99 of file filterdetect.hxx.
Referenced by parseRelationship().