New loplugin:dynexcspec: Add @throws documentation, sfx2
Change-Id: I6568efb53c0904c58bcb648777b84471e5b4b501
This commit is contained in:
@@ -111,6 +111,9 @@ public:
|
|||||||
static std::shared_ptr<const SfxFilter> GetDefaultFilterFromFactory( const OUString& rServiceName );
|
static std::shared_ptr<const SfxFilter> GetDefaultFilterFromFactory( const OUString& rServiceName );
|
||||||
|
|
||||||
static OUString GetTypeFromStorage( const SotStorage& rStg );
|
static OUString GetTypeFromStorage( const SotStorage& rStg );
|
||||||
|
/// @throws css::beans::UnknownPropertyException
|
||||||
|
/// @throws css::lang::WrappedTargetException
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
static OUString GetTypeFromStorage(
|
static OUString GetTypeFromStorage(
|
||||||
const css::uno::Reference<css::embed::XStorage>& xStorage,
|
const css::uno::Reference<css::embed::XStorage>& xStorage,
|
||||||
bool bTemplate = false )
|
bool bTemplate = false )
|
||||||
|
@@ -788,6 +788,7 @@ public:
|
|||||||
virtual sal_Bool SAL_CALL canCancelCheckOut( ) throw ( css::uno::RuntimeException, std::exception ) override;
|
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;
|
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 );
|
bool getBoolPropertyValue( const OUString& rName ) throw ( css::uno::RuntimeException );
|
||||||
|
|
||||||
|
|
||||||
@@ -837,7 +838,7 @@ protected:
|
|||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
css::uno::Reference< css::ui::XUIConfigurationManager2 > getUIConfigurationManager2() throw ( css::uno::RuntimeException );
|
css::uno::Reference< css::ui::XUIConfigurationManager2 > getUIConfigurationManager2() throw ( css::uno::RuntimeException );
|
||||||
bool impl_getPrintHelper();
|
bool impl_getPrintHelper();
|
||||||
SAL_DLLPRIVATE void ListenForStorage_Impl( const css::uno::Reference< css::embed::XStorage >& xStorage );
|
SAL_DLLPRIVATE void ListenForStorage_Impl( const css::uno::Reference< css::embed::XStorage >& xStorage );
|
||||||
|
@@ -141,10 +141,12 @@ public:
|
|||||||
void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, SfxSlotServer* pServ );
|
void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, SfxSlotServer* pServ );
|
||||||
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override;
|
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override;
|
||||||
void setMasterSlaveCommand( bool bSet );
|
void setMasterSlaveCommand( bool bSet );
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
void SAL_CALL dispatch( const css::util::URL& aURL,
|
void SAL_CALL dispatch( const css::util::URL& aURL,
|
||||||
const css::uno::Sequence< css::beans::PropertyValue >& aArgs,
|
const css::uno::Sequence< css::beans::PropertyValue >& aArgs,
|
||||||
const css::uno::Reference< css::frame::XDispatchResultListener >& rListener )
|
const css::uno::Reference< css::frame::XDispatchResultListener >& rListener )
|
||||||
throw (css::uno::RuntimeException, std::exception);
|
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 SAL_CALL addStatusListener(const css::uno::Reference< css::frame::XStatusListener > & xControl, const css::util::URL& aURL) throw( css::uno::RuntimeException );
|
||||||
void UnBindController();
|
void UnBindController();
|
||||||
SfxDispatcher* GetDispatcher();
|
SfxDispatcher* GetDispatcher();
|
||||||
|
@@ -50,9 +50,13 @@ namespace sfx2
|
|||||||
UserInputInterception& operator=( const UserInputInterception& ) = delete;
|
UserInputInterception& operator=( const UserInputInterception& ) = delete;
|
||||||
|
|
||||||
// delegator functions for your XUserInputInterception implementation
|
// delegator functions for your XUserInputInterception implementation
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
void addKeyHandler( const css::uno::Reference< css::awt::XKeyHandler >& xHandler ) throw (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);
|
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);
|
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);
|
void removeMouseClickHandler( const css::uno::Reference< css::awt::XMouseClickHandler >& xHandler ) throw (css::uno::RuntimeException);
|
||||||
|
|
||||||
// state
|
// state
|
||||||
|
@@ -113,6 +113,7 @@ class SFX2_DLLPUBLIC ShutdownIcon : public ShutdownIconServiceBase
|
|||||||
static bool GetAutostart();
|
static bool GetAutostart();
|
||||||
static bool bModalMode;
|
static bool bModalMode;
|
||||||
|
|
||||||
|
/// @throws css::uno::Exception
|
||||||
void init() throw( css::uno::Exception, std::exception );
|
void init() throw( css::uno::Exception, std::exception );
|
||||||
|
|
||||||
OUString GetResString( int id );
|
OUString GetResString( int id );
|
||||||
|
@@ -41,8 +41,10 @@ class SfxFilterListener final
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// XRefreshListener
|
// XRefreshListener
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
void SAL_CALL refreshed( const css::lang::EventObject& aSource ) throw( css::uno::RuntimeException, std::exception );
|
void SAL_CALL refreshed( const css::lang::EventObject& aSource ) throw( css::uno::RuntimeException, std::exception );
|
||||||
// XEventListener
|
// XEventListener
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
void SAL_CALL disposing( const css::lang::EventObject& aSource ) throw( css::uno::RuntimeException );
|
void SAL_CALL disposing( const css::lang::EventObject& aSource ) throw( css::uno::RuntimeException );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@@ -153,6 +153,8 @@ private:
|
|||||||
state of being disposed). If that is the case then
|
state of being disposed). If that is the case then
|
||||||
DisposedException is thrown to inform the (indirect) caller of the
|
DisposedException is thrown to inform the (indirect) caller of the
|
||||||
foul deed.
|
foul deed.
|
||||||
|
|
||||||
|
@throws css::lang::DisposedException
|
||||||
*/
|
*/
|
||||||
void ThrowIfDisposed()
|
void ThrowIfDisposed()
|
||||||
throw (css::lang::DisposedException);
|
throw (css::lang::DisposedException);
|
||||||
|
@@ -652,6 +652,7 @@ SfxDocumentMetaData::getURLProperties(
|
|||||||
|
|
||||||
// return the text of the (hopefully unique, i.e., normalize first!) text
|
// return the text of the (hopefully unique, i.e., normalize first!) text
|
||||||
// node _below_ the given node
|
// node _below_ the given node
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
OUString SAL_CALL
|
OUString SAL_CALL
|
||||||
getNodeText(const css::uno::Reference<css::xml::dom::XNode>& i_xNode)
|
getNodeText(const css::uno::Reference<css::xml::dom::XNode>& i_xNode)
|
||||||
throw (css::uno::RuntimeException)
|
throw (css::uno::RuntimeException)
|
||||||
|
@@ -42,6 +42,7 @@ class DocTemplLocaleHelper : public cppu::WeakImplHelper < css::xml::sax::XDocum
|
|||||||
DocTemplLocaleHelper();
|
DocTemplLocaleHelper();
|
||||||
std::vector< css::beans::StringPair > const & GetParsingResult();
|
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 )
|
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 );
|
throw( css::uno::Exception );
|
||||||
|
|
||||||
@@ -49,6 +50,7 @@ public:
|
|||||||
virtual ~DocTemplLocaleHelper() override;
|
virtual ~DocTemplLocaleHelper() override;
|
||||||
|
|
||||||
// returns sequence of pairs ( GroupName, GroupUIName )
|
// returns sequence of pairs ( GroupName, GroupUIName )
|
||||||
|
/// @throws css::uno::Exception
|
||||||
static
|
static
|
||||||
std::vector< css::beans::StringPair >
|
std::vector< css::beans::StringPair >
|
||||||
ReadGroupLocalizationSequence(
|
ReadGroupLocalizationSequence(
|
||||||
@@ -57,6 +59,7 @@ public:
|
|||||||
throw( css::uno::Exception );
|
throw( css::uno::Exception );
|
||||||
|
|
||||||
// writes sequence of elements ( GroupName, GroupUIName )
|
// writes sequence of elements ( GroupName, GroupUIName )
|
||||||
|
/// @throws css::uno::Exception
|
||||||
static
|
static
|
||||||
void SAL_CALL WriteGroupLocalizationSequence(
|
void SAL_CALL WriteGroupLocalizationSequence(
|
||||||
const css::uno::Reference< css::io::XOutputStream >& xOutStream,
|
const css::uno::Reference< css::io::XOutputStream >& xOutStream,
|
||||||
|
@@ -63,6 +63,8 @@ class IFrameObject : public ::cppu::WeakImplHelper <
|
|||||||
SfxFrameDescriptor maFrmDescr;
|
SfxFrameDescriptor maFrmDescr;
|
||||||
|
|
||||||
public:
|
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)
|
IFrameObject(const css::uno::Reference < css::uno::XComponentContext>& rxContext, const css::uno::Sequence< css::uno::Any >& aArguments)
|
||||||
throw (css::uno::Exception, css::uno::RuntimeException);
|
throw (css::uno::Exception, css::uno::RuntimeException);
|
||||||
|
|
||||||
|
@@ -42,6 +42,8 @@ class OwnSubFilterService : public cppu::WeakImplHelper < document::XFilter
|
|||||||
SfxObjectShell* m_pObjectShell;
|
SfxObjectShell* m_pObjectShell;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
/// @throws css::uno::Exception
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
explicit OwnSubFilterService(const css::uno::Sequence< css::uno::Any >& aArguments)
|
explicit OwnSubFilterService(const css::uno::Sequence< css::uno::Any >& aArguments)
|
||||||
throw (uno::Exception, uno::RuntimeException);
|
throw (uno::Exception, uno::RuntimeException);
|
||||||
|
|
||||||
|
@@ -51,6 +51,8 @@ class SfxMacroLoader : public cppu::WeakImplHelper<
|
|||||||
SfxObjectShell* GetObjectShell_Impl();
|
SfxObjectShell* GetObjectShell_Impl();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
/// @throws css::uno::Exception
|
||||||
|
/// @throws css::uno::RuntimeException
|
||||||
SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArguments)
|
SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArguments)
|
||||||
throw (css::uno::Exception, css::uno::RuntimeException);
|
throw (css::uno::Exception, css::uno::RuntimeException);
|
||||||
|
|
||||||
@@ -63,6 +65,8 @@ public:
|
|||||||
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
|
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
|
||||||
throw (css::uno::RuntimeException, std::exception) override;
|
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 );
|
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(
|
virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL queryDispatch(
|
||||||
|
Reference in New Issue
Block a user