New loplugin:dynexcspec: Add @throws documentation, sfx2

Change-Id: I6568efb53c0904c58bcb648777b84471e5b4b501
This commit is contained in:
Stephan Bergmann 2017-01-19 17:51:42 +01:00
parent 5ad3a737e0
commit 5fb6c73d30
12 changed files with 28 additions and 1 deletions

View file

@ -111,6 +111,9 @@ public:
static std::shared_ptr<const SfxFilter> GetDefaultFilterFromFactory( const OUString& rServiceName );
static OUString GetTypeFromStorage( const SotStorage& rStg );
/// @throws css::beans::UnknownPropertyException
/// @throws css::lang::WrappedTargetException
/// @throws css::uno::RuntimeException
static OUString GetTypeFromStorage(
const css::uno::Reference<css::embed::XStorage>& xStorage,
bool bTemplate = false )

View file

@ -788,6 +788,7 @@ public:
virtual sal_Bool SAL_CALL canCancelCheckOut( ) throw ( css::uno::RuntimeException, std::exception ) override;
virtual sal_Bool SAL_CALL canCheckIn( ) throw ( css::uno::RuntimeException, std::exception ) override;
/// @throws css::uno::RuntimeException
bool getBoolPropertyValue( const OUString& rName ) throw ( css::uno::RuntimeException );
@ -837,7 +838,7 @@ protected:
private:
/// @throws css::uno::RuntimeException
css::uno::Reference< css::ui::XUIConfigurationManager2 > getUIConfigurationManager2() throw ( css::uno::RuntimeException );
bool impl_getPrintHelper();
SAL_DLLPRIVATE void ListenForStorage_Impl( const css::uno::Reference< css::embed::XStorage >& xStorage );

View file

@ -141,10 +141,12 @@ public:
void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, SfxSlotServer* pServ );
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override;
void setMasterSlaveCommand( bool bSet );
/// @throws css::uno::RuntimeException
void SAL_CALL dispatch( const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& aArgs,
const css::uno::Reference< css::frame::XDispatchResultListener >& rListener )
throw (css::uno::RuntimeException, std::exception);
/// @throws css::uno::RuntimeException
void SAL_CALL addStatusListener(const css::uno::Reference< css::frame::XStatusListener > & xControl, const css::util::URL& aURL) throw( css::uno::RuntimeException );
void UnBindController();
SfxDispatcher* GetDispatcher();

View file

@ -50,9 +50,13 @@ namespace sfx2
UserInputInterception& operator=( const UserInputInterception& ) = delete;
// delegator functions for your XUserInputInterception implementation
/// @throws css::uno::RuntimeException
void addKeyHandler( const css::uno::Reference< css::awt::XKeyHandler >& xHandler ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void removeKeyHandler( const css::uno::Reference< css::awt::XKeyHandler >& xHandler ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void addMouseClickHandler( const css::uno::Reference< css::awt::XMouseClickHandler >& xHandler ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void removeMouseClickHandler( const css::uno::Reference< css::awt::XMouseClickHandler >& xHandler ) throw (css::uno::RuntimeException);
// state

View file

@ -113,6 +113,7 @@ class SFX2_DLLPUBLIC ShutdownIcon : public ShutdownIconServiceBase
static bool GetAutostart();
static bool bModalMode;
/// @throws css::uno::Exception
void init() throw( css::uno::Exception, std::exception );
OUString GetResString( int id );

View file

@ -41,8 +41,10 @@ class SfxFilterListener final
public:
// XRefreshListener
/// @throws css::uno::RuntimeException
void SAL_CALL refreshed( const css::lang::EventObject& aSource ) throw( css::uno::RuntimeException, std::exception );
// XEventListener
/// @throws css::uno::RuntimeException
void SAL_CALL disposing( const css::lang::EventObject& aSource ) throw( css::uno::RuntimeException );
};

View file

@ -153,6 +153,8 @@ private:
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

@ -652,6 +652,7 @@ SfxDocumentMetaData::getURLProperties(
// return the text of the (hopefully unique, i.e., normalize first!) text
// node _below_ the given node
/// @throws css::uno::RuntimeException
OUString SAL_CALL
getNodeText(const css::uno::Reference<css::xml::dom::XNode>& i_xNode)
throw (css::uno::RuntimeException)

View file

@ -42,6 +42,7 @@ class DocTemplLocaleHelper : public cppu::WeakImplHelper < css::xml::sax::XDocum
DocTemplLocaleHelper();
std::vector< css::beans::StringPair > const & GetParsingResult();
/// @throws css::uno::Exception
static std::vector< css::beans::StringPair > SAL_CALL ReadLocalizationSequence_Impl( const css::uno::Reference< css::io::XInputStream >& xInStream, const OUString& aStringID, const css::uno::Reference< css::uno::XComponentContext >& xContext )
throw( css::uno::Exception );
@ -49,6 +50,7 @@ public:
virtual ~DocTemplLocaleHelper() override;
// returns sequence of pairs ( GroupName, GroupUIName )
/// @throws css::uno::Exception
static
std::vector< css::beans::StringPair >
ReadGroupLocalizationSequence(
@ -57,6 +59,7 @@ public:
throw( css::uno::Exception );
// writes sequence of elements ( GroupName, GroupUIName )
/// @throws css::uno::Exception
static
void SAL_CALL WriteGroupLocalizationSequence(
const css::uno::Reference< css::io::XOutputStream >& xOutStream,

View file

@ -63,6 +63,8 @@ class IFrameObject : public ::cppu::WeakImplHelper <
SfxFrameDescriptor maFrmDescr;
public:
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
IFrameObject(const css::uno::Reference < css::uno::XComponentContext>& rxContext, const css::uno::Sequence< css::uno::Any >& aArguments)
throw (css::uno::Exception, css::uno::RuntimeException);

View file

@ -42,6 +42,8 @@ class OwnSubFilterService : public cppu::WeakImplHelper < document::XFilter
SfxObjectShell* m_pObjectShell;
public:
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
explicit OwnSubFilterService(const css::uno::Sequence< css::uno::Any >& aArguments)
throw (uno::Exception, uno::RuntimeException);

View file

@ -51,6 +51,8 @@ class SfxMacroLoader : public cppu::WeakImplHelper<
SfxObjectShell* GetObjectShell_Impl();
public:
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArguments)
throw (css::uno::Exception, css::uno::RuntimeException);
@ -63,6 +65,8 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override;
/// @throws css::uno::RuntimeException
/// @throws css::ucb::ContentCreationException
static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc ) throw( css::uno::RuntimeException, css::ucb::ContentCreationException, std::exception );
virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL queryDispatch(