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

#include <document.hxx>

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

Public Member Functions

static ::rtl::Reference< CDocumentCreateCDocument (xmlDocPtr const pDoc)
 factory: only way to create instance! More...
 
virtual ~CDocument () override
 
::osl::Mutex & GetMutex ()
 
events::CEventDispatcherGetEventDispatcher ()
 
::rtl::Reference< CElementGetDocumentElement ()
 
::rtl::Reference< CNode > GetCNode (xmlNodePtr const pNode, bool const bCreate=true)
 get UNO wrapper instance for a libxml node More...
 
void RemoveCNode (xmlNodePtr const pNode, CNode const *const pCNode)
 remove a UNO wrapper instance More...
 
virtual CDocumentGetOwnerDocument () override
 
virtual void saxify (const css::uno::Reference< css::xml::sax::XDocumentHandler > &i_xHandler) override
 
virtual void fastSaxify (Context &rContext) override
 
virtual bool IsChildTypeAllowed (css::xml::dom::NodeType const nodeType, css::xml::dom::NodeType const *pReplacedNodeType) override
 
virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL createAttribute (const OUString &name) override
 Creates an Attr of the given name. More...
 
virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL createAttributeNS (const OUString &namespaceURI, const OUString &qualifiedName) override
 Creates an attribute of the given qualified name and namespace URI. More...
 
virtual css::uno::Reference< css::xml::dom::XCDATASection > SAL_CALL createCDATASection (const OUString &data) override
 Creates a CDATASection node whose value is the specified string. More...
 
virtual css::uno::Reference< css::xml::dom::XComment > SAL_CALL createComment (const OUString &data) override
 Creates a Comment node given the specified string. More...
 
virtual css::uno::Reference< css::xml::dom::XDocumentFragment > SAL_CALL createDocumentFragment () override
 Creates an empty DocumentFragment object. More...
 
virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL createElement (const OUString &tagName) override
 Creates an element of the type specified. More...
 
virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL createElementNS (const OUString &namespaceURI, const OUString &qualifiedName) override
 Creates an element of the given qualified name and namespace URI. More...
 
virtual css::uno::Reference< css::xml::dom::XEntityReference > SAL_CALL createEntityReference (const OUString &name) override
 Creates an EntityReference object. More...
 
virtual css::uno::Reference< css::xml::dom::XProcessingInstruction > SAL_CALL createProcessingInstruction (const OUString &target, const OUString &data) override
 Creates a ProcessingInstruction node given the specified name and data strings. More...
 
virtual css::uno::Reference< css::xml::dom::XText > SAL_CALL createTextNode (const OUString &data) override
 Creates a Text node given the specified string. More...
 
virtual css::uno::Reference< css::xml::dom::XDocumentType > SAL_CALL getDoctype () override
 The Document Type Declaration (see DocumentType) associated with this document. More...
 
virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getDocumentElement () override
 This is a convenience attribute that allows direct access to the child node that is the root element of the document. More...
 
virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getElementById (const OUString &elementId) override
 Returns the Element whose ID is given by elementId. More...
 
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getElementsByTagName (const OUString &tagname) override
 Returns a NodeList of all the Elements with a given tag name in the order in which they are encountered in a preorder traversal of the Document tree. More...
 
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getElementsByTagNameNS (const OUString &namespaceURI, const OUString &localName) override
 Returns a NodeList of all the Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of the Document tree. More...
 
virtual css::uno::Reference< css::xml::dom::XDOMImplementation > SAL_CALL getImplementation () override
 The DOMImplementation object that handles this document. More...
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL importNode (const css::uno::Reference< css::xml::dom::XNode > &importedNode, sal_Bool deep) override
 Imports a node from another document to this document. More...
 
virtual css::uno::Reference< css::xml::dom::events::XEvent > SAL_CALL createEvent (const OUString &eventType) override
 
virtual void SAL_CALL addListener (const css::uno::Reference< css::io::XStreamListener > &aListener) override
 
virtual void SAL_CALL removeListener (const css::uno::Reference< css::io::XStreamListener > &aListener) override
 
virtual void SAL_CALL start () override
 
virtual void SAL_CALL terminate () override
 
virtual void SAL_CALL setOutputStream (const css::uno::Reference< css::io::XOutputStream > &aStream) override
 
virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL getOutputStream () override
 
virtual OUString SAL_CALL getNodeName () override
 
virtual OUString SAL_CALL getNodeValue () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode (sal_Bool deep) override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild (const css::uno::Reference< css::xml::dom::XNode > &newChild) override
 
virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes () override
 
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild () override
 
virtual OUString SAL_CALL getLocalName () override
 
virtual OUString SAL_CALL getNamespaceURI () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling () override
 
virtual css::xml::dom::NodeType SAL_CALL getNodeType () override
 
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode () override
 
virtual OUString SAL_CALL getPrefix () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling () override
 
virtual sal_Bool SAL_CALL hasAttributes () override
 
virtual sal_Bool SAL_CALL hasChildNodes () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL insertBefore (const css::uno::Reference< css::xml::dom::XNode > &newChild, const css::uno::Reference< css::xml::dom::XNode > &refChild) override
 
virtual sal_Bool SAL_CALL isSupported (const OUString &feature, const OUString &ver) override
 
virtual void SAL_CALL normalize () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild (const css::uno::Reference< css::xml::dom::XNode > &oldChild) override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL replaceChild (const css::uno::Reference< css::xml::dom::XNode > &newChild, const css::uno::Reference< css::xml::dom::XNode > &oldChild) override
 
virtual void SAL_CALL setNodeValue (const OUString &nodeValue) override
 
virtual void SAL_CALL setPrefix (const OUString &prefix) override
 
virtual void SAL_CALL serialize (const css::uno::Reference< css::xml::sax::XDocumentHandler > &i_xHandler, const css::uno::Sequence< css::beans::StringPair > &i_rNamespaces) override
 
virtual void SAL_CALL fastSerialize (const css::uno::Reference< css::xml::sax::XFastDocumentHandler > &handler, const css::uno::Reference< css::xml::sax::XFastTokenHandler > &tokenHandler, const css::uno::Sequence< css::beans::StringPair > &i_rNamespaces, const css::uno::Sequence< css::beans::Pair< OUString, sal_Int32 > > &namespaces) override
 

Private Types

typedef o3tl::sorted_vector< css::uno::Reference< css::io::XStreamListener > > listenerlist_t
 
typedef std::unordered_map< xmlNodePtr, ::std::pair< css::uno::WeakReference< css::xml::dom::XNode >, CNode * > > nodemap_t
 

Private Member Functions

 CDocument (xmlDocPtr const pDocPtr)
 

Private Attributes

::osl::Mutex m_Mutex
 this Mutex is used for synchronization of all UNO wrapper objects that belong to this document More...
 
xmlDocPtr const m_aDocPtr
 the libxml document: freed in destructor => all UNO wrapper objects must keep the CDocument alive More...
 
listenerlist_t m_streamListeners
 
css::uno::Reference< css::io::XOutputStream > m_rOutputStream
 
nodemap_t m_NodeMap
 
::std::unique_ptr< events::CEventDispatcher > const m_pEventDispatcher
 

Detailed Description

Definition at line 66 of file document.hxx.

Member Typedef Documentation

◆ listenerlist_t

typedef o3tl::sorted_vector< css::uno::Reference< css::io::XStreamListener > > DOM::CDocument::listenerlist_t
private

Definition at line 79 of file document.hxx.

◆ nodemap_t

typedef std::unordered_map< xmlNodePtr, ::std::pair< css::uno::WeakReference<css::xml::dom::XNode>, CNode* > > DOM::CDocument::nodemap_t
private

Definition at line 84 of file document.hxx.

Constructor & Destructor Documentation

◆ CDocument()

DOM::CDocument::CDocument ( xmlDocPtr const  pDocPtr)
explicitprivate

Definition at line 86 of file document.cxx.

Referenced by CreateCDocument(), and GetCNode().

◆ ~CDocument()

DOM::CDocument::~CDocument ( )
overridevirtual

Definition at line 106 of file document.cxx.

References m_aDocPtr, m_Mutex, and m_NodeMap.

Member Function Documentation

◆ addListener()

void SAL_CALL DOM::CDocument::addListener ( const css::uno::Reference< css::io::XStreamListener > &  aListener)
overridevirtual

◆ appendChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::appendChild ( const css::uno::Reference< css::xml::dom::XNode > &  newChild)
inlineoverridevirtual

Definition at line 234 of file document.hxx.

◆ cloneNode()

Reference< XNode > SAL_CALL DOM::CDocument::cloneNode ( sal_Bool  deep)
overridevirtual

Definition at line 923 of file document.cxx.

References CreateCDocument(), get(), m_aDocPtr, and m_rMutex.

◆ createAttribute()

Reference< XAttr > SAL_CALL DOM::CDocument::createAttribute ( const OUString &  name)
overridevirtual

Creates an Attr of the given name.

Definition at line 415 of file document.cxx.

References get(), GetCNode(), m_aDocPtr, m_Mutex, name, OUStringToOString(), and pName.

◆ createAttributeNS()

Reference< XAttr > SAL_CALL DOM::CDocument::createAttributeNS ( const OUString &  namespaceURI,
const OUString &  qualifiedName 
)
overridevirtual

Creates an attribute of the given qualified name and namespace URI.

Definition at line 431 of file document.cxx.

References get(), GetCNode(), i, m_aDocPtr, m_Mutex, ns, and OUStringToOString().

◆ createCDATASection()

Reference< XCDATASection > SAL_CALL DOM::CDocument::createCDATASection ( const OUString &  data)
overridevirtual

Creates a CDATASection node whose value is the specified string.

Definition at line 466 of file document.cxx.

References get(), GetCNode(), m_aDocPtr, m_Mutex, OUStringToOString(), and pData.

◆ CreateCDocument()

rtl::Reference< CDocument > DOM::CDocument::CreateCDocument ( xmlDocPtr const  pDoc)

factory: only way to create instance!

Definition at line 94 of file document.cxx.

References CDocument().

Referenced by cloneNode(), DOM::CDocumentBuilder::newDocument(), DOM::CDocumentBuilder::parse(), and DOM::CDocumentBuilder::parseURI().

◆ createComment()

Reference< XComment > SAL_CALL DOM::CDocument::createComment ( const OUString &  data)
overridevirtual

Creates a Comment node given the specified string.

Definition at line 483 of file document.cxx.

References get(), GetCNode(), m_aDocPtr, m_Mutex, OUStringToOString(), and pData.

◆ createDocumentFragment()

Reference< XDocumentFragment > SAL_CALL DOM::CDocument::createDocumentFragment ( )
overridevirtual

Creates an empty DocumentFragment object.

Definition at line 497 of file document.cxx.

References get(), GetCNode(), m_aDocPtr, and m_Mutex.

◆ createElement()

Reference< XElement > SAL_CALL DOM::CDocument::createElement ( const OUString &  tagName)
overridevirtual

Creates an element of the type specified.

Definition at line 509 of file document.cxx.

References get(), GetCNode(), m_aDocPtr, m_Mutex, OUStringToOString(), and pName.

◆ createElementNS()

Reference< XElement > SAL_CALL DOM::CDocument::createElementNS ( const OUString &  namespaceURI,
const OUString &  qualifiedName 
)
overridevirtual

Creates an element of the given qualified name and namespace URI.

Definition at line 523 of file document.cxx.

References get(), GetCNode(), i, m_aDocPtr, m_Mutex, ns, OUStringToOString(), and pName.

◆ createEntityReference()

Reference< XEntityReference > SAL_CALL DOM::CDocument::createEntityReference ( const OUString &  name)
overridevirtual

Creates an EntityReference object.

Definition at line 559 of file document.cxx.

References get(), GetCNode(), m_aDocPtr, m_Mutex, name, OUStringToOString(), and pName.

◆ createEvent()

Reference< XEvent > SAL_CALL DOM::CDocument::createEvent ( const OUString &  eventType)
overridevirtual

Definition at line 938 of file document.cxx.

◆ createProcessingInstruction()

Reference< XProcessingInstruction > SAL_CALL DOM::CDocument::createProcessingInstruction ( const OUString &  target,
const OUString &  data 
)
overridevirtual

Creates a ProcessingInstruction node given the specified name and data strings.

Definition at line 574 of file document.cxx.

References get(), GetCNode(), m_aDocPtr, m_Mutex, OUStringToOString(), and pData.

◆ createTextNode()

Reference< XText > SAL_CALL DOM::CDocument::createTextNode ( const OUString &  data)
overridevirtual

Creates a Text node given the specified string.

Definition at line 592 of file document.cxx.

References get(), GetCNode(), m_aDocPtr, m_Mutex, OUStringToOString(), and pData.

◆ fastSaxify()

void DOM::CDocument::fastSaxify ( Context rContext)
overridevirtual

Definition at line 282 of file document.cxx.

References GetCNode(), and DOM::Context::mxDocHandler.

Referenced by fastSerialize().

◆ fastSerialize()

void SAL_CALL DOM::CDocument::fastSerialize ( const css::uno::Reference< css::xml::sax::XFastDocumentHandler > &  handler,
const css::uno::Reference< css::xml::sax::XFastTokenHandler > &  tokenHandler,
const css::uno::Sequence< css::beans::StringPair > &  i_rNamespaces,
const css::uno::Sequence< css::beans::Pair< OUString, sal_Int32 > > &  namespaces 
)
overridevirtual

◆ getAttributes()

virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL DOM::CDocument::getAttributes ( )
inlineoverridevirtual

Definition at line 238 of file document.hxx.

◆ getChildNodes()

virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL DOM::CDocument::getChildNodes ( )
inlineoverridevirtual

Definition at line 242 of file document.hxx.

◆ GetCNode()

rtl::Reference< CNode > DOM::CDocument::GetCNode ( xmlNodePtr const  pNode,
bool const  bCreate = true 
)

get UNO wrapper instance for a libxml node

NB: this is the CNode factory.

it is the only place where CNodes may be instantiated. all CNodes must be registered at the m_NodeMap.

Definition at line 161 of file document.cxx.

References CDocument(), i, m_Mutex, and m_NodeMap.

Referenced by createAttribute(), createAttributeNS(), createCDATASection(), createComment(), createDocumentFragment(), createElement(), createElementNS(), createEntityReference(), createProcessingInstruction(), createTextNode(), DOM::events::CEventDispatcher::dispatchEvent(), fastSaxify(), getDoctype(), GetDocumentElement(), getDocumentElement(), getElementById(), and saxify().

◆ getDoctype()

Reference< XDocumentType > SAL_CALL DOM::CDocument::getDoctype ( )
overridevirtual

The Document Type Declaration (see DocumentType) associated with this document.

Definition at line 607 of file document.cxx.

References get(), GetCNode(), DOM::lcl_getDocumentType(), m_aDocPtr, and m_Mutex.

◆ GetDocumentElement()

rtl::Reference< CElement > DOM::CDocument::GetDocumentElement ( )

Definition at line 127 of file document.cxx.

References get(), GetCNode(), DOM::lcl_getDocumentRootPtr(), and m_aDocPtr.

Referenced by getElementsByTagName(), and getElementsByTagNameNS().

◆ getDocumentElement()

Reference< XElement > SAL_CALL DOM::CDocument::getDocumentElement ( )
overridevirtual

This is a convenience attribute that allows direct access to the child node that is the root element of the document.

Definition at line 620 of file document.cxx.

References get(), GetCNode(), DOM::lcl_getDocumentRootPtr(), m_aDocPtr, and m_Mutex.

◆ getElementById()

Reference< XElement > SAL_CALL DOM::CDocument::getElementById ( const OUString &  elementId)
overridevirtual

Returns the Element whose ID is given by elementId.

Definition at line 660 of file document.cxx.

References get(), GetCNode(), DOM::lcl_getDocumentRootPtr(), DOM::lcl_search_element_by_id(), m_aDocPtr, m_Mutex, and OUStringToOString().

◆ getElementsByTagName()

Reference< XNodeList > SAL_CALL DOM::CDocument::getElementsByTagName ( const OUString &  tagname)
overridevirtual

Returns a NodeList of all the Elements with a given tag name in the order in which they are encountered in a preorder traversal of the Document tree.

