LibreOffice Module unoxml (master) 1
Public Member Functions | Private Attributes | List of all members
DOM::CDocumentBuilder Class Reference

#include <documentbuilder.hxx>

Inheritance diagram for DOM::CDocumentBuilder:
[legend]
Collaboration diagram for DOM::CDocumentBuilder:
[legend]

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
 

Detailed Description

Definition at line 45 of file documentbuilder.hxx.

Constructor & Destructor Documentation

◆ CDocumentBuilder()

DOM::CDocumentBuilder::CDocumentBuilder ( )
explicit

Definition at line 88 of file documentbuilder.cxx.

Member Function Documentation

◆ getDOMImplementation()

Reference< XDOMImplementation > SAL_CALL DOM::CDocumentBuilder::getDOMImplementation ( )
overridevirtual

Obtain an instance of a DOMImplementation object.

Definition at line 112 of file documentbuilder.cxx.

◆ getEntityResolver()

Reference< XEntityResolver > DOM::CDocumentBuilder::getEntityResolver ( )
Exceptions
css::uno::RuntimeException

Definition at line 406 of file documentbuilder.cxx.

References m_Mutex, and m_xEntityResolver.

Referenced by DOM::resolve_func().

◆ getErrorHandler()

const css::uno::Reference< css::xml::sax::XErrorHandler > & DOM::CDocumentBuilder::getErrorHandler ( ) const
inline

Definition at line 119 of file documentbuilder.hxx.

References m_xErrorHandler.

Referenced by DOM::error_func(), and DOM::warning_func().

◆ getImplementationName()

OUString SAL_CALL DOM::CDocumentBuilder::getImplementationName ( )
overridevirtual

Definition at line 102 of file documentbuilder.cxx.

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL DOM::CDocumentBuilder::getSupportedServiceNames ( )
overridevirtual

Definition at line 97 of file documentbuilder.cxx.

◆ isNamespaceAware()

sal_Bool SAL_CALL DOM::CDocumentBuilder::isNamespaceAware ( )
overridevirtual

Indicates whether or not this parser is configured to understand namespaces.

Definition at line 118 of file documentbuilder.cxx.

◆ isValidating()

sal_Bool SAL_CALL DOM::CDocumentBuilder::isValidating ( )
overridevirtual

Indicates whether or not this parser is configured to validate XML documents.

Definition at line 123 of file documentbuilder.cxx.

◆ newDocument()

Reference< XDocument > SAL_CALL DOM::CDocumentBuilder::newDocument ( )
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.

◆ parse()

Reference< XDocument > SAL_CALL DOM::CDocumentBuilder::parse ( const css::uno::Reference< css::io::XInputStream > &  is)
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().

◆ parseURI()

Reference< XDocument > SAL_CALL DOM::CDocumentBuilder::parseURI ( const OUString &  uri)
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().

◆ setEntityResolver()

void SAL_CALL DOM::CDocumentBuilder::setEntityResolver ( const css::uno::Reference< css::xml::sax::XEntityResolver > &  er)
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.

◆ setErrorHandler()

void SAL_CALL DOM::CDocumentBuilder::setErrorHandler ( const css::uno::Reference< css::xml::sax::XErrorHandler > &  eh)
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.

◆ supportsService()

sal_Bool SAL_CALL DOM::CDocumentBuilder::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 107 of file documentbuilder.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_Mutex

std::recursive_mutex DOM::CDocumentBuilder::m_Mutex
private

◆ m_xEntityResolver

css::uno::Reference< css::xml::sax::XEntityResolver > DOM::CDocumentBuilder::m_xEntityResolver
private

Definition at line 50 of file documentbuilder.hxx.

Referenced by getEntityResolver(), and setEntityResolver().

◆ m_xErrorHandler

css::uno::Reference< css::xml::sax::XErrorHandler > DOM::CDocumentBuilder::m_xErrorHandler
private

Definition at line 51 of file documentbuilder.hxx.

Referenced by getErrorHandler(), and setErrorHandler().


The documentation for this class was generated from the following files: