New loplugin:dynexcspec: Add @throws documentation, editeng

Change-Id: I4d93bf348b7b6a91aa37f8ce79b0b52a1a7d41ee
This commit is contained in:
Stephan Bergmann
2017-01-19 17:58:29 +01:00
parent 9cc666630d
commit 72828a34e7
7 changed files with 50 additions and 0 deletions

View File

@@ -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,

View File

@@ -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);

View File

@@ -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);

View File

@@ -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:

View File

@@ -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);

View File

@@ -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);

View File

@@ -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