diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 17:50:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:12 +0100 |
commit | 9859ee7b1901449e63e4047554776f23c2de20ce (patch) | |
tree | 3facdb30c2c4bec900c666781859c4aefa7d45c1 | |
parent | 77894947ea5fcae00d8eeaee9482b53adfc6b7f2 (diff) |
New loplugin:dynexcspec: Add @throws documentation, svx
Change-Id: I0e827554a18622e19aec5f81c40da52664783f69
36 files changed, 152 insertions, 4 deletions
diff --git a/include/svx/AccessibleShape.hxx b/include/svx/AccessibleShape.hxx index c5d04641208b..d6860526efa9 100644 --- a/include/svx/AccessibleShape.hxx +++ b/include/svx/AccessibleShape.hxx @@ -423,6 +423,8 @@ protected: virtual void SAL_CALL disposing() override; /** Create a base name string that contains the accessible name. + + @throws css::uno::RuntimeException */ virtual OUString CreateAccessibleBaseName() @@ -439,6 +441,7 @@ protected: virtual OUString CreateAccessibleDescription() throw (css::uno::RuntimeException, std::exception) override; + /// @throws css::uno::RuntimeException OUString GetFullAccessibleName(AccessibleShape *shape) throw (css::uno::RuntimeException, std::exception); diff --git a/include/svx/ChildrenManager.hxx b/include/svx/ChildrenManager.hxx index c85bd1b3428e..0116909fda88 100644 --- a/include/svx/ChildrenManager.hxx +++ b/include/svx/ChildrenManager.hxx @@ -126,7 +126,10 @@ public: GetChild (long nIndex) throw (css::uno::RuntimeException, css::lang::IndexOutOfBoundsException); + /// @throws css::uno::RuntimeException css::uno::Reference< css::accessibility::XAccessible> GetChild (const css::uno::Reference< css::drawing::XShape>& xShape) throw (css::uno::RuntimeException); + /// @throws css::lang::IndexOutOfBoundsException + /// @throws css::uno::RuntimeException css::uno::Reference< css::drawing::XShape> GetChildShape (long nIndex) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException); diff --git a/include/svx/IAccessibleParent.hxx b/include/svx/IAccessibleParent.hxx index 897820b2e37d..e54cb551a9c0 100644 --- a/include/svx/IAccessibleParent.hxx +++ b/include/svx/IAccessibleParent.hxx @@ -81,9 +81,11 @@ public: const AccessibleShapeTreeInfo& _rShapeTreeInfo ) throw (css::uno::RuntimeException, std::exception) = 0; //Add this method to support Form Controls + /// @throws css::uno::RuntimeException virtual AccessibleControlShape* GetAccControlShapeFromModel (css::beans::XPropertySet*) throw (css::uno::RuntimeException){return nullptr;}; + /// @throws css::uno::RuntimeException virtual css::uno::Reference< css::accessibility::XAccessible> GetAccessibleCaption (const css::uno::Reference< diff --git a/include/svx/ShapeTypeHandler.hxx b/include/svx/ShapeTypeHandler.hxx index b2c80e3cac0b..b5254453da00 100644 --- a/include/svx/ShapeTypeHandler.hxx +++ b/include/svx/ShapeTypeHandler.hxx @@ -136,6 +136,8 @@ public: ShapeTypeDescriptor aDescriptorList[]); /// get the accessible base name for an object + /// + /// @throws css::uno::RuntimeException static OUString CreateAccessibleBaseName ( const css::uno::Reference< css::drawing::XShape >& rxShape) throw (css::uno::RuntimeException, std::exception); diff --git a/include/svx/fmtools.hxx b/include/svx/fmtools.hxx index e12c3512da5b..c1ff8387545f 100644 --- a/include/svx/fmtools.hxx +++ b/include/svx/fmtools.hxx @@ -125,9 +125,13 @@ public: const css::uno::Reference< css::beans::XPropertySet >& getPropertySet() const { return m_xPropertyAccess; } // css::uno::Reference< css::sdbcx::XRowLocate> + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::uno::Any getBookmark() throw( css::sdbc::SQLException, css::uno::RuntimeException ) { return m_xBookmarkOperations->getBookmark(); } + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException bool moveToBookmark(const css::uno::Any& bookmark) throw( css::sdbc::SQLException, css::uno::RuntimeException ) { return m_xBookmarkOperations->moveToBookmark(bookmark); } // css::sdbc::XResultSet @@ -146,6 +150,7 @@ public: void refreshRow() { m_xMoveOperations->refreshRow(); } bool rowDeleted() { return m_xMoveOperations->rowDeleted(); } // css::sdbcx::XColumnsSupplier + /// @throws css::uno::RuntimeException css::uno::Reference< css::container::XNameAccess> getColumns() const throw( css::uno::RuntimeException ) { return m_xColumnsSupplier->getColumns(); } private: void ImplConstruct(const css::uno::Reference< css::sdbc::XResultSet>& _rxCursor, bool bUseCloned); @@ -163,6 +168,7 @@ class SAL_WARN_UNUSED FmXDisposeListener public: virtual ~FmXDisposeListener(); + /// @throws css::uno::RuntimeException virtual void disposing(const css::lang::EventObject& _rEvent, sal_Int16 _nId) throw( css::uno::RuntimeException ) = 0; protected: diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx index b3838645a103..3dcb3ffabdca 100644 --- a/include/svx/gridctrl.hxx +++ b/include/svx/gridctrl.hxx @@ -351,6 +351,7 @@ protected: */ virtual void PostExecuteRowContextMenu(sal_uInt16 nRow, const PopupMenu& rMenu, sal_uInt16 nExecutionResult); + /// @throws css::uno::RuntimeException void DataSourcePropertyChanged(const css::beans::PropertyChangeEvent& evt) throw(css::uno::RuntimeException, std::exception); void FieldValueChanged(sal_uInt16 _nId, const css::beans::PropertyChangeEvent& _evt); diff --git a/include/svx/unoapi.hxx b/include/svx/unoapi.hxx index 35e7098ee051..d2bc9b62f820 100644 --- a/include/svx/unoapi.hxx +++ b/include/svx/unoapi.hxx @@ -38,6 +38,8 @@ enum class SdrInventor : sal_uInt32; /** * Creates a StarOffice API wrapper with the given type and inventor * Deprecated: This will be replaced with a function returning XShape. + * + * @throws css::uno::RuntimeException */ SVX_DLLPUBLIC SvxShape* CreateSvxShapeByTypeAndInventor(sal_uInt16 nType, SdrInventor nInventor, OUString const & referer) throw (css::uno::RuntimeException, std::exception); @@ -75,6 +77,8 @@ SVX_DLLPUBLIC bool SvxFieldUnitToMeasureUnit( const FieldUnit nVcl, short& eApi /** * If the given name is a predefined name for the current language it is replaced by * the corresponding API name. + * + * @throws std::exception */ SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString SvxUnogetApiNameForItem(const sal_Int16 nWhich, const OUString& rInternalName) throw(std::exception); @@ -82,6 +86,8 @@ SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString /** * If the given name is a predefined API name it is replaced by the predefined name * for the current language. + * + * @throws std::exception */ SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString SvxUnogetInternalNameForItem(const sal_Int16 nWhich, const OUString& rApiName) throw(std::exception); diff --git a/include/svx/unomaster.hxx b/include/svx/unomaster.hxx index 9e2db415f314..ee9ee03f59c4 100644 --- a/include/svx/unomaster.hxx +++ b/include/svx/unomaster.hxx @@ -35,7 +35,13 @@ class SvxShapeMaster public: virtual bool queryAggregation( const css::uno::Type & rType, css::uno::Any& aAny ) = 0; + /// @throws css::uno::RuntimeException virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(css::uno::RuntimeException) = 0; + /// @throws css::beans::UnknownPropertyException + /// @throws css::beans::PropertyVetoException + /// @throws css::lang::IllegalArgumentException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw (css::beans::UnknownPropertyException, css::beans::PropertyVetoException, @@ -43,18 +49,30 @@ public: css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) = 0; + /// @throws css::beans::UnknownPropertyException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) = 0; + /// @throws css::beans::UnknownPropertyException + /// @throws css::uno::RuntimeException virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException) = 0; + /// @throws css::beans::UnknownPropertyException + /// @throws css::uno::RuntimeException virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException) = 0; + /// @throws css::beans::UnknownPropertyException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) = 0; + /// @throws css::uno::RuntimeException virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) throw(css::uno::RuntimeException) = 0; + /// @throws css::uno::RuntimeException virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException) = 0; virtual void dispose() = 0; diff --git a/include/svx/unomod.hxx b/include/svx/unomod.hxx index 153ffbd27724..2b893b869718 100644 --- a/include/svx/unomod.hxx +++ b/include/svx/unomod.hxx @@ -40,6 +40,8 @@ public: virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString& ServiceSpecifier, const css::uno::Sequence< css::uno::Any >& Arguments ) throw(css::uno::Exception, css::uno::RuntimeException, std::exception) override; virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames( ) throw(css::uno::RuntimeException, std::exception) override; + /// @throws css::uno::Exception + /// @throws css::uno::RuntimeException static css::uno::Reference< css::uno::XInterface > SAL_CALL createTextField( const OUString& aServiceSpecifier ) throw(css::uno::Exception, css::uno::RuntimeException); // internal static css::uno::Sequence< OUString > diff --git a/include/svx/unopage.hxx b/include/svx/unopage.hxx index 7bbdc1672523..5924620faa25 100644 --- a/include/svx/unopage.hxx +++ b/include/svx/unopage.hxx @@ -93,13 +93,16 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper6< css::drawin // Creating a SdrObject using it's Description. // Can be used by derived classes to support their owen Shapes (e.g. Controls). + /// @throws css::uno::RuntimeException virtual SdrObject *CreateSdrObject_( const css::uno::Reference< css::drawing::XShape >& xShape ) throw (css::uno::RuntimeException, std::exception); + /// @throws css::uno::RuntimeException static SvxShape* CreateShapeByTypeAndInventor( sal_uInt16 nType, SdrInventor nInventor, SdrObject *pObj, SvxDrawPage *pPage = nullptr, OUString const & referer = OUString() ) throw (css::uno::RuntimeException); // The following method is called if a SvxShape object is to be created. // Derived classes can create a derivation or an SvxShape aggregating object. + /// @throws css::uno::RuntimeException virtual css::uno::Reference< css::drawing::XShape > CreateShape( SdrObject *pObj ) const throw (css::uno::RuntimeException, std::exception); diff --git a/include/svx/unopool.hxx b/include/svx/unopool.hxx index 5cd057a4e16d..67c03fb5f10d 100644 --- a/include/svx/unopool.hxx +++ b/include/svx/unopool.hxx @@ -78,7 +78,11 @@ public: protected: void init(); + /// @throws css::beans::UnknownPropertyException static void getAny( SfxItemPool* pPool, const comphelper::PropertyMapEntry* pEntry, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException); + /// @throws css::beans::UnknownPropertyException + /// @throws css::lang::IllegalArgumentException + /// @throws css::uno::RuntimeException virtual void putAny( SfxItemPool* pPool, const comphelper::PropertyMapEntry* pEntry, const css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception); protected: diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx index bc3d0aa57a1a..0f374953ddea 100644 --- a/include/svx/unoshape.hxx +++ b/include/svx/unoshape.hxx @@ -164,14 +164,29 @@ protected: void endSetPropertyValues(); // override these for special property handling in subcasses. Return true if property is handled + /// @throws css::beans::UnknownPropertyException + /// @throws css::beans::PropertyVetoException + /// @throws css::lang::IllegalArgumentException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, const css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); + /// @throws css::beans::UnknownPropertyException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); + /// @throws css::beans::UnknownPropertyException + /// @throws css::uno::RuntimeException virtual bool getPropertyStateImpl( const SfxItemPropertySimpleEntry* pProperty, css::beans::PropertyState& rState ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException); + /// @throws css::beans::UnknownPropertyException + /// @throws css::uno::RuntimeException virtual bool setPropertyToDefaultImpl( const SfxItemPropertySimpleEntry* pProperty ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException); public: + /// @throws css::uno::RuntimeException SvxShape( SdrObject* pObj ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException SvxShape( SdrObject* pObject, const SfxItemPropertyMapEntry* pEntries, const SvxItemPropertySet* pPropertySet ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException SvxShape() throw (css::uno::RuntimeException); virtual ~SvxShape() throw () override; @@ -191,6 +206,7 @@ public: void InvalidateSdrObject() { mpObj.reset( nullptr ); }; SdrObject* GetSdrObject() const {return mpObj.get();} void SetShapeType( const OUString& ShapeType ) { maShapeType = ShapeType; } + /// @throws css::uno::RuntimeException css::uno::Any GetBitmap( bool bMetaFile = false ) const throw (css::uno::RuntimeException, std::exception); @@ -211,16 +227,34 @@ public: UNO3_GETIMPLEMENTATION_DECL( SvxShape ) // access methods for master objects + /// @throws css::uno::RuntimeException css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL _getPropertySetInfo( ) throw(css::uno::RuntimeException); + /// @throws css::beans::UnknownPropertyException + /// @throws css::beans::PropertyVetoException + /// @throws css::lang::IllegalArgumentException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException void SAL_CALL _setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); + /// @throws css::beans::UnknownPropertyException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException css::uno::Any SAL_CALL _getPropertyValue( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException); + /// @throws css::beans::UnknownPropertyException + /// @throws css::uno::RuntimeException css::beans::PropertyState SAL_CALL _getPropertyState( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException); + /// @throws css::beans::UnknownPropertyException + /// @throws css::uno::RuntimeException void SAL_CALL _setPropertyToDefault( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException); + /// @throws css::beans::UnknownPropertyException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException css::uno::Any SAL_CALL _getPropertyDefault( const OUString& aPropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException); + /// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames() throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException css::uno::Sequence< css::uno::Type > SAL_CALL _getTypes( ) throw(css::uno::RuntimeException); void setMaster( SvxShapeMaster* pMaster ); @@ -585,10 +619,13 @@ protected: virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException) override; public: + /// @throws css::lang::IllegalArgumentException + /// @throws css::beans::PropertyVetoException SvxShapePolyPolygon( SdrObject* pObj , css::drawing::PolygonKind eNew ) throw(css::lang::IllegalArgumentException, css::beans::PropertyVetoException); virtual ~SvxShapePolyPolygon() throw() override; // Local support functions + /// @throws css::uno::RuntimeException void SetPolygon(const basegfx::B2DPolyPolygon& rNew) throw(css::uno::RuntimeException); basegfx::B2DPolyPolygon GetPolygon() const throw(); }; @@ -615,6 +652,7 @@ public: virtual ~SvxShapePolyPolygonBezier() throw() override; // Local support functions + /// @throws css::uno::RuntimeException void SetPolygon(const basegfx::B2DPolyPolygon & rNew) throw(css::uno::RuntimeException); basegfx::B2DPolyPolygon GetPolygon() const throw(); }; diff --git a/svx/inc/AccessibleTableShape.hxx b/svx/inc/AccessibleTableShape.hxx index 2adcc0618332..e0e0ac465135 100644 --- a/svx/inc/AccessibleTableShape.hxx +++ b/svx/inc/AccessibleTableShape.hxx @@ -125,6 +125,7 @@ public: using AccessibleShape::disposing; friend class AccessibleTableHeaderShape; + /// @throws css::lang::IndexOutOfBoundsException void getColumnAndRow( sal_Int32 nChildIndex, sal_Int32& rnColumn, sal_Int32& rnRow ) throw (css::lang::IndexOutOfBoundsException ); // overwrite the SetState & ResetState to do special operation for table cell's internal text virtual bool SetState (sal_Int16 aState) override; @@ -140,6 +141,7 @@ protected: sdr::table::SvxTableController* getTableController(); + /// @throws css::lang::IndexOutOfBoundsException void checkCellPosition( sal_Int32 nCol, sal_Int32 nRow ) throw ( css::lang::IndexOutOfBoundsException ); private: diff --git a/svx/source/accessibility/ChildrenManagerImpl.hxx b/svx/source/accessibility/ChildrenManagerImpl.hxx index d8c0776bb195..27d73b74034c 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.hxx +++ b/svx/source/accessibility/ChildrenManagerImpl.hxx @@ -118,6 +118,8 @@ public: */ long GetChildCount() const throw (); + /// @throws css::uno::RuntimeException + /// @throws css::lang::IndexOutOfBoundsException css::uno::Reference<css::drawing::XShape> GetChildShape(long nIndex) throw (css::uno::RuntimeException, css::lang::IndexOutOfBoundsException); @@ -149,6 +151,7 @@ public: Returns a reference to the requested accessible child. This reference is empty if it has not been possible to create the accessible object of the corresponding shape. + @throws css::uno::RuntimeException */ css::uno::Reference<css::accessibility::XAccessible> GetChild (ChildDescriptor& aChildDescriptor,sal_Int32 _nIndex) @@ -165,6 +168,7 @@ public: Returns a reference to the requested accessible child. The reference is empty if there is no shape descriptor that associates the shape with an accessible object. + @throws css::uno::RuntimeException */ css::uno::Reference<css::accessibility::XAccessible> GetChild (const css::uno::Reference<css::drawing::XShape>& xShape) diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index a8d8aa2b4e10..3987b458315e 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -250,6 +250,7 @@ public: virtual void SAL_CALL disjunctiveTermAdded( const FilterEvent& Event ) throw (RuntimeException, std::exception) override; // helpers + /// @throws RuntimeException void dispose() throw( RuntimeException ); void AddOrRemoveListener( const Reference< XIndexAccess >& _rxControllers, const bool _bAdd ); diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx index 1a05c6910e3e..6963b0db8cee 100644 --- a/svx/source/form/fmundo.cxx +++ b/svx/source/form/fmundo.cxx @@ -78,6 +78,7 @@ using namespace ::dbtools; class ScriptEventListenerWrapper : public cppu::WeakImplHelper< XScriptListener > { public: + /// @throws css::uno::RuntimeException explicit ScriptEventListenerWrapper( FmFormModel& _rModel) throw ( RuntimeException ) :m_rModel( _rModel ) ,m_attemptedListenerCreation( false ) diff --git a/svx/source/inc/AccessibleFrameSelector.hxx b/svx/source/inc/AccessibleFrameSelector.hxx index 9c2ad91e5205..ddae1082c597 100644 --- a/svx/source/inc/AccessibleFrameSelector.hxx +++ b/svx/source/inc/AccessibleFrameSelector.hxx @@ -103,6 +103,7 @@ protected: DECL_LINK( WindowEventListener, VclWindowEvent&, void ); private: + /// @throws css::uno::RuntimeException void IsValid() throw (css::uno::RuntimeException); void RemoveFrameSelEventListener(); diff --git a/svx/source/inc/GraphCtlAccessibleContext.hxx b/svx/source/inc/GraphCtlAccessibleContext.hxx index c0f3454a930e..1eea3a88a03f 100644 --- a/svx/source/inc/GraphCtlAccessibleContext.hxx +++ b/svx/source/inc/GraphCtlAccessibleContext.hxx @@ -158,6 +158,7 @@ public: virtual Size LogicToPixel (const Size& rSize) const override; protected: + /// @throws css::lang::IndexOutOfBoundsException void checkChildIndexOnSelection( long nIndexOfChild ) throw (css::lang::IndexOutOfBoundsException ); public: @@ -181,11 +182,15 @@ protected: 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); virtual void SAL_CALL disposing() final override; private: + /// @throws css::uno::RuntimeException + /// @throws css::lang::IndexOutOfBoundsException SdrObject* getSdrObject( sal_Int32 nIndex ) throw( css::uno::RuntimeException, css::lang::IndexOutOfBoundsException ); diff --git a/svx/source/inc/coreservices.hxx b/svx/source/inc/coreservices.hxx index 4a83c5126a88..35205a8004d4 100644 --- a/svx/source/inc/coreservices.hxx +++ b/svx/source/inc/coreservices.hxx @@ -36,27 +36,39 @@ namespace com { namespace sun { namespace star { namespace svx { OUString SAL_CALL ExtrusionDepthController_getImplementationName(); +/// @throws css::uno::RuntimeException css::uno::Reference< css::uno::XInterface > SAL_CALL ExtrusionDepthController_createInstance(const css::uno::Reference< css::lang::XMultiServiceFactory > &) throw( css::uno::RuntimeException ); +/// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL ExtrusionDepthController_getSupportedServiceNames() throw( css::uno::RuntimeException ); OUString SAL_CALL ExtrusionDirectionControl_getImplementationName(); +/// @throws css::uno::RuntimeException css::uno::Reference< css::uno::XInterface > SAL_CALL ExtrusionDirectionControl_createInstance(const css::uno::Reference< css::lang::XMultiServiceFactory > &) throw( css::uno::RuntimeException ); +/// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL ExtrusionDirectionControl_getSupportedServiceNames() throw( css::uno::RuntimeException ); OUString SAL_CALL ExtrusionLightingControl_getImplementationName(); +/// @throws css::uno::RuntimeException css::uno::Reference< css::uno::XInterface > SAL_CALL ExtrusionLightingControl_createInstance(const css::uno::Reference< css::lang::XMultiServiceFactory > &) throw( css::uno::RuntimeException ); +/// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL ExtrusionLightingControl_getSupportedServiceNames() throw( css::uno::RuntimeException ); OUString SAL_CALL ExtrusionSurfaceControl_getImplementationName(); +/// @throws css::uno::RuntimeException css::uno::Reference< css::uno::XInterface > SAL_CALL ExtrusionSurfaceControl_createInstance(const css::uno::Reference< css::lang::XMultiServiceFactory > &) throw( css::uno::RuntimeException ); +/// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL ExtrusionSurfaceControl_getSupportedServiceNames() throw( css::uno::RuntimeException ); OUString SAL_CALL FontworkAlignmentControl_getImplementationName(); +/// @throws css::uno::RuntimeException css::uno::Reference< css::uno::XInterface > SAL_CALL FontworkAlignmentControl_createInstance(const css::uno::Reference< css::lang::XMultiServiceFactory > &) throw( css::uno::RuntimeException ); +/// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL FontworkAlignmentControl_getSupportedServiceNames() throw( css::uno::RuntimeException ); OUString SAL_CALL FontworkCharacterSpacingControl_getImplementationName(); +/// @throws css::uno::RuntimeException css::uno::Reference< css::uno::XInterface > SAL_CALL FontworkCharacterSpacingControl_createInstance(const css::uno::Reference< css::lang::XMultiServiceFactory > &) throw( css::uno::RuntimeException ); +/// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL FontworkCharacterSpacingControl_getSupportedServiceNames() throw( css::uno::RuntimeException ); } diff --git a/svx/source/inc/fmservs.hxx b/svx/source/inc/fmservs.hxx index edc6a016d2bc..60b0dcde5f83 100644 --- a/svx/source/inc/fmservs.hxx +++ b/svx/source/inc/fmservs.hxx @@ -92,16 +92,19 @@ namespace svxform OAddConditionDialog_GetSupportedServiceNames(); } +/// @throws css::uno::Exception css::uno::Reference<css::uno::XInterface> SAL_CALL FmXGridControl_NewInstance_Impl( css::uno::Reference<css::lang::XMultiServiceFactory> const &) throw (css::uno::Exception); +/// @throws css::uno::Exception css::uno::Reference<css::uno::XInterface> SAL_CALL FormController_NewInstance_Impl( css::uno::Reference<css::lang::XMultiServiceFactory> const &) throw (css::uno::Exception); +/// @throws css::uno::Exception css::uno::Reference<css::uno::XInterface> SAL_CALL LegacyFormController_NewInstance_Impl( css::uno::Reference<css::lang::XMultiServiceFactory> const &) diff --git a/svx/source/inc/formcontroller.hxx b/svx/source/inc/formcontroller.hxx index 77966e3ea946..9099c0412e47 100644 --- a/svx/source/inc/formcontroller.hxx +++ b/svx/source/inc/formcontroller.hxx @@ -476,6 +476,7 @@ namespace svxform void addToEventAttacher(const css::uno::Reference< css::awt::XControl>& xControl); void removeFromEventAttacher(const css::uno::Reference< css::awt::XControl>& xControl); void toggleAutoFields(bool bAutoFields); + /// @throws css::uno::RuntimeException void unload() throw( css::uno::RuntimeException ); void removeBoundFieldListener(); diff --git a/svx/source/inc/formdispatchinterceptor.hxx b/svx/source/inc/formdispatchinterceptor.hxx index 73ad565dc550..5708737cf258 100644 --- a/svx/source/inc/formdispatchinterceptor.hxx +++ b/svx/source/inc/formdispatchinterceptor.hxx @@ -33,6 +33,7 @@ namespace svxform class DispatchInterceptor { public: + /// @throws css::uno::RuntimeException virtual css::uno::Reference< css::frame::XDispatch> interceptedQueryDispatch( const css::util::URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags) throw( css::uno::RuntimeException ) = 0; diff --git a/svx/source/inc/svxpixelctlaccessiblecontext.hxx b/svx/source/inc/svxpixelctlaccessiblecontext.hxx index 68a379f96a70..7de85a596d7b 100644 --- a/svx/source/inc/svxpixelctlaccessiblecontext.hxx +++ b/svx/source/inc/svxpixelctlaccessiblecontext.hxx @@ -130,13 +130,15 @@ public: void FireAccessibleEvent (short nEventId, const css::uno::Any& rOld, const css::uno::Any& rNew); virtual void SAL_CALL disposing() override; + /// @throws css::uno::RuntimeException Rectangle GetBoundingBoxOnScreen() throw( css::uno::RuntimeException ); + /// @throws css::uno::RuntimeException Rectangle const & GetBoundingBox() throw( css::uno::RuntimeException ); /// @returns true if it's disposed or in disposing inline bool IsAlive() const; - /// throws the exception DisposedException if it's not alive + /// @throws css::lang::DisposedException if it's not alive void ThrowExceptionIfNotAlive() throw( css::lang::DisposedException ); diff --git a/svx/source/inc/svxrectctaccessiblecontext.hxx b/svx/source/inc/svxrectctaccessiblecontext.hxx index 622feca5a7d2..79ce253aec1c 100644 --- a/svx/source/inc/svxrectctaccessiblecontext.hxx +++ b/svx/source/inc/svxrectctaccessiblecontext.hxx @@ -101,6 +101,7 @@ public: virtual css::awt::Size SAL_CALL getSize() throw( css::uno::RuntimeException, std::exception ) override; + /// @throws css::uno::RuntimeException bool SAL_CALL isVisible() throw( css::uno::RuntimeException ); @@ -200,6 +201,7 @@ public: protected: // internals + /// @throws css::lang::IndexOutOfBoundsException void checkChildIndex( long nIndexOfChild ) throw( css::lang::IndexOutOfBoundsException ); /** Selects a new child by index. @@ -227,9 +229,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 ); virtual void SAL_CALL disposing() override; @@ -237,7 +243,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 css::lang::DisposedException if it's not alive void ThrowExceptionIfNotAlive() throw( css::lang::DisposedException ); private: @@ -410,8 +416,10 @@ public: void FireFocusEvent(); protected: + /// @throws css::uno::RuntimeException Rectangle GetBoundingBoxOnScreen() throw( css::uno::RuntimeException ); + /// @throws css::uno::RuntimeException Rectangle const & GetBoundingBox() throw( css::uno::RuntimeException ); void CommitChange( const css::accessibility::AccessibleEventObject& rEvent ); @@ -421,7 +429,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 css::lang::DisposedException if it's not alive void ThrowExceptionIfNotAlive() throw( css::lang::DisposedException ); /// Mutex guarding this object. diff --git a/svx/source/inc/xmlxtexp.hxx b/svx/source/inc/xmlxtexp.hxx index 1152769ee7a9..71701fa6ede6 100644 --- a/svx/source/inc/xmlxtexp.hxx +++ b/svx/source/inc/xmlxtexp.hxx @@ -43,6 +43,7 @@ public: virtual ~SvxXMLXTableExportComponent() override; + /// @throws css::uno::RuntimeException static bool save( const OUString& rURL, const css::uno::Reference< css::container::XNameContainer >& xTable, const css::uno::Reference< css::embed::XStorage > &xStorage, diff --git a/svx/source/table/accessibletableshape.cxx b/svx/source/table/accessibletableshape.cxx index a008b808dc76..58db3b2726cb 100644 --- a/svx/source/table/accessibletableshape.cxx +++ b/svx/source/table/accessibletableshape.cxx @@ -69,7 +69,10 @@ public: void init( const Reference< XAccessible>& xAccessible, const Reference< XTable >& xTable ); void dispose(); + /// @throws IndexOutOfBoundsException + /// @throws RuntimeException Reference< XAccessible > getAccessibleChild(sal_Int32 i) throw (IndexOutOfBoundsException, RuntimeException); + /// @throws IndexOutOfBoundsException void getColumnAndRow( sal_Int32 nChildIndex, sal_Int32& rnColumn, sal_Int32& rnRow ) throw (IndexOutOfBoundsException ); // XModifyListener @@ -85,6 +88,8 @@ public: sal_Int32 mRowCount, mColCount; //get the cached AccessibleCell from XCell rtl::Reference< AccessibleCell > getAccessibleCell (const Reference< XCell >& xCell); + /// @throws IndexOutOfBoundsException + /// @throws RuntimeException rtl::Reference< AccessibleCell > getAccessibleCell (sal_Int32 nRow, sal_Int32 nColumn) throw (IndexOutOfBoundsException, RuntimeException); }; diff --git a/svx/source/table/cell.hxx b/svx/source/table/cell.hxx index 72f4a15f4eac..572908aa119f 100644 --- a/svx/source/table/cell.hxx +++ b/svx/source/table/cell.hxx @@ -198,6 +198,7 @@ protected: SVX_DLLPRIVATE static css::uno::Any GetAnyForItem( SfxItemSet& aSet, const SfxItemPropertySimpleEntry* pMap ); private: + /// @throws css::uno::RuntimeException SVX_DLLPRIVATE Cell( SdrTableObj& rTableObj, OutlinerParaObject* pOutlinerParaObject ) throw(css::uno::RuntimeException); SVX_DLLPRIVATE virtual ~Cell() throw() override; diff --git a/svx/source/table/propertyset.hxx b/svx/source/table/propertyset.hxx index b84125db7206..a88786a32d5e 100644 --- a/svx/source/table/propertyset.hxx +++ b/svx/source/table/propertyset.hxx @@ -44,6 +44,7 @@ public: void addProperties( const PropertyVector& rProps ); + /// @throws css::beans::UnknownPropertyException const css::beans::Property& getProperty( const OUString& aName ) throw (css::beans::UnknownPropertyException ); const css::beans::Property* hasProperty( const OUString& aName ); diff --git a/svx/source/table/tablecolumn.hxx b/svx/source/table/tablecolumn.hxx index 8597e0676f70..5832ea02956c 100644 --- a/svx/source/table/tablecolumn.hxx +++ b/svx/source/table/tablecolumn.hxx @@ -41,6 +41,7 @@ public: virtual ~TableColumn() override; void dispose(); + /// @throws css::uno::RuntimeException void throwIfDisposed() const throw (css::uno::RuntimeException); TableColumn& operator=( const TableColumn& ); diff --git a/svx/source/table/tablecolumns.hxx b/svx/source/table/tablecolumns.hxx index fdc9973d1b30..56051fdc2113 100644 --- a/svx/source/table/tablecolumns.hxx +++ b/svx/source/table/tablecolumns.hxx @@ -35,6 +35,7 @@ public: virtual ~TableColumns() override; void dispose(); + /// @throws css::uno::RuntimeException void throwIfDisposed() const throw (css::uno::RuntimeException); // XTableColumns diff --git a/svx/source/table/tablemodel.hxx b/svx/source/table/tablemodel.hxx index faafccd6d3fe..deb083498bd6 100644 --- a/svx/source/table/tablemodel.hxx +++ b/svx/source/table/tablemodel.hxx @@ -162,7 +162,9 @@ private: */ virtual void SAL_CALL disposing() override; + /// @throws css::lang::IndexOutOfBoundsException TableRowRef getRow( sal_Int32 nRow ) const throw (css::lang::IndexOutOfBoundsException); + /// @throws css::lang::IndexOutOfBoundsException TableColumnRef getColumn( sal_Int32 nColumn ) const throw (css::lang::IndexOutOfBoundsException); void updateRows(); diff --git a/svx/source/table/tablerow.hxx b/svx/source/table/tablerow.hxx index ba8df5bc75bf..bcdbe5ef9bc4 100644 --- a/svx/source/table/tablerow.hxx +++ b/svx/source/table/tablerow.hxx @@ -41,6 +41,7 @@ public: virtual ~TableRow() override; void dispose(); + /// @throws css::uno::RuntimeException void throwIfDisposed() const throw (css::uno::RuntimeException); TableRow& operator=( const TableRow& ); diff --git a/svx/source/table/tablerows.hxx b/svx/source/table/tablerows.hxx index 000d2a21f6cf..10788ff0afea 100644 --- a/svx/source/table/tablerows.hxx +++ b/svx/source/table/tablerows.hxx @@ -35,6 +35,7 @@ public: virtual ~TableRows() override; void dispose(); + /// @throws css::uno::RuntimeException void throwIfDisposed() const throw (css::uno::RuntimeException); // XTableRows diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx index ce4d2bb1a259..a65fc2e889de 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx @@ -79,6 +79,7 @@ public: static OUString getImplementationName_Static(); static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); + /// @throws css::uno::Exception static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & ) throw(css::uno::Exception) { diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx index 2b1f57904915..60758c01d382 100644 --- a/svx/source/unodraw/XPropertyTable.cxx +++ b/svx/source/unodraw/XPropertyTable.cxx @@ -53,7 +53,10 @@ private: public: SvxUnoXPropertyTable( sal_Int16 nWhich, XPropertyList* pList ) throw(); + /// @throws uno::RuntimeException virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw(uno::RuntimeException) = 0; + /// @throws uno::RuntimeException + /// @throws lang::IllegalArgumentException virtual std::unique_ptr<XPropertyEntry> createEntry(const OUString& rName, const uno::Any& rAny) const throw(uno::RuntimeException, lang::IllegalArgumentException) = 0; // XServiceInfo diff --git a/svx/source/unodraw/unoprov.cxx b/svx/source/unodraw/unoprov.cxx index 32beef82f295..71f911202dd5 100644 --- a/svx/source/unodraw/unoprov.cxx +++ b/svx/source/unodraw/unoprov.cxx @@ -1116,6 +1116,7 @@ bool SvxUnoGetResourceRanges( const short nWhich, int& nApiResIds, int& nIntResI return true; } +/// @throws std::exception bool SvxUnoConvertResourceString( int nSourceResIds, int nDestResIds, int nCount, OUString& rString ) throw(std::exception) { // first, calculate the search string length without an optional number behind the name @@ -1269,7 +1270,7 @@ static const sal_uInt16 SvxUnoColorNameResId[] = RID_SVXSTR_COLOR_TANGO_ALUMINIUM }; - +/// @throws std::exception bool SvxUnoConvertResourceString( const sal_uInt16* pSourceResIds, const sal_uInt16* pDestResIds, int nCount, OUString& rString ) throw (std::exception) { //We replace e.g. "Gray 10%" with the translation of Gray, but we shouldn't |