summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:51:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:14 +0100
commit5fb6c73d3037d9f860212ecb06b99fdc34bb6dcc (patch)
tree6dd0597909385e6cabfdc6fa9b6203458f8d8689 /sfx2
parent5ad3a737e0ec43ca41bc8353cd0897d882204d32 (diff)
New loplugin:dynexcspec: Add @throws documentation, sfx2
Change-Id: I6568efb53c0904c58bcb648777b84471e5b4b501
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/shutdownicon.hxx1
-rw-r--r--sfx2/source/bastyp/fltlst.hxx2
-rw-r--r--sfx2/source/control/thumbnailviewacc.hxx2
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx1
-rw-r--r--sfx2/source/doc/doctemplateslocal.hxx3
-rw-r--r--sfx2/source/doc/iframe.cxx2
-rw-r--r--sfx2/source/doc/ownsubfilterservice.cxx2
-rw-r--r--sfx2/source/inc/macroloader.hxx4
8 files changed, 17 insertions, 0 deletions
diff --git a/sfx2/source/appl/shutdownicon.hxx b/sfx2/source/appl/shutdownicon.hxx
index d3974699de0d..963c343529c5 100644
--- a/sfx2/source/appl/shutdownicon.hxx
+++ b/sfx2/source/appl/shutdownicon.hxx
@@ -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 );
diff --git a/sfx2/source/bastyp/fltlst.hxx b/sfx2/source/bastyp/fltlst.hxx
index 656637ddaf7e..8fd5a9af4196 100644
--- a/sfx2/source/bastyp/fltlst.hxx
+++ b/sfx2/source/bastyp/fltlst.hxx
@@ -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 );
};
diff --git a/sfx2/source/control/thumbnailviewacc.hxx b/sfx2/source/control/thumbnailviewacc.hxx
index 744970835e28..33eb205187a4 100644
--- a/sfx2/source/control/thumbnailviewacc.hxx
+++ b/sfx2/source/control/thumbnailviewacc.hxx
@@ -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);
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index db67f94d49ed..82280b1cd027 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -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)
diff --git a/sfx2/source/doc/doctemplateslocal.hxx b/sfx2/source/doc/doctemplateslocal.hxx
index 4c8bb09843b9..aa9db5802cf8 100644
--- a/sfx2/source/doc/doctemplateslocal.hxx
+++ b/sfx2/source/doc/doctemplateslocal.hxx
@@ -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,
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index 7fd0404925ed..e9c6fe1203e4 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -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);
diff --git a/sfx2/source/doc/ownsubfilterservice.cxx b/sfx2/source/doc/ownsubfilterservice.cxx
index 94a1b763334c..d92692a62aec 100644
--- a/sfx2/source/doc/ownsubfilterservice.cxx
+++ b/sfx2/source/doc/ownsubfilterservice.cxx
@@ -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);
diff --git a/sfx2/source/inc/macroloader.hxx b/sfx2/source/inc/macroloader.hxx
index a4251e2b9d61..f65640891ee5 100644
--- a/sfx2/source/inc/macroloader.hxx
+++ b/sfx2/source/inc/macroloader.hxx
@@ -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(