diff options
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/AccessibleCellBase.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/AccessibleContextBase.hxx | 11 | ||||
-rw-r--r-- | sc/source/ui/inc/AccessibleCsvControl.hxx | 22 |
3 files changed, 29 insertions, 8 deletions
diff --git a/sc/source/ui/inc/AccessibleCellBase.hxx b/sc/source/ui/inc/AccessibleCellBase.hxx index 57041e47b4a2..7322d74bd4e9 100644 --- a/sc/source/ui/inc/AccessibleCellBase.hxx +++ b/sc/source/ui/inc/AccessibleCellBase.hxx @@ -135,13 +135,17 @@ private: virtual bool IsEditable( const css::uno::Reference<css::accessibility::XAccessibleStateSet>& rxParentStates); protected: + /// @throw css::uno::RuntimeException OUString SAL_CALL GetNote() throw (css::uno::RuntimeException); + /// @throw css::uno::RuntimeException OUString SAL_CALL GetAllDisplayNote() throw (css::uno::RuntimeException, std::exception); + /// @throw css::uno::RuntimeException OUString SAL_CALL getShadowAttrs() throw (css::uno::RuntimeException, std::exception); + /// @throw css::uno::RuntimeException OUString SAL_CALL getBorderAttrs() throw (css::uno::RuntimeException, std::exception); public: diff --git a/sc/source/ui/inc/AccessibleContextBase.hxx b/sc/source/ui/inc/AccessibleContextBase.hxx index 3acf9359fe77..e1431d2b3e41 100644 --- a/sc/source/ui/inc/AccessibleContextBase.hxx +++ b/sc/source/ui/inc/AccessibleContextBase.hxx @@ -78,9 +78,11 @@ protected: virtual ~ScAccessibleContextBase() override; public: + /// @throws css::uno::RuntimeException bool SAL_CALL isShowing( ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException virtual bool SAL_CALL isVisible() throw (css::uno::RuntimeException, std::exception); @@ -255,21 +257,29 @@ public: protected: /// Return this object's description. + /// + /// @throws css::uno::RuntimeException virtual OUString SAL_CALL createAccessibleDescription() throw (css::uno::RuntimeException, std::exception); /// Return the object's current name. + /// + /// @throws css::uno::RuntimeException virtual OUString SAL_CALL createAccessibleName() throw (css::uno::RuntimeException, std::exception); /// Return the object's current bounding box relative to the desktop. + /// + /// @throws css::uno::RuntimeException virtual Rectangle GetBoundingBoxOnScreen() const throw (css::uno::RuntimeException, std::exception); /// Return the object's current bounding box relative to the parent object. + /// + /// @throws css::uno::RuntimeException virtual Rectangle GetBoundingBox() const throw (css::uno::RuntimeException, std::exception); @@ -287,6 +297,7 @@ protected: bool IsDefunc() const { return rBHelper.bDisposed; } + /// @throws css::lang::DisposedException void IsObjectValid() const throw (css::lang::DisposedException); diff --git a/sc/source/ui/inc/AccessibleCsvControl.hxx b/sc/source/ui/inc/AccessibleCsvControl.hxx index d599c2d7975b..4794360e1db4 100644 --- a/sc/source/ui/inc/AccessibleCsvControl.hxx +++ b/sc/source/ui/inc/AccessibleCsvControl.hxx @@ -90,14 +90,17 @@ protected: /** Returns whether the object is alive. Must be called with locked mutex. */ inline bool implIsAlive() const { return !rBHelper.bDisposed && !rBHelper.bInDispose && mpControl; } - /** Throws an exception, if the object is disposed/disposing or any pointer + /** @throws css::lang::DisposedException if the object is disposed/disposing or any pointer is missing. Should be used with locked mutex! */ void ensureAlive() const throw( css::lang::DisposedException ); /** Returns the VCL control. Assumes a living object. */ ScCsvControl& implGetControl() const; - /** Returns the first child of rxParentObj, which has the role nRole. */ + /** Returns the first child of rxParentObj, which has the role nRole. + + @throws css::uno::RuntimeException + */ static css::uno::Reference< css::accessibility::XAccessible > implGetChildByRole( const css::uno::Reference< css::accessibility::XAccessible >& rxParentObj, sal_uInt16 nRole ) throw( css::uno::RuntimeException ); /** Creates a StateSetHelper and fills it with DEFUNC, OPAQUE, ENABLED, SHOWING and VISIBLE. */ @@ -246,13 +249,13 @@ private: virtual OUString SAL_CALL createAccessibleDescription() throw( css::uno::RuntimeException, std::exception ) override; - /** Throws an exception, if the specified character position is invalid (outside 0..len-1). */ + /** @throws css::lang::IndexOutOfBoundsException if the specified character position is invalid (outside 0..len-1). */ void ensureValidIndex( sal_Int32 nIndex ) const throw( css::lang::IndexOutOfBoundsException ); - /** Throws an exception, if the specified character position is invalid (outside 0..len). */ + /** @throws css::lang::IndexOutOfBoundsException if the specified character position is invalid (outside 0..len). */ void ensureValidIndexWithEnd( sal_Int32 nIndex ) const throw( css::lang::IndexOutOfBoundsException ); - /** Throws an exception, if the specified character range [Start,End) is invalid. + /** @throws css::lang::IndexOutOfBoundsException if the specified character range [Start,End) is invalid. @descr If Start>End, swaps Start and End before checking. */ void ensureValidRange( sal_Int32& rnStartIndex, sal_Int32& rnEndIndex ) const throw( css::lang::IndexOutOfBoundsException ); @@ -260,7 +263,10 @@ private: /** Returns the VCL ruler control. Assumes a living object. */ ScCsvRuler& implGetRuler() const; - /** Builds the entire string buffer. */ + /** Builds the entire string buffer. + + @throws css::uno::RuntimeException + */ void constructStringBuffer() throw( css::uno::RuntimeException ); /** Returns the character count of the text. */ sal_Int32 implGetTextLength() const; @@ -482,10 +488,10 @@ private: virtual OUString SAL_CALL createAccessibleDescription() throw( css::uno::RuntimeException, std::exception ) override; - /** Throws an exception, if nIndex is not a valid child index. */ + /** @throws css::lang::IndexOutOfBoundsException if nIndex is not a valid child index. */ void ensureValidIndex( sal_Int32 nIndex ) const throw( css::lang::IndexOutOfBoundsException ); - /** Throws an exception, if the specified position is invalid. */ + /** @Throws css::lang::IndexOutOfBoundsException if the specified position is invalid. */ void ensureValidPosition( sal_Int32 nRow, sal_Int32 nColumn ) const throw( css::lang::IndexOutOfBoundsException ); |