LibreOffice Module unoxml (master) 1
|
#include <documentbuilder.hxx>
Public Member Functions | |
CDocumentBuilder () | |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Reference< css::xml::dom::XDOMImplementation > SAL_CALL | getDOMImplementation () override |
Obtain an instance of a DOMImplementation object. More... | |
virtual sal_Bool SAL_CALL | isNamespaceAware () override |
Indicates whether or not this parser is configured to understand namespaces. More... | |
virtual sal_Bool SAL_CALL | isValidating () override |
Indicates whether or not this parser is configured to validate XML documents. More... | |
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL | newDocument () override |
Obtain a new instance of a DOM Document object to build a DOM tree with. More... | |
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL | parse (const css::uno::Reference< css::io::XInputStream > &is) override |
Parse the content of the given InputStream as an XML document and return a new DOM Document object. More... | |
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL | parseURI (const OUString &uri) override |
Parse the content of the given URI as an XML document and return a new DOM Document object. More... | |
virtual void SAL_CALL | setEntityResolver (const css::uno::Reference< css::xml::sax::XEntityResolver > &er) override |
Specify the EntityResolver to be used to resolve entities present in the XML document to be parsed. More... | |
css::uno::Reference< css::xml::sax::XEntityResolver > | getEntityResolver () |
virtual void SAL_CALL | setErrorHandler (const css::uno::Reference< css::xml::sax::XErrorHandler > &eh) override |
Specify the ErrorHandler to be used to report errors present in the XML document to be parsed. More... | |
const css::uno::Reference< css::xml::sax::XErrorHandler > & | getErrorHandler () const |
Private Attributes | |
std::recursive_mutex | m_Mutex |
css::uno::Reference< css::xml::sax::XEntityResolver > | m_xEntityResolver |
css::uno::Reference< css::xml::sax::XErrorHandler > | m_xErrorHandler |
Definition at line 45 of file documentbuilder.hxx.
|
explicit |
Definition at line 88 of file documentbuilder.cxx.
|
overridevirtual |
Obtain an instance of a DOMImplementation object.
Definition at line 112 of file documentbuilder.cxx.
Reference< XEntityResolver > DOM::CDocumentBuilder::getEntityResolver | ( | ) |
css::uno::RuntimeException |
Definition at line 406 of file documentbuilder.cxx.
References m_Mutex, and m_xEntityResolver.
Referenced by DOM::resolve_func().
|
inline |
Definition at line 119 of file documentbuilder.hxx.
References m_xErrorHandler.
Referenced by DOM::error_func(), and DOM::warning_func().
|
overridevirtual |
Definition at line 102 of file documentbuilder.cxx.
|
overridevirtual |
Definition at line 97 of file documentbuilder.cxx.
|
overridevirtual |
Indicates whether or not this parser is configured to understand namespaces.
Definition at line 118 of file documentbuilder.cxx.
|
overridevirtual |
Indicates whether or not this parser is configured to validate XML documents.
Definition at line 123 of file documentbuilder.cxx.
|
overridevirtual |
Obtain a new instance of a DOM Document object to build a DOM tree with.
Definition at line 128 of file documentbuilder.cxx.
References DOM::CDocument::CreateCDocument(), and m_Mutex.
|
overridevirtual |
Parse the content of the given InputStream as an XML document and return a new DOM Document object.
Definition at line 325 of file documentbuilder.cxx.
References DOM::CDocument::CreateCDocument(), DOM::error_func(), m_Mutex, DOM::resolve_func(), DOM::throwEx(), DOM::warning_func(), DOM::xmlIO_close_func(), and DOM::xmlIO_read_func().
Referenced by parseURI().
|
overridevirtual |
Parse the content of the given URI as an XML document and return a new DOM Document object.
Definition at line 360 of file documentbuilder.cxx.
References DOM::CDocument::CreateCDocument(), DOM::error_func(), comphelper::getProcessComponentContext(), m_Mutex, OUStringToOString(), parse(), DOM::resolve_func(), DOM::throwEx(), and DOM::warning_func().
|
overridevirtual |
Specify the EntityResolver to be used to resolve entities present in the XML document to be parsed.
Definition at line 399 of file documentbuilder.cxx.
References m_Mutex, and m_xEntityResolver.
|
overridevirtual |
Specify the ErrorHandler to be used to report errors present in the XML document to be parsed.
Definition at line 414 of file documentbuilder.cxx.
References m_Mutex, and m_xErrorHandler.
|
overridevirtual |
Definition at line 107 of file documentbuilder.cxx.
References cppu::supportsService().
|
private |
Definition at line 49 of file documentbuilder.hxx.
Referenced by getEntityResolver(), newDocument(), parse(), parseURI(), setEntityResolver(), and setErrorHandler().
|
private |
Definition at line 50 of file documentbuilder.hxx.
Referenced by getEntityResolver(), and setEntityResolver().
|
private |
Definition at line 51 of file documentbuilder.hxx.
Referenced by getErrorHandler(), and setErrorHandler().