Definition at line 678 of file document.cxx.

References GetDocumentElement(), and m_Mutex.

◆ getElementsByTagNameNS()

Reference< XNodeList > SAL_CALL DOM::CDocument::getElementsByTagNameNS ( const OUString &  namespaceURI,
const OUString &  localName 
)
overridevirtual

Returns a NodeList of all the Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of the Document tree.

Definition at line 687 of file document.cxx.

References GetDocumentElement(), and m_Mutex.

◆ GetEventDispatcher()

events::CEventDispatcher & DOM::CDocument::GetEventDispatcher ( )

Definition at line 122 of file document.cxx.

References m_pEventDispatcher.

◆ getFirstChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::getFirstChild ( )
inlineoverridevirtual

Definition at line 246 of file document.hxx.

◆ getImplementation()

Reference< XDOMImplementation > SAL_CALL DOM::CDocument::getImplementation ( )
overridevirtual

The DOMImplementation object that handles this document.

Definition at line 698 of file document.cxx.

References DOM::CDOMImplementation::get().

◆ getLastChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::getLastChild ( )
inlineoverridevirtual

Definition at line 250 of file document.hxx.

◆ getLocalName()

virtual OUString SAL_CALL DOM::CDocument::getLocalName ( )
inlineoverridevirtual

Definition at line 254 of file document.hxx.

◆ GetMutex()

::osl::Mutex & DOM::CDocument::GetMutex ( )
inline

Definition at line 100 of file document.hxx.

References m_Mutex.

◆ getNamespaceURI()

virtual OUString SAL_CALL DOM::CDocument::getNamespaceURI ( )
inlineoverridevirtual

Definition at line 258 of file document.hxx.

◆ getNextSibling()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::getNextSibling ( )
inlineoverridevirtual

Definition at line 262 of file document.hxx.

◆ getNodeName()

OUString SAL_CALL DOM::CDocument::getNodeName ( )
overridevirtual

Definition at line 911 of file document.cxx.

◆ getNodeType()

virtual css::xml::dom::NodeType SAL_CALL DOM::CDocument::getNodeType ( )
inlineoverridevirtual

Definition at line 266 of file document.hxx.

◆ getNodeValue()

OUString SAL_CALL DOM::CDocument::getNodeValue ( )
overridevirtual

Definition at line 917 of file document.cxx.

◆ getOutputStream()

Reference< XOutputStream > SAL_CALL DOM::CDocument::getOutputStream ( )
overridevirtual

Definition at line 407 of file document.cxx.

References m_Mutex, and m_rOutputStream.

◆ GetOwnerDocument()

CDocument & DOM::CDocument::GetOwnerDocument ( )
overridevirtual

Definition at line 265 of file document.cxx.

◆ getOwnerDocument()

virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL DOM::CDocument::getOwnerDocument ( )
inlineoverridevirtual

Definition at line 270 of file document.hxx.

◆ getParentNode()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::getParentNode ( )
inlineoverridevirtual

Definition at line 274 of file document.hxx.

◆ getPrefix()

virtual OUString SAL_CALL DOM::CDocument::getPrefix ( )
inlineoverridevirtual

Definition at line 278 of file document.hxx.

◆ getPreviousSibling()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::getPreviousSibling ( )
inlineoverridevirtual

Definition at line 282 of file document.hxx.

◆ hasAttributes()

virtual sal_Bool SAL_CALL DOM::CDocument::hasAttributes ( )
inlineoverridevirtual

Definition at line 286 of file document.hxx.

◆ hasChildNodes()

virtual sal_Bool SAL_CALL DOM::CDocument::hasChildNodes ( )
inlineoverridevirtual

Definition at line 290 of file document.hxx.

◆ importNode()

Reference< XNode > SAL_CALL DOM::CDocument::importNode ( const css::uno::Reference< css::xml::dom::XNode > &  importedNode,
sal_Bool  deep 
)
overridevirtual

Imports a node from another document to this document.

Definition at line 881 of file document.cxx.

References DOM::lcl_ImportNode().

◆ insertBefore()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::insertBefore ( const css::uno::Reference< css::xml::dom::XNode > &  newChild,
const css::uno::Reference< css::xml::dom::XNode > &  refChild 
)
inlineoverridevirtual

