25#include <libxml/tree.h>
29#include <com/sun/star/uno/Reference.h>
30#include <com/sun/star/xml/dom/XNode.hpp>
31#include <com/sun/star/xml/dom/XAttr.hpp>
39 typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XAttr >
CAttr_Base;
50 xmlAttrPtr
const pAttr);
57 css::xml::dom::NodeType
const*)
override;
62 virtual OUString SAL_CALL
getName()
override;
68 virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL
getOwnerElement()
override;
79 virtual OUString SAL_CALL
getValue()
override;
85 virtual void SAL_CALL
setValue(
const OUString& value)
override;
94 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
appendChild(
const css::uno::Reference< css::xml::dom::XNode >& newChild)
override
96 return CNode::appendChild(newChild);
98 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
cloneNode(
sal_Bool deep)
override
100 return CNode::cloneNode(deep);
102 virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL
getAttributes()
override
104 return CNode::getAttributes();
106 virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL
getChildNodes()
override
108 return CNode::getChildNodes();
110 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
getFirstChild()
override
112 return CNode::getFirstChild();
114 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
getLastChild()
override
116 return CNode::getLastChild();
119 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
getNextSibling()
override
121 return CNode::getNextSibling();
125 return CNode::getNodeType();
127 virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL
getOwnerDocument()
override
129 return CNode::getOwnerDocument();
131 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
getParentNode()
override
133 return CNode::getParentNode();
135 virtual OUString SAL_CALL
getPrefix()
override;
138 return CNode::getPreviousSibling();
142 return CNode::hasAttributes();
146 return CNode::hasChildNodes();
148 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
insertBefore(
149 const css::uno::Reference< css::xml::dom::XNode >& newChild,
const css::uno::Reference< css::xml::dom::XNode >& refChild)
override
151 return CNode::insertBefore(newChild, refChild);
155 return CNode::isSupported(feature, ver);
161 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
removeChild(
const css::uno::Reference< css::xml::dom::XNode >& oldChild)
override
163 return CNode::removeChild(oldChild);
165 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
replaceChild(
166 const css::uno::Reference< css::xml::dom::XNode >& newChild,
const css::uno::Reference< css::xml::dom::XNode >& oldChild)
override
168 return CNode::replaceChild(newChild, oldChild);
174 virtual void SAL_CALL
setPrefix(
const OUString& prefix)
override;
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
CAttr(CDocument const &rDocument, ::osl::Mutex const &rMutex, xmlAttrPtr const pAttr)
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
virtual OUString SAL_CALL getValue() override
On retrieval, the value of the attribute is returned as a string.
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
virtual bool IsChildTypeAllowed(css::xml::dom::NodeType const nodeType, css::xml::dom::NodeType const *) override
virtual OUString SAL_CALL getPrefix() override
virtual OUString SAL_CALL getName() override
Returns the name of this attribute.
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 hasAttributes() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode > &newChild) override
virtual OUString SAL_CALL getNodeName() override
virtual OUString SAL_CALL getNodeValue() override
virtual void SAL_CALL setPrefix(const OUString &prefix) override
virtual OUString SAL_CALL getLocalName() 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
::std::optional< stringpair_t > m_oNamespace
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
xmlNsPtr GetNamespace(xmlNodePtr const pNode)
return the libxml namespace corresponding to m_pNamespace on pNode
virtual void SAL_CALL normalize() override
virtual void SAL_CALL setValue(const OUString &value) override
Sets the value of the attribute from a string.
virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getOwnerElement() override
The Element node this attribute is attached to or null if this attribute is not in use.
virtual sal_Bool SAL_CALL isSupported(const OUString &feature, const OUString &ver) override
virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
virtual OUString SAL_CALL getNamespaceURI() override
virtual sal_Bool SAL_CALL hasChildNodes() 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::XNodeList > SAL_CALL getChildNodes() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
virtual void SAL_CALL setNodeValue(const OUString &nodeValue) override
virtual sal_Bool SAL_CALL getSpecified() override
If this attribute was explicitly given a value in the original document, this is true; otherwise,...
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XAttr > CAttr_Base
::std::pair< OString, OString > stringpair_t