summaryrefslogtreecommitdiff
path: root/framework/inc/xml/menudocumenthandler.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/inc/xml/menudocumenthandler.hxx')
-rw-r--r--framework/inc/xml/menudocumenthandler.hxx118
1 files changed, 30 insertions, 88 deletions
diff --git a/framework/inc/xml/menudocumenthandler.hxx b/framework/inc/xml/menudocumenthandler.hxx
index d80b4b4d9dac..8469280cc481 100644
--- a/framework/inc/xml/menudocumenthandler.hxx
+++ b/framework/inc/xml/menudocumenthandler.hxx
@@ -42,41 +42,25 @@ class FWE_DLLPUBLIC ReadMenuDocumentHandlerBase :
virtual ~ReadMenuDocumentHandlerBase() override;
// XDocumentHandler
- virtual void SAL_CALL startDocument()
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override = 0;
+ virtual void SAL_CALL startDocument() override = 0;
- virtual void SAL_CALL endDocument()
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override = 0;
+ virtual void SAL_CALL endDocument() override = 0;
virtual void SAL_CALL startElement(
const OUString& aName,
- const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override = 0;
+ const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override = 0;
- virtual void SAL_CALL endElement(const OUString& aName)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override = 0;
+ virtual void SAL_CALL endElement(const OUString& aName) override = 0;
- virtual void SAL_CALL characters(const OUString& aChars)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override = 0;
+ virtual void SAL_CALL characters(const OUString& aChars) override = 0;
- virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces) override;
virtual void SAL_CALL processingInstruction(const OUString& aTarget,
- const OUString& aData)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ const OUString& aData) override;
virtual void SAL_CALL setDocumentLocator(
- const css::uno::Reference< css::xml::sax::XLocator > &xLocator)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override;
protected:
OUString getErrorLineString();
@@ -103,27 +87,17 @@ class FWE_DLLPUBLIC OReadMenuDocumentHandler : public ReadMenuDocumentHandlerBas
virtual ~OReadMenuDocumentHandler() override;
// XDocumentHandler
- virtual void SAL_CALL startDocument()
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL startDocument() override;
- virtual void SAL_CALL endDocument()
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL endDocument() override;
virtual void SAL_CALL startElement(
const OUString& aName,
- const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override;
- virtual void SAL_CALL endElement(const OUString& aName)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL endElement(const OUString& aName) override;
- virtual void SAL_CALL characters(const OUString& aChars)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL characters(const OUString& aChars) override;
private:
int m_nElementDepth;
@@ -142,27 +116,17 @@ class FWE_DLLPUBLIC OReadMenuBarHandler : public ReadMenuDocumentHandlerBase
virtual ~OReadMenuBarHandler() override;
// XDocumentHandler
- virtual void SAL_CALL startDocument()
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL startDocument() override;
- virtual void SAL_CALL endDocument()
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL endDocument() override;
virtual void SAL_CALL startElement(
const OUString& aName,
- const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override;
- virtual void SAL_CALL endElement(const OUString& aName)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL endElement(const OUString& aName) override;
- virtual void SAL_CALL characters(const OUString& aChars)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL characters(const OUString& aChars) override;
private:
int m_nElementDepth;
@@ -179,27 +143,17 @@ class FWE_DLLPUBLIC OReadMenuHandler : public ReadMenuDocumentHandlerBase
virtual ~OReadMenuHandler() override;
// XDocumentHandler
- virtual void SAL_CALL startDocument()
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL startDocument() override;
- virtual void SAL_CALL endDocument()
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL endDocument() override;
virtual void SAL_CALL startElement(
const OUString& aName,
- const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override;
- virtual void SAL_CALL endElement(const OUString& aName)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL endElement(const OUString& aName) override;
- virtual void SAL_CALL characters(const OUString& aChars)
- throw( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL characters(const OUString& aChars) override;
private:
int m_nElementDepth;
@@ -216,28 +170,18 @@ class FWE_DLLPUBLIC OReadMenuPopupHandler : public ReadMenuDocumentHandlerBase
virtual ~OReadMenuPopupHandler() override;
// XDocumentHandler
- virtual void SAL_CALL startDocument()
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL startDocument() override;
- virtual void SAL_CALL endDocument()
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL endDocument() override;
virtual void SAL_CALL startElement(
const OUString& aName,
const css::uno::Reference<
- css::xml::sax::XAttributeList > &xAttribs)
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ css::xml::sax::XAttributeList > &xAttribs) override;
- virtual void SAL_CALL endElement(const OUString& aName)
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL endElement(const OUString& aName) override;
- virtual void SAL_CALL characters(const OUString& aChars)
- throw ( css::xml::sax::SAXException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL characters(const OUString& aChars) override;
private:
enum NextElementClose { ELEM_CLOSE_NONE, ELEM_CLOSE_MENUITEM, ELEM_CLOSE_MENUSEPARATOR };
@@ -261,13 +205,11 @@ class FWE_DLLPUBLIC OWriteMenuDocumentHandler final
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
- void WriteMenuDocument() throw
- ( css::xml::sax::SAXException, css::uno::RuntimeException );
+ void WriteMenuDocument();
private:
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
- void WriteMenu( const css::uno::Reference< css::container::XIndexAccess >& rSubMenuContainer ) throw
- ( css::xml::sax::SAXException, css::uno::RuntimeException );
+ void WriteMenu( const css::uno::Reference< css::container::XIndexAccess >& rSubMenuContainer );
void WriteMenuItem( const OUString& aCommandURL, const OUString& aLabel, const OUString& aHelpURL, sal_Int16 nStyle );
void WriteMenuSeparator();