Definition at line 294 of file document.hxx.

◆ IsChildTypeAllowed()

bool DOM::CDocument::IsChildTypeAllowed ( css::xml::dom::NodeType const  nodeType,
css::xml::dom::NodeType const *  pReplacedNodeType 
)
overridevirtual

◆ isSupported()

virtual sal_Bool SAL_CALL DOM::CDocument::isSupported ( const OUString &  feature,
const OUString &  ver 
)
inlineoverridevirtual

Definition at line 299 of file document.hxx.

◆ normalize()

virtual void SAL_CALL DOM::CDocument::normalize ( )
inlineoverridevirtual

Definition at line 303 of file document.hxx.

◆ removeChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::removeChild ( const css::uno::Reference< css::xml::dom::XNode > &  oldChild)
inlineoverridevirtual

Definition at line 307 of file document.hxx.

◆ RemoveCNode()

void DOM::CDocument::RemoveCNode ( xmlNodePtr const  pNode,
CNode const *const  pCNode 
)

remove a UNO wrapper instance

Definition at line 136 of file document.cxx.

References i, and m_NodeMap.

◆ removeListener()

void SAL_CALL DOM::CDocument::removeListener ( const css::uno::Reference< css::io::XStreamListener > &  aListener)
overridevirtual

◆ replaceChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CDocument::replaceChild ( const css::uno::Reference< css::xml::dom::XNode > &  newChild,
const css::uno::Reference< css::xml::dom::XNode > &  oldChild 
)
inlineoverridevirtual

Definition at line 311 of file document.hxx.

◆ saxify()

void DOM::CDocument::saxify ( const css::uno::Reference< css::xml::sax::XDocumentHandler > &  i_xHandler)
overridevirtual

Definition at line 270 of file document.cxx.

References GetCNode().

Referenced by serialize().

◆ serialize()

void SAL_CALL DOM::CDocument::serialize ( const css::uno::Reference< css::xml::sax::XDocumentHandler > &  i_xHandler,
const css::uno::Sequence< css::beans::StringPair > &  i_rNamespaces 
)
overridevirtual

◆ setNodeValue()

virtual void SAL_CALL DOM::CDocument::setNodeValue ( const OUString &  nodeValue)
inlineoverridevirtual

Definition at line 316 of file document.hxx.

◆ setOutputStream()

void SAL_CALL DOM::CDocument::setOutputStream ( const css::uno::Reference< css::io::XOutputStream > &  aStream)
overridevirtual

Definition at line 400 of file document.cxx.

References m_Mutex, and m_rOutputStream.

◆ setPrefix()

virtual void SAL_CALL DOM::CDocument::setPrefix ( const OUString &  prefix)
inlineoverridevirtual

Definition at line 320 of file document.hxx.

References prefix.

◆ start()

void SAL_CALL DOM::CDocument::start ( )
overridevirtual

◆ terminate()

void SAL_CALL DOM::CDocument::terminate ( )
overridevirtual

Definition at line 395 of file document.cxx.

Member Data Documentation

◆ m_aDocPtr

xmlDocPtr const DOM::CDocument::m_aDocPtr
private

◆ m_Mutex

::osl::Mutex DOM::CDocument::m_Mutex
private

◆ m_NodeMap

nodemap_t DOM::CDocument::m_NodeMap
private

Definition at line 85 of file document.hxx.

Referenced by GetCNode(), RemoveCNode(), and ~CDocument().

◆ m_pEventDispatcher

::std::unique_ptr<events::CEventDispatcher> const DOM::CDocument::m_pEventDispatcher
private

Definition at line 87 of file document.hxx.

Referenced by GetEventDispatcher().

◆ m_rOutputStream

css::uno::Reference< css::io::XOutputStream > DOM::CDocument::m_rOutputStream
private

Definition at line 81 of file document.hxx.

Referenced by getOutputStream(), setOutputStream(), and start().

◆ m_streamListeners

listenerlist_t DOM::CDocument::m_streamListeners
private

Definition at line 80 of file document.hxx.

Referenced by addListener(), removeListener(), and start().


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