LibreOffice Module unoxml (master) 1
|
#include <element.hxx>
Public Member Functions | |
virtual void | saxify (const css::uno::Reference< css::xml::sax::XDocumentHandler > &i_xHandler) override |
virtual void | fastSaxify (Context &i_rContext) override |
virtual bool | IsChildTypeAllowed (css::xml::dom::NodeType const nodeType, css::xml::dom::NodeType const *) override |
virtual OUString SAL_CALL | getAttribute (const OUString &name) override |
Retrieves an attribute value by name. More... | |
virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL | getAttributeNode (const OUString &name) override |
Retrieves an attribute node by name. More... | |
virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL | getAttributeNodeNS (const OUString &namespaceURI, const OUString &localName) override |
Retrieves an Attr node by local name and namespace URI. More... | |
virtual OUString SAL_CALL | getAttributeNS (const OUString &namespaceURI, const OUString &localName) override |
Retrieves an attribute value by local name and namespace URI. More... | |
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL | getElementsByTagName (const OUString &name) override |
Returns a NodeList of all descendant Elements with a given tag name, in the order in which they are encountered in a preorder traversal of this Element 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 descendant Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of this Element tree. More... | |
virtual OUString SAL_CALL | getTagName () override |
The name of the element. More... | |
virtual sal_Bool SAL_CALL | hasAttribute (const OUString &name) override |
Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise. More... | |
virtual sal_Bool SAL_CALL | hasAttributeNS (const OUString &namespaceURI, const OUString &localName) override |
Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise. More... | |
virtual void SAL_CALL | removeAttribute (const OUString &name) override |
Removes an attribute by name. More... | |
virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL | removeAttributeNode (const css::uno::Reference< css::xml::dom::XAttr > &oldAttr) override |
Removes the specified attribute node. More... | |
virtual void SAL_CALL | removeAttributeNS (const OUString &namespaceURI, const OUString &localName) override |
Removes an attribute by local name and namespace URI. More... | |
virtual void SAL_CALL | setAttribute (const OUString &name, const OUString &value) override |
Adds a new attribute. More... | |
virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL | setAttributeNode (const css::uno::Reference< css::xml::dom::XAttr > &newAttr) override |
Adds a new attribute node. More... | |
virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL | setAttributeNodeNS (const css::uno::Reference< css::xml::dom::XAttr > &newAttr) override |
Adds a new attribute. More... | |
virtual void SAL_CALL | setAttributeNS (const OUString &namespaceURI, const OUString &qualifiedName, const OUString &value) override |
Adds a new attribute. More... | |
virtual OUString SAL_CALL | getNodeName () override |
virtual OUString SAL_CALL | getNodeValue () override |
virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL | getAttributes () override |
virtual OUString SAL_CALL | getLocalName () 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::XNode > SAL_CALL | cloneNode (sal_Bool deep) 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 | 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 |
Protected Member Functions | |
CElement (CDocument const &rDocument, ::osl::Mutex const &rMutex, xmlNodePtr const pNode) | |
Private Member Functions | |
css::uno::Reference< css::xml::dom::XAttr > | setAttributeNode_Impl_Lock (css::uno::Reference< css::xml::dom::XAttr > const &xNewAttr, bool const bNS) |
Adds a new attribute node. More... | |
Friends | |
class | CDocument |
Definition at line 37 of file element.hxx.
|
protected |
Definition at line 50 of file element.cxx.
|
inlineoverridevirtual |
Definition at line 155 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 159 of file element.hxx.
|
overridevirtual |
Definition at line 104 of file element.cxx.
References DOM::addNamespaces(), Exception, DOM::getToken(), DOM::getTokenWithPrefix(), DOM::Context::mxAttribList, DOM::Context::mxCurrentHandler, DOM::Context::mxDocHandler, OUStringToOString(), pName, DOM::popContext(), and DOM::pushContext().
|
overridevirtual |
Retrieves an attribute value by name.
return empty string if attribute is not set
Definition at line 231 of file element.cxx.
References m_rMutex, name, and OUStringToOString().
|
overridevirtual |
Retrieves an attribute node by name.
Definition at line 253 of file element.cxx.
References get(), m_rMutex, name, OUStringToOString(), and pName.
Referenced by setAttribute().
|
overridevirtual |
Retrieves an Attr node by local name and namespace URI.
Definition at line 277 of file element.cxx.
References get(), m_rMutex, OUStringToOString(), and pName.
Referenced by setAttributeNS().
|
overridevirtual |
Retrieves an attribute value by local name and namespace URI.
return empty string if attribute is not set
Definition at line 307 of file element.cxx.
References m_rMutex, OUStringToOString(), and pName.
|
overridevirtual |
Definition at line 721 of file element.cxx.
References m_rMutex.
|
inlineoverridevirtual |
Definition at line 163 of file element.hxx.
|
overridevirtual |
Returns a NodeList of all descendant Elements with a given tag name, in the order in which they are encountered in a preorder traversal of this Element tree.
Definition at line 338 of file element.cxx.
References m_rMutex.
|
overridevirtual |
Returns a NodeList of all the descendant Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of this Element tree.
Definition at line 353 of file element.cxx.
References m_rMutex.
|
inlineoverridevirtual |
Definition at line 167 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 171 of file element.hxx.
|
overridevirtual |
Definition at line 735 of file element.cxx.
References aName, m_rMutex, and pName.
Referenced by getNodeName(), and saxify().
|
inlineoverridevirtual |
Definition at line 175 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 179 of file element.hxx.
|
overridevirtual |
Definition at line 730 of file element.cxx.
References getLocalName().
|
inlineoverridevirtual |
Definition at line 183 of file element.hxx.
|
overridevirtual |
Definition at line 748 of file element.cxx.
|
inlineoverridevirtual |
Definition at line 187 of file element.hxx.
Referenced by setAttribute(), setAttributeNode_Impl_Lock(), and setAttributeNS().
|
inlineoverridevirtual |
Definition at line 191 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 195 of file element.hxx.
Referenced by saxify().
|
inlineoverridevirtual |
Definition at line 199 of file element.hxx.
|
overridevirtual |
|
overridevirtual |
Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.
Definition at line 383 of file element.cxx.
References m_rMutex, name, OUStringToOString(), and pName.
|
overridevirtual |
Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise.
Definition at line 396 of file element.cxx.
References m_rMutex, OUStringToOString(), and pName.
|
inlineoverridevirtual |
Definition at line 203 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 207 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 211 of file element.hxx.
|
overridevirtual |
Definition at line 205 of file element.cxx.
|
inlineoverridevirtual |
Definition at line 216 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 220 of file element.hxx.
|
overridevirtual |
Removes an attribute by name.
Definition at line 411 of file element.cxx.
References m_rMutex, name, OUStringToOString(), and pName.
|
overridevirtual |
Removes the specified attribute node.
Definition at line 464 of file element.cxx.
References m_rMutex.
|
overridevirtual |
Removes an attribute by local name and namespace URI.
Definition at line 434 of file element.cxx.
References m_rMutex, OUStringToOString(), and pName.
|
inlineoverridevirtual |
Definition at line 224 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 228 of file element.hxx.
|
overridevirtual |
Definition at line 56 of file element.cxx.
References getLocalName(), getPrefix(), name, and prefix.
|
overridevirtual |
Adds a new attribute.
Definition at line 599 of file element.cxx.
References getAttributeNode(), getOwnerDocument(), m_rMutex, name, OUStringToOString(), pName, and value.
|
overridevirtual |
Adds a new attribute node.
Definition at line 581 of file element.cxx.
References setAttributeNode_Impl_Lock().
|
private |
Adds a new attribute node.
Definition at line 516 of file element.cxx.
References get(), DOM::CAttr::GetNamespace(), getOwnerDocument(), and m_rMutex.
Referenced by setAttributeNode(), and setAttributeNodeNS().
|
overridevirtual |
Adds a new attribute.
Definition at line 590 of file element.cxx.
References setAttributeNode_Impl_Lock().
|
overridevirtual |
Adds a new attribute.
Definition at line 643 of file element.cxx.
References getAttributeNodeNS(), getOwnerDocument(), idx, m_rMutex, OUStringToOString(), and value.
|
inlineoverridevirtual |
Definition at line 233 of file element.hxx.
|
inlineoverridevirtual |
Definition at line 237 of file element.hxx.
References prefix.
|
friend |
Definition at line 41 of file element.hxx.