summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:58:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:22 +0100
commit72828a34e76017cfa0df53babc24d1c2377031f8 (patch)
tree4b0b314adb6b7f88ab2be35ffbbd89c5c671978a
parent9cc666630dafd3fc6cf65ec5b0048df58a3af5a2 (diff)
New loplugin:dynexcspec: Add @throws documentation, editeng
Change-Id: I4d93bf348b7b6a91aa37f8ce79b0b52a1a7d41ee
-rw-r--r--editeng/source/uno/unotext.cxx3
-rw-r--r--include/editeng/AccessibleComponentBase.hxx1
-rw-r--r--include/editeng/AccessibleContextBase.hxx7
-rw-r--r--include/editeng/AccessibleStaticTextBase.hxx4
-rw-r--r--include/editeng/unofield.hxx2
-rw-r--r--include/editeng/unonrule.hxx4
-rw-r--r--include/editeng/unotext.hxx29
7 files changed, 50 insertions, 0 deletions
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index 8cec01b5444c..d5d809eb1b8e 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -2037,6 +2037,9 @@ void SAL_CALL SvxUnoTextBase::moveTextRange( const uno::Reference< text::XTextRa
{
}
+/// @throws lang::IllegalArgumentException
+/// @throws beans::UnknownPropertyException
+/// @throws uno::RuntimeException
void SvxPropertyValuesToItemSet(
SfxItemSet &rItemSet,
const uno::Sequence< beans::PropertyValue >& rPropertyVaules,
diff --git a/include/editeng/AccessibleComponentBase.hxx b/include/editeng/AccessibleComponentBase.hxx
index c5ae524a858c..55c5775e9de3 100644
--- a/include/editeng/AccessibleComponentBase.hxx
+++ b/include/editeng/AccessibleComponentBase.hxx
@@ -114,6 +114,7 @@ public:
//===== XTypeProvider ===================================================
+ /// @throws css::uno::RuntimeException
virtual css::uno::Sequence< css::uno::Type> SAL_CALL
getTypes()
throw (css::uno::RuntimeException, std::exception);
diff --git a/include/editeng/AccessibleContextBase.hxx b/include/editeng/AccessibleContextBase.hxx
index 24bb87ee74c9..5cb1fe7abc97 100644
--- a/include/editeng/AccessibleContextBase.hxx
+++ b/include/editeng/AccessibleContextBase.hxx
@@ -102,6 +102,7 @@ public:
whether the given description overrules the existing one. An
origin with a lower numerical value overrides one with a higher
value.
+ @throws css::uno::RuntimeException
*/
void SetAccessibleDescription (
const OUString& rsDescription,
@@ -116,6 +117,7 @@ public:
The origin of the name. This is used to determine whether the
given name overrules the existing one. An origin with a lower
numerical value overrides one with a higher value.
+ @throws css::uno::RuntimeException
*/
void SetAccessibleName (
const OUString& rsName,
@@ -162,6 +164,8 @@ public:
@param rRelationSet
The new relation set that replaces the old one.
+
+ @throws css::uno::RuntimeException
*/
void SetRelationSet (
const css::uno::Reference< css::accessibility::XAccessibleRelationSet>& rxRelationSet)
@@ -290,6 +294,7 @@ protected:
@return
The returned string is a unique (among the accessible object's
siblings) name.
+ @throws css::uno::RuntimeException
*/
virtual OUString CreateAccessibleName()
throw (css::uno::RuntimeException, std::exception);
@@ -298,6 +303,7 @@ protected:
more than once.
@return
Descriptive string. Not necessarily unique.
+ @throws css::uno::RuntimeException
*/
virtual OUString
CreateAccessibleDescription()
@@ -309,6 +315,7 @@ protected:
state of being disposed). If that is the case then
DisposedException is thrown to inform the (indirect) caller of the
foul deed.
+ @throws css::lang::DisposedException
*/
void ThrowIfDisposed()
throw (css::lang::DisposedException);
diff --git a/include/editeng/AccessibleStaticTextBase.hxx b/include/editeng/AccessibleStaticTextBase.hxx
index 09af887c1554..759597bc0411 100644
--- a/include/editeng/AccessibleStaticTextBase.hxx
+++ b/include/editeng/AccessibleStaticTextBase.hxx
@@ -205,10 +205,14 @@ namespace accessibility
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes( sal_Int32 Index, const css::uno::Sequence< OUString >& RequestedAttributes ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
// child-related methods from XAccessibleContext
+ /// @throws css::uno::RuntimeException
virtual sal_Int32 SAL_CALL getAccessibleChildCount() throw (css::uno::RuntimeException, std::exception);
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::uno::RuntimeException
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception);
// child-related methods from XAccessibleComponent
+ /// @throws css::uno::RuntimeException
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) throw (css::uno::RuntimeException, std::exception);
protected:
diff --git a/include/editeng/unofield.hxx b/include/editeng/unofield.hxx
index 8825842807c9..c9a6576a847d 100644
--- a/include/editeng/unofield.hxx
+++ b/include/editeng/unofield.hxx
@@ -38,6 +38,8 @@ class SvxUnoFieldData_Impl;
class SfxItemPropertySet;
class SvxFieldData;
+/// @throws css::uno::Exception
+/// @throws css::uno::RuntimeException
css::uno::Reference< css::uno::XInterface > EDITENG_DLLPUBLIC SAL_CALL SvxUnoTextCreateTextField(
const OUString& ServiceSpecifier ) throw(css::uno::Exception, css::uno::RuntimeException);
diff --git a/include/editeng/unonrule.hxx b/include/editeng/unonrule.hxx
index 1bead5014de0..5636b4a90ad1 100644
--- a/include/editeng/unonrule.hxx
+++ b/include/editeng/unonrule.hxx
@@ -33,6 +33,7 @@
EDITENG_DLLPUBLIC css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule( const SvxNumRule* pRule ) throw();
EDITENG_DLLPUBLIC css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule() throw();
+/// @throws css::lang::IllegalArgumentException
const SvxNumRule& SvxGetNumRule( css::uno::Reference< css::container::XIndexReplace > const & xRule ) throw( css::lang::IllegalArgumentException );
EDITENG_DLLPUBLIC css::uno::Reference< css::ucb::XAnyCompare > SvxCreateNumRuleCompare() throw();
@@ -72,8 +73,11 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) override;
// internal
+ /// @throws css::uno::RuntimeException
css::uno::Sequence<css::beans::PropertyValue> getNumberingRuleByIndex( sal_Int32 nIndex) const
throw (css::uno::RuntimeException, std::exception);
+ /// @throws css::uno::RuntimeException
+ /// @throws css::lang::IllegalArgumentException
void setNumberingRuleByIndex(const css::uno::Sequence<css::beans::PropertyValue>& rProperties, sal_Int32 nIndex)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception);
diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx
index 69046be6dbb3..c12203494195 100644
--- a/include/editeng/unotext.hxx
+++ b/include/editeng/unotext.hxx
@@ -256,24 +256,51 @@ protected:
ESelection maSelection;
const SvxItemPropertySet* mpPropSet;
+ /// @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, sal_Int32 nPara = -1 ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
css::uno::Any SAL_CALL _getPropertyValue( const OUString& PropertyName, sal_Int32 nPara = -1 ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ /// @throws css::beans::PropertyVetoException
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
void SAL_CALL _setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues, sal_Int32 nPara = -1 ) throw (css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::uno::Any > SAL_CALL _getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, sal_Int32 nPara = -1 ) throw (css::uno::RuntimeException);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
css::beans::PropertyState SAL_CALL _getPropertyState( const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara = -1 ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
css::beans::PropertyState SAL_CALL _getPropertyState( const OUString& PropertyName, sal_Int32 nPara = -1 ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::beans::PropertyState > SAL_CALL _getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName, sal_Int32 nPara = -1 ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException);
// returns true if property found or false if unknown property
static bool _getOnePropertyStates(const SfxItemSet* pSet, const SfxItemPropertySimpleEntry* pMap, css::beans::PropertyState& rState);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
void SAL_CALL _setPropertyToDefault( const OUString& PropertyName, sal_Int32 nPara = -1 ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
void _setPropertyToDefault( SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara ) throw( css::beans::UnknownPropertyException, css::uno::RuntimeException );
void SetEditSource( SvxEditSource* _pEditSource ) throw();
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
void getPropertyValue( const SfxItemPropertySimpleEntry* pMap, css::uno::Any& rAny, const SfxItemSet& rSet )
throw(css::beans::UnknownPropertyException, css::uno::RuntimeException);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::lang::IllegalArgumentException
void setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const css::uno::Any& rValue, const ESelection& rSelection, const SfxItemSet& rOldSet, SfxItemSet& rNewSet ) throw(css::beans::UnknownPropertyException, css::lang::IllegalArgumentException );
SvxUnoTextRangeBase( const SvxItemPropertySet* _pSet ) throw();
@@ -299,6 +326,7 @@ public:
SvxEditSource* GetEditSource() const throw() { return mpEditSource; }
static bool SetPropertyValueHelper( const SfxItemSet& rOldSet, const SfxItemPropertySimpleEntry* pMap, const css::uno::Any& aValue, SfxItemSet& rNewSet, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr );
+ /// @throws css::uno::RuntimeException
static bool GetPropertyValueHelper( SfxItemSet& rSet, const SfxItemPropertySimpleEntry* pMap, css::uno::Any& aAny, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr ) throw( css::uno::RuntimeException );
void attachField( const SvxFieldData* pData ) throw();
@@ -404,6 +432,7 @@ public:
css::uno::Reference< css::text::XTextCursor > createTextCursorBySelection( const ESelection& rSel );
// css::uno::XInterface
+ /// @throws css::uno::RuntimeException
virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) throw(css::uno::RuntimeException, std::exception);
// css::text::XSimpleText