diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 17:52:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:15 +0100 |
commit | b36f675c5e13decbd3204c0e5e893a41e5653a72 (patch) | |
tree | 21239e676e490ab7b45273c2018a8d50c117227d /sc/inc | |
parent | 8870dec9a431eeff5045efd4ba12a2a70bad5e24 (diff) |
New loplugin:dynexcspec: Add @throws documentation, sc
Change-Id: Ieb01ae3f8c5d3010354027ea2c6e0a2cee176e7f
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/appluno.hxx | 10 | ||||
-rw-r--r-- | sc/inc/cellsuno.hxx | 7 | ||||
-rw-r--r-- | sc/inc/dapiuno.hxx | 2 | ||||
-rw-r--r-- | sc/inc/dptabsrc.hxx | 1 | ||||
-rw-r--r-- | sc/inc/styleuno.hxx | 12 | ||||
-rw-r--r-- | sc/inc/viewuno.hxx | 2 |
6 files changed, 34 insertions, 0 deletions
diff --git a/sc/inc/appluno.hxx b/sc/inc/appluno.hxx index 797178a85f42..221ce48b19e8 100644 --- a/sc/inc/appluno.hxx +++ b/sc/inc/appluno.hxx @@ -46,28 +46,34 @@ css::uno::Reference<css::uno::XInterface> SAL_CALL // Calc document css::uno::Sequence< OUString > SAL_CALL ScDocument_getSupportedServiceNames() throw(); OUString SAL_CALL ScDocument_getImplementationName() throw(); +/// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ScDocument_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr, SfxModelFlags _nCreationFlags ) throw( css::uno::Exception, std::exception ); // Calc XML import css::uno::Sequence< OUString > SAL_CALL ScXMLImport_getSupportedServiceNames() throw(); OUString SAL_CALL ScXMLImport_getImplementationName() throw(); +/// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception ); css::uno::Sequence< OUString > SAL_CALL ScXMLImport_Meta_getSupportedServiceNames() throw(); OUString SAL_CALL ScXMLImport_Meta_getImplementationName() throw(); +/// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_Meta_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception ); css::uno::Sequence< OUString > SAL_CALL ScXMLImport_Styles_getSupportedServiceNames() throw(); OUString SAL_CALL ScXMLImport_Styles_getImplementationName() throw(); +/// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_Styles_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception ); css::uno::Sequence< OUString > SAL_CALL ScXMLImport_Content_getSupportedServiceNames() throw(); OUString SAL_CALL ScXMLImport_Content_getImplementationName() throw(); +/// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_Content_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception ); css::uno::Sequence< OUString > SAL_CALL ScXMLImport_Settings_getSupportedServiceNames() throw(); OUString SAL_CALL ScXMLImport_Settings_getImplementationName() throw(); +/// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_Settings_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception ); @@ -79,10 +85,14 @@ class ScSpreadsheetSettings : public cppu::WeakImplHelper< private: SfxItemPropertySet aPropSet; + /// @throws css::uno::RuntimeException bool getPropertyBool(const OUString& aPropertyName) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException sal_Int16 getPropertyInt16(const OUString& aPropertyName) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void setProperty(const OUString& aPropertyName, bool p1) throw (css::uno::RuntimeException) { setPropertyValue( aPropertyName, css::uno::Any(p1) ); } + /// @throws css::uno::RuntimeException void setProperty(const OUString& aPropertyName, sal_Int16 p1) throw (css::uno::RuntimeException) { setPropertyValue( aPropertyName, css::uno::Any(p1) ); } public: diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index 3dcbc82266de..2caeea7f10c0 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -216,10 +216,13 @@ protected: virtual const SfxItemPropertyMap& GetItemPropertyMap(); css::beans::PropertyState GetOnePropertyState( sal_uInt16 nItemWhich, const SfxItemPropertySimpleEntry* pEntry ); + /// @throws css::uno::RuntimeException virtual void GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, css::uno::Any& ) throw(css::uno::RuntimeException, std::exception); + /// @throws css::lang::IllegalArgumentException + /// @throws css::uno::RuntimeException virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const css::uno::Any& aValue ) throw(css::lang::IllegalArgumentException, @@ -623,11 +626,14 @@ protected: css::uno::RuntimeException, std::exception) override; + /// @throws css::lang::IndexOutOfBoundsException + /// @throws css::uno::RuntimeException css::uno::Reference< css::table::XCell > GetCellByPosition_Impl( sal_Int32 nColumn, sal_Int32 nRow ) throw(css::lang::IndexOutOfBoundsException, css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void SetArrayFormula_Impl( const OUString& rFormula, const OUString& rFormulaNmsp, const formula::FormulaGrammar::Grammar eGrammar ) @@ -775,6 +781,7 @@ public: virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName( const OUString& aRange ) throw(css::uno::RuntimeException, std::exception) override; + /// @throws css::uno::RuntimeException css::uno::Reference< css::table::XCellRange > getCellRangeByName( const OUString& aRange, const ScAddress::Details& rDetails ) throw(css::uno::RuntimeException); diff --git a/sc/inc/dapiuno.hxx b/sc/inc/dapiuno.hxx index 3f98aa432593..c4e7841640d0 100644 --- a/sc/inc/dapiuno.hxx +++ b/sc/inc/dapiuno.hxx @@ -687,7 +687,9 @@ public: throw(css::uno::RuntimeException, std::exception) override; // implementation + /// @throws css::uno::RuntimeException ScFieldGroup& getFieldGroup( const OUString& rName ) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void renameFieldGroup( const OUString& rOldName, const OUString& rNewName ) throw(css::uno::RuntimeException); private: diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx index 6a3547626548..128853020ee8 100644 --- a/sc/inc/dptabsrc.hxx +++ b/sc/inc/dptabsrc.hxx @@ -708,6 +708,7 @@ public: const ScDPItemData* GetSrcItemDataByIndex( SCROW nIndex); private: + /// @throws css::uno::RuntimeException css::uno::Sequence< OUString > getElementNames( bool bLocaleIndependent ) const throw(css::uno::RuntimeException, std::exception); }; diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index ff48b6d092e6..5eef0928930c 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -108,6 +108,8 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override; private: + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void loadStylesFromDocShell( ScDocShell* pSource, const css::uno::Sequence< css::beans::PropertyValue>& aOptions ) throw(css::io::IOException, @@ -225,12 +227,22 @@ private: SfxStyleSheetBase* GetStyle_Impl( bool bUseCachedValue = false ); const SfxItemSet* GetStyleItemSet_Impl( const OUString& rPropName, const SfxItemPropertySimpleEntry*& rpEntry ); + /// @throws css::beans::UnknownPropertyException + /// @throws css::uno::RuntimeException css::beans::PropertyState getPropertyState_Impl( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception); + /// @throws css::beans::UnknownPropertyException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException css::uno::Any getPropertyDefault_Impl( const OUString& aPropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); + /// @throws css::beans::UnknownPropertyException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException css::uno::Any getPropertyValue_Impl( const OUString& aPropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); + /// @throws css::lang::IllegalArgumentException + /// @throws css::uno::RuntimeException void setPropertyValue_Impl( const OUString& rPropertyName, const SfxItemPropertySimpleEntry* pEntry, const css::uno::Any* pValue ) diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx index b18281faaee5..e81010a1eb1d 100644 --- a/sc/inc/viewuno.hxx +++ b/sc/inc/viewuno.hxx @@ -199,7 +199,9 @@ public: // bSameTabButMoved = true if the same sheet as before is activated, used after moving/copying/inserting/deleting a sheet void SheetChanged( bool bSameTabButMoved ); bool IsMouseListening() const; + /// @throws css::uno::RuntimeException bool MousePressed( const css::awt::MouseEvent& e ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException bool MouseReleased( const css::awt::MouseEvent& e ) throw (css::uno::RuntimeException); void RangeSelDone( const OUString& rText ); |