diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 17:50:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:12 +0100 |
commit | 2527c001408b17b5a740d81debcf97a1385932e0 (patch) | |
tree | 7935f00217ec102995b7cf4656bbfa3e8dbb9474 /include/svtools | |
parent | 9859ee7b1901449e63e4047554776f23c2de20ce (diff) |
New loplugin:dynexcspec: Add @throws documentation, svtools
Change-Id: I274142728ea25be094343e3489758314e371a857
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/accessibleruler.hxx | 8 | ||||
-rw-r--r-- | include/svtools/popupmenucontrollerbase.hxx | 1 | ||||
-rw-r--r-- | include/svtools/toolbarmenu.hxx | 1 | ||||
-rw-r--r-- | include/svtools/unoevent.hxx | 11 |
4 files changed, 18 insertions, 3 deletions
diff --git a/include/svtools/accessibleruler.hxx b/include/svtools/accessibleruler.hxx index 7c003e2652b4..174d02b13dbd 100644 --- a/include/svtools/accessibleruler.hxx +++ b/include/svtools/accessibleruler.hxx @@ -68,7 +68,7 @@ public: protected: virtual ~SvtRulerAccessible() override; public: - + /// @throws css::uno::RuntimeException bool SAL_CALL isVisible() throw( css::uno::RuntimeException ); @@ -166,9 +166,13 @@ public: protected: /// @Return the object's current bounding box relative to the desktop. + /// + /// @throws css::uno::RuntimeException Rectangle GetBoundingBoxOnScreen() throw( css::uno::RuntimeException ); /// @Return the object's current bounding box relative to the parent object. + /// + /// @throws css::uno::RuntimeException Rectangle GetBoundingBox() throw( css::uno::RuntimeException ); @@ -177,7 +181,7 @@ protected: /// @returns true if it's disposed or in disposing inline bool IsAlive() const; - /// throws the exception DisposedException if it's not alive + /// @throws DisposedException if it's not alive void ThrowExceptionIfNotAlive() throw( css::lang::DisposedException ); private: diff --git a/include/svtools/popupmenucontrollerbase.hxx b/include/svtools/popupmenucontrollerbase.hxx index 1358f5e0c957..d78aa34cd567 100644 --- a/include/svtools/popupmenucontrollerbase.hxx +++ b/include/svtools/popupmenucontrollerbase.hxx @@ -98,6 +98,7 @@ namespace svt void dispatchCommand( const OUString& sCommandURL, const css::uno::Sequence< css::beans::PropertyValue >& rArgs, const OUString& sTarget = OUString() ); protected: + /// @throws css::uno::RuntimeException void throwIfDisposed() throw ( css::uno::RuntimeException ); /** helper method to cause statusChanged is called once for the given command url */ diff --git a/include/svtools/toolbarmenu.hxx b/include/svtools/toolbarmenu.hxx index 58e0b9d9f301..3fb12accb744 100644 --- a/include/svtools/toolbarmenu.hxx +++ b/include/svtools/toolbarmenu.hxx @@ -60,6 +60,7 @@ protected: void EndPopupMode(); // Forwarded from XStatusListener (subclasses must override this one to get the status updates): + /// @throws css::uno::RuntimeException virtual void statusChanged(const css::frame::FeatureStateEvent& Event ) throw (css::uno::RuntimeException, std::exception); private: diff --git a/include/svtools/unoevent.hxx b/include/svtools/unoevent.hxx index 39c934d25206..2dff69664efe 100644 --- a/include/svtools/unoevent.hxx +++ b/include/svtools/unoevent.hxx @@ -127,6 +127,11 @@ public: protected: /// Must be implemented in subclass. + /// + /// @throws css::lang::IllegalArgumentException + /// @throws css::container::NoSuchElementException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException virtual void replaceByName( const sal_uInt16 nEvent, /// item ID of event const SvxMacro& rMacro) /// event (will be copied) @@ -137,6 +142,10 @@ protected: css::uno::RuntimeException) = 0; /// Must be implemented in subclass. + /// + /// @throws css::container::NoSuchElementException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException virtual void getByName( SvxMacro& rMacro, const sal_uInt16 nEvent ) @@ -262,7 +271,7 @@ protected: /// do we have an event? /// return true: we have a macro for the event /// return false: no macro; getByName() will return an empty macro - /// IllegalArgumentException: the event is not supported + /// @throws css::lang::IllegalArgumentException if the event is not supported bool hasById( const sal_uInt16 nEvent ) const /// item ID of event throw( |