Kaydet (Commit) 4c81fe62 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

New loplugin:dynexcspec: Add @throws documentation, dbaccess

Change-Id: I117be0dca3cc5e204414613123422b4b0716d8ed
üst 49f6e7fe
......@@ -69,6 +69,8 @@ namespace dbaccess
,OUStringBuffer& _sCondition
,OUStringBuffer& _sParameter
,::std::vector< sal_Int32>& _rOrgValues);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
void fillTableName(const css::uno::Reference< css::beans::XPropertySet>& _xTable) throw(css::sdbc::SQLException, css::uno::RuntimeException);
OUString getIdentifierQuoteString() const;
......@@ -100,29 +102,73 @@ namespace dbaccess
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
// css::sdbc::XResultSet
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL next() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL isBeforeFirst( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL isAfterLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual void SAL_CALL beforeFirst( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual void SAL_CALL afterLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL first() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL last() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual sal_Int32 SAL_CALL getRow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL absolute( sal_Int32 row ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL previous( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual void SAL_CALL refreshRow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL rowUpdated( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL rowInserted( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL rowDeleted( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
// css::sdbcx::XRowLocate
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual css::uno::Any SAL_CALL getBookmark() throw(css::sdbc::SQLException, css::uno::RuntimeException) = 0;
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL moveToBookmark( const css::uno::Any& bookmark ) throw(css::sdbc::SQLException, css::uno::RuntimeException) = 0;
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual sal_Int32 SAL_CALL compareBookmarks( const css::uno::Any& first, const css::uno::Any& second ) throw(css::sdbc::SQLException, css::uno::RuntimeException) = 0;
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual bool SAL_CALL hasOrderedBookmarks( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) = 0;
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual sal_Int32 SAL_CALL hashBookmark( const css::uno::Any& bookmark ) throw(css::sdbc::SQLException, css::uno::RuntimeException) = 0;
// css::sdbc::XResultSetUpdate
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual void SAL_CALL insertRow( const ORowSetRow& _rInsertRow,const connectivity::OSQLTable& _xTable ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual void SAL_CALL updateRow( const ORowSetRow& _rInsertRow,const ORowSetRow& _rOriginalRow,const connectivity::OSQLTable& _xTable ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
virtual void SAL_CALL deleteRow( const ORowSetRow& _rDeleteRow,const connectivity::OSQLTable& _xTable ) throw(css::sdbc::SQLException, css::uno::RuntimeException) = 0;
virtual bool isResultSetChanged() const;
......
......@@ -137,6 +137,8 @@ namespace dbaccess
sal_Int32 _nType,
sal_Int32 _nScale );
OUStringBuffer createKeyFilter( );
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
bool doTryRefetch_throw() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
void tryRefetch(const ORowSetRow& _rInsertRow,bool bRefetch);
void executeUpdate(const ORowSetRow& _rInsertRow, const ORowSetRow& _rOriginalRow, const OUString& i_sSQL, const OUString& i_sTableName,const ::std::vector<sal_Int32>& _aIndexColumnPositions = ::std::vector<sal_Int32>());
......@@ -194,6 +196,8 @@ namespace dbaccess
virtual sal_Int32 SAL_CALL getRow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override;
virtual bool SAL_CALL absolute( sal_Int32 row ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override;
virtual bool SAL_CALL previous( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override;
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
void SAL_CALL ensureRowForData( ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
virtual void SAL_CALL refreshRow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
// css::sdbcx::XRowLocate
......
......@@ -195,6 +195,8 @@ namespace dbaccess
impl_prepareAndExecute_throw();
void impl_ensureStatement_throw();
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
css::uno::Reference< css::sdbc::XConnection > calcConnection(const css::uno::Reference< css::task::XInteractionHandler >& _rxHandler) throw( css::sdbc::SQLException, css::uno::RuntimeException, std::exception );
// free clones and ParseTree. Plus, if _bComplete is <TRUE/>, *all* other associated resources
void freeResources( bool _bComplete );
......@@ -395,7 +397,8 @@ namespace dbaccess
void execute_NoApprove_NoNewConn(::osl::ResettableMutexGuard& _rClearForNotification);
/** call the RowSetApproveListeners<p/>
throws an RowSetVetoException if one of the listeners vetoed
@throws css::sdb::RowSetVetoException if one of the listeners vetoed
@throws css::uno::RuntimeException
*/
void approveExecution() throw (css::sdb::RowSetVetoException, css::uno::RuntimeException);
......
......@@ -183,6 +183,8 @@ namespace dbaccess
const connectivity::ORowSetValue& impl_getValue(sal_Int32 columnIndex);
// sets the current and the bookmark
void setCurrentRow( bool _bMoved, bool _bDoNotify, const ORowSetRow& _rOldValues, ::osl::ResettableMutexGuard& _rGuard);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
void checkPositioningAllowed() throw(css::sdbc::SQLException, css::uno::RuntimeException);
// checks if the cache is null
void checkCache();
......
......@@ -276,6 +276,7 @@ public:
);
// XEventListener
/// @throws css::uno::RuntimeException
void SAL_CALL disposing( const css::lang::EventObject& Source ) throw(css::uno::RuntimeException);
void setModified( bool bModified );
......
......@@ -197,6 +197,7 @@ public:
virtual void refresh(const css::uno::Reference< css::container::XNameAccess >& _rToBeRefreshed) override;
protected:
/// @throws css::lang::DisposedException
inline void checkDisposed() throw (css::lang::DisposedException)
{
if ( rBHelper.bDisposed || !m_xConnection.is() )
......
......@@ -126,7 +126,9 @@ public:
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 >&);
......
......@@ -371,6 +371,7 @@ static const char sPictures[] = "Pictures";
// document for anything, I believe this is a valid assumption ( as much as
// I could check anyway )
/// @throws RuntimeException
void lcl_uglyHackToStoreDialogeEmbedImages( const Reference< XStorageBasedLibraryContainer >& xDlgCont, const Reference< XStorage >& xStorage, const Reference< XModel >& rxModel, const Reference<XComponentContext >& rxContext ) throw ( RuntimeException )
{
Sequence< OUString > sLibraries = xDlgCont->getElementNames();
......
......@@ -210,6 +210,8 @@ class ODatabaseDocument :public ModelDependentComponent // ModelDepe
notify the proper events for this type.
@param _rGuard
the instance lock to be released before doing synchronous notifications
@throws css::io::IOException
@throws css::uno::RuntimeException
*/
void impl_storeAs_throw(
const OUString& _rURL,
......@@ -466,6 +468,7 @@ public:
}
private:
/// @throws css::uno::RuntimeException
css::uno::Reference< css::ui::XUIConfigurationManager2 > const & getUIConfigurationManager2() throw (css::uno::RuntimeException);
/** returns whether the model is currently being initialized
......
......@@ -202,7 +202,11 @@ private:
const OUString& user, const OUString& password
);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection( const OUString& user, const OUString& password , bool _bIsolated) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
css::uno::Reference< css::sdbc::XConnection > SAL_CALL connectWithCompletion( const css::uno::Reference< css::task::XInteractionHandler >& handler , bool _bIsolated) throw(css::sdbc::SQLException, css::uno::RuntimeException);
protected:
......
......@@ -319,6 +319,7 @@ private:
//- commands
void onCommandGetDocumentProperties( css::uno::Any& _rProps );
/// @throws css::uno::Exception
void onCommandInsert( const OUString& _sURL, const css::uno::Reference< css::ucb::XCommandEnvironment >& Environment ) throw( css::uno::Exception );
void onCommandPreview( css::uno::Any& _rImage );
css::uno::Any
......
......@@ -44,6 +44,7 @@ public:
explicit OInterceptor( ODocumentDefinition* _pContentHolder );
/// @throws css::uno::RuntimeException
void SAL_CALL dispose() throw(css::uno::RuntimeException);
//XDispatch
......
......@@ -57,7 +57,9 @@ public:
explicit DatabaseDataProvider(css::uno::Reference< css::uno::XComponentContext > const & context);
// css::lang::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(css::uno::Reference< css::uno::XComponentContext > const & context);
......
......@@ -109,6 +109,7 @@ namespace dbaccess
the connection the table belongs to. Must not be <NULL/>
@param _rxTable
the table from the driver can be <NULL/>
@throws css::sdbc::SQLException
*/
ODBTableDecorator(
const css::uno::Reference< css::sdbc::XConnection >& _rxConn,
......
......@@ -101,6 +101,7 @@ namespace dbaccess
@param _rName the name of the table
@param _rType the type of the table, as supplied by the driver
@param _rDesc the description of the table, as supplied by the driver
@throws css::sdbc::SQLException
*/
ODBTable(connectivity::sdbcx::OCollection* _pTables
,const css::uno::Reference< css::sdbc::XConnection >& _rxConn
......@@ -112,6 +113,7 @@ namespace dbaccess
,const css::uno::Reference< css::container::XNameAccess >& _rxColumnDefinitions)
throw(css::sdbc::SQLException);
/// @throws css::sdbc::SQLException
ODBTable(connectivity::sdbcx::OCollection* _pTables
,const css::uno::Reference< css::sdbc::XConnection >& _rxConn)
throw(css::sdbc::SQLException);
......
......@@ -79,7 +79,9 @@ namespace dbmm
// helper for factories
static Reference< XInterface > SAL_CALL Create( 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:
......
......@@ -67,14 +67,18 @@ namespace dbaxml
class ODBExportHelper
{
public:
/// @throws RuntimeException
static OUString SAL_CALL getImplementationName_Static( ) throw (RuntimeException);
/// @throws RuntimeException
static Sequence< OUString > SAL_CALL getSupportedServiceNames_Static( ) throw(RuntimeException);
static Reference< XInterface > SAL_CALL Create(const Reference< css::lang::XMultiServiceFactory >&);
};
class ODBFullExportHelper
{
public:
/// @throws RuntimeException
static OUString SAL_CALL getImplementationName_Static( ) throw (RuntimeException);
/// @throws RuntimeException
static Sequence< OUString > SAL_CALL getSupportedServiceNames_Static( ) throw(RuntimeException);
static Reference< XInterface > SAL_CALL Create(const Reference< css::lang::XMultiServiceFactory >&);
};
......
......@@ -171,9 +171,11 @@ public:
ODBExport(const Reference< XComponentContext >& _rxContext, OUString const & implementationName, SvXMLExportFlags nExportFlag = SvXMLExportFlags::CONTENT | SvXMLExportFlags::AUTOSTYLES | SvXMLExportFlags::PRETTY | SvXMLExportFlags::FONTDECLS | SvXMLExportFlags::SCRIPTS );
/// @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);
......
......@@ -81,6 +81,7 @@ private:
Reference<XPropertySet> m_xDataSource;
bool m_bNewFormat;
/// @throws RuntimeException
bool implImport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException, std::exception);
/** fills the map with the Properties
......@@ -108,9 +109,11 @@ public:
// XFilter
virtual sal_Bool SAL_CALL filter( const Sequence< PropertyValue >& rDescriptor ) throw(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);
......
......@@ -112,13 +112,6 @@ public:
return aSupported; \
} \
#define DECLARE_SERVICE_INFO_STATIC() \
DECLARE_SERVICE_INFO(); \
static OUString SAL_CALL getImplementationName_Static( ) throw (css::uno::RuntimeException); \
static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static( ) throw(css::uno::RuntimeException); \
static css::uno::Reference< css::uno::XInterface > \
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&) \
#define IMPLEMENT_SERVICE_INFO1(classname, implasciiname, serviceasciiname) \
IMPLEMENT_SERVICE_INFO_IMPLNAME(classname, implasciiname) \
IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
......
......@@ -386,7 +386,9 @@ namespace dbaui
virtual OUString SAL_CALL getImplementationName() throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override;
// need by registration
/// @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::lang::XMultiServiceFactory >&);
......
......@@ -58,7 +58,9 @@ namespace dbaui
virtual OUString SAL_CALL getImplementationName() throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override;
// need by registration
/// @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::lang::XMultiServiceFactory >&);
......
......@@ -57,6 +57,8 @@ namespace dbaui
void reSyncRows();
void assignTable(); // set the table if a name is given
void loadData();
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
bool checkColumns(bool _bNew)
throw (css::sdbc::SQLException,
css::uno::RuntimeException, std::exception); // check if we have double column names
......@@ -125,7 +127,9 @@ namespace dbaui
virtual OUString SAL_CALL getImplementationName() throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override;
// need by registration
/// @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::lang::XMultiServiceFactory >&);
......
......@@ -43,7 +43,9 @@ namespace dbaui
public:
SbaExternalSourceBrowser(const css::uno::Reference< css::uno::XComponentContext >& _rM);
/// @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::lang::XMultiServiceFactory >&);
......
......@@ -426,6 +426,7 @@ namespace dbaui
protected:
// container handling
/// @throws css::lang::IllegalArgumentException
void implInsert(const css::uno::Any& aElement, sal_Int32 nIndex, const OUString* pNewElName = nullptr) throw(css::lang::IllegalArgumentException);
sal_Int32 implGetPos(const OUString& rName);
......
......@@ -176,7 +176,9 @@ namespace dbaui
virtual OUString SAL_CALL getImplementationName() throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override;
// need by registration
/// @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::lang::XMultiServiceFactory >&);
......
......@@ -72,7 +72,9 @@ namespace dbaui
OUString SAL_CALL getImplementationName() throw(std::exception) override;
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw(std::exception) override;
// need by registration
/// @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::lang::XMultiServiceFactory >&);
......
......@@ -138,7 +138,9 @@ namespace dbaui
static sal_Int32 getDatabaseObjectType( EntryType _eType );
// need by registration
/// @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::lang::XMultiServiceFactory >&);
......
......@@ -51,7 +51,9 @@ public:
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::lang::XMultiServiceFactory >&);
......
......@@ -41,7 +41,13 @@ class LimitBoxController: public svt::ToolboxController,
virtual void SAL_CALL release() throw () override;
/// XServiceInfo
DECLARE_SERVICE_INFO_STATIC();
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
/// XComponent
virtual void SAL_CALL dispose() throw (css::uno::RuntimeException, std::exception) override;
......
......@@ -112,10 +112,12 @@ namespace dbaui
explicit OViewController(const Reference< XComponentContext >& _rM) : OQueryController(_rM){}
// need by registration
/// @throws RuntimeException
static OUString getImplementationName_Static() throw( RuntimeException )
{
return OUString("org.openoffice.comp.dbu.OViewDesign");
}
/// @throws RuntimeException
static Sequence< OUString > getSupportedServiceNames_Static() throw( RuntimeException )
{
Sequence<OUString> aSupported { "com.sun.star.sdb.ViewDesign" };
......
......@@ -50,7 +50,9 @@ namespace dbaui
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::lang::XMultiServiceFactory >&);
......
......@@ -39,7 +39,13 @@ namespace dbaui
virtual OUString GetComponentServiceName() override;
// XServiceInfo
DECLARE_SERVICE_INFO_STATIC();
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
// css::awt::XControl
virtual void SAL_CALL createPeer(const css::uno::Reference< css::awt::XToolkit >& _rToolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent) throw(css::uno::RuntimeException, std::exception) override;
......
......@@ -73,7 +73,13 @@ public:
DECLARE_XINTERFACE( )
// css::lang::XServiceInfo
DECLARE_SERVICE_INFO_STATIC();
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes()
throw (css::uno::RuntimeException, std::exception) override;
......
......@@ -42,7 +42,9 @@ public:
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::lang::XMultiServiceFactory >&);
......
......@@ -44,7 +44,9 @@ public:
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::lang::XMultiServiceFactory >&);
......
......@@ -42,7 +42,9 @@ public:
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::lang::XMultiServiceFactory >&);
......
......@@ -42,7 +42,9 @@ public:
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::lang::XMultiServiceFactory >&);
......
......@@ -42,7 +42,9 @@ public:
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::lang::XMultiServiceFactory >&);
......
......@@ -81,7 +81,13 @@ namespace dbaui
const css::uno::Reference< css::uno::XComponentContext >& _rxORB
);
DECLARE_SERVICE_INFO_STATIC( );
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
protected:
// own overridables
......@@ -106,7 +112,13 @@ namespace dbaui
const css::uno::Reference< css::uno::XComponentContext >& _rxORB
);
DECLARE_SERVICE_INFO_STATIC( );
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
protected:
// own overridables
......
......@@ -150,7 +150,9 @@ namespace dbaui
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw(RuntimeException, std::exception) override;
// XServiceInfo - static methods
/// @throws RuntimeException
static Sequence< OUString > getSupportedServiceNames_Static() throw( RuntimeException );
/// @throws RuntimeException
static OUString getImplementationName_Static() throw( RuntimeException );
static Reference< XInterface > Create( const Reference< XMultiServiceFactory >& );
......
......@@ -133,7 +133,13 @@ namespace dbaui
}
// XServiceInfo
DECLARE_SERVICE_INFO_STATIC();
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
};
// SQLExceptionInteractionHandler
......@@ -161,7 +167,13 @@ namespace dbaui
}
// XServiceInfo
DECLARE_SERVICE_INFO_STATIC();
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
};
} // namespace dbaui
......
......@@ -74,7 +74,13 @@ namespace dbaui
virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId()
throw (css::uno::RuntimeException, std::exception) override;
DECLARE_SERVICE_INFO_STATIC( );
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
DECLARE_PROPERTYCONTAINER_DEFAULTS( );
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) throw(Exception, std::exception) override;
......
......@@ -51,7 +51,13 @@ namespace dbaui
virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId()
throw (css::uno::RuntimeException, std::exception) override;
DECLARE_SERVICE_INFO_STATIC( );
DECLARE_SERVICE_INFO();
/// @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 >
SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
DECLARE_PROPERTYCONTAINER_DEFAULTS( );
......
......@@ -119,6 +119,8 @@ namespace dbaui
This must be the same model as returned by XController::getModel, and might be <NULL/> when
the controller does not have an own model.
@throws css::uno::RuntimeException
*/
virtual css::uno::Reference< css::frame::XController >
getXController() throw( css::uno::RuntimeException ) = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment