LibreOffice Module xmloff (master) 1
|
DomBuilderContext creates a DOM tree suitable for in-memory processing of XML data from a sequence of SAX events. More...
#include <DomBuilderContext.hxx>
Public Member Functions | |
DomBuilderContext (SvXMLImport &rImport, sal_Int32 nElement) | |
default constructor: create new DOM tree More... | |
DomBuilderContext (SvXMLImport &rImport, const OUString &Namespace, const OUString &Name) | |
DomBuilderContext (SvXMLImport &rImport, sal_Int32 nElement, css::uno::Reference< css::xml::dom::XNode > const &) | |
constructor: create DOM subtree under the given node More... | |
DomBuilderContext (SvXMLImport &rImport, const OUString &Namespace, const OUString &Name, css::uno::Reference< css::xml::dom::XNode > const &) | |
constructor: create DOM subtree under the given node More... | |
virtual | ~DomBuilderContext () override |
css::uno::Reference< css::xml::dom::XDocument > | getTree () |
access the DOM tree More... | |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) 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 | characters (const OUString &rChars) override |
This method is called for all characters that are contained in the current element. More... | |
Public Member Functions inherited from SvXMLImportContext | |
SvXMLImportContext (SvXMLImport &rImport) | |
A contexts constructor does anything that is required if an element starts. More... | |
virtual | ~SvXMLImportContext () |
A contexts destructor does anything that is required if an element ends. More... | |
virtual void SAL_CALL | startFastElement (sal_Int32 Element, 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 |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
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< css::xml::sax::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 |
This method is called for all characters that are contained in the current element. More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) final override |
virtual void SAL_CALL | acquire () noexcept final override |
virtual void SAL_CALL | release () noexcept final override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () final override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () final override |
Private Member Functions | |
void | HandleAttributes (const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) |
Private Attributes | |
css::uno::Reference< css::xml::dom::XNode > | mxNode |
Additional Inherited Members | |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
DomBuilderContext creates a DOM tree suitable for in-memory processing of XML data from a sequence of SAX events.
Definition at line 43 of file DomBuilderContext.hxx.
DomBuilderContext::DomBuilderContext | ( | SvXMLImport & | rImport, |
sal_Int32 | nElement | ||
) |
default constructor: create new DOM tree
Definition at line 63 of file DomBuilderContext.cxx.
References mxNode, and SAL_WARN_IF.
Referenced by createFastChildContext(), and createUnknownChildContext().
DomBuilderContext::DomBuilderContext | ( | SvXMLImport & | rImport, |
const OUString & | Namespace, | ||
const OUString & | Name | ||
) |
Definition at line 74 of file DomBuilderContext.cxx.
References mxNode, and SAL_WARN_IF.
DomBuilderContext::DomBuilderContext | ( | SvXMLImport & | rImport, |
sal_Int32 | nElement, | ||
css::uno::Reference< css::xml::dom::XNode > const & | |||
) |
constructor: create DOM subtree under the given node
DomBuilderContext::DomBuilderContext | ( | SvXMLImport & | rImport, |
const OUString & | Namespace, | ||
const OUString & | Name, | ||
css::uno::Reference< css::xml::dom::XNode > const & | |||
) |
constructor: create DOM subtree under the given node
|
overridevirtual |
Definition at line 107 of file DomBuilderContext.cxx.
|
overridevirtual |
This method is called for all characters that are contained in the current element.
The default is to ignore them.
Reimplemented from SvXMLImportContext.
Definition at line 212 of file DomBuilderContext.cxx.
References mxNode, and SAL_WARN_IF.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 117 of file DomBuilderContext.cxx.
References DomBuilderContext(), SvXMLImportContext::GetImport(), and mxNode.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 124 of file DomBuilderContext.cxx.
References DomBuilderContext(), SvXMLImportContext::GetImport(), and mxNode.
Reference< XDocument > DomBuilderContext::getTree | ( | ) |
access the DOM tree
Definition at line 111 of file DomBuilderContext.cxx.
References mxNode, and SAL_WARN_IF.
Referenced by XFormsInstanceContext::createFastChildContext(), and XFormsInstanceContext::createUnknownChildContext().
|
private |
Definition at line 150 of file DomBuilderContext.cxx.
References sax_fastparser::castToFastAttributeList(), SvXMLImportContext::GetImport(), mxNode, NMSP_SHIFT, nNamespace, XML_NAMESPACE_NONE, XML_NAMESPACE_UNKNOWN, XML_NAMESPACE_XMLNS, XMLERROR_FLAG_WARNING, and XMLERROR_NAMESPACE_TROUBLE.
Referenced by startFastElement(), and startUnknownElement().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 131 of file DomBuilderContext.cxx.
References HandleAttributes(), mxNode, and SAL_WARN_IF.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 141 of file DomBuilderContext.cxx.
References HandleAttributes(), mxNode, and SAL_WARN_IF.
|
private |
Definition at line 45 of file DomBuilderContext.hxx.
Referenced by characters(), createFastChildContext(), createUnknownChildContext(), DomBuilderContext(), getTree(), HandleAttributes(), startFastElement(), and startUnknownElement().