diff options
Diffstat (limited to 'unoxml/source/dom')
44 files changed, 700 insertions, 700 deletions
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx index 4eaa92216056..44c6d1e2726f 100644 --- a/unoxml/source/dom/attr.cxx +++ b/unoxml/source/dom/attr.cxx @@ -74,17 +74,17 @@ namespace DOM } OUString SAL_CALL CAttr::getNodeName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return getName(); } OUString SAL_CALL CAttr::getNodeValue() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return getValue(); } OUString SAL_CALL CAttr::getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return getName(); } @@ -93,7 +93,7 @@ namespace DOM /** Returns the name of this attribute. */ - OUString SAL_CALL CAttr::getName() throw (RuntimeException) + OUString SAL_CALL CAttr::getName() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -110,7 +110,7 @@ namespace DOM attribute is not in use. */ Reference< XElement > SAL_CALL CAttr::getOwnerElement() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -132,7 +132,7 @@ namespace DOM document, this is true; otherwise, it is false. */ sal_Bool SAL_CALL CAttr::getSpecified() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // FIXME if this DOM implemenatation supported DTDs it would need // to check that this attribute is not default or something @@ -143,7 +143,7 @@ namespace DOM On retrieval, the value of the attribute is returned as a string. */ OUString SAL_CALL CAttr::getValue() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -164,7 +164,7 @@ namespace DOM Sets the value of the attribute from a string. */ void SAL_CALL CAttr::setValue(const OUString& value) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -212,7 +212,7 @@ namespace DOM } void SAL_CALL CAttr::setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -228,7 +228,7 @@ namespace DOM } OUString SAL_CALL CAttr::getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -245,7 +245,7 @@ namespace DOM } OUString SAL_CALL CAttr::getNamespaceURI() - throw (RuntimeException) + 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 c00c01f54902..e2eb3dedd491 100644 --- a/unoxml/source/dom/attr.hxx +++ b/unoxml/source/dom/attr.hxx @@ -64,144 +64,144 @@ namespace DOM /** Returns the name of this attribute. */ - virtual OUString SAL_CALL getName() throw (RuntimeException); + virtual OUString SAL_CALL getName() throw (RuntimeException, std::exception); /** The Element node this attribute is attached to or null if this attribute is not in use. */ - virtual Reference< XElement > SAL_CALL getOwnerElement() throw (RuntimeException); + virtual Reference< XElement > SAL_CALL getOwnerElement() throw (RuntimeException, std::exception); /** If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false. */ - virtual sal_Bool SAL_CALL getSpecified()throw (RuntimeException); + virtual sal_Bool SAL_CALL getSpecified()throw (RuntimeException, std::exception); /** On retrieval, the value of the attribute is returned as a string. */ - virtual OUString SAL_CALL getValue() throw (RuntimeException); + virtual OUString SAL_CALL getValue() throw (RuntimeException, std::exception); /** Sets the value of the attribute from a string. */ - virtual void SAL_CALL setValue(const OUString& value) throw (RuntimeException, DOMException); + virtual void SAL_CALL setValue(const OUString& value) throw (RuntimeException, DOMException, std::exception); // resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getLocalName() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return setValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); }; } diff --git a/unoxml/source/dom/attributesmap.cxx b/unoxml/source/dom/attributesmap.cxx index 9c93f24a2d20..4514225ad499 100644 --- a/unoxml/source/dom/attributesmap.cxx +++ b/unoxml/source/dom/attributesmap.cxx @@ -37,7 +37,7 @@ namespace DOM /** The number of nodes in this map. */ - sal_Int32 SAL_CALL CAttributesMap::getLength() throw (RuntimeException) + sal_Int32 SAL_CALL CAttributesMap::getLength() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -59,7 +59,7 @@ namespace DOM Retrieves a node specified by local name */ Reference< XNode > SAL_CALL - CAttributesMap::getNamedItem(OUString const& name) throw (RuntimeException) + CAttributesMap::getNamedItem(OUString const& name) throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -91,7 +91,7 @@ namespace DOM Reference< XNode > SAL_CALL CAttributesMap::getNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -126,7 +126,7 @@ namespace DOM Returns the indexth item in the map. */ Reference< XNode > SAL_CALL - CAttributesMap::item(sal_Int32 index) throw (RuntimeException) + CAttributesMap::item(sal_Int32 index) throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -157,7 +157,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CAttributesMap::removeNamedItem(OUString const& name) - throw (RuntimeException) + throw (RuntimeException, std::exception) { // no MutexGuard needed: m_pElement is const Reference< XAttr > const xAttr(m_pElement->getAttributeNode(name)); @@ -178,7 +178,7 @@ namespace DOM Reference< XNode > SAL_CALL CAttributesMap::removeNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { // no MutexGuard needed: m_pElement is const Reference< XAttr > const xAttr( @@ -199,7 +199,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CAttributesMap::setNamedItem(Reference< XNode > const& xNode) - throw (RuntimeException) + throw (RuntimeException, std::exception) { Reference< XAttr > const xAttr(xNode, UNO_QUERY); if (!xNode.is()) { @@ -219,7 +219,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CAttributesMap::setNamedItemNS(Reference< XNode > const& xNode) - throw (RuntimeException) + throw (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 3508524b2c2c..d481874a0d38 100644 --- a/unoxml/source/dom/attributesmap.hxx +++ b/unoxml/source/dom/attributesmap.hxx @@ -51,54 +51,54 @@ namespace DOM /** The number of nodes in this map. */ - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException); + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception); /** Retrieves a node specified by local name */ virtual Reference< XNode > SAL_CALL getNamedItem(OUString const& name) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Retrieves a node specified by local name and namespace URI. */ virtual Reference< XNode > SAL_CALL getNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns the indexth item in the map. */ virtual Reference< XNode > SAL_CALL item(sal_Int32 index) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Removes a node specified by name. */ virtual Reference< XNode > SAL_CALL removeNamedItem(OUString const& name) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** // Removes a node specified by local name and namespace URI. */ virtual Reference< XNode > SAL_CALL removeNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** // Adds a node using its nodeName attribute. */ virtual Reference< XNode > SAL_CALL setNamedItem(Reference< XNode > const& arg) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Adds a node using its namespaceURI and localName. */ virtual Reference< XNode > SAL_CALL setNamedItemNS(Reference< XNode > const& arg) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; } diff --git a/unoxml/source/dom/cdatasection.cxx b/unoxml/source/dom/cdatasection.cxx index 6ea146fb6ad9..49ffabdaf6be 100644 --- a/unoxml/source/dom/cdatasection.cxx +++ b/unoxml/source/dom/cdatasection.cxx @@ -42,12 +42,12 @@ namespace DOM } } - OUString SAL_CALL CCDATASection::getNodeName()throw (RuntimeException) + OUString SAL_CALL CCDATASection::getNodeName()throw (RuntimeException, std::exception) { return OUString( "#cdata-section" ); } - OUString SAL_CALL CCDATASection::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CCDATASection::getNodeValue() throw (RuntimeException, std::exception) { return CCharacterData::getData(); } diff --git a/unoxml/source/dom/cdatasection.hxx b/unoxml/source/dom/cdatasection.hxx index efd78789ad7a..de264c9556fc 100644 --- a/unoxml/source/dom/cdatasection.hxx +++ b/unoxml/source/dom/cdatasection.hxx @@ -48,47 +48,47 @@ namespace DOM virtual void saxify(const Reference< XDocumentHandler >& i_xHandler); virtual Reference< XText > SAL_CALL splitText(sal_Int32 offset) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CText::splitText(offset); } // --- delegations for XCharacterData virtual void SAL_CALL appendData(const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::appendData(arg); } virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::deleteData(offset, count); } - virtual OUString SAL_CALL getData() throw (RuntimeException) + virtual OUString SAL_CALL getData() throw (RuntimeException, std::exception) { return CCharacterData::getData(); } - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException) + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception) { return CCharacterData::getLength(); } virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::insertData(offset, arg); } virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::replaceData(offset, count, arg); } virtual void SAL_CALL setData(const OUString& data) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::setData(data); } virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::subStringData(offset, count); } @@ -96,125 +96,125 @@ namespace DOM // --- overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CText::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/characterdata.cxx b/unoxml/source/dom/characterdata.cxx index 2282171e438b..648aaffdbac6 100644 --- a/unoxml/source/dom/characterdata.cxx +++ b/unoxml/source/dom/characterdata.cxx @@ -56,7 +56,7 @@ 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) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -75,7 +75,7 @@ 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) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -109,7 +109,7 @@ namespace DOM /** Return the character data of the node that implements this interface. */ - OUString SAL_CALL CCharacterData::getData() throw (RuntimeException) + OUString SAL_CALL CCharacterData::getData() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -129,7 +129,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) + sal_Int32 SAL_CALL CCharacterData::getLength() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -146,7 +146,7 @@ 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) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -181,7 +181,7 @@ namespace DOM with the specified string. */ void SAL_CALL CCharacterData::replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -216,7 +216,7 @@ namespace DOM Set the character data of the node that implements this interface. */ void SAL_CALL CCharacterData::setData(const OUString& data) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -235,7 +235,7 @@ namespace DOM Extracts a range of data from the node. */ OUString SAL_CALL CCharacterData::subStringData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException) + 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 3ce25ebd67d7..b1924297f76a 100644 --- a/unoxml/source/dom/characterdata.hxx +++ b/unoxml/source/dom/characterdata.hxx @@ -57,175 +57,175 @@ namespace DOM Append the string to the end of the character data of the node. */ virtual void SAL_CALL appendData(const OUString& arg) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Remove a range of 16-bit units from the node. */ virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Return the character data of the node that implements this interface. */ - virtual OUString SAL_CALL getData() throw (RuntimeException); + virtual OUString SAL_CALL getData() throw (RuntimeException, std::exception); /** The number of 16-bit units that are available through data and the substringData method below. */ - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException); + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception); /** Insert a string at the specified 16-bit unit offset. */ virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** 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 (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Set the character data of the node that implements this interface. */ virtual void SAL_CALL setData(const OUString& data) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Extracts a range of data from the node. */ virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); // --- delegation for XNode base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual OUString SAL_CALL getNodeName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeName(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return getData(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return setData(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/childlist.cxx b/unoxml/source/dom/childlist.cxx index f98a6f5264d7..9f4235052229 100644 --- a/unoxml/source/dom/childlist.cxx +++ b/unoxml/source/dom/childlist.cxx @@ -37,7 +37,7 @@ namespace DOM /** The number of nodes in the list. */ - sal_Int32 SAL_CALL CChildList::getLength() throw (RuntimeException) + sal_Int32 SAL_CALL CChildList::getLength() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -61,7 +61,7 @@ namespace DOM Returns the indexth item in the collection. */ Reference< XNode > SAL_CALL CChildList::item(sal_Int32 index) - throw (RuntimeException) + 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 a0d7162323b6..ff1bd8a208ab 100644 --- a/unoxml/source/dom/childlist.hxx +++ b/unoxml/source/dom/childlist.hxx @@ -51,12 +51,12 @@ namespace DOM /** The number of nodes in the list. */ - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException); + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception); /** Returns the indexth item in the collection. */ virtual Reference< XNode > SAL_CALL item(sal_Int32 index) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; } diff --git a/unoxml/source/dom/comment.cxx b/unoxml/source/dom/comment.cxx index 3c1fe101013c..325e9d10eb48 100644 --- a/unoxml/source/dom/comment.cxx +++ b/unoxml/source/dom/comment.cxx @@ -39,12 +39,12 @@ namespace DOM } } - OUString SAL_CALL CComment::getNodeName()throw (RuntimeException) + OUString SAL_CALL CComment::getNodeName()throw (RuntimeException, std::exception) { return OUString("#comment"); } - OUString SAL_CALL CComment::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CComment::getNodeValue() throw (RuntimeException, std::exception) { return CCharacterData::getData(); } diff --git a/unoxml/source/dom/comment.hxx b/unoxml/source/dom/comment.hxx index fefabdcb4c10..8958ee7abbb5 100644 --- a/unoxml/source/dom/comment.hxx +++ b/unoxml/source/dom/comment.hxx @@ -50,40 +50,40 @@ namespace DOM // --- delegations for XCharacterData virtual void SAL_CALL appendData(const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::appendData(arg); } virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::deleteData(offset, count); } - virtual OUString SAL_CALL getData() throw (RuntimeException) + virtual OUString SAL_CALL getData() throw (RuntimeException, std::exception) { return CCharacterData::getData(); } - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException) + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception) { return CCharacterData::getLength(); } virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::insertData(offset, arg); } virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::replaceData(offset, count, arg); } virtual void SAL_CALL setData(const OUString& data) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::setData(data); } virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::subStringData(offset, count); } @@ -91,125 +91,125 @@ namespace DOM // --- overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CCharacterData::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::setPrefix(prefix); } diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx index ff0306c42660..dbfdf455b7b4 100644 --- a/unoxml/source/dom/document.cxx +++ b/unoxml/source/dom/document.cxx @@ -316,7 +316,7 @@ namespace DOM void SAL_CALL CDocument::addListener(const Reference< XStreamListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -324,7 +324,7 @@ namespace DOM } void SAL_CALL CDocument::removeListener(const Reference< XStreamListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -361,7 +361,7 @@ namespace DOM } // extern "C" void SAL_CALL CDocument::start() - throw (RuntimeException) + throw (RuntimeException, std::exception) { listenerlist_t streamListeners; { @@ -402,20 +402,20 @@ namespace DOM } void SAL_CALL CDocument::terminate() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // not supported } void SAL_CALL CDocument::setOutputStream( const Reference< XOutputStream >& aStream ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); m_rOutputStream = aStream; } - Reference< XOutputStream > SAL_CALL CDocument::getOutputStream() throw (RuntimeException) + Reference< XOutputStream > SAL_CALL CDocument::getOutputStream() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -424,7 +424,7 @@ namespace DOM // Creates an Attr of the given name. Reference< XAttr > SAL_CALL CDocument::createAttribute(const OUString& name) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -441,7 +441,7 @@ 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) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -476,7 +476,7 @@ namespace DOM // Creates a CDATASection node whose value is the specified string. Reference< XCDATASection > SAL_CALL CDocument::createCDATASection(const OUString& data) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -494,7 +494,7 @@ namespace DOM // Creates a Comment node given the specified string. Reference< XComment > SAL_CALL CDocument::createComment(const OUString& data) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -509,7 +509,7 @@ namespace DOM //Creates an empty DocumentFragment object. Reference< XDocumentFragment > SAL_CALL CDocument::createDocumentFragment() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -522,7 +522,7 @@ namespace DOM // Creates an element of the type specified. Reference< XElement > SAL_CALL CDocument::createElement(const OUString& tagName) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -538,7 +538,7 @@ 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) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -574,7 +574,7 @@ namespace DOM //Creates an EntityReference object. Reference< XEntityReference > SAL_CALL CDocument::createEntityReference(const OUString& name) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -591,7 +591,7 @@ namespace DOM // data strings. Reference< XProcessingInstruction > SAL_CALL CDocument::createProcessingInstruction( const OUString& target, const OUString& data) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -609,7 +609,7 @@ namespace DOM // Creates a Text node given the specified string. Reference< XText > SAL_CALL CDocument::createTextNode(const OUString& data) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -625,7 +625,7 @@ namespace DOM // The Document Type Declaration (see DocumentType) associated with this // document. Reference< XDocumentType > SAL_CALL CDocument::getDoctype() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -639,7 +639,7 @@ 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) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -680,7 +680,7 @@ namespace DOM // Returns the Element whose ID is given by elementId. Reference< XElement > SAL_CALL CDocument::getElementById(const OUString& elementId) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -699,7 +699,7 @@ namespace DOM Reference< XNodeList > SAL_CALL CDocument::getElementsByTagName(OUString const& rTagname) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -710,7 +710,7 @@ namespace DOM Reference< XNodeList > SAL_CALL CDocument::getElementsByTagNameNS( OUString const& rNamespaceURI, OUString const& rLocalName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -721,7 +721,7 @@ namespace DOM } Reference< XDOMImplementation > SAL_CALL CDocument::getImplementation() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // does not need mutex currently return Reference< XDOMImplementation >(CDOMImplementation::get()); @@ -906,7 +906,7 @@ namespace DOM Reference< XNode > SAL_CALL CDocument::importNode( Reference< XNode > const& xImportedNode, sal_Bool deep) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { if (!xImportedNode.is()) { throw RuntimeException(); } @@ -935,20 +935,20 @@ namespace DOM return xNode; } - OUString SAL_CALL CDocument::getNodeName()throw (RuntimeException) + OUString SAL_CALL CDocument::getNodeName()throw (RuntimeException, std::exception) { // does not need mutex currently return OUString("#document"); } - OUString SAL_CALL CDocument::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CDocument::getNodeValue() throw (RuntimeException, std::exception) { // does not need mutex currently return OUString(); } Reference< XNode > SAL_CALL CDocument::cloneNode(sal_Bool bDeep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -963,7 +963,7 @@ namespace DOM return xRet; } - Reference< XEvent > SAL_CALL CDocument::createEvent(const OUString& aType) throw (RuntimeException) + Reference< XEvent > SAL_CALL CDocument::createEvent(const OUString& aType) throw (RuntimeException, std::exception) { // does not need mutex currently events::CEvent *pEvent = 0; @@ -992,7 +992,7 @@ namespace DOM void SAL_CALL CDocument::serialize( const Reference< XDocumentHandler >& i_xHandler, const Sequence< beans::StringPair >& i_rNamespaces) - throw (RuntimeException, SAXException) + throw (RuntimeException, SAXException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -1021,7 +1021,7 @@ 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) + 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 9225a8447e0a..18853dfaf7fa 100644 --- a/unoxml/source/dom/document.hxx +++ b/unoxml/source/dom/document.hxx @@ -128,49 +128,49 @@ namespace DOM Creates an Attr of the given name. */ virtual Reference< XAttr > SAL_CALL createAttribute(const OUString& name) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Creates an attribute of the given qualified name and namespace URI. */ virtual Reference< XAttr > SAL_CALL createAttributeNS(const OUString& namespaceURI, const OUString& qualifiedName) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Creates a CDATASection node whose value is the specified string. */ virtual Reference< XCDATASection > SAL_CALL createCDATASection(const OUString& data) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Creates a Comment node given the specified string. */ virtual Reference< XComment > SAL_CALL createComment(const OUString& data) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Creates an empty DocumentFragment object. */ virtual Reference< XDocumentFragment > SAL_CALL createDocumentFragment() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Creates an element of the type specified. */ virtual Reference< XElement > SAL_CALL createElement(const OUString& tagName) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Creates an element of the given qualified name and namespace URI. */ virtual Reference< XElement > SAL_CALL createElementNS(const OUString& namespaceURI, const OUString& qualifiedName) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Creates an EntityReference object. */ virtual Reference< XEntityReference > SAL_CALL createEntityReference(const OUString& name) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Creates a ProcessingInstruction node given the specified name and @@ -178,33 +178,33 @@ namespace DOM */ virtual Reference< XProcessingInstruction > SAL_CALL createProcessingInstruction( const OUString& target, const OUString& data) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Creates a Text node given the specified string. */ virtual Reference< XText > SAL_CALL createTextNode(const OUString& data) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The Document Type Declaration (see DocumentType) associated with this document. */ virtual Reference< XDocumentType > SAL_CALL getDoctype() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** This is a convenience attribute that allows direct access to the child node that is the root element of the document. */ virtual Reference< XElement > SAL_CALL getDocumentElement() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns the Element whose ID is given by elementId. */ virtual Reference< XElement > SAL_CALL getElementById(const OUString& elementId) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns a NodeList of all the Elements with a given tag name in the @@ -212,7 +212,7 @@ namespace DOM Document tree. */ virtual Reference< XNodeList > SAL_CALL getElementsByTagName(const OUString& tagname) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns a NodeList of all the Elements with a given local name and @@ -220,153 +220,153 @@ namespace DOM traversal of the Document tree. */ virtual Reference< XNodeList > SAL_CALL getElementsByTagNameNS(const OUString& namespaceURI, const OUString& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The DOMImplementation object that handles this document. */ virtual Reference< XDOMImplementation > SAL_CALL getImplementation() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Imports a node from another document to this document. */ virtual Reference< XNode > SAL_CALL importNode(const Reference< XNode >& importedNode, sal_Bool deep) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); // XDocumentEvent - virtual Reference< XEvent > SAL_CALL createEvent(const OUString& eventType) throw (RuntimeException); + virtual Reference< XEvent > SAL_CALL createEvent(const OUString& eventType) throw (RuntimeException, std::exception); // XActiveDataControl, // see http://api.libreoffice.org/docs/common/ref/com/sun/star/io/XActiveDataControl.html - virtual void SAL_CALL addListener(const Reference< XStreamListener >& aListener ) throw (RuntimeException); - virtual void SAL_CALL removeListener(const Reference< XStreamListener >& aListener ) throw (RuntimeException); - virtual void SAL_CALL start() throw (RuntimeException); - virtual void SAL_CALL terminate() throw (RuntimeException); + virtual void SAL_CALL addListener(const Reference< XStreamListener >& aListener ) throw (RuntimeException, std::exception); + virtual void SAL_CALL removeListener(const Reference< XStreamListener >& aListener ) throw (RuntimeException, std::exception); + virtual void SAL_CALL start() throw (RuntimeException, std::exception); + virtual void SAL_CALL terminate() throw (RuntimeException, std::exception); // XActiveDataSource // see http://api.libreoffice.org/docs/common/ref/com/sun/star/io/XActiveDataSource.html - virtual void SAL_CALL setOutputStream( const Reference< XOutputStream >& aStream ) throw (RuntimeException); - virtual Reference< XOutputStream > SAL_CALL getOutputStream() throw (RuntimeException); + virtual void SAL_CALL setOutputStream( const Reference< XOutputStream >& aStream ) throw (RuntimeException, std::exception); + virtual Reference< XOutputStream > SAL_CALL getOutputStream() throw (RuntimeException, std::exception); // ---- resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } @@ -375,14 +375,14 @@ namespace DOM virtual void SAL_CALL serialize( const Reference< XDocumentHandler >& i_xHandler, const Sequence< beans::StringPair >& i_rNamespaces) - throw (RuntimeException, SAXException); + throw (RuntimeException, SAXException, std::exception); // ::com::sun::star::xml::sax::XFastSAXSerializable virtual void SAL_CALL fastSerialize( const Reference< XFastDocumentHandler >& handler, const Reference< XFastTokenHandler >& tokenHandler, const Sequence< beans::StringPair >& i_rNamespaces, const Sequence< beans::Pair< OUString, sal_Int32 > >& namespaces ) - throw (SAXException, RuntimeException); + throw (SAXException, RuntimeException, std::exception); }; } diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index eef5e387252c..d99836f649d8 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -59,7 +59,7 @@ namespace DOM { public: virtual InputSource SAL_CALL resolveEntity( const OUString& sPublicId, const OUString& sSystemId ) - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { InputSource is; is.sPublicId = sPublicId; @@ -119,44 +119,44 @@ namespace DOM } Sequence< OUString > SAL_CALL CDocumentBuilder::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CDocumentBuilder::_getSupportedServiceNames(); } OUString SAL_CALL CDocumentBuilder::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CDocumentBuilder::_getImplementationName(); } sal_Bool SAL_CALL CDocumentBuilder::supportsService(const OUString& aServiceName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, aServiceName); } Reference< XDOMImplementation > SAL_CALL CDocumentBuilder::getDOMImplementation() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return Reference< XDOMImplementation >(); } sal_Bool SAL_CALL CDocumentBuilder::isNamespaceAware() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return sal_True; } sal_Bool SAL_CALL CDocumentBuilder::isValidating() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return sal_False; } Reference< XDocument > SAL_CALL CDocumentBuilder::newDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -305,7 +305,7 @@ namespace DOM } Reference< XDocument > SAL_CALL CDocumentBuilder::parse(const Reference< XInputStream >& is) - throw (RuntimeException, SAXParseException, IOException) + throw (RuntimeException, SAXParseException, IOException, std::exception) { if (!is.is()) { throw RuntimeException(); @@ -348,7 +348,7 @@ namespace DOM } Reference< XDocument > SAL_CALL CDocumentBuilder::parseURI(const OUString& sUri) - throw (RuntimeException, SAXParseException, IOException) + throw (RuntimeException, SAXParseException, IOException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -372,7 +372,7 @@ namespace DOM void SAL_CALL CDocumentBuilder::setEntityResolver(Reference< XEntityResolver > const& xER) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_Mutex); @@ -389,7 +389,7 @@ namespace DOM void SAL_CALL CDocumentBuilder::setErrorHandler(Reference< XErrorHandler > const& xEH) - throw (RuntimeException) + 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 a44db313f7b4..eb810ffd5752 100644 --- a/unoxml/source/dom/documentbuilder.hxx +++ b/unoxml/source/dom/documentbuilder.hxx @@ -86,59 +86,59 @@ namespace DOM // XServiceInfo virtual OUString SAL_CALL getImplementationName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames () - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Obtain an instance of a DOMImplementation object. */ virtual Reference< XDOMImplementation > SAL_CALL getDOMImplementation() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Indicates whether or not this parser is configured to understand namespaces. */ virtual sal_Bool SAL_CALL isNamespaceAware() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Indicates whether or not this parser is configured to validate XML documents. */ virtual sal_Bool SAL_CALL isValidating() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Obtain a new instance of a DOM Document object to build a DOM tree with. */ virtual Reference< XDocument > SAL_CALL newDocument() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Parse the content of the given InputStream as an XML document and return a new DOM Document object. */ virtual Reference< XDocument > SAL_CALL parse(const Reference< XInputStream >& is) - throw (RuntimeException, SAXParseException, IOException); + throw (RuntimeException, SAXParseException, IOException, std::exception); /** Parse the content of the given URI as an XML document and return a new DOM Document object. */ virtual Reference< XDocument > SAL_CALL parseURI(const OUString& uri) - throw (RuntimeException, SAXParseException, IOException); + throw (RuntimeException, SAXParseException, IOException, std::exception); /** Specify the EntityResolver to be used to resolve entities present in the XML document to be parsed. */ virtual void SAL_CALL setEntityResolver(const Reference< XEntityResolver >& er) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Reference< XEntityResolver > SAL_CALL getEntityResolver() throw (RuntimeException); @@ -149,7 +149,7 @@ namespace DOM the XML document to be parsed. */ virtual void SAL_CALL setErrorHandler(const Reference< XErrorHandler >& eh) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; } diff --git a/unoxml/source/dom/documentfragment.cxx b/unoxml/source/dom/documentfragment.cxx index 5c476510073f..e885cb52ed6d 100644 --- a/unoxml/source/dom/documentfragment.cxx +++ b/unoxml/source/dom/documentfragment.cxx @@ -44,11 +44,11 @@ namespace DOM } } - OUString SAL_CALL CDocumentFragment::getNodeName()throw (RuntimeException) + OUString SAL_CALL CDocumentFragment::getNodeName()throw (RuntimeException, std::exception) { return OUString("#document-fragment"); } - OUString SAL_CALL CDocumentFragment::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CDocumentFragment::getNodeValue() throw (RuntimeException, std::exception) { return OUString(); } diff --git a/unoxml/source/dom/documentfragment.hxx b/unoxml/source/dom/documentfragment.hxx index e3f9d9f0563b..72c42dccf5f4 100644 --- a/unoxml/source/dom/documentfragment.hxx +++ b/unoxml/source/dom/documentfragment.hxx @@ -51,124 +51,124 @@ namespace DOM // ---- resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/documenttype.cxx b/unoxml/source/dom/documenttype.cxx index 30a1e054c1ed..fcdc0d4ded3b 100644 --- a/unoxml/source/dom/documenttype.cxx +++ b/unoxml/source/dom/documenttype.cxx @@ -41,7 +41,7 @@ namespace DOM A NamedNodeMap containing the general entities, both external and internal, declared in the DTD. */ - Reference< XNamedNodeMap > SAL_CALL CDocumentType::getEntities() throw (RuntimeException) + Reference< XNamedNodeMap > SAL_CALL CDocumentType::getEntities() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -56,7 +56,7 @@ namespace DOM /** The internal subset as a string, or null if there is none. */ - OUString SAL_CALL CDocumentType::getInternalSubset() throw (RuntimeException) + OUString SAL_CALL CDocumentType::getInternalSubset() throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CDocumentType::getInternalSubset: not implemented (#i113683#)"); @@ -67,7 +67,7 @@ namespace DOM The name of DTD; i.e., the name immediately following the DOCTYPE keyword. */ - OUString SAL_CALL CDocumentType::getName() throw (RuntimeException) + OUString SAL_CALL CDocumentType::getName() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -82,7 +82,7 @@ namespace DOM /** A NamedNodeMap containing the notations declared in the DTD. */ - Reference< XNamedNodeMap > SAL_CALL CDocumentType::getNotations() throw (RuntimeException) + Reference< XNamedNodeMap > SAL_CALL CDocumentType::getNotations() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -97,7 +97,7 @@ namespace DOM /** The public identifier of the external subset. */ - OUString SAL_CALL CDocumentType::getPublicId() throw (RuntimeException) + OUString SAL_CALL CDocumentType::getPublicId() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -112,7 +112,7 @@ namespace DOM /** The system identifier of the external subset. */ - OUString SAL_CALL CDocumentType::getSystemId() throw (RuntimeException) + OUString SAL_CALL CDocumentType::getSystemId() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -124,12 +124,12 @@ namespace DOM return aId; } - OUString SAL_CALL CDocumentType::getNodeName()throw (RuntimeException) + OUString SAL_CALL CDocumentType::getNodeName()throw (RuntimeException, std::exception) { return getName(); } - OUString SAL_CALL CDocumentType::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CDocumentType::getNodeValue() throw (RuntimeException, std::exception) { return OUString(); } diff --git a/unoxml/source/dom/documenttype.hxx b/unoxml/source/dom/documenttype.hxx index 559da965b961..025029821365 100644 --- a/unoxml/source/dom/documenttype.hxx +++ b/unoxml/source/dom/documenttype.hxx @@ -58,155 +58,155 @@ namespace DOM A NamedNodeMap containing the general entities, both external and internal, declared in the DTD. */ - virtual Reference< XNamedNodeMap > SAL_CALL getEntities() throw (RuntimeException); + virtual Reference< XNamedNodeMap > SAL_CALL getEntities() throw (RuntimeException, std::exception); /** The internal subset as a string, or null if there is none. */ - virtual OUString SAL_CALL getInternalSubset() throw (RuntimeException); + virtual OUString SAL_CALL getInternalSubset() throw (RuntimeException, std::exception); /** The name of DTD; i.e., the name immediately following the DOCTYPE keyword. */ - virtual OUString SAL_CALL getName() throw (RuntimeException); + virtual OUString SAL_CALL getName() throw (RuntimeException, std::exception); /** A NamedNodeMap containing the notations declared in the DTD. */ - virtual Reference< XNamedNodeMap > SAL_CALL getNotations() throw (RuntimeException); + virtual Reference< XNamedNodeMap > SAL_CALL getNotations() throw (RuntimeException, std::exception); /** The public identifier of the external subset. */ - virtual OUString SAL_CALL getPublicId() throw (RuntimeException); + virtual OUString SAL_CALL getPublicId() throw (RuntimeException, std::exception); /** The system identifier of the external subset. */ - virtual OUString SAL_CALL getSystemId() throw (RuntimeException); + virtual OUString SAL_CALL getSystemId() throw (RuntimeException, std::exception); // ---- resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/domimplementation.cxx b/unoxml/source/dom/domimplementation.cxx index 8b09e487d4ce..677e13cf2c50 100644 --- a/unoxml/source/dom/domimplementation.cxx +++ b/unoxml/source/dom/domimplementation.cxx @@ -48,7 +48,7 @@ namespace DOM OUString const& /*rNamespaceURI*/, OUString const& /*rQualifiedName*/, Reference< XDocumentType > const& /*xDoctype*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CDOMImplementation::createDocument: not implemented (#i113683#)"); @@ -61,7 +61,7 @@ namespace DOM Reference< XDocumentType > SAL_CALL CDOMImplementation::createDocumentType( OUString const& /*rQualifiedName*/, OUString const& /*rPublicId*/, OUString const& /*rSystemId*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CDOMImplementation::createDocumentType: " "not implemented (#i113683#)"); @@ -73,7 +73,7 @@ namespace DOM */ sal_Bool SAL_CALL CDOMImplementation::hasFeature(OUString const& /*feature*/, OUString const& /*ver*/) - throw (RuntimeException) + 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 08fec83b7aeb..ded909a2bbd0 100644 --- a/unoxml/source/dom/domimplementation.hxx +++ b/unoxml/source/dom/domimplementation.hxx @@ -50,19 +50,19 @@ namespace DOM Creates a DOM Document object of the specified type with its document element. */ virtual Reference <XDocument > SAL_CALL createDocument(const OUString& namespaceURI, const OUString& qualifiedName, const Reference< XDocumentType >& doctype) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Creates an empty DocumentType node. */ virtual Reference< XDocumentType > SAL_CALL createDocumentType(const OUString& qualifiedName, const OUString& publicId, const OUString& systemId) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Test if the DOM implementation implements a specific feature. */ virtual sal_Bool SAL_CALL hasFeature(const OUString& feature, const OUString& ver) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; } #endif diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx index 06774446792b..c6171d731d51 100644 --- a/unoxml/source/dom/element.cxx +++ b/unoxml/source/dom/element.cxx @@ -226,7 +226,7 @@ namespace DOM return empty string if attribute is not set */ OUString SAL_CALL CElement::getAttribute(OUString const& name) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -249,7 +249,7 @@ namespace DOM Retrieves an attribute node by name. */ Reference< XAttr > SAL_CALL CElement::getAttributeNode(OUString const& name) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -275,7 +275,7 @@ namespace DOM */ Reference< XAttr > SAL_CALL CElement::getAttributeNodeNS( const OUString& namespaceURI, const OUString& localName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -306,7 +306,7 @@ namespace DOM OUString SAL_CALL CElement::getAttributeNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -337,7 +337,7 @@ namespace DOM */ Reference< XNodeList > SAL_CALL CElement::getElementsByTagName(OUString const& rLocalName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -354,7 +354,7 @@ namespace DOM Reference< XNodeList > SAL_CALL CElement::getElementsByTagNameNS( OUString const& rNamespaceURI, OUString const& rLocalName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -367,7 +367,7 @@ namespace DOM The name of the element. */ OUString SAL_CALL CElement::getTagName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -385,7 +385,7 @@ namespace DOM element or has a default value, false otherwise. */ sal_Bool SAL_CALL CElement::hasAttribute(OUString const& name) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -400,7 +400,7 @@ namespace DOM */ sal_Bool SAL_CALL CElement::hasAttributeNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -415,7 +415,7 @@ namespace DOM Removes an attribute by name. */ void SAL_CALL CElement::removeAttribute(OUString const& name) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -440,7 +440,7 @@ namespace DOM */ void SAL_CALL CElement::removeAttributeNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -470,7 +470,7 @@ namespace DOM */ Reference< XAttr > SAL_CALL CElement::removeAttributeNode(Reference< XAttr > const& oldAttr) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -589,7 +589,7 @@ namespace DOM Reference< XAttr > CElement::setAttributeNode(const Reference< XAttr >& newAttr) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return setAttributeNode_Impl_Lock(newAttr, false); } @@ -599,7 +599,7 @@ namespace DOM */ Reference< XAttr > CElement::setAttributeNodeNS(const Reference< XAttr >& newAttr) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return setAttributeNode_Impl_Lock(newAttr, true); } @@ -609,7 +609,7 @@ namespace DOM */ void SAL_CALL CElement::setAttribute(OUString const& name, OUString const& value) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -655,7 +655,7 @@ namespace DOM void SAL_CALL CElement::setAttributeNS(OUString const& namespaceURI, OUString const& qualifiedName, OUString const& value) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { if (namespaceURI.isEmpty()) throw RuntimeException(); @@ -732,7 +732,7 @@ namespace DOM } Reference< XNamedNodeMap > SAL_CALL - CElement::getAttributes() throw (RuntimeException) + CElement::getAttributes() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -741,12 +741,12 @@ namespace DOM return xMap; } - OUString SAL_CALL CElement::getNodeName()throw (RuntimeException) + OUString SAL_CALL CElement::getNodeName()throw (RuntimeException, std::exception) { return getLocalName(); } - OUString SAL_CALL CElement::getLocalName()throw (RuntimeException) + OUString SAL_CALL CElement::getLocalName()throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -759,7 +759,7 @@ namespace DOM return aName; } - OUString SAL_CALL CElement::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CElement::getNodeValue() throw (RuntimeException, std::exception) { return OUString(); } diff --git a/unoxml/source/dom/element.hxx b/unoxml/source/dom/element.hxx index 7ca517d9e825..fa55b8bdb681 100644 --- a/unoxml/source/dom/element.hxx +++ b/unoxml/source/dom/element.hxx @@ -63,25 +63,25 @@ namespace DOM Retrieves an attribute value by name. */ virtual OUString SAL_CALL getAttribute(const OUString& name) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Retrieves an attribute node by name. */ virtual Reference< XAttr > SAL_CALL getAttributeNode(const OUString& name) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Retrieves an Attr node by local name and namespace URI. */ virtual Reference< XAttr > SAL_CALL getAttributeNodeNS(const OUString& namespaceURI, const OUString& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Retrieves an attribute value by local name and namespace URI. */ virtual OUString SAL_CALL getAttributeNS(const OUString& namespaceURI, const OUString& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns a NodeList of all descendant Elements with a given tag name, @@ -89,7 +89,7 @@ namespace DOM encountered in a preorder traversal of this Element tree. */ virtual Reference< XNodeList > SAL_CALL getElementsByTagName(const OUString& name) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns a NodeList of all the descendant Elements with a given local @@ -98,70 +98,70 @@ namespace DOM */ virtual Reference< XNodeList > SAL_CALL getElementsByTagNameNS(const OUString& namespaceURI, const OUString& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The name of the element. */ virtual OUString SAL_CALL getTagName() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** 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 (RuntimeException); + throw (RuntimeException, std::exception); /** 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 (RuntimeException); + throw (RuntimeException, std::exception); /** Removes an attribute by name. */ virtual void SAL_CALL removeAttribute(const OUString& name) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Removes the specified attribute node. */ virtual Reference< XAttr > SAL_CALL removeAttributeNode(const Reference< XAttr >& oldAttr) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Removes an attribute by local name and namespace URI. */ virtual void SAL_CALL removeAttributeNS(const OUString& namespaceURI, const OUString& localName) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Adds a new attribute. */ virtual void SAL_CALL setAttribute(const OUString& name, const OUString& value) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Adds a new attribute node. */ virtual Reference< XAttr > SAL_CALL setAttributeNode(const Reference< XAttr >& newAttr) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Adds a new attribute. */ virtual Reference< XAttr > SAL_CALL setAttributeNodeNS(const Reference< XAttr >& newAttr) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Adds a new attribute. */ virtual void SAL_CALL setAttributeNS( const OUString& namespaceURI, const OUString& qualifiedName, const OUString& value) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** sets the element name @@ -171,120 +171,120 @@ namespace DOM // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getLocalName() - throw (RuntimeException); + throw (RuntimeException, std::exception); // resolve uno inheritance problems... // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx index 10c2144d04db..b49579cf7c53 100644 --- a/unoxml/source/dom/elementlist.cxx +++ b/unoxml/source/dom/elementlist.cxx @@ -104,7 +104,7 @@ namespace DOM /** The number of nodes in the list. */ - sal_Int32 SAL_CALL CElementList::getLength() throw (RuntimeException) + sal_Int32 SAL_CALL CElementList::getLength() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -118,7 +118,7 @@ namespace DOM Returns the indexth item in the collection. */ Reference< XNode > SAL_CALL CElementList::item(sal_Int32 index) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (index < 0) throw RuntimeException(); @@ -137,7 +137,7 @@ namespace DOM // tree mutations can change the list void SAL_CALL CElementList::handleEvent(Reference< XEvent > const&) - throw (RuntimeException) + 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 da8d99600c28..b875ca817277 100644 --- a/unoxml/source/dom/elementlist.hxx +++ b/unoxml/source/dom/elementlist.hxx @@ -72,16 +72,16 @@ namespace DOM /** The number of nodes in the list. */ - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException); + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception); /** Returns the indexth item in the collection. */ virtual Reference< XNode > SAL_CALL item(sal_Int32 index) - throw (RuntimeException); + throw (RuntimeException, std::exception); // XEventListener virtual void SAL_CALL handleEvent(const Reference< XEvent >& evt) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; } diff --git a/unoxml/source/dom/entitiesmap.cxx b/unoxml/source/dom/entitiesmap.cxx index 34abbfae3152..88d09fb26cc0 100644 --- a/unoxml/source/dom/entitiesmap.cxx +++ b/unoxml/source/dom/entitiesmap.cxx @@ -32,7 +32,7 @@ namespace DOM /** The number of nodes in this map. */ - sal_Int32 SAL_CALL CEntitiesMap::getLength() throw (RuntimeException) + sal_Int32 SAL_CALL CEntitiesMap::getLength() throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CEntitiesMap::getLength: not implemented (#i113683#)"); @@ -43,7 +43,7 @@ namespace DOM Retrieves a node specified by local name */ Reference< XNode > SAL_CALL - CEntitiesMap::getNamedItem(OUString const& /*name*/) throw (RuntimeException) + CEntitiesMap::getNamedItem(OUString const& /*name*/) throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CEntitiesMap::getNamedItem: not implemented (#i113683#)"); @@ -56,7 +56,7 @@ namespace DOM Reference< XNode > SAL_CALL CEntitiesMap::getNamedItemNS( OUString const& /*namespaceURI*/, OUString const& /*localName*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CEntitiesMap::getNamedItemNS: not implemented (#i113683#)"); @@ -67,7 +67,7 @@ namespace DOM Returns the indexth item in the map. */ Reference< XNode > SAL_CALL - CEntitiesMap::item(sal_Int32 /*index*/) throw (RuntimeException) + CEntitiesMap::item(sal_Int32 /*index*/) throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CEntitiesMap::item: not implemented (#i113683#)"); return Reference< XNode >(); @@ -78,7 +78,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CEntitiesMap::removeNamedItem(OUString const& /*name*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CEntitiesMap::removeNamedItem: not implemented (#i113683#)"); @@ -91,7 +91,7 @@ namespace DOM Reference< XNode > SAL_CALL CEntitiesMap::removeNamedItemNS( OUString const& /*namespaceURI*/, OUString const& /*localName*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CEntitiesMap::removeNamedItemNS: not implemented (#i113683#)"); @@ -103,7 +103,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CEntitiesMap::setNamedItem(Reference< XNode > const& /*arg*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CEntitiesMap::setNamedItem: not implemented (#i113683#)"); @@ -115,7 +115,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CEntitiesMap::setNamedItemNS(Reference< XNode > const& /*arg*/) - throw (RuntimeException) + 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 aa9c47c7ec9b..76e641479218 100644 --- a/unoxml/source/dom/entitiesmap.hxx +++ b/unoxml/source/dom/entitiesmap.hxx @@ -49,53 +49,53 @@ namespace DOM /** The number of nodes in this map. */ - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException); + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception); /** Retrieves a node specified by local name */ virtual Reference< XNode > SAL_CALL - getNamedItem(const OUString& name) throw (RuntimeException); + getNamedItem(const OUString& name) throw (RuntimeException, std::exception); /** Retrieves a node specified by local name and namespace URI. */ virtual Reference< XNode > SAL_CALL getNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns the indexth item in the map. */ virtual Reference< XNode > SAL_CALL - item(sal_Int32 index) throw (RuntimeException); + item(sal_Int32 index) throw (RuntimeException, std::exception); /** Removes a node specified by name. */ virtual Reference< XNode > SAL_CALL - removeNamedItem(OUString const& name) throw (RuntimeException); + removeNamedItem(OUString const& name) throw (RuntimeException, std::exception); /** // Removes a node specified by local name and namespace URI. */ virtual Reference< XNode > SAL_CALL removeNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** // Adds a node using its nodeName attribute. */ virtual Reference< XNode > SAL_CALL setNamedItem(Reference< XNode > const& arg) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Adds a node using its namespaceURI and localName. */ virtual Reference< XNode > SAL_CALL setNamedItemNS(Reference< XNode > const& arg) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; } diff --git a/unoxml/source/dom/entity.cxx b/unoxml/source/dom/entity.cxx index 93d2e44ca868..7a56cfb6bc85 100644 --- a/unoxml/source/dom/entity.cxx +++ b/unoxml/source/dom/entity.cxx @@ -51,7 +51,7 @@ namespace DOM /** For unparsed entities, the name of the notation for the entity. */ - OUString SAL_CALL CEntity::getNotationName() throw (RuntimeException) + OUString SAL_CALL CEntity::getNotationName() throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CEntity::getNotationName: not implemented (#i113683#)"); @@ -61,7 +61,7 @@ namespace DOM /** The public identifier associated with the entity, if specified. */ - OUString SAL_CALL CEntity::getPublicId() throw (RuntimeException) + OUString SAL_CALL CEntity::getPublicId() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -76,7 +76,7 @@ namespace DOM /** The system identifier associated with the entity, if specified. */ - OUString SAL_CALL CEntity::getSystemId() throw (RuntimeException) + OUString SAL_CALL CEntity::getSystemId() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -87,7 +87,7 @@ namespace DOM } return aID; } - OUString SAL_CALL CEntity::getNodeName()throw (RuntimeException) + OUString SAL_CALL CEntity::getNodeName()throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -99,7 +99,7 @@ namespace DOM } return aName; } - OUString SAL_CALL CEntity::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CEntity::getNodeValue() throw (RuntimeException, std::exception) { return OUString(); } diff --git a/unoxml/source/dom/entity.hxx b/unoxml/source/dom/entity.hxx index edc0892449f9..abb2fc7fb86f 100644 --- a/unoxml/source/dom/entity.hxx +++ b/unoxml/source/dom/entity.hxx @@ -57,139 +57,139 @@ namespace DOM /** For unparsed entities, the name of the notation for the entity. */ - virtual OUString SAL_CALL getNotationName() throw (RuntimeException); + virtual OUString SAL_CALL getNotationName() throw (RuntimeException, std::exception); /** The public identifier associated with the entity, if specified. */ - virtual OUString SAL_CALL getPublicId() throw (RuntimeException); + virtual OUString SAL_CALL getPublicId() throw (RuntimeException, std::exception); /** The system identifier associated with the entity, if specified. */ - virtual OUString SAL_CALL getSystemId() throw (RuntimeException); + virtual OUString SAL_CALL getSystemId() throw (RuntimeException, std::exception); // ---- resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/entityreference.cxx b/unoxml/source/dom/entityreference.cxx index e0576d0032c1..e8f2a3fe9b23 100644 --- a/unoxml/source/dom/entityreference.cxx +++ b/unoxml/source/dom/entityreference.cxx @@ -46,7 +46,7 @@ namespace DOM } } - OUString SAL_CALL CEntityReference::getNodeName()throw (RuntimeException) + OUString SAL_CALL CEntityReference::getNodeName()throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -59,7 +59,7 @@ namespace DOM return aName; } - OUString SAL_CALL CEntityReference::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CEntityReference::getNodeValue() throw (RuntimeException, std::exception) { return OUString(); } diff --git a/unoxml/source/dom/entityreference.hxx b/unoxml/source/dom/entityreference.hxx index 6a7e3a718db4..e1e5878ce310 100644 --- a/unoxml/source/dom/entityreference.hxx +++ b/unoxml/source/dom/entityreference.hxx @@ -53,124 +53,124 @@ namespace DOM // ---- resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx index e68cd6afbf6d..ac386c3b5eb0 100644 --- a/unoxml/source/dom/node.cxx +++ b/unoxml/source/dom/node.cxx @@ -288,7 +288,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNode::appendChild( Reference< XNode > const& xNewChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -390,7 +390,7 @@ namespace DOM constructor for nodes. */ Reference< XNode > SAL_CALL CNode::cloneNode(sal_Bool bDeep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -409,7 +409,7 @@ namespace DOM or null otherwise. */ Reference< XNamedNodeMap > SAL_CALL CNode::getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // return empty reference; only element node may override this impl return Reference< XNamedNodeMap>(); @@ -419,7 +419,7 @@ namespace DOM A NodeList that contains all children of this node. */ Reference< XNodeList > SAL_CALL CNode::getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -434,7 +434,7 @@ namespace DOM The first child of this node. */ Reference< XNode > SAL_CALL CNode::getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -450,7 +450,7 @@ namespace DOM The last child of this node. */ Reference< XNode > SAL_CALL CNode::getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -466,7 +466,7 @@ namespace DOM Returns the local part of the qualified name of this node. */ OUString SAL_CALL CNode::getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // see CElement/CAttr return OUString(); @@ -477,7 +477,7 @@ namespace DOM The namespace URI of this node, or null if it is unspecified. */ OUString SAL_CALL CNode::getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -496,7 +496,7 @@ namespace DOM The node immediately following this node. */ Reference< XNode > SAL_CALL CNode::getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -512,7 +512,7 @@ namespace DOM The name of this node, depending on its type; see the table above. */ OUString SAL_CALL CNode::getNodeName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { /* Interface nodeName nodeValue attributes @@ -540,7 +540,7 @@ namespace DOM A code representing the type of the underlying object, as defined above. */ NodeType SAL_CALL CNode::getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -551,7 +551,7 @@ namespace DOM The value of this node, depending on its type; see the table above. */ OUString SAL_CALL CNode::getNodeValue() - throw (RuntimeException) + throw (RuntimeException, std::exception) { OUString aValue; return aValue; @@ -561,7 +561,7 @@ namespace DOM The Document object associated with this node. */ Reference< XDocument > SAL_CALL CNode::getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -576,7 +576,7 @@ namespace DOM The parent of this node. */ Reference< XNode > SAL_CALL CNode::getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -592,7 +592,7 @@ namespace DOM The namespace prefix of this node, or null if it is unspecified. */ OUString SAL_CALL CNode::getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -613,7 +613,7 @@ namespace DOM The node immediately preceding this node. */ Reference< XNode > SAL_CALL CNode::getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -629,7 +629,7 @@ namespace DOM Returns whether this node (if it is an element) has any attributes. */ sal_Bool SAL_CALL CNode::hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -640,7 +640,7 @@ namespace DOM Returns whether this node has any children. */ sal_Bool SAL_CALL CNode::hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -652,7 +652,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNode::insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { if (!newChild.is() || !refChild.is()) { throw RuntimeException(); } @@ -731,7 +731,7 @@ namespace DOM that feature is supported by this node. */ sal_Bool SAL_CALL CNode::isSupported(const OUString& /*feature*/, const OUString& /*ver*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNode::isSupported: not implemented (#i113683#)"); return sal_False; @@ -745,7 +745,7 @@ namespace DOM Text nodes nor empty Text nodes. */ void SAL_CALL CNode::normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { //XXX combine adjacent text nodes and remove empty ones OSL_ENSURE(false, "CNode::normalize: not implemented (#i113683#)"); @@ -757,7 +757,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNode::removeChild(const Reference< XNode >& xOldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { if (!xOldChild.is()) { throw RuntimeException(); @@ -833,7 +833,7 @@ namespace DOM Reference< XNode > SAL_CALL CNode::replaceChild( Reference< XNode > const& xNewChild, Reference< XNode > const& xOldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { if (!xOldChild.is() || !xNewChild.is()) { throw RuntimeException(); @@ -950,7 +950,7 @@ 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) + throw (RuntimeException, DOMException, std::exception) { // use specific node implememntation // if we end up down here, something went wrong @@ -963,7 +963,7 @@ 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) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -989,7 +989,7 @@ namespace DOM void SAL_CALL CNode::addEventListener(const OUString& eventType, const Reference< com::sun::star::xml::dom::events::XEventListener >& listener, sal_Bool useCapture) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -1001,7 +1001,7 @@ namespace DOM void SAL_CALL CNode::removeEventListener(const OUString& eventType, const Reference< com::sun::star::xml::dom::events::XEventListener >& listener, sal_Bool useCapture) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -1011,7 +1011,7 @@ namespace DOM } sal_Bool SAL_CALL CNode::dispatchEvent(const Reference< XEvent >& evt) - throw(RuntimeException, EventException) + throw(RuntimeException, EventException, std::exception) { CDocument * pDocument; events::CEventDispatcher * pDispatcher; @@ -1030,7 +1030,7 @@ namespace DOM ::sal_Int64 SAL_CALL CNode::getSomething(Sequence< ::sal_Int8 > const& rId) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if ((rId.getLength() == 16) && (0 == memcmp(theCNodeUnoTunnelId::get().getSeq().getConstArray(), diff --git a/unoxml/source/dom/node.hxx b/unoxml/source/dom/node.hxx index d3d2696fba74..ab97112bb5a0 100644 --- a/unoxml/source/dom/node.hxx +++ b/unoxml/source/dom/node.hxx @@ -153,127 +153,127 @@ namespace DOM */ virtual Reference< XNode > SAL_CALL appendChild(Reference< XNode > const& xNewChild) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. */ virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise. */ virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** A NodeList that contains all children of this node. */ virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The first child of this node. */ virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The last child of this node. */ virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns the local part of the qualified name of this node. */ virtual OUString SAL_CALL getLocalName() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The namespace URI of this node, or null if it is unspecified. */ virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The node immediately following this node. */ virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The name of this node, depending on its type; see the table above. -- virtual implemented by actual node types */ virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** A code representing the type of the underlying object, as defined above. */ virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The value of this node, depending on its type; see the table above. -- virtual implemented by actual node types */ virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The Document object associated with this node. */ virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The parent of this node. */ virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The namespace prefix of this node, or null if it is unspecified. */ virtual OUString SAL_CALL getPrefix() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** The node immediately preceding this node. */ virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns whether this node (if it is an element) has any attributes. */ virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns whether this node has any children. */ virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Inserts the node newChild before the existing child node refChild. */ virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Tests whether the DOM implementation implements a specific feature and that feature is supported by this node. */ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Puts all Text nodes in the full depth of the sub-tree underneath this @@ -283,14 +283,14 @@ namespace DOM Text nodes nor empty Text nodes. */ virtual void SAL_CALL normalize() - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Removes the child node indicated by oldChild from the list of children, and returns it. */ virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** Replaces the child node oldChild with newChild in the list of children, @@ -298,39 +298,39 @@ namespace DOM */ virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** The value of this node, depending on its type; see the table above. */ virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); /** The namespace prefix of this node, or null if it is unspecified. */ virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); // --- XEventTarget virtual void SAL_CALL addEventListener(const OUString& eventType, const Reference< XEventListener >& listener, sal_Bool useCapture) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual void SAL_CALL removeEventListener(const OUString& eventType, const Reference< XEventListener >& listener, sal_Bool useCapture) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual sal_Bool SAL_CALL dispatchEvent(const Reference< XEvent >& evt) - throw(RuntimeException, EventException); + throw(RuntimeException, EventException, std::exception); // --- XUnoTunnel virtual ::sal_Int64 SAL_CALL getSomething(Sequence< ::sal_Int8 > const& rId) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; /// eliminate redundant namespace declarations diff --git a/unoxml/source/dom/notation.cxx b/unoxml/source/dom/notation.cxx index 29501f7b88f9..e59f8d85bbc8 100644 --- a/unoxml/source/dom/notation.cxx +++ b/unoxml/source/dom/notation.cxx @@ -31,7 +31,7 @@ namespace DOM { } - OUString SAL_CALL CNotation::getPublicId() throw (RuntimeException) + OUString SAL_CALL CNotation::getPublicId() throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotation::getPublicId: not implemented (#i113683#)"); @@ -41,7 +41,7 @@ namespace DOM /** The system identifier of this notation. */ - OUString SAL_CALL CNotation::getSystemId() throw (RuntimeException) + OUString SAL_CALL CNotation::getSystemId() throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotation::getSystemId: not implemented (#i113683#)"); @@ -49,7 +49,7 @@ namespace DOM } - OUString SAL_CALL CNotation::getNodeName()throw (RuntimeException) + OUString SAL_CALL CNotation::getNodeName()throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -62,7 +62,7 @@ namespace DOM return aName; } - OUString SAL_CALL CNotation::getNodeValue() throw (RuntimeException) + OUString SAL_CALL CNotation::getNodeValue() throw (RuntimeException, std::exception) { return OUString(); } diff --git a/unoxml/source/dom/notation.hxx b/unoxml/source/dom/notation.hxx index b7ab881e094c..df1b606fe5a1 100644 --- a/unoxml/source/dom/notation.hxx +++ b/unoxml/source/dom/notation.hxx @@ -51,134 +51,134 @@ namespace DOM /** The public identifier of this notation. */ - virtual OUString SAL_CALL getPublicId() throw (RuntimeException); + virtual OUString SAL_CALL getPublicId() throw (RuntimeException, std::exception); /** The system identifier of this notation. */ - virtual OUString SAL_CALL getSystemId() throw (RuntimeException); + virtual OUString SAL_CALL getSystemId() throw (RuntimeException, std::exception); // ---- resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/notationsmap.cxx b/unoxml/source/dom/notationsmap.cxx index e955c18a5ede..090ffa88a942 100644 --- a/unoxml/source/dom/notationsmap.cxx +++ b/unoxml/source/dom/notationsmap.cxx @@ -33,7 +33,7 @@ namespace DOM /** The number of nodes in this map. */ - sal_Int32 SAL_CALL CNotationsMap::getLength() throw (RuntimeException) + sal_Int32 SAL_CALL CNotationsMap::getLength() throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotationsMap::getLength: not implemented (#i113683#)"); @@ -45,7 +45,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNotationsMap::getNamedItem(OUString const& /*name*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotationsMap::getNamedItem: not implemented (#i113683#)"); @@ -58,7 +58,7 @@ namespace DOM Reference< XNode > SAL_CALL CNotationsMap::getNamedItemNS( OUString const& /*namespaceURI*/, OUString const& /*localName*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotationsMap::getNamedItemNS: not implemented (#i113683#)"); @@ -69,7 +69,7 @@ namespace DOM Returns the indexth item in the map. */ Reference< XNode > SAL_CALL - CNotationsMap::item(sal_Int32 /*index*/) throw (RuntimeException) + CNotationsMap::item(sal_Int32 /*index*/) throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotationsMap::item: not implemented (#i113683#)"); return Reference< XNode >(); @@ -80,7 +80,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNotationsMap::removeNamedItem(OUString const& /*name*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotationsMap::removeNamedItem: not implemented (#i113683#)"); @@ -93,7 +93,7 @@ namespace DOM Reference< XNode > SAL_CALL CNotationsMap::removeNamedItemNS( OUString const& /*namespaceURI*/, OUString const& /*localName*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotationsMap::removeNamedItemNS: not implemented (#i113683#)"); @@ -105,7 +105,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNotationsMap::setNamedItem(Reference< XNode > const& /*arg*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNotationsMap::setNamedItem: not implemented (#i113683#)"); @@ -117,7 +117,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNotationsMap::setNamedItemNS(Reference< XNode > const& /*arg*/) - throw (RuntimeException) + 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 0e7071e86af1..e3132639851e 100644 --- a/unoxml/source/dom/notationsmap.hxx +++ b/unoxml/source/dom/notationsmap.hxx @@ -49,53 +49,53 @@ namespace DOM /** The number of nodes in this map. */ - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException); + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception); /** Retrieves a node specified by local name */ virtual Reference< XNode > SAL_CALL - getNamedItem(OUString const& name) throw (RuntimeException); + getNamedItem(OUString const& name) throw (RuntimeException, std::exception); /** Retrieves a node specified by local name and namespace URI. */ virtual Reference< XNode > SAL_CALL getNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Returns the indexth item in the map. */ virtual Reference< XNode > SAL_CALL - item(sal_Int32 index) throw (RuntimeException); + item(sal_Int32 index) throw (RuntimeException, std::exception); /** Removes a node specified by name. */ virtual Reference< XNode > SAL_CALL - removeNamedItem(OUString const& name) throw (RuntimeException); + removeNamedItem(OUString const& name) throw (RuntimeException, std::exception); /** // Removes a node specified by local name and namespace URI. */ virtual Reference< XNode > SAL_CALL removeNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** // Adds a node using its nodeName attribute. */ virtual Reference< XNode > SAL_CALL setNamedItem(Reference< XNode > const& arg) - throw (RuntimeException); + throw (RuntimeException, std::exception); /** Adds a node using its namespaceURI and localName. */ virtual Reference< XNode > SAL_CALL setNamedItemNS(Reference< XNode > const& arg) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; } diff --git a/unoxml/source/dom/processinginstruction.cxx b/unoxml/source/dom/processinginstruction.cxx index 99790e159c7c..b4b76d1b0000 100644 --- a/unoxml/source/dom/processinginstruction.cxx +++ b/unoxml/source/dom/processinginstruction.cxx @@ -47,7 +47,7 @@ namespace DOM The content of this processing instruction. */ OUString SAL_CALL - CProcessingInstruction::getData() throw (RuntimeException) + CProcessingInstruction::getData() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -68,7 +68,7 @@ namespace DOM The target of this processing instruction. */ OUString SAL_CALL - CProcessingInstruction::getTarget() throw (RuntimeException) + CProcessingInstruction::getTarget() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -89,7 +89,7 @@ namespace DOM The content of this processing instruction. */ void SAL_CALL CProcessingInstruction::setData(OUString const& rData) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -106,7 +106,7 @@ namespace DOM } OUString SAL_CALL - CProcessingInstruction::getNodeName() throw (RuntimeException) + CProcessingInstruction::getNodeName() throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -121,14 +121,14 @@ namespace DOM } OUString SAL_CALL CProcessingInstruction::getNodeValue() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return getData(); } void SAL_CALL CProcessingInstruction::setNodeValue(OUString const& rNodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return setData(rNodeValue); } diff --git a/unoxml/source/dom/processinginstruction.hxx b/unoxml/source/dom/processinginstruction.hxx index df298a04a3f9..d1687944cc9f 100644 --- a/unoxml/source/dom/processinginstruction.hxx +++ b/unoxml/source/dom/processinginstruction.hxx @@ -54,137 +54,137 @@ namespace DOM /** The content of this processing instruction. */ - virtual OUString SAL_CALL getData() throw (RuntimeException); + virtual OUString SAL_CALL getData() throw (RuntimeException, std::exception); /** The target of this processing instruction. */ - virtual OUString SAL_CALL getTarget() throw (RuntimeException); + virtual OUString SAL_CALL getTarget() throw (RuntimeException, std::exception); /** The content of this processing instruction. */ - virtual void SAL_CALL setData(const OUString& data) throw (RuntimeException, DOMException); + virtual void SAL_CALL setData(const OUString& data) throw (RuntimeException, DOMException, std::exception); // ---- resolve uno inheritance problems... // overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual OUString SAL_CALL getNodeValue() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual void SAL_CALL setNodeValue(OUString const& rNodeValue) - throw (RuntimeException, DOMException); + throw (RuntimeException, DOMException, std::exception); // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getNodeType(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CNode::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CNode::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::replaceChild(newChild, oldChild); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CNode::setPrefix(prefix); } diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx index 33e79149e647..7bb5ac9c0530 100644 --- a/unoxml/source/dom/saxbuilder.cxx +++ b/unoxml/source/dom/saxbuilder.cxx @@ -59,25 +59,25 @@ namespace DOM } Sequence< OUString > SAL_CALL CSAXDocumentBuilder::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CSAXDocumentBuilder::_getSupportedServiceNames(); } OUString SAL_CALL CSAXDocumentBuilder::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CSAXDocumentBuilder::_getImplementationName(); } sal_Bool SAL_CALL CSAXDocumentBuilder::supportsService(const OUString& aServiceName) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, aServiceName); } SAXDocumentBuilderState SAL_CALL CSAXDocumentBuilder::getState() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -85,7 +85,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::reset() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -97,7 +97,7 @@ namespace DOM } Reference< XDocument > SAL_CALL CSAXDocumentBuilder::getDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -108,7 +108,7 @@ namespace DOM } Reference< XDocumentFragment > SAL_CALL CSAXDocumentBuilder::getDocumentFragment() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -118,7 +118,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::startDocumentFragment(const Reference< XDocument >& ownerDoc) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -135,7 +135,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::endDocumentFragment() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -152,7 +152,7 @@ namespace DOM // document handler - void SAL_CALL CSAXDocumentBuilder::startDocument() throw (RuntimeException, SAXException) + void SAL_CALL CSAXDocumentBuilder::startDocument() throw (RuntimeException, SAXException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -168,7 +168,7 @@ namespace DOM m_aState = SAXDocumentBuilderState_BUILDING_DOCUMENT; } - void SAL_CALL CSAXDocumentBuilder::endDocument() throw (RuntimeException, SAXException) + void SAL_CALL CSAXDocumentBuilder::endDocument() throw (RuntimeException, SAXException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -184,7 +184,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::startElement(const OUString& aName, const Reference< XAttributeList>& attribs) - throw (RuntimeException, SAXException) + throw (RuntimeException, SAXException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -287,7 +287,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::endElement(const OUString& aName) - throw (RuntimeException, SAXException) + throw (RuntimeException, SAXException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -316,7 +316,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::characters(const OUString& aChars) - throw (RuntimeException, SAXException) + throw (RuntimeException, SAXException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -330,7 +330,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::ignorableWhitespace(const OUString& ) - throw (RuntimeException, SAXException) + throw (RuntimeException, SAXException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -341,7 +341,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::processingInstruction(const OUString& aTarget, const OUString& aData) - throw (RuntimeException, SAXException) + throw (RuntimeException, SAXException, std::exception) { ::osl::MutexGuard g(m_Mutex); @@ -356,7 +356,7 @@ namespace DOM } void SAL_CALL CSAXDocumentBuilder::setDocumentLocator(const Reference< XLocator >& aLocator) - throw (RuntimeException, SAXException) + 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 69f320860f1d..c9ad2b9079e2 100644 --- a/unoxml/source/dom/saxbuilder.hxx +++ b/unoxml/source/dom/saxbuilder.hxx @@ -92,46 +92,46 @@ namespace DOM // XServiceInfo virtual OUString SAL_CALL getImplementationName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames () - throw (RuntimeException); + throw (RuntimeException, std::exception); // XDocumentHandler virtual void SAL_CALL startDocument() - throw( RuntimeException, com::sun::star::xml::sax::SAXException ); + throw( RuntimeException, com::sun::star::xml::sax::SAXException, std::exception ); virtual void SAL_CALL endDocument() - throw( RuntimeException, com::sun::star::xml::sax::SAXException ); + throw( RuntimeException, com::sun::star::xml::sax::SAXException, std::exception ); virtual void SAL_CALL startElement( const OUString& aName, const Reference< XAttributeList >& xAttribs ) - throw( RuntimeException, com::sun::star::xml::sax::SAXException ); + throw( RuntimeException, com::sun::star::xml::sax::SAXException, std::exception ); virtual void SAL_CALL endElement( const OUString& aName ) - throw( RuntimeException, com::sun::star::xml::sax::SAXException ); + throw( RuntimeException, com::sun::star::xml::sax::SAXException, std::exception ); virtual void SAL_CALL characters( const OUString& aChars ) - throw( RuntimeException, com::sun::star::xml::sax::SAXException ); + throw( RuntimeException, com::sun::star::xml::sax::SAXException, std::exception ); virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces ) - throw( RuntimeException, com::sun::star::xml::sax::SAXException ); + throw( RuntimeException, com::sun::star::xml::sax::SAXException, std::exception ); virtual void SAL_CALL processingInstruction( const OUString& aTarget, const OUString& aData ) - throw( RuntimeException, com::sun::star::xml::sax::SAXException ); + throw( RuntimeException, com::sun::star::xml::sax::SAXException, std::exception ); virtual void SAL_CALL setDocumentLocator( const Reference< XLocator >& xLocator ) - throw( RuntimeException, com::sun::star::xml::sax::SAXException ); + throw( RuntimeException, com::sun::star::xml::sax::SAXException, std::exception ); // XSAXDocumentBuilder virtual SAXDocumentBuilderState SAL_CALL getState() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual void SAL_CALL reset() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Reference< XDocument > SAL_CALL getDocument() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Reference< XDocumentFragment > SAL_CALL getDocumentFragment() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual void SAL_CALL startDocumentFragment(const Reference< XDocument >& ownerDoc) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual void SAL_CALL endDocumentFragment() - throw (RuntimeException); + throw (RuntimeException, std::exception); }; diff --git a/unoxml/source/dom/text.cxx b/unoxml/source/dom/text.cxx index 52df1b8e1c9a..4dd422ce6a96 100644 --- a/unoxml/source/dom/text.cxx +++ b/unoxml/source/dom/text.cxx @@ -53,13 +53,13 @@ namespace DOM } } - OUString SAL_CALL CText::getNodeName() throw (RuntimeException) + OUString SAL_CALL CText::getNodeName() throw (RuntimeException, std::exception) { return OUString("#text"); } Reference< XText > SAL_CALL CText::splitText(sal_Int32 /*offset*/) - throw (RuntimeException) + 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 08fb9c8f37c1..9ac9c051abf6 100644 --- a/unoxml/source/dom/text.hxx +++ b/unoxml/source/dom/text.hxx @@ -61,45 +61,45 @@ namespace DOM // Breaks this node into two nodes at the specified offset, keeping // both in the tree as siblings. virtual Reference< XText > SAL_CALL splitText(sal_Int32 offset) - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- delegations for XCharacterData virtual void SAL_CALL appendData(const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::appendData(arg); } virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::deleteData(offset, count); } - virtual OUString SAL_CALL getData() throw (RuntimeException) + virtual OUString SAL_CALL getData() throw (RuntimeException, std::exception) { return CCharacterData::getData(); } - virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException) + virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception) { return CCharacterData::getLength(); } virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::insertData(offset, arg); } virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::replaceData(offset, count, arg); } virtual void SAL_CALL setData(const OUString& data) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { CCharacterData::setData(data); } virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::subStringData(offset, count); } @@ -107,128 +107,128 @@ namespace DOM // --- overrides for XNode base virtual OUString SAL_CALL getNodeName() - throw (RuntimeException); + throw (RuntimeException, std::exception); // --- resolve uno inheritance problems... // --- delegation for XNde base. virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::appendChild(newChild); } virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::cloneNode(deep); } virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getAttributes(); } virtual Reference< XNodeList > SAL_CALL getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getChildNodes(); } virtual Reference< XNode > SAL_CALL getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getFirstChild(); } virtual Reference< XNode > SAL_CALL getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getLastChild(); } virtual OUString SAL_CALL getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getLocalName(); } virtual OUString SAL_CALL getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getNamespaceURI(); } virtual Reference< XNode > SAL_CALL getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getNextSibling(); } virtual NodeType SAL_CALL getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getNodeType(); } - virtual OUString SAL_CALL getNodeValue() throw (RuntimeException) + virtual OUString SAL_CALL getNodeValue() throw (RuntimeException, std::exception) { return CCharacterData::getNodeValue(); } virtual Reference< XDocument > SAL_CALL getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getOwnerDocument(); } virtual Reference< XNode > SAL_CALL getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getParentNode(); } virtual OUString SAL_CALL getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getPrefix(); } virtual Reference< XNode > SAL_CALL getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::getPreviousSibling(); } virtual sal_Bool SAL_CALL hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::hasAttributes(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::hasChildNodes(); } virtual Reference< XNode > SAL_CALL insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::insertBefore(newChild, refChild); } virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return CCharacterData::isSupported(feature, ver); } virtual void SAL_CALL normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { CCharacterData::normalize(); } virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::removeChild(oldChild); } virtual Reference< XNode > SAL_CALL replaceChild( const Reference< XNode >& newChild, const Reference< XNode >& oldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::replaceChild(newChild, oldChild); } virtual void SAL_CALL setNodeValue(const OUString& nodeValue) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::setNodeValue(nodeValue); } virtual void SAL_CALL setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { return CCharacterData::setPrefix(prefix); } |