New loplugin:dynexcspec: Add @throws documentation, extensions

Change-Id: Ia44f7b0a162d269bf38133575f986efd62eb6d52
This commit is contained in:
Stephan Bergmann
2017-01-19 17:57:50 +01:00
parent 4770f54888
commit 8ee3f98698
30 changed files with 67 additions and 3 deletions

View File

@@ -128,6 +128,7 @@ public:
static Sequence<OUString> SAL_CALL getSupportedServiceNames_Static() throw( );
/// @throws Exception
friend Reference< XInterface > SAL_CALL BibliographyLoader_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw( Exception );
// XLoader

View File

@@ -162,7 +162,9 @@ public:
const rtl::Reference<BibGeneralPageFocusListener>& GetFocusListener() { return mxBibGeneralPageFocusListener; }
/// @throws css::uno::RuntimeException
void focusGained(const css::awt::FocusEvent& rEvent) throw( css::uno::RuntimeException, std::exception );
/// @throws css::uno::RuntimeException
void focusLost(const css::awt::FocusEvent& rEvent) throw( css::uno::RuntimeException, std::exception );
};

View File

@@ -94,6 +94,7 @@ namespace bib
protected:
// XEventListener
/// @throws css::uno::RuntimeException
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw( css::uno::RuntimeException, std::exception);
};

View File

@@ -175,6 +175,7 @@ class BibToolBar: public ToolBox
sal_uInt16 InsertFilterItem(const OUString& );
void SelectFilterItem(sal_uInt16 nId);
/// @throws css::uno::RuntimeException
void statusChanged(const css::frame::FeatureStateEvent& Event)
throw( css::uno::RuntimeException );

View File

@@ -82,7 +82,10 @@ public:
LdapConnection() : mConnection(nullptr),mLdapDefinition() {}
/** Destructor, releases the connection */
~LdapConnection() ;
/** Make connection to LDAP server */
/** Make connection to LDAP server
@throws ldap::LdapConnectionException
@throws ldap::LdapGenericException
*/
void connectSimple(const LdapDefinition& aDefinition)
throw (ldap::LdapConnectionException,
ldap::LdapGenericException);
@@ -103,6 +106,9 @@ public:
/** finds DN of user
@return DN of User
@throws lang::IllegalArgumentException
@throws ldap::LdapConnectionException
@throws ldap::LdapGenericException
*/
OUString findUserDn(const OUString& aUser)
throw (lang::IllegalArgumentException,
@@ -110,7 +116,7 @@ public:
ldap::LdapGenericException);
private:
/// @throws ldap::LdapConnectionException
void initConnection()
throw (ldap::LdapConnectionException);
void disconnect();
@@ -120,6 +126,8 @@ private:
*/
bool isValid() const { return mConnection != nullptr ; }
/// @throws ldap::LdapConnectionException
/// @throws ldap::LdapGenericException
void connectSimple()
throw (ldap::LdapConnectionException,
ldap::LdapGenericException);

View File

