diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-21 12:18:36 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-22 12:50:46 +0200 |
commit | abcbe967f2d46cc6d222dda06f6b1e734b2c9e08 (patch) | |
tree | 2c4f6dc419b147c97d0f8f6b4803532ac84f9253 /unoxml/source/dom/attr.hxx | |
parent | bc58eac34175253d6520be17ca962c77b3a1aef6 (diff) |
unoxml: huge namespacing cleanup
Change-Id: I2170e8fd9ef5ca0556545cb3f656a0e1ba49f43b
Diffstat (limited to 'unoxml/source/dom/attr.hxx')
-rw-r--r-- | unoxml/source/dom/attr.hxx | 101 |
1 files changed, 49 insertions, 52 deletions
diff --git a/unoxml/source/dom/attr.hxx b/unoxml/source/dom/attr.hxx index b79716d53ac6..eb85df90947d 100644 --- a/unoxml/source/dom/attr.hxx +++ b/unoxml/source/dom/attr.hxx @@ -32,14 +32,11 @@ #include <node.hxx> -using namespace com::sun::star::uno; -using namespace com::sun::star::xml::dom; - namespace DOM { typedef ::std::pair< OString, OString > stringpair_t; - typedef ::cppu::ImplInheritanceHelper1< CNode, XAttr > CAttr_Base; + typedef ::cppu::ImplInheritanceHelper1< CNode, css::xml::dom::XAttr > CAttr_Base; class CAttr : public CAttr_Base @@ -59,149 +56,149 @@ namespace DOM /// return the libxml namespace corresponding to m_pNamespace on pNode xmlNsPtr GetNamespace(xmlNodePtr const pNode); - virtual bool IsChildTypeAllowed(NodeType const nodeType) SAL_OVERRIDE; + virtual bool IsChildTypeAllowed(css::xml::dom::NodeType const nodeType) SAL_OVERRIDE; /** Returns the name of this attribute. */ - virtual OUString SAL_CALL getName() throw (RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; /** The Element node this attribute is attached to or null if this attribute is not in use. */ - virtual Reference< XElement > SAL_CALL getOwnerElement() throw (RuntimeException, std::exception) SAL_OVERRIDE; + virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getOwnerElement() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; /** If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false. */ - virtual sal_Bool SAL_CALL getSpecified()throw (RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL getSpecified()throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; /** On retrieval, the value of the attribute is returned as a string. */ - virtual OUString SAL_CALL getValue() throw (RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getValue() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; /** Sets the value of the attribute from a string. */ - virtual void SAL_CALL setValue(const OUString& value) throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL setValue(const OUString& value) throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) SAL_OVERRIDE; // resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException, std::exception) SAL_OVERRIDE; + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException, std::exception) SAL_OVERRIDE; + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual OUString SAL_CALL getLocalName() - throw (RuntimeException, std::exception) SAL_OVERRIDE; + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - // --- delegation for XNde base. - virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE + // --- delegation for XNode base. + virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) + throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) SAL_OVERRIDE { return CNode::appendChild(newChild); } - virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException, std::exception) SAL_OVERRIDE + virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::cloneNode(deep); } - virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException, std::exception) SAL_OVERRIDE + virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getAttributes(); } - virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException, std::exception) SAL_OVERRIDE + virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getChildNodes(); } - virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException, std::exception) SAL_OVERRIDE + virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getFirstChild(); } - virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException, std::exception) SAL_OVERRIDE + virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getLastChild(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException, std::exception) SAL_OVERRIDE; - virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException, std::exception) SAL_OVERRIDE + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getNextSibling(); } - virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException, std::exception) SAL_OVERRIDE + virtual css::xml::dom::NodeType SAL_CALL getNodeType() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getNodeType(); } - virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException, std::exception) SAL_OVERRIDE + virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getOwnerDocument(); } - virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException, std::exception) SAL_OVERRIDE + virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException, std::exception) SAL_OVERRIDE; - virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException, std::exception) SAL_OVERRIDE + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException, std::exception) SAL_OVERRIDE + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException, std::exception) SAL_OVERRIDE + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::hasChildNodes(); } - virtual Reference< XNode > SAL_CALL insertBefore( - const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException, std::exception) SAL_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) + throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) SAL_OVERRIDE { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException, std::exception) SAL_OVERRIDE + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException, std::exception) SAL_OVERRIDE + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { CNode::normalize(); } - virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE + virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) + throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) SAL_OVERRIDE { return CNode::removeChild(oldChild); } - virtual Reference< XNode > SAL_CALL replaceChild( - const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException, std::exception) SAL_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) + throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) SAL_OVERRIDE { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE + throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) SAL_OVERRIDE { return setValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE; + throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) SAL_OVERRIDE; }; } |