diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:00:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:25 +0100 |
commit | 0f5da9c1c6e3e29de46f9ad48864945074004586 (patch) | |
tree | 9b73c28cb5b97f22e3619bd4afbf6655f469f148 /basic | |
parent | d08e466c465b6d10c381937fd5e7ba8a160e7b85 (diff) |
New loplugin:dynexcspec: Add @throws documentation, basic
Change-Id: Ic3e265e05c69942c5c1c7d1b83f65f2cbe35ca1f
Diffstat (limited to 'basic')
-rw-r--r-- | basic/inc/sbobjmod.hxx | 1 | ||||
-rw-r--r-- | basic/source/classes/errobject.cxx | 1 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 2 | ||||
-rw-r--r-- | basic/source/inc/errobject.hxx | 1 | ||||
-rw-r--r-- | basic/source/inc/namecont.hxx | 11 |
5 files changed, 16 insertions, 0 deletions
diff --git a/basic/inc/sbobjmod.hxx b/basic/inc/sbobjmod.hxx index 58504c621dd9..1b63cc437d5d 100644 --- a/basic/inc/sbobjmod.hxx +++ b/basic/inc/sbobjmod.hxx @@ -44,6 +44,7 @@ public: using SbxValue::GetObject; SbxVariable* GetObject(); + /// @throws css::uno::RuntimeException void SetUnoObject( const css::uno::Any& aObj )throw ( css::uno::RuntimeException, std::exception ) ; }; diff --git a/basic/source/classes/errobject.cxx b/basic/source/classes/errobject.cxx index 190aec3bcbcc..1401dcd45242 100644 --- a/basic/source/classes/errobject.cxx +++ b/basic/source/classes/errobject.cxx @@ -58,6 +58,7 @@ public: virtual OUString SAL_CALL getDefaultPropertyName( ) throw (uno::RuntimeException, std::exception) override; // Helper method + /// @throws css::uno::RuntimeException void setData( const uno::Any& Number, const uno::Any& Source, const uno::Any& Description, const uno::Any& HelpFile, const uno::Any& HelpContext ) throw (uno::RuntimeException); }; diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 972c47bb7c5b..6f07eb3df5ca 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -93,7 +93,9 @@ class DocObjectWrapper : public DocObjectWrapper_BASE Reference< XTypeProvider > m_xAggregateTypeProv; Sequence< Type > m_Types; SbModule* m_pMod; + /// @throws css::uno::RuntimeException SbMethodRef getMethod( const OUString& aName ) throw (RuntimeException, std::exception); + /// @throws css::uno::RuntimeException SbPropertyRef getProperty( const OUString& aName ) throw (RuntimeException, std::exception); public: diff --git a/basic/source/inc/errobject.hxx b/basic/source/inc/errobject.hxx index 427f2f1b8715..07ac40f7e788 100644 --- a/basic/source/inc/errobject.hxx +++ b/basic/source/inc/errobject.hxx @@ -35,6 +35,7 @@ public: static SbxVariableRef const & getErrObject(); static css::uno::Reference< ooo::vba::XErrObject > const & getUnoErrObject(); + /// @throws css::uno::RuntimeException void setNumberAndDescription( ::sal_Int32 _number, const OUString& _description ) throw (css::uno::RuntimeException); }; diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx index fd0e9e341ba2..832061d69f03 100644 --- a/basic/source/inc/namecont.hxx +++ b/basic/source/inc/namecont.hxx @@ -94,12 +94,19 @@ public: void setEventSource( css::uno::XInterface* pxEventSource ) { mpxEventSource = pxEventSource; } + /// @throws css::lang::IllegalArgumentException + /// @throws css::container::ElementExistException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException void insertCheck(const OUString& aName, const css::uno::Any& aElement) throw (css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); + /// @throws css::lang::IllegalArgumentException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException void insertNoCheck(const OUString& aName, const css::uno::Any& aElement) throw (css::lang::IllegalArgumentException, css::lang::WrappedTargetException, @@ -287,6 +294,7 @@ protected: const OUString& StorageURL, bool ReadOnly ) = 0; virtual css::uno::Any SAL_CALL createEmptyLibraryElement() = 0; virtual bool SAL_CALL isLibraryElementValid(const css::uno::Any& rElement) const = 0; + /// @throws css::uno::Exception virtual void SAL_CALL writeLibraryElement ( const css::uno::Reference< css::container::XNameContainer>& xLibrary, @@ -313,6 +321,8 @@ protected: const OUString& aTargetURL, const css::uno::Reference< css::ucb::XSimpleFileAccess3 >& rToUseSFI, const css::uno::Reference< css::task::XInteractionHandler >& Handler ); + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException virtual bool implLoadPasswordLibrary( SfxLibrary* pLib, const OUString& Name, bool bVerifyPasswordOnly=false ) throw(css::lang::WrappedTargetException, @@ -346,6 +356,7 @@ protected: OUString& aStorageURL, OUString& aUnexpandedStorageURL ); + /// @throws css::uno::RuntimeException OUString expand_url( const OUString& url ) throw(css::uno::RuntimeException); |