@@ -66,11 +66,13 @@ namespace dbp
}
// XServiceInfo - static methods
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw( css::uno::RuntimeException )
{
return SERVICEINFO::getServiceNames();
}
/// @throws css::uno::RuntimeException
static OUString getImplementationName_Static() throw( css::uno::RuntimeException )
{
return SERVICEINFO::getImplementationName();

View File

@@ -37,7 +37,9 @@ namespace pcr
explicit MasterDetailLinkDialog(const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
// XServiceInfo - static methods
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_static() throw( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
static OUString getImplementationName_static() throw( css::uno::RuntimeException );
static css::uno::Reference< css::uno::XInterface >
SAL_CALL Create(const css::uno::Reference< css::uno::XComponentContext >&);

View File

@@ -143,8 +143,11 @@ namespace pcr
bool IsModified( ) const;
void CommitModified( );
/// @throws css::uno::RuntimeException
void SAL_CALL focusGained( const css::uno::Reference< css::inspection::XPropertyControl >& Control ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void SAL_CALL valueChanged( const css::uno::Reference< css::inspection::XPropertyControl >& Control ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void SAL_CALL activateNextControl( const css::uno::Reference< css::inspection::XPropertyControl >& CurrentControl ) throw (css::uno::RuntimeException);
protected:

View File

@@ -40,7 +40,9 @@ namespace pcr
explicit ButtonNavigationHandler(
const css::uno::Reference< css::uno::XComponentContext >& _rxContext
);
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
protected:

View File

@@ -48,7 +48,9 @@ namespace pcr
const css::uno::Reference< css::uno::XComponentContext >& _rxContext
);
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
protected:

View File

@@ -74,10 +74,15 @@ namespace pcr
virtual void setModified() { m_bModified = true; }
// XPropertyControl
/// @throws css::uno::RuntimeException
::sal_Int16 SAL_CALL getControlType() throw (css::uno::RuntimeException) { return m_nControlType; }
/// @throws css::uno::RuntimeException
const css::uno::Reference< css::inspection::XPropertyControlContext >& SAL_CALL getControlContext() throw (css::uno::RuntimeException) { return m_xContext; }
/// @throws css::uno::RuntimeException
void SAL_CALL setControlContext( const css::uno::Reference< css::inspection::XPropertyControlContext >& _controlcontext ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool SAL_CALL isModified( ) throw (css::uno::RuntimeException) { return m_bModified; }
/// @throws css::uno::RuntimeException
void SAL_CALL notifyModifiedValue( ) throw (css::uno::RuntimeException);
/** (fail-safe) wrapper around calling our context's activateNextControl

View File

@@ -39,6 +39,7 @@ namespace pcr
class SAL_NO_VTABLE IPropertyExistenceCheck
{
public:
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL hasPropertyByName( const OUString& _rName ) throw (css::uno::RuntimeException) = 0;
protected:

View File

@@ -62,7 +62,9 @@ namespace pcr
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override;
// XServiceInfo - static methods
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_static() throw( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
static OUString getImplementationName_static() throw( css::uno::RuntimeException );
static css::uno::Reference< css::uno::XInterface >
SAL_CALL Create(const css::uno::Reference< css::uno::XComponentContext >&);

View File

@@ -56,7 +56,9 @@ namespace pcr
public:
// XServiceInfo - static versions
/// @throws css::uno::RuntimeException
static OUString getImplementationName_static( ) throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
Create(const css::uno::Reference< css::uno::XComponentContext >&);

View File

@@ -50,7 +50,9 @@ namespace pcr
DefaultHelpProvider();
// XServiceInfo - static versions
/// @throws css::uno::RuntimeException
static OUString getImplementationName_static( ) throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
Create(const css::uno::Reference< css::uno::XComponentContext >&);

View File

@@ -40,7 +40,9 @@ namespace pcr
const css::uno::Reference< css::uno::XComponentContext >& _rxContext
);
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
protected:

View File

@@ -51,7 +51,9 @@ namespace pcr
const css::uno::Reference< css::uno::XComponentContext >& _rxContext
);
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
protected:

View File

@@ -96,7 +96,9 @@ namespace pcr
public:
// XServiceInfo - static versions
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > Create( const css::uno::Reference< css::uno::XComponentContext >& _rxContext );

View File

@@ -103,7 +103,9 @@ namespace pcr
// XPropertySet
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(css::uno::RuntimeException, std::exception) override;
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
protected:

View File

@@ -68,7 +68,9 @@ namespace pcr
);
// XServiceInfo - static versions
/// @throws css::uno::RuntimeException
static OUString getImplementationName_static( ) throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
Create(const css::uno::Reference< css::uno::XComponentContext >&);
@@ -110,7 +112,9 @@ namespace pcr
{
public:
// XServiceInfo - static versions
/// @throws css::uno::RuntimeException
static OUString getImplementationName_static( ) throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
Create(const css::uno::Reference< css::uno::XComponentContext >&);

View File

@@ -209,7 +209,9 @@ namespace pcr
const Reference< XComponentContext >& _rxContext
);
/// @throws RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (RuntimeException);
/// @throws RuntimeException
static Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (RuntimeException);
protected:

View File

@@ -81,7 +81,9 @@ namespace pcr
public:
// XServiceInfo - static versions
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > Create( const css::uno::Reference< css::uno::XComponentContext >& _rxContext );

View File

@@ -196,6 +196,7 @@ namespace pcr
static css::uno::Reference< css::uno::XInterface > getContextDocument( const css::uno::Reference<css::uno::XComponentContext> & _rContext );
/// @throws css::uno::RuntimeException
static css::uno::Reference< css::uno::XInterface > getContextDocument_throw( const css::uno::Reference<css::uno::XComponentContext> & _rContext ) throw (css::uno::RuntimeException);
/** gets the window of the ObjectInspector in which an property handler lives

View File

@@ -71,7 +71,9 @@ namespace pcr
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (RuntimeException, std::exception) override;
// XServiceInfo - static versions
/// @throws RuntimeException
static OUString getImplementationName_static( ) throw(RuntimeException);
/// @throws RuntimeException
static Sequence< OUString > getSupportedServiceNames_static( ) throw(RuntimeException);
static Reference< XInterface > SAL_CALL
Create(const Reference< XComponentContext >&);

View File

@@ -60,7 +60,9 @@ namespace pcr
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override;
// XServiceInfo - static methods
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_static() throw( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
static OUString getImplementationName_static() throw( css::uno::RuntimeException );
static css::uno::Reference< css::uno::XInterface >
SAL_CALL Create(const css::uno::Reference< css::uno::XComponentContext >&);

View File

@@ -190,7 +190,9 @@ namespace pcr
public:
// XServiceInfo - static versions
/// @throws css::uno::RuntimeException
static OUString getImplementationName_static( ) throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_static( ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
Create(const css::uno::Reference< css::uno::XComponentContext >&);

View File

@@ -76,7 +76,9 @@ namespace pcr
const css::uno::Reference< css::uno::XComponentContext >& _rxContext
);
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
virtual ~SubmissionPropertyHandler() override;

View File

@@ -45,7 +45,9 @@ namespace pcr
const css::uno::Reference< css::uno::XComponentContext >& _rxContext
);
/// @throws css::uno::RuntimeException
static OUString SAL_CALL getImplementationName_static( ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (css::uno::RuntimeException);
protected:

View File

@@ -86,6 +86,7 @@ public:
void SetData( void* pData ) { ReleaseData(); mpData = pData; }
};
/// @throws Exception
Reference< XInterface > SAL_CALL ScannerManager_CreateInstance( const Reference< css::lang::XMultiServiceFactory >& rxFactory ) throw( Exception );
#endif

View File

@@ -200,7 +200,7 @@ private:
const ::rtl::Reference< UpdateCheckConfigListener > m_rListener;
};
/// @throws css::uno::RuntimeException
template <typename T>
T getValue( const css::uno::Sequence< css::beans::NamedValue >& rNamedValues, const sal_Char * pszName )
throw (css::uno::RuntimeException)