summaryrefslogtreecommitdiff
path: root/unoxml/source/dom
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /unoxml/source/dom
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoxml/source/dom')
-rw-r--r--unoxml/source/dom/attr.cxx12
-rw-r--r--unoxml/source/dom/attr.hxx85
-rw-r--r--unoxml/source/dom/attributesmap.cxx11
-rw-r--r--unoxml/source/dom/attributesmap.hxx23
-rw-r--r--unoxml/source/dom/cdatasection.cxx4
-rw-r--r--unoxml/source/dom/cdatasection.hxx100
-rw-r--r--unoxml/source/dom/characterdata.cxx10
-rw-r--r--unoxml/source/dom/characterdata.hxx97
-rw-r--r--unoxml/source/dom/childlist.cxx3
-rw-r--r--unoxml/source/dom/childlist.hxx5
-rw-r--r--unoxml/source/dom/comment.cxx4
-rw-r--r--unoxml/source/dom/comment.hxx97
-rw-r--r--unoxml/source/dom/document.cxx33
-rw-r--r--unoxml/source/dom/document.hxx146
-rw-r--r--unoxml/source/dom/documentbuilder.cxx15
-rw-r--r--unoxml/source/dom/documentbuilder.hxx36
-rw-r--r--unoxml/source/dom/documentfragment.cxx4
-rw-r--r--unoxml/source/dom/documentfragment.hxx75
-rw-r--r--unoxml/source/dom/documenttype.cxx16
-rw-r--r--unoxml/source/dom/documenttype.hxx87
-rw-r--r--unoxml/source/dom/domimplementation.cxx3
-rw-r--r--unoxml/source/dom/domimplementation.hxx9
-rw-r--r--unoxml/source/dom/element.cxx24
-rw-r--r--unoxml/source/dom/element.hxx123
-rw-r--r--unoxml/source/dom/elementlist.cxx7
-rw-r--r--unoxml/source/dom/elementlist.hxx16
-rw-r--r--unoxml/source/dom/entitiesmap.cxx11
-rw-r--r--unoxml/source/dom/entitiesmap.hxx20
-rw-r--r--unoxml/source/dom/entity.cxx10
-rw-r--r--unoxml/source/dom/entity.hxx81
-rw-r--r--unoxml/source/dom/entityreference.cxx4
-rw-r--r--unoxml/source/dom/entityreference.hxx75
-rw-r--r--unoxml/source/dom/node.cxx29
-rw-r--r--unoxml/source/dom/notation.cxx8
-rw-r--r--unoxml/source/dom/notation.hxx79
-rw-r--r--unoxml/source/dom/notationsmap.cxx10
-rw-r--r--unoxml/source/dom/notationsmap.hxx20
-rw-r--r--unoxml/source/dom/processinginstruction.cxx9
-rw-r--r--unoxml/source/dom/processinginstruction.hxx81
-rw-r--r--unoxml/source/dom/saxbuilder.cxx19
-rw-r--r--unoxml/source/dom/saxbuilder.hxx51
-rw-r--r--unoxml/source/dom/text.cxx3
-rw-r--r--unoxml/source/dom/text.hxx99
43 files changed, 538 insertions, 1116 deletions
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
index ed2a87ccbdd6..9f0f7c8c5b67 100644
--- a/unoxml/source/dom/attr.cxx
+++ b/unoxml/source/dom/attr.cxx
@@ -81,17 +81,14 @@ namespace DOM
}
OUString SAL_CALL CAttr::getNodeName()
- throw (RuntimeException, std::exception)
{
return getName();
}
OUString SAL_CALL CAttr::getNodeValue()
- throw (RuntimeException, std::exception)
{
return getValue();
}
OUString SAL_CALL CAttr::getLocalName()
- throw (RuntimeException, std::exception)
{
return getName();
}
@@ -100,7 +97,7 @@ namespace DOM
/**
Returns the name of this attribute.
*/
- OUString SAL_CALL CAttr::getName() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CAttr::getName()
{
::osl::MutexGuard const g(m_rMutex);
@@ -117,7 +114,6 @@ namespace DOM
attribute is not in use.
*/
Reference< XElement > SAL_CALL CAttr::getOwnerElement()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -139,7 +135,6 @@ namespace DOM
document, this is true; otherwise, it is false.
*/
sal_Bool SAL_CALL CAttr::getSpecified()
- throw (RuntimeException, std::exception)
{
// FIXME if this DOM implementation supported DTDs it would need
// to check that this attribute is not default or something
@@ -150,7 +145,6 @@ namespace DOM
On retrieval, the value of the attribute is returned as a string.
*/
OUString SAL_CALL CAttr::getValue()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -171,7 +165,6 @@ namespace DOM
Sets the value of the attribute from a string.
*/
void SAL_CALL CAttr::setValue(const OUString& value)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -218,7 +211,6 @@ namespace DOM
}
void SAL_CALL CAttr::setPrefix(const OUString& prefix)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -234,7 +226,6 @@ namespace DOM
}
OUString SAL_CALL CAttr::getPrefix()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -251,7 +242,6 @@ namespace DOM
}
OUString SAL_CALL CAttr::getNamespaceURI()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
diff --git a/unoxml/source/dom/attr.hxx b/unoxml/source/dom/attr.hxx
index 2dfbe6d64b4e..cc0f2d94071b 100644
--- a/unoxml/source/dom/attr.hxx
+++ b/unoxml/source/dom/attr.hxx
@@ -61,144 +61,119 @@ namespace DOM
/**
Returns the name of this attribute.
*/
- virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getName() override;
/**
The Element node this attribute is attached to or null if this
attribute is not in use.
*/
- virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getOwnerElement() throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getOwnerElement() 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 (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL getSpecified() override;
/**
On retrieval, the value of the attribute is returned as a string.
*/
- virtual OUString SAL_CALL getValue() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getValue() override;
/**
Sets the value of the attribute from a string.
*/
- virtual void SAL_CALL setValue(const OUString& value) throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL setValue(const OUString& value) override;
// resolve uno inheritance problems...
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() override;
+ virtual OUString SAL_CALL getLocalName() 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override;
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override;
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return setValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override;
};
}
diff --git a/unoxml/source/dom/attributesmap.cxx b/unoxml/source/dom/attributesmap.cxx
index 921c085fbca3..88b386196c80 100644
--- a/unoxml/source/dom/attributesmap.cxx
+++ b/unoxml/source/dom/attributesmap.cxx
@@ -39,7 +39,7 @@ namespace DOM
/**
The number of nodes in this map.
*/
- sal_Int32 SAL_CALL CAttributesMap::getLength() throw (RuntimeException, std::exception)
+ sal_Int32 SAL_CALL CAttributesMap::getLength()
{
::osl::MutexGuard const g(m_rMutex);
@@ -61,7 +61,7 @@ namespace DOM
Retrieves a node specified by local name
*/
Reference< XNode > SAL_CALL
- CAttributesMap::getNamedItem(OUString const& name) throw (RuntimeException, std::exception)
+ CAttributesMap::getNamedItem(OUString const& name)
{
::osl::MutexGuard const g(m_rMutex);
@@ -92,7 +92,6 @@ namespace DOM
Reference< XNode > SAL_CALL
CAttributesMap::getNamedItemNS(
OUString const& namespaceURI, OUString const& localName)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -126,7 +125,7 @@ namespace DOM
Returns the indexth item in the map.
*/
Reference< XNode > SAL_CALL
- CAttributesMap::item(sal_Int32 index) throw (RuntimeException, std::exception)
+ CAttributesMap::item(sal_Int32 index)
{
::osl::MutexGuard const g(m_rMutex);
@@ -156,7 +155,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CAttributesMap::removeNamedItem(OUString const& name)
- throw (DOMException, RuntimeException, std::exception)
{
// no MutexGuard needed: m_pElement is const
Reference< XAttr > const xAttr(m_pElement->getAttributeNode(name));
@@ -177,7 +175,6 @@ namespace DOM
Reference< XNode > SAL_CALL
CAttributesMap::removeNamedItemNS(
OUString const& namespaceURI, OUString const& localName)
- throw (DOMException, RuntimeException, std::exception)
{
// no MutexGuard needed: m_pElement is const
Reference< XAttr > const xAttr(
@@ -198,7 +195,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CAttributesMap::setNamedItem(Reference< XNode > const& xNode)
- throw (DOMException, RuntimeException, std::exception)
{
Reference< XAttr > const xAttr(xNode, UNO_QUERY);
if (!xNode.is()) {
@@ -218,7 +214,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CAttributesMap::setNamedItemNS(Reference< XNode > const& xNode)
- throw (DOMException, RuntimeException, std::exception)
{
Reference< XAttr > const xAttr(xNode, UNO_QUERY);
if (!xNode.is()) {
diff --git a/unoxml/source/dom/attributesmap.hxx b/unoxml/source/dom/attributesmap.hxx
index 38a11fb069cc..84255fd048b4 100644
--- a/unoxml/source/dom/attributesmap.hxx
+++ b/unoxml/source/dom/attributesmap.hxx
@@ -47,54 +47,47 @@ namespace DOM
/**
The number of nodes in this map.
*/
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getLength() override;
/**
Retrieves a node specified by local name
*/
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNamedItem(OUString const& name)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNamedItem(OUString const& name) override;
/**
Retrieves a node specified by local name and namespace URI.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNamedItemNS(
- OUString const& namespaceURI, OUString const& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ OUString const& namespaceURI, OUString const& localName) override;
/**
Returns the indexth item in the map.
*/
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item(sal_Int32 index)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item(sal_Int32 index) override;
/**
Removes a node specified by name.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- removeNamedItem(OUString const& name)
- throw (css::xml::dom::DOMException, css::uno::RuntimeException, std::exception) override;
+ removeNamedItem(OUString const& name) override;
/**
// Removes a node specified by local name and namespace URI.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeNamedItemNS(
- OUString const& namespaceURI, OUString const& localName)
- throw (css::xml::dom::DOMException, css::uno::RuntimeException, std::exception) override;
+ OUString const& namespaceURI, OUString const& localName) override;
/**
// Adds a node using its nodeName attribute.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- setNamedItem(css::uno::Reference< css::xml::dom::XNode > const& arg)
- throw (css::xml::dom::DOMException, css::uno::RuntimeException, std::exception) override;
+ setNamedItem(css::uno::Reference< css::xml::dom::XNode > const& arg) override;
/**
Adds a node using its namespaceURI and localName.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- setNamedItemNS(css::uno::Reference< css::xml::dom::XNode > const& arg)
- throw (css::xml::dom::DOMException, css::uno::RuntimeException, std::exception) override;
+ setNamedItemNS(css::uno::Reference< css::xml::dom::XNode > const& arg) override;
};
}
diff --git a/unoxml/source/dom/cdatasection.cxx b/unoxml/source/dom/cdatasection.cxx
index a1c7550513e1..bd02fbd11a66 100644
--- a/unoxml/source/dom/cdatasection.cxx
+++ b/unoxml/source/dom/cdatasection.cxx
@@ -46,12 +46,12 @@ namespace DOM
}
}
- OUString SAL_CALL CCDATASection::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CCDATASection::getNodeName()
{
return OUString( "#cdata-section" );
}
- OUString SAL_CALL CCDATASection::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CCDATASection::getNodeValue()
{
return CCharacterData::getData();
}
diff --git a/unoxml/source/dom/cdatasection.hxx b/unoxml/source/dom/cdatasection.hxx
index 8fb6fb98a95e..fdd0a87b2a54 100644
--- a/unoxml/source/dom/cdatasection.hxx
+++ b/unoxml/source/dom/cdatasection.hxx
@@ -44,174 +44,142 @@ namespace DOM
virtual void saxify(const css::uno::Reference< css::xml::sax::XDocumentHandler >& i_xHandler) override;
- virtual css::uno::Reference< css::xml::dom::XText > SAL_CALL splitText(sal_Int32 offset)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XText > SAL_CALL splitText(sal_Int32 offset) override
{
return CText::splitText(offset);
}
// --- delegations for XCharacterData
- virtual void SAL_CALL appendData(const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL appendData(const OUString& arg) override
{
CCharacterData::appendData(arg);
}
- virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) override
{
CCharacterData::deleteData(offset, count);
}
- virtual OUString SAL_CALL getData() throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getData() override
{
return CCharacterData::getData();
}
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Int32 SAL_CALL getLength() override
{
return CCharacterData::getLength();
}
- virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) override
{
CCharacterData::insertData(offset, arg);
}
- virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) override
{
CCharacterData::replaceData(offset, count, arg);
}
- virtual void SAL_CALL setData(const OUString& data)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setData(const OUString& data) override
{
CCharacterData::setData(data);
}
- virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) override
{
return CCharacterData::subStringData(offset, count);
}
// --- overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CText::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/characterdata.cxx b/unoxml/source/dom/characterdata.cxx
index fea48292663c..e5fa6c7db74b 100644
--- a/unoxml/source/dom/characterdata.cxx
+++ b/unoxml/source/dom/characterdata.cxx
@@ -61,7 +61,6 @@ namespace DOM
Append the string to the end of the character data of the node.
*/
void SAL_CALL CCharacterData::appendData(const OUString& arg)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -80,7 +79,6 @@ namespace DOM
Remove a range of 16-bit units from the node.
*/
void SAL_CALL CCharacterData::deleteData(sal_Int32 offset, sal_Int32 count)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -114,7 +112,7 @@ namespace DOM
/**
Return the character data of the node that implements this interface.
*/
- OUString SAL_CALL CCharacterData::getData() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CCharacterData::getData()
{
::osl::MutexGuard const g(m_rMutex);
@@ -134,7 +132,7 @@ namespace DOM
The number of 16-bit units that are available through data and the
substringData method below.
*/
- sal_Int32 SAL_CALL CCharacterData::getLength() throw (RuntimeException, std::exception)
+ sal_Int32 SAL_CALL CCharacterData::getLength()
{
::osl::MutexGuard const g(m_rMutex);
@@ -151,7 +149,6 @@ namespace DOM
Insert a string at the specified 16-bit unit offset.
*/
void SAL_CALL CCharacterData::insertData(sal_Int32 offset, const OUString& arg)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -186,7 +183,6 @@ namespace DOM
with the specified string.
*/
void SAL_CALL CCharacterData::replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -221,7 +217,6 @@ namespace DOM
Set the character data of the node that implements this interface.
*/
void SAL_CALL CCharacterData::setData(const OUString& data)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -240,7 +235,6 @@ namespace DOM
Extracts a range of data from the node.
*/
OUString SAL_CALL CCharacterData::subStringData(sal_Int32 offset, sal_Int32 count)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
diff --git a/unoxml/source/dom/characterdata.hxx b/unoxml/source/dom/characterdata.hxx
index 54c8e1ab16d9..8a3179d3de77 100644
--- a/unoxml/source/dom/characterdata.hxx
+++ b/unoxml/source/dom/characterdata.hxx
@@ -52,176 +52,145 @@ namespace DOM
/**
Append the string to the end of the character data of the node.
*/
- virtual void SAL_CALL appendData(const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL appendData(const OUString& arg) override;
/**
Remove a range of 16-bit units from the node.
*/
- virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) override;
/**
Return the character data of the node that implements this interface.
*/
- virtual OUString SAL_CALL getData() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getData() override;
/**
The number of 16-bit units that are available through data and the
substringData method below.
*/
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getLength() override;
/**
Insert a string at the specified 16-bit unit offset.
*/
- virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) override;
/**
Replace the characters starting at the specified 16-bit unit offset
with the specified string.
*/
- virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) override;
/**
Set the character data of the node that implements this interface.
*/
- virtual void SAL_CALL setData(const OUString& data)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL setData(const OUString& data) override;
/**
Extracts a range of data from the node.
*/
- virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNodeName() override
{
return CNode::getNodeName();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNodeValue() override
{
return getData();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return setData(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/childlist.cxx b/unoxml/source/dom/childlist.cxx
index d301d7aa9a59..3666eeb2b0f7 100644
--- a/unoxml/source/dom/childlist.cxx
+++ b/unoxml/source/dom/childlist.cxx
@@ -39,7 +39,7 @@ namespace DOM
/**
The number of nodes in the list.
*/
- sal_Int32 SAL_CALL CChildList::getLength() throw (RuntimeException, std::exception)
+ sal_Int32 SAL_CALL CChildList::getLength()
{
::osl::MutexGuard const g(m_rMutex);
@@ -63,7 +63,6 @@ namespace DOM
Returns the indexth item in the collection.
*/
Reference< XNode > SAL_CALL CChildList::item(sal_Int32 index)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
diff --git a/unoxml/source/dom/childlist.hxx b/unoxml/source/dom/childlist.hxx
index 91daba41eb7f..24f833eff749 100644
--- a/unoxml/source/dom/childlist.hxx
+++ b/unoxml/source/dom/childlist.hxx
@@ -47,12 +47,11 @@ namespace DOM
/**
The number of nodes in the list.
*/
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getLength() override;
/**
Returns the indexth item in the collection.
*/
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item(sal_Int32 index)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item(sal_Int32 index) override;
};
}
diff --git a/unoxml/source/dom/comment.cxx b/unoxml/source/dom/comment.cxx
index b6a1da8a9221..740e4813b886 100644
--- a/unoxml/source/dom/comment.cxx
+++ b/unoxml/source/dom/comment.cxx
@@ -42,12 +42,12 @@ namespace DOM
}
}
- OUString SAL_CALL CComment::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CComment::getNodeName()
{
return OUString("#comment");
}
- OUString SAL_CALL CComment::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CComment::getNodeValue()
{
return CCharacterData::getData();
}
diff --git a/unoxml/source/dom/comment.hxx b/unoxml/source/dom/comment.hxx
index 4cf3cd2637a5..3ce9362606f4 100644
--- a/unoxml/source/dom/comment.hxx
+++ b/unoxml/source/dom/comment.hxx
@@ -46,167 +46,136 @@ namespace DOM
virtual void saxify(const css::uno::Reference< css::xml::sax::XDocumentHandler >& i_xHandler) override;
// --- delegations for XCharacterData
- virtual void SAL_CALL appendData(const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL appendData(const OUString& arg) override
{
CCharacterData::appendData(arg);
}
- virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) override
{
CCharacterData::deleteData(offset, count);
}
- virtual OUString SAL_CALL getData() throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getData() override
{
return CCharacterData::getData();
}
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Int32 SAL_CALL getLength() override
{
return CCharacterData::getLength();
}
- virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) override
{
CCharacterData::insertData(offset, arg);
}
- virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) override
{
CCharacterData::replaceData(offset, count, arg);
}
- virtual void SAL_CALL setData(const OUString& data)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setData(const OUString& data) override
{
CCharacterData::setData(data);
}
- virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) override
{
return CCharacterData::subStringData(offset, count);
}
// --- overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CCharacterData::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CCharacterData::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CCharacterData::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CCharacterData::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CCharacterData::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CCharacterData::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CCharacterData::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CCharacterData::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CCharacterData::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CCharacterData::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CCharacterData::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CCharacterData::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CCharacterData::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CCharacterData::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CCharacterData::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CCharacterData::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CCharacterData::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CCharacterData::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CCharacterData::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CCharacterData::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CCharacterData::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CCharacterData::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CCharacterData::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
index 8c0b25d2ffc5..9911c33e9ab2 100644
--- a/unoxml/source/dom/document.cxx
+++ b/unoxml/source/dom/document.cxx
@@ -325,7 +325,6 @@ namespace DOM
void SAL_CALL CDocument::addListener(const Reference< XStreamListener >& aListener )
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -333,7 +332,6 @@ namespace DOM
}
void SAL_CALL CDocument::removeListener(const Reference< XStreamListener >& aListener )
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -370,7 +368,6 @@ namespace DOM
} // extern "C"
void SAL_CALL CDocument::start()
- throw (RuntimeException, std::exception)
{
listenerlist_t streamListeners;
{
@@ -411,20 +408,18 @@ namespace DOM
}
void SAL_CALL CDocument::terminate()
- throw (RuntimeException, std::exception)
{
// not supported
}
void SAL_CALL CDocument::setOutputStream( const Reference< XOutputStream >& aStream )
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
m_rOutputStream = aStream;
}
- Reference< XOutputStream > SAL_CALL CDocument::getOutputStream() throw (RuntimeException, std::exception)
+ Reference< XOutputStream > SAL_CALL CDocument::getOutputStream()
{
::osl::MutexGuard const g(m_Mutex);
@@ -433,7 +428,6 @@ namespace DOM
// Creates an Attr of the given name.
Reference< XAttr > SAL_CALL CDocument::createAttribute(const OUString& name)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -451,7 +445,6 @@ namespace DOM
// Creates an attribute of the given qualified name and namespace URI.
Reference< XAttr > SAL_CALL CDocument::createAttributeNS(
const OUString& ns, const OUString& qname)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -486,7 +479,6 @@ namespace DOM
// Creates a CDATASection node whose value is the specified string.
Reference< XCDATASection > SAL_CALL CDocument::createCDATASection(const OUString& data)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -504,7 +496,6 @@ namespace DOM
// Creates a Comment node given the specified string.
Reference< XComment > SAL_CALL CDocument::createComment(const OUString& data)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -519,7 +510,6 @@ namespace DOM
//Creates an empty DocumentFragment object.
Reference< XDocumentFragment > SAL_CALL CDocument::createDocumentFragment()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -532,7 +522,6 @@ namespace DOM
// Creates an element of the type specified.
Reference< XElement > SAL_CALL CDocument::createElement(const OUString& tagName)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -548,7 +537,6 @@ namespace DOM
// Creates an element of the given qualified name and namespace URI.
Reference< XElement > SAL_CALL CDocument::createElementNS(
const OUString& ns, const OUString& qname)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -584,7 +572,6 @@ namespace DOM
//Creates an EntityReference object.
Reference< XEntityReference > SAL_CALL CDocument::createEntityReference(const OUString& name)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -601,7 +588,6 @@ namespace DOM
// data strings.
Reference< XProcessingInstruction > SAL_CALL CDocument::createProcessingInstruction(
const OUString& target, const OUString& data)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -619,7 +605,6 @@ namespace DOM
// Creates a Text node given the specified string.
Reference< XText > SAL_CALL CDocument::createTextNode(const OUString& data)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -635,7 +620,6 @@ namespace DOM
// The Document Type Declaration (see DocumentType) associated with this
// document.
Reference< XDocumentType > SAL_CALL CDocument::getDoctype()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -649,7 +633,6 @@ namespace DOM
// This is a convenience attribute that allows direct access to the child
// node that is the root element of the document.
Reference< XElement > SAL_CALL CDocument::getDocumentElement()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -690,7 +673,6 @@ namespace DOM
// Returns the Element whose ID is given by elementId.
Reference< XElement > SAL_CALL
CDocument::getElementById(const OUString& elementId)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -709,7 +691,6 @@ namespace DOM
Reference< XNodeList > SAL_CALL
CDocument::getElementsByTagName(OUString const& rTagname)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -720,7 +701,6 @@ namespace DOM
Reference< XNodeList > SAL_CALL CDocument::getElementsByTagNameNS(
OUString const& rNamespaceURI, OUString const& rLocalName)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -731,7 +711,6 @@ namespace DOM
}
Reference< XDOMImplementation > SAL_CALL CDocument::getImplementation()
- throw (RuntimeException, std::exception)
{
// does not need mutex currently
return Reference< XDOMImplementation >(CDOMImplementation::get());
@@ -916,7 +895,6 @@ namespace DOM
Reference< XNode > SAL_CALL CDocument::importNode(
Reference< XNode > const& xImportedNode, sal_Bool deep)
- throw (RuntimeException, DOMException, std::exception)
{
if (!xImportedNode.is()) { throw RuntimeException(); }
@@ -945,20 +923,19 @@ namespace DOM
return xNode;
}
- OUString SAL_CALL CDocument::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocument::getNodeName()
{
// does not need mutex currently
return OUString("#document");
}
- OUString SAL_CALL CDocument::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocument::getNodeValue()
{
// does not need mutex currently
return OUString();
}
Reference< XNode > SAL_CALL CDocument::cloneNode(sal_Bool bDeep)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -973,7 +950,7 @@ namespace DOM
return xRet;
}
- Reference< XEvent > SAL_CALL CDocument::createEvent(const OUString& aType) throw (RuntimeException, std::exception)
+ Reference< XEvent > SAL_CALL CDocument::createEvent(const OUString& aType)
{
// does not need mutex currently
events::CEvent *pEvent = nullptr;
@@ -1002,7 +979,6 @@ namespace DOM
void SAL_CALL CDocument::serialize(
const Reference< XDocumentHandler >& i_xHandler,
const Sequence< beans::StringPair >& i_rNamespaces)
- throw (RuntimeException, SAXException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -1031,7 +1007,6 @@ namespace DOM
const Reference< XFastTokenHandler >& i_xTokenHandler,
const Sequence< beans::StringPair >& i_rNamespaces,
const Sequence< beans::Pair< OUString, sal_Int32 > >& i_rRegisterNamespaces )
- throw (SAXException, RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
diff --git a/unoxml/source/dom/document.hxx b/unoxml/source/dom/document.hxx
index fce0514b62a9..8d1fcd8fa587 100644
--- a/unoxml/source/dom/document.hxx
+++ b/unoxml/source/dom/document.hxx
@@ -118,246 +118,204 @@ namespace DOM
/**
Creates an Attr of the given name.
*/
- virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL createAttribute(const OUString& name)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL createAttribute(const OUString& name) override;
/**
Creates an attribute of the given qualified name and namespace URI.
*/
- virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL createAttributeNS(const OUString& namespaceURI, const OUString& qualifiedName)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL createAttributeNS(const OUString& namespaceURI, const OUString& qualifiedName) override;
/**
Creates a CDATASection node whose value is the specified string.
*/
- virtual css::uno::Reference< css::xml::dom::XCDATASection > SAL_CALL createCDATASection(const OUString& data)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XCDATASection > SAL_CALL createCDATASection(const OUString& data) override;
/**
Creates a Comment node given the specified string.
*/
- virtual css::uno::Reference< css::xml::dom::XComment > SAL_CALL createComment(const OUString& data)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XComment > SAL_CALL createComment(const OUString& data) override;
/**
Creates an empty DocumentFragment object.
*/
- virtual css::uno::Reference< css::xml::dom::XDocumentFragment > SAL_CALL createDocumentFragment()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XDocumentFragment > SAL_CALL createDocumentFragment() override;
/**
Creates an element of the type specified.
*/
- virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL createElement(const OUString& tagName)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL createElement(const OUString& tagName) override;
/**
Creates an element of the given qualified name and namespace URI.
*/
- virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL createElementNS(const OUString& namespaceURI, const OUString& qualifiedName)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL createElementNS(const OUString& namespaceURI, const OUString& qualifiedName) override;
/**
Creates an EntityReference object.
*/
- virtual css::uno::Reference< css::xml::dom::XEntityReference > SAL_CALL createEntityReference(const OUString& name)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XEntityReference > SAL_CALL createEntityReference(const OUString& name) override;
/**
Creates a ProcessingInstruction node given the specified name and
data strings.
*/
virtual css::uno::Reference< css::xml::dom::XProcessingInstruction > SAL_CALL createProcessingInstruction(
- const OUString& target, const OUString& data)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ const OUString& target, const OUString& data) override;
/**
Creates a Text node given the specified string.
*/
- virtual css::uno::Reference< css::xml::dom::XText > SAL_CALL createTextNode(const OUString& data)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XText > SAL_CALL createTextNode(const OUString& data) override;
/**
The Document Type Declaration (see DocumentType) associated with this
document.
*/
- virtual css::uno::Reference< css::xml::dom::XDocumentType > SAL_CALL getDoctype()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XDocumentType > SAL_CALL getDoctype() override;
/**
This is a convenience attribute that allows direct access to the child
node that is the root element of the document.
*/
- virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getDocumentElement()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getDocumentElement() override;
/**
Returns the Element whose ID is given by elementId.
*/
- virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getElementById(const OUString& elementId)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XElement > SAL_CALL getElementById(const OUString& elementId) 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.
*/
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getElementsByTagName(const OUString& tagname)
- throw (css::uno::RuntimeException, std::exception) override;
+ 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 local name and
namespace URI in the order in which they are encountered in a preorder
traversal of the Document tree.
*/
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getElementsByTagNameNS(const OUString& namespaceURI, const OUString& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getElementsByTagNameNS(const OUString& namespaceURI, const OUString& localName) override;
/**
The DOMImplementation object that handles this document.
*/
- virtual css::uno::Reference< css::xml::dom::XDOMImplementation > SAL_CALL getImplementation()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XDOMImplementation > SAL_CALL getImplementation() override;
/**
Imports a node from another document to this document.
*/
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL importNode(const css::uno::Reference< css::xml::dom::XNode >& importedNode, sal_Bool deep)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL importNode(const css::uno::Reference< css::xml::dom::XNode >& importedNode, sal_Bool deep) override;
// XDocumentEvent
- virtual css::uno::Reference< css::xml::dom::events::XEvent > SAL_CALL createEvent(const OUString& eventType) throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::events::XEvent > SAL_CALL createEvent(const OUString& eventType) override;
// XActiveDataControl,
// see http://api.libreoffice.org/docs/common/ref/com/sun/star/io/XActiveDataControl.html
- virtual void SAL_CALL addListener(const css::uno::Reference< css::io::XStreamListener >& aListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeListener(const css::uno::Reference< css::io::XStreamListener >& aListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL start() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL terminate() throw (css::uno::RuntimeException, std::exception) 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;
// XActiveDataSource
// see http://api.libreoffice.org/docs/common/ref/com/sun/star/io/XActiveDataSource.html
- virtual void SAL_CALL setOutputStream( const css::uno::Reference< css::io::XOutputStream >& aStream ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL getOutputStream() throw (css::uno::RuntimeException, std::exception) 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;
// ---- resolve uno inheritance problems...
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) 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;
// --- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CNode::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
@@ -365,15 +323,13 @@ namespace DOM
// css::xml::sax::XSAXSerializable
virtual void SAL_CALL serialize(
const css::uno::Reference< css::xml::sax::XDocumentHandler >& i_xHandler,
- const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces) override;
// css::xml::sax::XFastSAXSerializable
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 )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ const css::uno::Sequence< css::beans::Pair< OUString, sal_Int32 > >& namespaces ) override;
};
}
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index b460004687e0..0a3e80dc9767 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -63,8 +63,7 @@ namespace DOM
class CDefaultEntityResolver : public cppu::WeakImplHelper< XEntityResolver >
{
public:
- virtual InputSource SAL_CALL resolveEntity( const OUString& sPublicId, const OUString& sSystemId )
- throw (css::uno::RuntimeException, std::exception) override
+ virtual InputSource SAL_CALL resolveEntity( const OUString& sPublicId, const OUString& sSystemId ) override
{
InputSource is;
is.sPublicId = sPublicId;
@@ -122,44 +121,37 @@ namespace DOM
}
Sequence< OUString > SAL_CALL CDocumentBuilder::getSupportedServiceNames()
- throw (RuntimeException, std::exception)
{
return CDocumentBuilder::_getSupportedServiceNames();
}
OUString SAL_CALL CDocumentBuilder::getImplementationName()
- throw (RuntimeException, std::exception)
{
return CDocumentBuilder::_getImplementationName();
}
sal_Bool SAL_CALL CDocumentBuilder::supportsService(const OUString& aServiceName)
- throw (RuntimeException, std::exception)
{
return cppu::supportsService(this, aServiceName);
}
Reference< XDOMImplementation > SAL_CALL CDocumentBuilder::getDOMImplementation()
- throw (RuntimeException, std::exception)
{
return Reference< XDOMImplementation >();
}
sal_Bool SAL_CALL CDocumentBuilder::isNamespaceAware()
- throw (RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL CDocumentBuilder::isValidating()
- throw (RuntimeException, std::exception)
{
return false;
}
Reference< XDocument > SAL_CALL CDocumentBuilder::newDocument()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -308,7 +300,6 @@ namespace DOM
}
Reference< XDocument > SAL_CALL CDocumentBuilder::parse(const Reference< XInputStream >& is)
- throw (RuntimeException, SAXParseException, IOException, std::exception)
{
if (!is.is()) {
throw RuntimeException();
@@ -345,7 +336,6 @@ namespace DOM
}
Reference< XDocument > SAL_CALL CDocumentBuilder::parseURI(const OUString& sUri)
- throw (RuntimeException, SAXParseException, IOException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -369,7 +359,6 @@ namespace DOM
void SAL_CALL
CDocumentBuilder::setEntityResolver(Reference< XEntityResolver > const& xER)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
@@ -377,7 +366,6 @@ namespace DOM
}
Reference< XEntityResolver > SAL_CALL CDocumentBuilder::getEntityResolver()
- throw (RuntimeException)
{
::osl::MutexGuard const g(m_Mutex);
@@ -386,7 +374,6 @@ namespace DOM
void SAL_CALL
CDocumentBuilder::setErrorHandler(Reference< XErrorHandler > const& xEH)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_Mutex);
diff --git a/unoxml/source/dom/documentbuilder.hxx b/unoxml/source/dom/documentbuilder.hxx
index 482c5ea718dc..cdda893010d5 100644
--- a/unoxml/source/dom/documentbuilder.hxx
+++ b/unoxml/source/dom/documentbuilder.hxx
@@ -69,72 +69,60 @@ namespace DOM
rSMgr);
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames ()
- throw (css::uno::RuntimeException, std::exception) override;
+ 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;
/**
Obtain an instance of a DOMImplementation object.
*/
- virtual css::uno::Reference< css::xml::dom::XDOMImplementation > SAL_CALL getDOMImplementation()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XDOMImplementation > SAL_CALL getDOMImplementation() override;
/**
Indicates whether or not this parser is configured to understand
namespaces.
*/
- virtual sal_Bool SAL_CALL isNamespaceAware()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isNamespaceAware() override;
/**
Indicates whether or not this parser is configured to validate XML
documents.
*/
- virtual sal_Bool SAL_CALL isValidating()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isValidating() override;
/**
Obtain a new instance of a DOM Document object to build a DOM tree
with.
*/
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL newDocument()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL newDocument() override;
/**
Parse the content of the given InputStream as an XML document and
return a new DOM Document object.
*/
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL parse(const css::uno::Reference< css::io::XInputStream >& is)
- throw (css::uno::RuntimeException, css::xml::sax::SAXParseException, css::io::IOException, std::exception) override;
+ 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 URI as an XML document and return
a new DOM Document object.
*/
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL parseURI(const OUString& uri)
- throw (css::uno::RuntimeException, css::xml::sax::SAXParseException, css::io::IOException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL parseURI(const OUString& uri) override;
/**
Specify the EntityResolver to be used to resolve entities present
in the XML document to be parsed.
*/
- virtual void SAL_CALL setEntityResolver(const css::uno::Reference< css::xml::sax::XEntityResolver >& er)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setEntityResolver(const css::uno::Reference< css::xml::sax::XEntityResolver >& er) override;
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::xml::sax::XEntityResolver > SAL_CALL getEntityResolver()
- throw (css::uno::RuntimeException);
+ css::uno::Reference< css::xml::sax::XEntityResolver > SAL_CALL getEntityResolver();
/**
Specify the ErrorHandler to be used to report errors present in
the XML document to be parsed.
*/
- virtual void SAL_CALL setErrorHandler(const css::uno::Reference< css::xml::sax::XErrorHandler >& eh)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setErrorHandler(const css::uno::Reference< css::xml::sax::XErrorHandler >& eh) override;
};
}
diff --git a/unoxml/source/dom/documentfragment.cxx b/unoxml/source/dom/documentfragment.cxx
index 9b67514809ee..82a25aba5222 100644
--- a/unoxml/source/dom/documentfragment.cxx
+++ b/unoxml/source/dom/documentfragment.cxx
@@ -47,11 +47,11 @@ namespace DOM
}
}
- OUString SAL_CALL CDocumentFragment::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocumentFragment::getNodeName()
{
return OUString("#document-fragment");
}
- OUString SAL_CALL CDocumentFragment::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocumentFragment::getNodeValue()
{
return OUString();
}
diff --git a/unoxml/source/dom/documentfragment.hxx b/unoxml/source/dom/documentfragment.hxx
index 62068af0c478..8ed4481484bc 100644
--- a/unoxml/source/dom/documentfragment.hxx
+++ b/unoxml/source/dom/documentfragment.hxx
@@ -47,125 +47,100 @@ namespace DOM
// ---- resolve uno inheritance problems...
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CNode::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/documenttype.cxx b/unoxml/source/dom/documenttype.cxx
index ddc32016dbe6..047f5742cd4c 100644
--- a/unoxml/source/dom/documenttype.cxx
+++ b/unoxml/source/dom/documenttype.cxx
@@ -45,7 +45,7 @@ namespace DOM
A NamedNodeMap containing the general entities, both external and
internal, declared in the DTD.
*/
- css::uno::Reference< XNamedNodeMap > SAL_CALL CDocumentType::getEntities() throw (RuntimeException, std::exception)
+ css::uno::Reference< XNamedNodeMap > SAL_CALL CDocumentType::getEntities()
{
::osl::MutexGuard const g(m_rMutex);
@@ -60,7 +60,7 @@ namespace DOM
/**
The internal subset as a string, or null if there is none.
*/
- OUString SAL_CALL CDocumentType::getInternalSubset() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocumentType::getInternalSubset()
{
OSL_ENSURE(false,
"CDocumentType::getInternalSubset: not implemented (#i113683#)");
@@ -71,7 +71,7 @@ namespace DOM
The name of DTD; i.e., the name immediately following the DOCTYPE
keyword.
*/
- OUString SAL_CALL CDocumentType::getName() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocumentType::getName()
{
::osl::MutexGuard const g(m_rMutex);
@@ -86,7 +86,7 @@ namespace DOM
/**
A NamedNodeMap containing the notations declared in the DTD.
*/
- css::uno::Reference< XNamedNodeMap > SAL_CALL CDocumentType::getNotations() throw (RuntimeException, std::exception)
+ css::uno::Reference< XNamedNodeMap > SAL_CALL CDocumentType::getNotations()
{
::osl::MutexGuard const g(m_rMutex);
@@ -101,7 +101,7 @@ namespace DOM
/**
The public identifier of the external subset.
*/
- OUString SAL_CALL CDocumentType::getPublicId() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocumentType::getPublicId()
{
::osl::MutexGuard const g(m_rMutex);
@@ -116,7 +116,7 @@ namespace DOM
/**
The system identifier of the external subset.
*/
- OUString SAL_CALL CDocumentType::getSystemId() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocumentType::getSystemId()
{
::osl::MutexGuard const g(m_rMutex);
@@ -128,12 +128,12 @@ namespace DOM
return aId;
}
- OUString SAL_CALL CDocumentType::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocumentType::getNodeName()
{
return getName();
}
- OUString SAL_CALL CDocumentType::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CDocumentType::getNodeValue()
{
return OUString();
}
diff --git a/unoxml/source/dom/documenttype.hxx b/unoxml/source/dom/documenttype.hxx
index 711f1a4e5a59..1987fb8e110d 100644
--- a/unoxml/source/dom/documenttype.hxx
+++ b/unoxml/source/dom/documenttype.hxx
@@ -55,155 +55,130 @@ namespace DOM
A NamedNodeMap containing the general entities, both external and
internal, declared in the DTD.
*/
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getEntities() throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getEntities() override;
/**
The internal subset as a string, or null if there is none.
*/
- virtual OUString SAL_CALL getInternalSubset() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getInternalSubset() override;
/**
The name of DTD; i.e., the name immediately following the DOCTYPE
keyword.
*/
- virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getName() override;
/**
A NamedNodeMap containing the notations declared in the DTD.
*/
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getNotations() throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getNotations() override;
/**
The public identifier of the external subset.
*/
- virtual OUString SAL_CALL getPublicId() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getPublicId() override;
/**
The system identifier of the external subset.
*/
- virtual OUString SAL_CALL getSystemId() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getSystemId() override;
// ---- resolve uno inheritance problems...
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CNode::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/domimplementation.cxx b/unoxml/source/dom/domimplementation.cxx
index 9439320e0ca5..1bf354ced661 100644
--- a/unoxml/source/dom/domimplementation.cxx
+++ b/unoxml/source/dom/domimplementation.cxx
@@ -51,7 +51,6 @@ namespace DOM
OUString const& /*rNamespaceURI*/,
OUString const& /*rQualifiedName*/,
Reference< XDocumentType > const& /*xDoctype*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CDOMImplementation::createDocument: not implemented (#i113683#)");
@@ -64,7 +63,6 @@ namespace DOM
Reference< XDocumentType > SAL_CALL CDOMImplementation::createDocumentType(
OUString const& /*rQualifiedName*/,
OUString const& /*rPublicId*/, OUString const& /*rSystemId*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false, "CDOMImplementation::createDocumentType: "
"not implemented (#i113683#)");
@@ -76,7 +74,6 @@ namespace DOM
*/
sal_Bool SAL_CALL
CDOMImplementation::hasFeature(OUString const& /*feature*/, OUString const& /*ver*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CDOMImplementation::hasFeature: not implemented (#i113683#)");
diff --git a/unoxml/source/dom/domimplementation.hxx b/unoxml/source/dom/domimplementation.hxx
index de218640f1f1..095587409235 100644
--- a/unoxml/source/dom/domimplementation.hxx
+++ b/unoxml/source/dom/domimplementation.hxx
@@ -45,20 +45,17 @@ namespace DOM
/**
Creates a DOM Document object of the specified type with its document element.
*/
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL createDocument(const OUString& namespaceURI, const OUString& qualifiedName, const css::uno::Reference< css::xml::dom::XDocumentType >& doctype)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL createDocument(const OUString& namespaceURI, const OUString& qualifiedName, const css::uno::Reference< css::xml::dom::XDocumentType >& doctype) override;
/**
Creates an empty DocumentType node.
*/
- virtual css::uno::Reference< css::xml::dom::XDocumentType > SAL_CALL createDocumentType(const OUString& qualifiedName, const OUString& publicId, const OUString& systemId)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XDocumentType > SAL_CALL createDocumentType(const OUString& qualifiedName, const OUString& publicId, const OUString& systemId) override;
/**
Test if the DOM implementation implements a specific feature.
*/
- virtual sal_Bool SAL_CALL hasFeature(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL hasFeature(const OUString& feature, const OUString& ver) override;
};
}
#endif
diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx
index 4933f89baf3c..ed81e8d2333f 100644
--- a/unoxml/source/dom/element.cxx
+++ b/unoxml/source/dom/element.cxx
@@ -231,7 +231,6 @@ namespace DOM
return empty string if attribute is not set
*/
OUString SAL_CALL CElement::getAttribute(OUString const& name)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -254,7 +253,6 @@ namespace DOM
Retrieves an attribute node by name.
*/
Reference< XAttr > SAL_CALL CElement::getAttributeNode(OUString const& name)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -280,7 +278,6 @@ namespace DOM
*/
Reference< XAttr > SAL_CALL CElement::getAttributeNodeNS(
const OUString& namespaceURI, const OUString& localName)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -311,7 +308,6 @@ namespace DOM
OUString SAL_CALL
CElement::getAttributeNS(
OUString const& namespaceURI, OUString const& localName)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -342,7 +338,6 @@ namespace DOM
*/
Reference< XNodeList > SAL_CALL
CElement::getElementsByTagName(OUString const& rLocalName)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -359,7 +354,6 @@ namespace DOM
Reference< XNodeList > SAL_CALL
CElement::getElementsByTagNameNS(
OUString const& rNamespaceURI, OUString const& rLocalName)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -372,7 +366,6 @@ namespace DOM
The name of the element.
*/
OUString SAL_CALL CElement::getTagName()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -390,7 +383,6 @@ namespace DOM
element or has a default value, false otherwise.
*/
sal_Bool SAL_CALL CElement::hasAttribute(OUString const& name)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -405,7 +397,6 @@ namespace DOM
*/
sal_Bool SAL_CALL CElement::hasAttributeNS(
OUString const& namespaceURI, OUString const& localName)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -420,7 +411,6 @@ namespace DOM
Removes an attribute by name.
*/
void SAL_CALL CElement::removeAttribute(OUString const& name)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -445,7 +435,6 @@ namespace DOM
*/
void SAL_CALL CElement::removeAttributeNS(
OUString const& namespaceURI, OUString const& localName)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -475,7 +464,6 @@ namespace DOM
*/
Reference< XAttr > SAL_CALL
CElement::removeAttributeNode(Reference< XAttr > const& oldAttr)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -594,7 +582,6 @@ namespace DOM
Reference< XAttr >
CElement::setAttributeNode(const Reference< XAttr >& newAttr)
- throw (RuntimeException, DOMException, std::exception)
{
return setAttributeNode_Impl_Lock(newAttr, false);
}
@@ -604,7 +591,6 @@ namespace DOM
*/
Reference< XAttr >
CElement::setAttributeNodeNS(const Reference< XAttr >& newAttr)
- throw (RuntimeException, DOMException, std::exception)
{
return setAttributeNode_Impl_Lock(newAttr, true);
}
@@ -614,7 +600,6 @@ namespace DOM
*/
void SAL_CALL
CElement::setAttribute(OUString const& name, OUString const& value)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -660,7 +645,6 @@ namespace DOM
void SAL_CALL
CElement::setAttributeNS(OUString const& namespaceURI,
OUString const& qualifiedName, OUString const& value)
- throw (RuntimeException, DOMException, std::exception)
{
if (namespaceURI.isEmpty()) throw RuntimeException();
@@ -737,7 +721,7 @@ namespace DOM
}
Reference< XNamedNodeMap > SAL_CALL
- CElement::getAttributes() throw (RuntimeException, std::exception)
+ CElement::getAttributes()
{
::osl::MutexGuard const g(m_rMutex);
@@ -746,12 +730,12 @@ namespace DOM
return xMap;
}
- OUString SAL_CALL CElement::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CElement::getNodeName()
{
return getLocalName();
}
- OUString SAL_CALL CElement::getLocalName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CElement::getLocalName()
{
::osl::MutexGuard const g(m_rMutex);
@@ -764,7 +748,7 @@ namespace DOM
return aName;
}
- OUString SAL_CALL CElement::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CElement::getNodeValue()
{
return OUString();
}
diff --git a/unoxml/source/dom/element.hxx b/unoxml/source/dom/element.hxx
index e14a5de4b908..5e44f14ac8f1 100644
--- a/unoxml/source/dom/element.hxx
+++ b/unoxml/source/dom/element.hxx
@@ -59,34 +59,29 @@ namespace DOM
/**
Retrieves an attribute value by name.
*/
- virtual OUString SAL_CALL getAttribute(const OUString& name)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getAttribute(const OUString& name) override;
/**
Retrieves an attribute node by name.
*/
- virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL getAttributeNode(const OUString& name)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL getAttributeNode(const OUString& name) override;
/**
Retrieves an Attr node by local name and namespace URI.
*/
- virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL getAttributeNodeNS(const OUString& namespaceURI, const OUString& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL getAttributeNodeNS(const OUString& namespaceURI, const OUString& localName) override;
/**
Retrieves an attribute value by local name and namespace URI.
*/
- virtual OUString SAL_CALL getAttributeNS(const OUString& namespaceURI, const OUString& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getAttributeNS(const OUString& namespaceURI, const OUString& localName) 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.
*/
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getElementsByTagName(const OUString& name)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getElementsByTagName(const OUString& name) override;
/**
Returns a NodeList of all the descendant Elements with a given local
@@ -94,188 +89,152 @@ namespace DOM
a preorder traversal of this Element tree.
*/
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getElementsByTagNameNS(const OUString& namespaceURI,
- const OUString& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ const OUString& localName) override;
/**
The name of the element.
*/
- virtual OUString SAL_CALL getTagName()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getTagName() override;
/**
Returns true when an attribute with a given name is specified on this
element or has a default value, false otherwise.
*/
- virtual sal_Bool SAL_CALL hasAttribute(const OUString& name)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL hasAttribute(const OUString& name) 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.
*/
- virtual sal_Bool SAL_CALL hasAttributeNS(const OUString& namespaceURI, const OUString& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL hasAttributeNS(const OUString& namespaceURI, const OUString& localName) override;
/**
Removes an attribute by name.
*/
- virtual void SAL_CALL removeAttribute(const OUString& name)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL removeAttribute(const OUString& name) override;
/**
Removes the specified attribute node.
*/
- virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL removeAttributeNode(const css::uno::Reference< css::xml::dom::XAttr >& oldAttr)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL removeAttributeNode(const css::uno::Reference< css::xml::dom::XAttr >& oldAttr) override;
/**
Removes an attribute by local name and namespace URI.
*/
- virtual void SAL_CALL removeAttributeNS(const OUString& namespaceURI, const OUString& localName)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL removeAttributeNS(const OUString& namespaceURI, const OUString& localName) override;
/**
Adds a new attribute.
*/
- virtual void SAL_CALL setAttribute(const OUString& name, const OUString& value)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL setAttribute(const OUString& name, const OUString& value) override;
/**
Adds a new attribute node.
*/
- virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL setAttributeNode(const css::uno::Reference< css::xml::dom::XAttr >& newAttr)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ 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.
*/
- virtual css::uno::Reference< css::xml::dom::XAttr > SAL_CALL setAttributeNodeNS(const css::uno::Reference< css::xml::dom::XAttr >& newAttr)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ 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.
*/
virtual void SAL_CALL setAttributeNS(
- const OUString& namespaceURI, const OUString& qualifiedName, const OUString& value)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ const OUString& namespaceURI, const OUString& qualifiedName, const OUString& value) override;
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override;
+ 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;
// resolve uno inheritance problems...
// --- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CNode::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx
index c851faf426b3..fad086a3b604 100644
--- a/unoxml/source/dom/elementlist.cxx
+++ b/unoxml/source/dom/elementlist.cxx
@@ -44,8 +44,7 @@ namespace
{
}
- virtual void SAL_CALL handleEvent(const css::uno::Reference<css::xml::dom::events::XEvent>& rEvent)
- throw(css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL handleEvent(const css::uno::Reference<css::xml::dom::events::XEvent>& rEvent) override
{
css::uno::Reference<css::xml::dom::events::XEventListener> xOwner(mxOwner.get(),
css::uno::UNO_QUERY);
@@ -155,7 +154,7 @@ namespace DOM
/**
The number of nodes in the list.
*/
- sal_Int32 SAL_CALL CElementListImpl::getLength() throw (RuntimeException, std::exception)
+ sal_Int32 SAL_CALL CElementListImpl::getLength()
{
::osl::MutexGuard const g(m_rMutex);
@@ -169,7 +168,6 @@ namespace DOM
Returns the indexth item in the collection.
*/
Reference< XNode > SAL_CALL CElementListImpl::item(sal_Int32 index)
- throw (RuntimeException, std::exception)
{
if (index < 0) throw RuntimeException();
@@ -188,7 +186,6 @@ namespace DOM
// tree mutations can change the list
void SAL_CALL CElementListImpl::handleEvent(Reference< XEvent > const&)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
diff --git a/unoxml/source/dom/elementlist.hxx b/unoxml/source/dom/elementlist.hxx
index d6ce1353019a..3f44d05a0253 100644
--- a/unoxml/source/dom/elementlist.hxx
+++ b/unoxml/source/dom/elementlist.hxx
@@ -75,16 +75,14 @@ namespace DOM
/**
The number of nodes in the list.
*/
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getLength() override;
/**
Returns the indexth item in the collection.
*/
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item(sal_Int32 index)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item(sal_Int32 index) override;
// XEventListener
- virtual void SAL_CALL handleEvent(const css::uno::Reference< css::xml::dom::events::XEvent >& evt)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL handleEvent(const css::uno::Reference< css::xml::dom::events::XEvent >& evt) override;
};
class CElementList
@@ -101,22 +99,20 @@ namespace DOM
/**
The number of nodes in the list.
*/
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Int32 SAL_CALL getLength() override
{
return m_xImpl->getLength();
}
/**
Returns the indexth item in the collection.
*/
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item(sal_Int32 index)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL item(sal_Int32 index) override
{
return m_xImpl->item(index);
}
// XEventListener
- virtual void SAL_CALL handleEvent(const css::uno::Reference< css::xml::dom::events::XEvent >& evt)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL handleEvent(const css::uno::Reference< css::xml::dom::events::XEvent >& evt) override
{
m_xImpl->handleEvent(evt);
}
diff --git a/unoxml/source/dom/entitiesmap.cxx b/unoxml/source/dom/entitiesmap.cxx
index a281fa1b07ce..c75b70d9e853 100644
--- a/unoxml/source/dom/entitiesmap.cxx
+++ b/unoxml/source/dom/entitiesmap.cxx
@@ -35,7 +35,7 @@ namespace DOM
/**
The number of nodes in this map.
*/
- sal_Int32 SAL_CALL CEntitiesMap::getLength() throw (RuntimeException, std::exception)
+ sal_Int32 SAL_CALL CEntitiesMap::getLength()
{
OSL_ENSURE(false,
"CEntitiesMap::getLength: not implemented (#i113683#)");
@@ -46,7 +46,7 @@ namespace DOM
Retrieves a node specified by local name
*/
Reference< XNode > SAL_CALL
- CEntitiesMap::getNamedItem(OUString const& /*name*/) throw (RuntimeException, std::exception)
+ CEntitiesMap::getNamedItem(OUString const& /*name*/)
{
OSL_ENSURE(false,
"CEntitiesMap::getNamedItem: not implemented (#i113683#)");
@@ -59,7 +59,6 @@ namespace DOM
Reference< XNode > SAL_CALL
CEntitiesMap::getNamedItemNS(
OUString const& /*namespaceURI*/, OUString const& /*localName*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CEntitiesMap::getNamedItemNS: not implemented (#i113683#)");
@@ -70,7 +69,7 @@ namespace DOM
Returns the indexth item in the map.
*/
Reference< XNode > SAL_CALL
- CEntitiesMap::item(sal_Int32 /*index*/) throw (RuntimeException, std::exception)
+ CEntitiesMap::item(sal_Int32 /*index*/)
{
OSL_ENSURE(false, "CEntitiesMap::item: not implemented (#i113683#)");
return Reference< XNode >();
@@ -81,7 +80,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CEntitiesMap::removeNamedItem(OUString const& /*name*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CEntitiesMap::removeNamedItem: not implemented (#i113683#)");
@@ -94,7 +92,6 @@ namespace DOM
Reference< XNode > SAL_CALL
CEntitiesMap::removeNamedItemNS(
OUString const& /*namespaceURI*/, OUString const& /*localName*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CEntitiesMap::removeNamedItemNS: not implemented (#i113683#)");
@@ -106,7 +103,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CEntitiesMap::setNamedItem(Reference< XNode > const& /*arg*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CEntitiesMap::setNamedItem: not implemented (#i113683#)");
@@ -118,7 +114,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CEntitiesMap::setNamedItemNS(Reference< XNode > const& /*arg*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CEntitiesMap::setNamedItemNS: not implemented (#i113683#)");
diff --git a/unoxml/source/dom/entitiesmap.hxx b/unoxml/source/dom/entitiesmap.hxx
index b358ae6795a7..af3ad4218aee 100644
--- a/unoxml/source/dom/entitiesmap.hxx
+++ b/unoxml/source/dom/entitiesmap.hxx
@@ -42,53 +42,49 @@ namespace DOM
/**
The number of nodes in this map.
*/
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getLength() override;
/**
Retrieves a node specified by local name
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- getNamedItem(const OUString& name) throw (css::uno::RuntimeException, std::exception) override;
+ getNamedItem(const OUString& name) override;
/**
Retrieves a node specified by local name and namespace URI.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNamedItemNS(
- OUString const& namespaceURI, OUString const& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ OUString const& namespaceURI, OUString const& localName) override;
/**
Returns the indexth item in the map.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- item(sal_Int32 index) throw (css::uno::RuntimeException, std::exception) override;
+ item(sal_Int32 index) override;
/**
Removes a node specified by name.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- removeNamedItem(OUString const& name) throw (css::uno::RuntimeException, std::exception) override;
+ removeNamedItem(OUString const& name) override;
/**
// Removes a node specified by local name and namespace URI.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeNamedItemNS(
- OUString const& namespaceURI, OUString const& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ OUString const& namespaceURI, OUString const& localName) override;
/**
// Adds a node using its nodeName attribute.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- setNamedItem(css::uno::Reference< css::xml::dom::XNode > const& arg)
- throw (css::uno::RuntimeException, std::exception) override;
+ setNamedItem(css::uno::Reference< css::xml::dom::XNode > const& arg) override;
/**
Adds a node using its namespaceURI and localName.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- setNamedItemNS(css::uno::Reference< css::xml::dom::XNode > const& arg)
- throw (css::uno::RuntimeException, std::exception) override;
+ setNamedItemNS(css::uno::Reference< css::xml::dom::XNode > const& arg) override;
};
}
diff --git a/unoxml/source/dom/entity.cxx b/unoxml/source/dom/entity.cxx
index 7ce7817319db..87d0f9c74efb 100644
--- a/unoxml/source/dom/entity.cxx
+++ b/unoxml/source/dom/entity.cxx
@@ -55,7 +55,7 @@ namespace DOM
/**
For unparsed entities, the name of the notation for the entity.
*/
- OUString SAL_CALL CEntity::getNotationName() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CEntity::getNotationName()
{
OSL_ENSURE(false,
"CEntity::getNotationName: not implemented (#i113683#)");
@@ -65,7 +65,7 @@ namespace DOM
/**
The public identifier associated with the entity, if specified.
*/
- OUString SAL_CALL CEntity::getPublicId() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CEntity::getPublicId()
{
::osl::MutexGuard const g(m_rMutex);
@@ -80,7 +80,7 @@ namespace DOM
/**
The system identifier associated with the entity, if specified.
*/
- OUString SAL_CALL CEntity::getSystemId() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CEntity::getSystemId()
{
::osl::MutexGuard const g(m_rMutex);
@@ -91,7 +91,7 @@ namespace DOM
}
return aID;
}
- OUString SAL_CALL CEntity::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CEntity::getNodeName()
{
::osl::MutexGuard const g(m_rMutex);
@@ -103,7 +103,7 @@ namespace DOM
}
return aName;
}
- OUString SAL_CALL CEntity::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CEntity::getNodeValue()
{
return OUString();
}
diff --git a/unoxml/source/dom/entity.hxx b/unoxml/source/dom/entity.hxx
index 3bcc94408f87..51c10ce00005 100644
--- a/unoxml/source/dom/entity.hxx
+++ b/unoxml/source/dom/entity.hxx
@@ -54,139 +54,114 @@ namespace DOM
/**
For unparsed entities, the name of the notation for the entity.
*/
- virtual OUString SAL_CALL getNotationName() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNotationName() override;
/**
The public identifier associated with the entity, if specified.
*/
- virtual OUString SAL_CALL getPublicId() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getPublicId() override;
/**
The system identifier associated with the entity, if specified.
*/
- virtual OUString SAL_CALL getSystemId() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getSystemId() override;
// ---- resolve uno inheritance problems...
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CNode::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/entityreference.cxx b/unoxml/source/dom/entityreference.cxx
index 6d62e69d576c..f4955aeba88b 100644
--- a/unoxml/source/dom/entityreference.cxx
+++ b/unoxml/source/dom/entityreference.cxx
@@ -49,7 +49,7 @@ namespace DOM
}
}
- OUString SAL_CALL CEntityReference::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CEntityReference::getNodeName()
{
::osl::MutexGuard const g(m_rMutex);
@@ -62,7 +62,7 @@ namespace DOM
return aName;
}
- OUString SAL_CALL CEntityReference::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CEntityReference::getNodeValue()
{
return OUString();
}
diff --git a/unoxml/source/dom/entityreference.hxx b/unoxml/source/dom/entityreference.hxx
index 1ce5c3648559..711818d7e948 100644
--- a/unoxml/source/dom/entityreference.hxx
+++ b/unoxml/source/dom/entityreference.hxx
@@ -49,125 +49,100 @@ namespace DOM
// ---- resolve uno inheritance problems...
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CNode::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index 3617d1f45d5d..2d191b5cd997 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -285,7 +285,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL CNode::appendChild(
Reference< XNode > const& xNewChild)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -387,7 +386,6 @@ namespace DOM
constructor for nodes.
*/
Reference< XNode > SAL_CALL CNode::cloneNode(sal_Bool bDeep)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -406,7 +404,6 @@ namespace DOM
or null otherwise.
*/
Reference< XNamedNodeMap > SAL_CALL CNode::getAttributes()
- throw (RuntimeException, std::exception)
{
// return empty reference; only element node may override this impl
return Reference< XNamedNodeMap>();
@@ -416,7 +413,6 @@ namespace DOM
A NodeList that contains all children of this node.
*/
Reference< XNodeList > SAL_CALL CNode::getChildNodes()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -431,7 +427,6 @@ namespace DOM
The first child of this node.
*/
Reference< XNode > SAL_CALL CNode::getFirstChild()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -447,7 +442,6 @@ namespace DOM
The last child of this node.
*/
Reference< XNode > SAL_CALL CNode::getLastChild()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -463,7 +457,6 @@ namespace DOM
Returns the local part of the qualified name of this node.
*/
OUString SAL_CALL CNode::getLocalName()
- throw (RuntimeException, std::exception)
{
// see CElement/CAttr
return OUString();
@@ -474,7 +467,6 @@ namespace DOM
The namespace URI of this node, or null if it is unspecified.
*/
OUString SAL_CALL CNode::getNamespaceURI()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -493,7 +485,6 @@ namespace DOM
The node immediately following this node.
*/
Reference< XNode > SAL_CALL CNode::getNextSibling()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -509,7 +500,6 @@ namespace DOM
The name of this node, depending on its type; see the table above.
*/
OUString SAL_CALL CNode::getNodeName()
- throw (RuntimeException, std::exception)
{
/*
Interface nodeName nodeValue attributes
@@ -537,7 +527,6 @@ namespace DOM
A code representing the type of the underlying object, as defined above.
*/
NodeType SAL_CALL CNode::getNodeType()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -548,7 +537,6 @@ namespace DOM
The value of this node, depending on its type; see the table above.
*/
OUString SAL_CALL CNode::getNodeValue()
- throw (RuntimeException, std::exception)
{
OUString aValue;
return aValue;
@@ -558,7 +546,6 @@ namespace DOM
The Document object associated with this node.
*/
Reference< XDocument > SAL_CALL CNode::getOwnerDocument()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -573,7 +560,6 @@ namespace DOM
The parent of this node.
*/
Reference< XNode > SAL_CALL CNode::getParentNode()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -589,7 +575,6 @@ namespace DOM
The namespace prefix of this node, or null if it is unspecified.
*/
OUString SAL_CALL CNode::getPrefix()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -610,7 +595,6 @@ namespace DOM
The node immediately preceding this node.
*/
Reference< XNode > SAL_CALL CNode::getPreviousSibling()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -626,7 +610,6 @@ namespace DOM
Returns whether this node (if it is an element) has any attributes.
*/
sal_Bool SAL_CALL CNode::hasAttributes()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -637,7 +620,6 @@ namespace DOM
Returns whether this node has any children.
*/
sal_Bool SAL_CALL CNode::hasChildNodes()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -649,7 +631,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL CNode::insertBefore(
const Reference< XNode >& newChild, const Reference< XNode >& refChild)
- throw (RuntimeException, DOMException, std::exception)
{
if (!newChild.is() || !refChild.is()) { throw RuntimeException(); }
@@ -728,7 +709,6 @@ namespace DOM
that feature is supported by this node.
*/
sal_Bool SAL_CALL CNode::isSupported(const OUString& /*feature*/, const OUString& /*ver*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false, "CNode::isSupported: not implemented (#i113683#)");
return false;
@@ -742,7 +722,6 @@ namespace DOM
Text nodes nor empty Text nodes.
*/
void SAL_CALL CNode::normalize()
- throw (RuntimeException, std::exception)
{
//XXX combine adjacent text nodes and remove empty ones
OSL_ENSURE(false, "CNode::normalize: not implemented (#i113683#)");
@@ -754,7 +733,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CNode::removeChild(const Reference< XNode >& xOldChild)
- throw (RuntimeException, DOMException, std::exception)
{
if (!xOldChild.is()) {
throw RuntimeException();
@@ -830,7 +808,6 @@ namespace DOM
Reference< XNode > SAL_CALL CNode::replaceChild(
Reference< XNode > const& xNewChild,
Reference< XNode > const& xOldChild)
- throw (RuntimeException, DOMException, std::exception)
{
if (!xOldChild.is() || !xNewChild.is()) {
throw RuntimeException();
@@ -948,7 +925,6 @@ namespace DOM
The value of this node, depending on its type; see the table above.
*/
void SAL_CALL CNode::setNodeValue(const OUString& /*nodeValue*/)
- throw (RuntimeException, DOMException, std::exception)
{
// use specific node implementation
// if we end up down here, something went wrong
@@ -961,7 +937,6 @@ namespace DOM
The namespace prefix of this node, or null if it is unspecified.
*/
void SAL_CALL CNode::setPrefix(const OUString& prefix)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -987,7 +962,6 @@ namespace DOM
void SAL_CALL CNode::addEventListener(const OUString& eventType,
const Reference< css::xml::dom::events::XEventListener >& listener,
sal_Bool useCapture)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -999,7 +973,6 @@ namespace DOM
void SAL_CALL CNode::removeEventListener(const OUString& eventType,
const Reference< css::xml::dom::events::XEventListener >& listener,
sal_Bool useCapture)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -1009,7 +982,6 @@ namespace DOM
}
sal_Bool SAL_CALL CNode::dispatchEvent(const Reference< XEvent >& evt)
- throw(RuntimeException, EventException, std::exception)
{
CDocument * pDocument;
events::CEventDispatcher * pDispatcher;
@@ -1028,7 +1000,6 @@ namespace DOM
::sal_Int64 SAL_CALL
CNode::getSomething(Sequence< ::sal_Int8 > const& rId)
- throw (RuntimeException, std::exception)
{
if ((rId.getLength() == 16) &&
(0 == memcmp(theCNodeUnoTunnelId::get().getSeq().getConstArray(),
diff --git a/unoxml/source/dom/notation.cxx b/unoxml/source/dom/notation.cxx
index 2fa8e3f6f71b..f3a137b3c712 100644
--- a/unoxml/source/dom/notation.cxx
+++ b/unoxml/source/dom/notation.cxx
@@ -35,7 +35,7 @@ namespace DOM
{
}
- OUString SAL_CALL CNotation::getPublicId() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CNotation::getPublicId()
{
OSL_ENSURE(false,
"CNotation::getPublicId: not implemented (#i113683#)");
@@ -45,7 +45,7 @@ namespace DOM
/**
The system identifier of this notation.
*/
- OUString SAL_CALL CNotation::getSystemId() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CNotation::getSystemId()
{
OSL_ENSURE(false,
"CNotation::getSystemId: not implemented (#i113683#)");
@@ -53,7 +53,7 @@ namespace DOM
}
- OUString SAL_CALL CNotation::getNodeName()throw (RuntimeException, std::exception)
+ OUString SAL_CALL CNotation::getNodeName()
{
::osl::MutexGuard const g(m_rMutex);
@@ -66,7 +66,7 @@ namespace DOM
return aName;
}
- OUString SAL_CALL CNotation::getNodeValue() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CNotation::getNodeValue()
{
return OUString();
}
diff --git a/unoxml/source/dom/notation.hxx b/unoxml/source/dom/notation.hxx
index 434b1b8d486c..099905acf3ac 100644
--- a/unoxml/source/dom/notation.hxx
+++ b/unoxml/source/dom/notation.hxx
@@ -45,134 +45,109 @@ namespace DOM
/**
The public identifier of this notation.
*/
- virtual OUString SAL_CALL getPublicId() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getPublicId() override;
/**
The system identifier of this notation.
*/
- virtual OUString SAL_CALL getSystemId() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getSystemId() override;
// ---- resolve uno inheritance problems...
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CNode::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/notationsmap.cxx b/unoxml/source/dom/notationsmap.cxx
index d2fc182cab8a..30bb0e456d25 100644
--- a/unoxml/source/dom/notationsmap.cxx
+++ b/unoxml/source/dom/notationsmap.cxx
@@ -35,7 +35,7 @@ namespace DOM
/**
The number of nodes in this map.
*/
- sal_Int32 SAL_CALL CNotationsMap::getLength() throw (RuntimeException, std::exception)
+ sal_Int32 SAL_CALL CNotationsMap::getLength()
{
OSL_ENSURE(false,
"CNotationsMap::getLength: not implemented (#i113683#)");
@@ -47,7 +47,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CNotationsMap::getNamedItem(OUString const& /*name*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CNotationsMap::getNamedItem: not implemented (#i113683#)");
@@ -60,7 +59,6 @@ namespace DOM
Reference< XNode > SAL_CALL
CNotationsMap::getNamedItemNS(
OUString const& /*namespaceURI*/, OUString const& /*localName*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CNotationsMap::getNamedItemNS: not implemented (#i113683#)");
@@ -71,7 +69,7 @@ namespace DOM
Returns the indexth item in the map.
*/
Reference< XNode > SAL_CALL
- CNotationsMap::item(sal_Int32 /*index*/) throw (RuntimeException, std::exception)
+ CNotationsMap::item(sal_Int32 /*index*/)
{
OSL_ENSURE(false, "CNotationsMap::item: not implemented (#i113683#)");
return Reference< XNode >();
@@ -82,7 +80,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CNotationsMap::removeNamedItem(OUString const& /*name*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CNotationsMap::removeNamedItem: not implemented (#i113683#)");
@@ -95,7 +92,6 @@ namespace DOM
Reference< XNode > SAL_CALL
CNotationsMap::removeNamedItemNS(
OUString const& /*namespaceURI*/, OUString const& /*localName*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CNotationsMap::removeNamedItemNS: not implemented (#i113683#)");
@@ -107,7 +103,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CNotationsMap::setNamedItem(Reference< XNode > const& /*arg*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CNotationsMap::setNamedItem: not implemented (#i113683#)");
@@ -119,7 +114,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CNotationsMap::setNamedItemNS(Reference< XNode > const& /*arg*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false,
"CNotationsMap::setNamedItemNS: not implemented (#i113683#)");
diff --git a/unoxml/source/dom/notationsmap.hxx b/unoxml/source/dom/notationsmap.hxx
index a68452e44fd8..daabc9f7f70e 100644
--- a/unoxml/source/dom/notationsmap.hxx
+++ b/unoxml/source/dom/notationsmap.hxx
@@ -42,53 +42,49 @@ namespace DOM
/**
The number of nodes in this map.
*/
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getLength() override;
/**
Retrieves a node specified by local name
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- getNamedItem(OUString const& name) throw (css::uno::RuntimeException, std::exception) override;
+ getNamedItem(OUString const& name) override;
/**
Retrieves a node specified by local name and namespace URI.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNamedItemNS(
- OUString const& namespaceURI, OUString const& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ OUString const& namespaceURI, OUString const& localName) override;
/**
Returns the indexth item in the map.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- item(sal_Int32 index) throw (css::uno::RuntimeException, std::exception) override;
+ item(sal_Int32 index) override;
/**
Removes a node specified by name.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- removeNamedItem(OUString const& name) throw (css::uno::RuntimeException, std::exception) override;
+ removeNamedItem(OUString const& name) override;
/**
// Removes a node specified by local name and namespace URI.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeNamedItemNS(
- OUString const& namespaceURI, OUString const& localName)
- throw (css::uno::RuntimeException, std::exception) override;
+ OUString const& namespaceURI, OUString const& localName) override;
/**
// Adds a node using its nodeName attribute.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- setNamedItem(css::uno::Reference< css::xml::dom::XNode > const& arg)
- throw (css::uno::RuntimeException, std::exception) override;
+ setNamedItem(css::uno::Reference< css::xml::dom::XNode > const& arg) override;
/**
Adds a node using its namespaceURI and localName.
*/
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
- setNamedItemNS(css::uno::Reference< css::xml::dom::XNode > const& arg)
- throw (css::uno::RuntimeException, std::exception) override;
+ setNamedItemNS(css::uno::Reference< css::xml::dom::XNode > const& arg) override;
};
}
diff --git a/unoxml/source/dom/processinginstruction.cxx b/unoxml/source/dom/processinginstruction.cxx
index 1cda0809808f..70f492ae4e4d 100644
--- a/unoxml/source/dom/processinginstruction.cxx
+++ b/unoxml/source/dom/processinginstruction.cxx
@@ -50,7 +50,7 @@ namespace DOM
The content of this processing instruction.
*/
OUString SAL_CALL
- CProcessingInstruction::getData() throw (RuntimeException, std::exception)
+ CProcessingInstruction::getData()
{
::osl::MutexGuard const g(m_rMutex);
@@ -71,7 +71,7 @@ namespace DOM
The target of this processing instruction.
*/
OUString SAL_CALL
- CProcessingInstruction::getTarget() throw (RuntimeException, std::exception)
+ CProcessingInstruction::getTarget()
{
::osl::MutexGuard const g(m_rMutex);
@@ -92,7 +92,6 @@ namespace DOM
The content of this processing instruction.
*/
void SAL_CALL CProcessingInstruction::setData(OUString const& rData)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -109,7 +108,7 @@ namespace DOM
}
OUString SAL_CALL
- CProcessingInstruction::getNodeName() throw (RuntimeException, std::exception)
+ CProcessingInstruction::getNodeName()
{
::osl::MutexGuard const g(m_rMutex);
@@ -124,14 +123,12 @@ namespace DOM
}
OUString SAL_CALL CProcessingInstruction::getNodeValue()
- throw (RuntimeException, std::exception)
{
return getData();
}
void SAL_CALL
CProcessingInstruction::setNodeValue(OUString const& rNodeValue)
- throw (RuntimeException, DOMException, std::exception)
{
return setData(rNodeValue);
}
diff --git a/unoxml/source/dom/processinginstruction.hxx b/unoxml/source/dom/processinginstruction.hxx
index 212bbfd7ae11..0920edec47ba 100644
--- a/unoxml/source/dom/processinginstruction.hxx
+++ b/unoxml/source/dom/processinginstruction.hxx
@@ -51,137 +51,112 @@ namespace DOM
/**
The content of this processing instruction.
*/
- virtual OUString SAL_CALL getData() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getData() override;
/**
The target of this processing instruction.
*/
- virtual OUString SAL_CALL getTarget() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getTarget() override;
/**
The content of this processing instruction.
*/
- virtual void SAL_CALL setData(const OUString& data) throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual void SAL_CALL setData(const OUString& data) override;
// ---- resolve uno inheritance problems...
// overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getNodeValue()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setNodeValue(OUString const& rNodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
+ virtual OUString SAL_CALL getNodeValue() override;
+ virtual void SAL_CALL setNodeValue(OUString const& rNodeValue) 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CNode::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CNode::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CNode::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CNode::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CNode::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CNode::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CNode::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CNode::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CNode::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CNode::getNodeType();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CNode::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CNode::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CNode::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CNode::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CNode::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CNode::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CNode::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CNode::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CNode::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CNode::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CNode::setPrefix(prefix);
}
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx
index 786f3700b9f0..4bbd27176046 100644
--- a/unoxml/source/dom/saxbuilder.cxx
+++ b/unoxml/source/dom/saxbuilder.cxx
@@ -64,25 +64,21 @@ namespace DOM
}
Sequence< OUString > SAL_CALL CSAXDocumentBuilder::getSupportedServiceNames()
- throw (RuntimeException, std::exception)
{
return CSAXDocumentBuilder::_getSupportedServiceNames();
}
OUString SAL_CALL CSAXDocumentBuilder::getImplementationName()
- throw (RuntimeException, std::exception)
{
return CSAXDocumentBuilder::_getImplementationName();
}
sal_Bool SAL_CALL CSAXDocumentBuilder::supportsService(const OUString& aServiceName)
- throw (RuntimeException, std::exception)
{
return cppu::supportsService(this, aServiceName);
}
SAXDocumentBuilderState SAL_CALL CSAXDocumentBuilder::getState()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -90,7 +86,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::reset()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -102,7 +97,6 @@ namespace DOM
}
Reference< XDocument > SAL_CALL CSAXDocumentBuilder::getDocument()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -113,7 +107,6 @@ namespace DOM
}
Reference< XDocumentFragment > SAL_CALL CSAXDocumentBuilder::getDocumentFragment()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -123,7 +116,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::startDocumentFragment(const Reference< XDocument >& ownerDoc)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -140,7 +132,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::endDocumentFragment()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -157,7 +148,7 @@ namespace DOM
// document handler
- void SAL_CALL CSAXDocumentBuilder::startDocument() throw (RuntimeException, SAXException, std::exception)
+ void SAL_CALL CSAXDocumentBuilder::startDocument()
{
::osl::MutexGuard g(m_Mutex);
@@ -173,7 +164,7 @@ namespace DOM
m_aState = SAXDocumentBuilderState_BUILDING_DOCUMENT;
}
- void SAL_CALL CSAXDocumentBuilder::endDocument() throw (RuntimeException, SAXException, std::exception)
+ void SAL_CALL CSAXDocumentBuilder::endDocument()
{
::osl::MutexGuard g(m_Mutex);
@@ -189,7 +180,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::startElement(const OUString& aName, const Reference< XAttributeList>& attribs)
- throw (RuntimeException, SAXException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -290,7 +280,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::endElement(const OUString& aName)
- throw (RuntimeException, SAXException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -319,7 +308,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::characters(const OUString& aChars)
- throw (RuntimeException, SAXException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -333,7 +321,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::ignorableWhitespace(const OUString& )
- throw (RuntimeException, SAXException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -344,7 +331,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::processingInstruction(const OUString& aTarget, const OUString& aData)
- throw (RuntimeException, SAXException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
@@ -359,7 +345,6 @@ namespace DOM
}
void SAL_CALL CSAXDocumentBuilder::setDocumentLocator(const Reference< XLocator >& aLocator)
- throw (RuntimeException, SAXException, std::exception)
{
::osl::MutexGuard g(m_Mutex);
diff --git a/unoxml/source/dom/saxbuilder.hxx b/unoxml/source/dom/saxbuilder.hxx
index ad3e7ce4dca6..0caf53ea4faf 100644
--- a/unoxml/source/dom/saxbuilder.hxx
+++ b/unoxml/source/dom/saxbuilder.hxx
@@ -77,47 +77,30 @@ namespace DOM
explicit CSAXDocumentBuilder(const css::uno::Reference< css::lang::XMultiServiceFactory >& mgr);
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames ()
- throw (css::uno::RuntimeException, std::exception) override;
+ 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;
// XDocumentHandler
- virtual void SAL_CALL startDocument()
- throw( css::uno::RuntimeException, css::xml::sax::SAXException, std::exception ) override;
- virtual void SAL_CALL endDocument()
- throw( css::uno::RuntimeException, css::xml::sax::SAXException, std::exception ) override;
+ virtual void SAL_CALL startDocument() override;
+ virtual void SAL_CALL endDocument() override;
virtual void SAL_CALL startElement( const OUString& aName,
- const css::uno::Reference< css::xml::sax::XAttributeList >& xAttribs )
- throw( css::uno::RuntimeException, css::xml::sax::SAXException, std::exception ) override;
- virtual void SAL_CALL endElement( const OUString& aName )
- throw( css::uno::RuntimeException, css::xml::sax::SAXException, std::exception ) override;
- virtual void SAL_CALL characters( const OUString& aChars )
- throw( css::uno::RuntimeException, css::xml::sax::SAXException, std::exception ) override;
- virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces )
- throw( css::uno::RuntimeException, css::xml::sax::SAXException, std::exception ) override;
+ const css::uno::Reference< css::xml::sax::XAttributeList >& xAttribs ) override;
+ virtual void SAL_CALL endElement( const OUString& aName ) override;
+ virtual void SAL_CALL characters( const OUString& aChars ) override;
+ virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces ) override;
virtual void SAL_CALL processingInstruction( const OUString& aTarget,
- const OUString& aData )
- throw( css::uno::RuntimeException, css::xml::sax::SAXException, std::exception ) override;
- virtual void SAL_CALL setDocumentLocator( const css::uno::Reference< css::xml::sax::XLocator >& xLocator )
- throw( css::uno::RuntimeException, css::xml::sax::SAXException, std::exception ) override;
+ const OUString& aData ) override;
+ virtual void SAL_CALL setDocumentLocator( const css::uno::Reference< css::xml::sax::XLocator >& xLocator ) override;
// XSAXDocumentBuilder
- virtual css::xml::dom::SAXDocumentBuilderState SAL_CALL getState()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL reset()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getDocument()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::xml::dom::XDocumentFragment > SAL_CALL getDocumentFragment()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL startDocumentFragment(const css::uno::Reference< css::xml::dom::XDocument >& ownerDoc)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL endDocumentFragment()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::xml::dom::SAXDocumentBuilderState SAL_CALL getState() override;
+ virtual void SAL_CALL reset() override;
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getDocument() override;
+ virtual css::uno::Reference< css::xml::dom::XDocumentFragment > SAL_CALL getDocumentFragment() override;
+ virtual void SAL_CALL startDocumentFragment(const css::uno::Reference< css::xml::dom::XDocument >& ownerDoc) override;
+ virtual void SAL_CALL endDocumentFragment() override;
};
diff --git a/unoxml/source/dom/text.cxx b/unoxml/source/dom/text.cxx
index cb0d5aaf6e20..030c16db238b 100644
--- a/unoxml/source/dom/text.cxx
+++ b/unoxml/source/dom/text.cxx
@@ -58,13 +58,12 @@ namespace DOM
}
}
- OUString SAL_CALL CText::getNodeName() throw (RuntimeException, std::exception)
+ OUString SAL_CALL CText::getNodeName()
{
return OUString("#text");
}
Reference< XText > SAL_CALL CText::splitText(sal_Int32 /*offset*/)
- throw (RuntimeException, std::exception)
{
OSL_FAIL("CText::splitText: not implemented (#i113683#)");
return Reference< XText >(this);
diff --git a/unoxml/source/dom/text.hxx b/unoxml/source/dom/text.hxx
index 884f7d6d4eaa..8ef372981e32 100644
--- a/unoxml/source/dom/text.hxx
+++ b/unoxml/source/dom/text.hxx
@@ -56,175 +56,144 @@ namespace DOM
// Breaks this node into two nodes at the specified offset, keeping
// both in the tree as siblings.
- virtual css::uno::Reference< css::xml::dom::XText > SAL_CALL splitText(sal_Int32 offset)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::dom::XText > SAL_CALL splitText(sal_Int32 offset) override;
// --- delegations for XCharacterData
- virtual void SAL_CALL appendData(const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL appendData(const OUString& arg) override
{
CCharacterData::appendData(arg);
}
- virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) override
{
CCharacterData::deleteData(offset, count);
}
- virtual OUString SAL_CALL getData() throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getData() override
{
return CCharacterData::getData();
}
- virtual sal_Int32 SAL_CALL getLength() throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Int32 SAL_CALL getLength() override
{
return CCharacterData::getLength();
}
- virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) override
{
CCharacterData::insertData(offset, arg);
}
- virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) override
{
CCharacterData::replaceData(offset, count, arg);
}
- virtual void SAL_CALL setData(const OUString& data)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setData(const OUString& data) override
{
CCharacterData::setData(data);
}
- virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) override
{
return CCharacterData::subStringData(offset, count);
}
// --- overrides for XNode base
- virtual OUString SAL_CALL getNodeName()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getNodeName() override;
// --- resolve uno inheritance problems...
// --- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
{
return CCharacterData::appendChild(newChild);
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
{
return CCharacterData::cloneNode(deep);
}
- virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
{
return CCharacterData::getAttributes();
}
- virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
{
return CCharacterData::getChildNodes();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
{
return CCharacterData::getFirstChild();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
{
return CCharacterData::getLastChild();
}
- virtual OUString SAL_CALL getLocalName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getLocalName() override
{
return CCharacterData::getLocalName();
}
- virtual OUString SAL_CALL getNamespaceURI()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNamespaceURI() override
{
return CCharacterData::getNamespaceURI();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
{
return CCharacterData::getNextSibling();
}
- virtual css::xml::dom::NodeType SAL_CALL getNodeType()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
{
return CCharacterData::getNodeType();
}
- virtual OUString SAL_CALL getNodeValue() throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getNodeValue() override
{
return CCharacterData::getNodeValue();
}
- virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
{
return CCharacterData::getOwnerDocument();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
{
return CCharacterData::getParentNode();
}
- virtual OUString SAL_CALL getPrefix()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getPrefix() override
{
return CCharacterData::getPrefix();
}
- virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
{
return CCharacterData::getPreviousSibling();
}
- virtual sal_Bool SAL_CALL hasAttributes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasAttributes() override
{
return CCharacterData::hasAttributes();
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return CCharacterData::hasChildNodes();
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
{
return CCharacterData::insertBefore(newChild, refChild);
}
- virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
{
return CCharacterData::isSupported(feature, ver);
}
- virtual void SAL_CALL normalize()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL normalize() override
{
CCharacterData::normalize();
}
- 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) override
+ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CCharacterData::removeChild(oldChild);
}
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) override
+ const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
{
return CCharacterData::replaceChild(newChild, oldChild);
}
- virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
{
return CCharacterData::setNodeValue(nodeValue);
}
- virtual void SAL_CALL setPrefix(const OUString& prefix)
- throw (css::uno::RuntimeException, css::xml::dom::DOMException, std::exception) override
+ virtual void SAL_CALL setPrefix(const OUString& prefix) override
{
return CCharacterData::setPrefix(prefix);
}