New loplugin:dynexcspec: Add @throws documentation, framework

Change-Id: I19a4517449be3defe97fe0d78dd1a16b08b79247
This commit is contained in:
Stephan Bergmann 2017-01-19 17:57:03 +01:00
parent cbf61ee565
commit fba7a44ee4
44 changed files with 212 additions and 31 deletions

View File

@ -89,16 +89,19 @@ class ActionTriggerPropertySet : private cppu::BaseMutex,
// helper // helper
/// @throws css::lang::IllegalArgumentException
bool impl_tryToChangeProperty( const OUString& aCurrentValue , bool impl_tryToChangeProperty( const OUString& aCurrentValue ,
const css::uno::Any& aNewValue , const css::uno::Any& aNewValue ,
css::uno::Any& aOldValue , css::uno::Any& aOldValue ,
css::uno::Any& aConvertedValue ) throw( css::lang::IllegalArgumentException ); css::uno::Any& aConvertedValue ) throw( css::lang::IllegalArgumentException );
/// @throws css::lang::IllegalArgumentException
bool impl_tryToChangeProperty( const css::uno::Reference< css::awt::XBitmap >& xBitmap, bool impl_tryToChangeProperty( const css::uno::Reference< css::awt::XBitmap >& xBitmap,
const css::uno::Any& aNewValue , const css::uno::Any& aNewValue ,
css::uno::Any& aOldValue , css::uno::Any& aOldValue ,
css::uno::Any& aConvertedValue ) throw( css::lang::IllegalArgumentException ); css::uno::Any& aConvertedValue ) throw( css::lang::IllegalArgumentException );
/// @throws css::lang::IllegalArgumentException
bool impl_tryToChangeProperty( const css::uno::Reference< css::uno::XInterface >& xInterface, bool impl_tryToChangeProperty( const css::uno::Reference< css::uno::XInterface >& xInterface,
const css::uno::Any& aNewValue , const css::uno::Any& aNewValue ,
css::uno::Any& aOldValue , css::uno::Any& aOldValue ,

View File

@ -87,6 +87,8 @@ class ActionTriggerSeparatorPropertySet : private cppu::BaseMutex,
// helper // helper
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
bool impl_tryToChangeProperty( sal_Int16 aCurrentValue , bool impl_tryToChangeProperty( sal_Int16 aCurrentValue ,
const css::uno::Any& aNewValue , const css::uno::Any& aNewValue ,
css::uno::Any& aOldValue , css::uno::Any& aOldValue ,

View File

@ -67,7 +67,11 @@ class MailToDispatcher : public ::cppu::WeakImplHelper<
virtual ~MailToDispatcher( ) override; virtual ~MailToDispatcher( ) override;
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XDispatchProvider // XDispatchProvider
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL , virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL ,
@ -90,7 +94,7 @@ class MailToDispatcher : public ::cppu::WeakImplHelper<
/* internal */ /* internal */
private: private:
/// @throws css::uno::RuntimeException
bool implts_dispatch( const css::util::URL& aURL , bool implts_dispatch( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException ); const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException );

View File

@ -63,7 +63,11 @@ class Oxt_Handler : public ::cppu::WeakImplHelper<
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XNotifyingDispatch // XNotifyingDispatch

View File

@ -82,7 +82,11 @@ class PopupMenuDispatcher : public ::cppu::WeakImplHelper<
PopupMenuDispatcher( const css::uno::Reference< css::uno::XComponentContext >& xContext ); PopupMenuDispatcher( const css::uno::Reference< css::uno::XComponentContext >& xContext );
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XInitialization // XInitialization
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& lArguments ) throw( css::uno::Exception , virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& lArguments ) throw( css::uno::Exception ,

View File

@ -71,7 +71,11 @@ class ServiceHandler : public ::cppu::WeakImplHelper<
virtual ~ServiceHandler( ) override; virtual ~ServiceHandler( ) override;
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XDispatchProvider // XDispatchProvider
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL , virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL ,
@ -94,7 +98,7 @@ class ServiceHandler : public ::cppu::WeakImplHelper<
/* internal */ /* internal */
private: private:
/// @throws css::uno::RuntimeException
css::uno::Reference< css::uno::XInterface > implts_dispatch( const css::util::URL& aURL , css::uno::Reference< css::uno::XInterface > implts_dispatch( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException ); const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException );

View File

@ -69,7 +69,11 @@ class SystemExec : public ::cppu::WeakImplHelper<
virtual ~SystemExec( ) override; virtual ~SystemExec( ) override;
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XDispatchProvider // XDispatchProvider
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL , virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL ,

View File

@ -93,7 +93,11 @@ class HelpOnStartup : public ::cppu::WeakImplHelper< css::lang::XServiceInfo,css
public: public:
// css.lang.XServiceInfo // css.lang.XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// css.task.XJob // css.task.XJob
virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments) virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments)

View File

@ -77,7 +77,11 @@ class ShellJob : public ::cppu::WeakImplHelper< css::lang::XServiceInfo,css::tas
public: public:
// css.lang.XServiceInfo // css.lang.XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// css.task.XJob // css.task.XJob
virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments) virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments)

View File

@ -42,7 +42,6 @@ namespace framework{
macros for declaration and definition of XServiceInfo macros for declaration and definition of XServiceInfo
Please use follow public macros only! Please use follow public macros only!
1) DECLARE_XSERVICEINFO => use it to declare XServiceInfo in your header
2) DEFINE_XSERVICEINFO_MULTISERVICE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) => use it to define XServiceInfo for multi service mode 2) DEFINE_XSERVICEINFO_MULTISERVICE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) => use it to define XServiceInfo for multi service mode
3) DEFINE_XSERVICEINFO_ONEINSTANCESERVICE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) => use it to define XServiceInfo for one instance service mode 3) DEFINE_XSERVICEINFO_ONEINSTANCESERVICE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) => use it to define XServiceInfo for one instance service mode
4) DEFINE_INIT_SERVICE( CLASS ) => use it to implement your own impl_initService() method, which is necessary for initializing object by using his own reference! 4) DEFINE_INIT_SERVICE( CLASS ) => use it to implement your own impl_initService() method, which is necessary for initializing object by using his own reference!
@ -151,12 +150,6 @@ namespace framework{
/* Helper for initialization of service by using own reference! */ \ /* Helper for initialization of service by using own reference! */ \
void SAL_CALL impl_initService ( ); \ void SAL_CALL impl_initService ( ); \
#define DECLARE_XSERVICEINFO \
DECLARE_XSERVICEINFO_NOFACTORY \
/* Helper for registry */ \
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception ); \
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ); \
#define DEFINE_XSERVICEINFO_MULTISERVICE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) \ #define DEFINE_XSERVICEINFO_MULTISERVICE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) \
PRIVATE_DEFINE_XSERVICEINFO_OLDSTYLE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) \ PRIVATE_DEFINE_XSERVICEINFO_OLDSTYLE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) \
PRIVATE_DEFINE_SINGLEFACTORY( CLASS ) PRIVATE_DEFINE_SINGLEFACTORY( CLASS )

View File

@ -62,7 +62,11 @@ class DispatchRecorder
virtual ~DispatchRecorder() override; virtual ~DispatchRecorder() override;
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XDispatchRecorder // XDispatchRecorder
virtual void SAL_CALL startRecording ( const css::uno::Reference< css::frame::XFrame >& xFrame ) throw( css::uno::RuntimeException, std::exception ) override; virtual void SAL_CALL startRecording ( const css::uno::Reference< css::frame::XFrame >& xFrame ) throw( css::uno::RuntimeException, std::exception ) override;

View File

@ -66,7 +66,11 @@ class DispatchRecorderSupplier : public ::cppu::WeakImplHelper<
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XDispatchRecorderSupplier // XDispatchRecorderSupplier

View File

@ -301,6 +301,7 @@ class Desktop : private cppu::BaseMutex,
// we need this wrapped terminate()-call to terminate even the QuickStarter // we need this wrapped terminate()-call to terminate even the QuickStarter
// non-virtual and non-UNO for now // non-virtual and non-UNO for now
/// @throws css::uno::RuntimeException
bool SAL_CALL terminateQuickstarterToo() bool SAL_CALL terminateQuickstarterToo()
throw( css::uno::RuntimeException ); throw( css::uno::RuntimeException );

View File

@ -235,9 +235,11 @@ namespace framework
void implts_backupProgressBarWrapper(); void implts_backupProgressBarWrapper();
void implts_setOffset( const sal_Int32 nBottomOffset ); void implts_setOffset( const sal_Int32 nBottomOffset );
/// @throws css::uno::RuntimeException
void implts_setInplaceMenuBar( void implts_setInplaceMenuBar(
const css::uno::Reference< css::container::XIndexAccess >& xMergedMenuBar ) const css::uno::Reference< css::container::XIndexAccess >& xMergedMenuBar )
throw (css::uno::RuntimeException, std::exception); throw (css::uno::RuntimeException, std::exception);
/// @throws css::uno::RuntimeException
void implts_resetInplaceMenuBar() void implts_resetInplaceMenuBar()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);

View File

@ -69,7 +69,11 @@ class MediaTypeDetectionHelper : public ::cppu::WeakImplHelper< css::util::XS
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XStringMapping // XStringMapping

View File

@ -39,7 +39,11 @@ class UriAbbreviation: public ::cppu::WeakImplHelper< css::util::XStringAbbre
public: public:
explicit UriAbbreviation(css::uno::Reference< css::uno::XComponentContext > const & context); explicit UriAbbreviation(css::uno::Reference< css::uno::XComponentContext > const & context);
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// css::util::XStringAbbreviation: // css::util::XStringAbbreviation:
virtual OUString SAL_CALL abbreviateString(const css::uno::Reference< css::util::XStringWidth > & xStringWidth, ::sal_Int32 nWidth, const OUString & aString) throw (css::uno::RuntimeException, std::exception) override; virtual OUString SAL_CALL abbreviateString(const css::uno::Reference< css::util::XStringWidth > & xStringWidth, ::sal_Int32 nWidth, const OUString & aString) throw (css::uno::RuntimeException, std::exception) override;

View File

@ -46,7 +46,11 @@ class TabWinFactory : public ::cppu::WeakImplHelper< css::lang::XSingleComponen
virtual ~TabWinFactory() override; virtual ~TabWinFactory() override;
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XSingleComponentFactory // XSingleComponentFactory
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithContext( const css::uno::Reference< css::uno::XComponentContext >& Context ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithContext( const css::uno::Reference< css::uno::XComponentContext >& Context ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;

View File

@ -108,7 +108,11 @@ class FWI_DLLPUBLIC TransactionManager
TransactionManager& operator=(const TransactionManager&) = delete; TransactionManager& operator=(const TransactionManager&) = delete;
void setWorkingMode ( EWorkingMode eMode ); void setWorkingMode ( EWorkingMode eMode );
EWorkingMode getWorkingMode ( ) const; EWorkingMode getWorkingMode ( ) const;
/// @throws css::uno::RuntimeException
/// @throws css::lang::DisposedException
void registerTransaction ( EExceptionMode eMode ) throw( css::uno::RuntimeException, css::lang::DisposedException ); void registerTransaction ( EExceptionMode eMode ) throw( css::uno::RuntimeException, css::lang::DisposedException );
/// @throws css::uno::RuntimeException
/// @throws css::lang::DisposedException
void unregisterTransaction ( ) throw( css::uno::RuntimeException, css::lang::DisposedException ); void unregisterTransaction ( ) throw( css::uno::RuntimeException, css::lang::DisposedException );
private: private:

View File

@ -105,6 +105,7 @@ namespace framework
virtual sal_Bool SAL_CALL isReadOnly() throw (css::uno::RuntimeException, std::exception) override; virtual sal_Bool SAL_CALL isReadOnly() throw (css::uno::RuntimeException, std::exception) override;
// Non-UNO methods // Non-UNO methods
/// @throws css::uno::RuntimeException
void setStorage( const css::uno::Reference< css::embed::XStorage >& Storage ) throw (css::uno::RuntimeException); void setStorage( const css::uno::Reference< css::embed::XStorage >& Storage ) throw (css::uno::RuntimeException);
private: private:

View File

@ -48,7 +48,11 @@ namespace framework
virtual ~FontMenuController() override; virtual ~FontMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XPopupMenuController // XPopupMenuController
virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override;

View File

@ -51,7 +51,11 @@ namespace framework
virtual ~FontSizeMenuController() override; virtual ~FontSizeMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XPopupMenuController // XPopupMenuController
virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override;

View File

@ -38,6 +38,7 @@ namespace framework
static css::uno::Sequence< OUString > SAL_CALL impl_getStaticSupportedServiceNames( ); static css::uno::Sequence< OUString > SAL_CALL impl_getStaticSupportedServiceNames( );
static OUString SAL_CALL impl_getStaticImplementationName ( ); static OUString SAL_CALL impl_getStaticImplementationName ( );
/* Helper for registry */ /* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception ); static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ); static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
}; };

View File

@ -50,7 +50,11 @@ namespace framework
virtual ~HeaderMenuController() override; virtual ~HeaderMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XPopupMenuController // XPopupMenuController
virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override;

View File

@ -51,7 +51,11 @@ namespace framework
virtual ~LanguageSelectionMenuController() override; virtual ~LanguageSelectionMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XPopupMenuController // XPopupMenuController
virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override;

View File

@ -51,7 +51,11 @@ namespace framework
virtual ~MacrosMenuController() override; virtual ~MacrosMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XStatusListener // XStatusListener
virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) throw ( css::uno::RuntimeException, std::exception ) override; virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) throw ( css::uno::RuntimeException, std::exception ) override;

View File

@ -55,7 +55,11 @@ namespace framework
virtual ~NewMenuController() override; virtual ~NewMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XInitialization // XInitialization
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;

View File

@ -50,7 +50,11 @@ namespace framework
virtual ~NotebookbarMenuController() override; virtual ~NotebookbarMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XPopupMenuController // XPopupMenuController
virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override;

View File

@ -46,10 +46,15 @@ class ProgressBarWrapper : public UIElementWrapperBase
css::uno::Reference< css::awt::XWindow > getStatusBar() const; css::uno::Reference< css::awt::XWindow > getStatusBar() const;
// wrapped methods of css::task::XStatusIndicator // wrapped methods of css::task::XStatusIndicator
/// @throws css::uno::RuntimeException
void start( const OUString& Text, ::sal_Int32 Range ) throw (css::uno::RuntimeException, std::exception); void start( const OUString& Text, ::sal_Int32 Range ) throw (css::uno::RuntimeException, std::exception);
/// @throws css::uno::RuntimeException
void end() throw (css::uno::RuntimeException, std::exception); void end() throw (css::uno::RuntimeException, std::exception);
/// @throws css::uno::RuntimeException
void setText( const OUString& Text ) throw (css::uno::RuntimeException, std::exception); void setText( const OUString& Text ) throw (css::uno::RuntimeException, std::exception);
/// @throws css::uno::RuntimeException
void setValue( ::sal_Int32 Value ) throw (css::uno::RuntimeException, std::exception); void setValue( ::sal_Int32 Value ) throw (css::uno::RuntimeException, std::exception);
/// @throws css::uno::RuntimeException
void reset() throw (css::uno::RuntimeException, std::exception); void reset() throw (css::uno::RuntimeException, std::exception);
// UNO interfaces // UNO interfaces

View File

@ -50,7 +50,11 @@ namespace framework
virtual ~ToolbarModeMenuController() override; virtual ~ToolbarModeMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XPopupMenuController // XPopupMenuController
virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override;

View File

@ -55,7 +55,11 @@ namespace framework
virtual ~ToolbarsMenuController() override; virtual ~ToolbarsMenuController() override;
// XServiceInfo // XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XPopupMenuController // XPopupMenuController
virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override;

View File

@ -139,23 +139,33 @@ class OWriteImagesDocumentHandler final
rWriteDocumentHandler); rWriteDocumentHandler);
~OWriteImagesDocumentHandler(); ~OWriteImagesDocumentHandler();
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteImagesDocument() throw void WriteImagesDocument() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
private: private:
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteImageList( const ImageListItemDescriptor* ) throw void WriteImageList( const ImageListItemDescriptor* ) throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteExternalImageList( const ExternalImageItemListDescriptor* ) throw void WriteExternalImageList( const ExternalImageItemListDescriptor* ) throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteImage( const ImageItemDescriptor* ) throw void WriteImage( const ImageItemDescriptor* ) throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteExternalImage( const ExternalImageItemDescriptor* ) throw void WriteExternalImage( const ExternalImageItemDescriptor* ) throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );

View File

@ -259,9 +259,13 @@ class FWE_DLLPUBLIC OWriteMenuDocumentHandler final
bool bIsMenuBar ); bool bIsMenuBar );
~OWriteMenuDocumentHandler(); ~OWriteMenuDocumentHandler();
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteMenuDocument() throw void WriteMenuDocument() throw
( css::xml::sax::SAXException, css::uno::RuntimeException ); ( css::xml::sax::SAXException, css::uno::RuntimeException );
private: private:
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteMenu( const css::uno::Reference< css::container::XIndexAccess >& rSubMenuContainer ) throw void WriteMenu( const css::uno::Reference< css::container::XIndexAccess >& rSubMenuContainer ) throw
( css::xml::sax::SAXException, css::uno::RuntimeException ); ( css::xml::sax::SAXException, css::uno::RuntimeException );

View File

@ -125,11 +125,15 @@ class FWE_DLLPUBLIC OWriteStatusBarDocumentHandler final
const css::uno::Reference< css::xml::sax::XDocumentHandler >& rWriteDocHandler ); const css::uno::Reference< css::xml::sax::XDocumentHandler >& rWriteDocHandler );
~OWriteStatusBarDocumentHandler(); ~OWriteStatusBarDocumentHandler();
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteStatusBarDocument() throw void WriteStatusBarDocument() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
private: private:
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteStatusBarItem( void WriteStatusBarItem(
const OUString& rCommandURL, const OUString& rCommandURL,
const OUString& rHelpURL, const OUString& rHelpURL,

View File

@ -144,24 +144,34 @@ class FWE_DLLPUBLIC OWriteToolBoxDocumentHandler final
css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler ); css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler );
~OWriteToolBoxDocumentHandler(); ~OWriteToolBoxDocumentHandler();
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteToolBoxDocument() throw void WriteToolBoxDocument() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
private: private:
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteToolBoxItem( const OUString& aCommandURL, const OUString& aLabel, const OUString& aHelpURL, void WriteToolBoxItem( const OUString& aCommandURL, const OUString& aLabel, const OUString& aHelpURL,
sal_Int16 nStyle, bool bVisible ) throw sal_Int16 nStyle, bool bVisible ) throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteToolBoxSpace() throw void WriteToolBoxSpace() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteToolBoxBreak() throw void WriteToolBoxBreak() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void WriteToolBoxSeparator() throw void WriteToolBoxSeparator() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
css::uno::RuntimeException ); css::uno::RuntimeException );

View File

@ -35,17 +35,21 @@ class FWE_DLLPUBLIC XMLNamespaces final
XMLNamespaces( const XMLNamespaces& ); XMLNamespaces( const XMLNamespaces& );
~XMLNamespaces(); ~XMLNamespaces();
/// @throws css::xml::sax::SAXException
void addNamespace( const OUString& aName, const OUString& aValue ) void addNamespace( const OUString& aName, const OUString& aValue )
throw( css::xml::sax::SAXException ); throw( css::xml::sax::SAXException );
/// @throws css::xml::sax::SAXException
OUString applyNSToAttributeName( const OUString& ) const OUString applyNSToAttributeName( const OUString& ) const
throw( css::xml::sax::SAXException, std::exception ); throw( css::xml::sax::SAXException, std::exception );
/// @throws css::xml::sax::SAXException
OUString applyNSToElementName( const OUString& ) const OUString applyNSToElementName( const OUString& ) const
throw( css::xml::sax::SAXException, std::exception ); throw( css::xml::sax::SAXException, std::exception );
private: private:
typedef ::std::map< OUString, OUString > NamespaceMap; typedef ::std::map< OUString, OUString > NamespaceMap;
/// @throws css::xml::sax::SAXException
OUString getNamespaceValue( const OUString& aNamespace ) const OUString getNamespaceValue( const OUString& aNamespace ) const
throw( css::xml::sax::SAXException ); throw( css::xml::sax::SAXException );

View File

@ -236,6 +236,7 @@ void InsertSubMenuItems( Menu* pSubMenu, sal_uInt16& nItemId, const Reference< X
// implementation helper ( ActionTrigger => menu ) // implementation helper ( ActionTrigger => menu )
/// @throws RuntimeException
Reference< XPropertySet > CreateActionTrigger( sal_uInt16 nItemId, const Menu* pMenu, const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException ) Reference< XPropertySet > CreateActionTrigger( sal_uInt16 nItemId, const Menu* pMenu, const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException )
{ {
Reference< XPropertySet > xPropSet; Reference< XPropertySet > xPropSet;
@ -282,6 +283,7 @@ Reference< XPropertySet > CreateActionTrigger( sal_uInt16 nItemId, const Menu* p
return xPropSet; return xPropSet;
} }
/// @throws RuntimeException
Reference< XPropertySet > CreateActionTriggerSeparator( const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException ) Reference< XPropertySet > CreateActionTriggerSeparator( const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException )
{ {
Reference< XMultiServiceFactory > xMultiServiceFactory( rActionTriggerContainer, UNO_QUERY ); Reference< XMultiServiceFactory > xMultiServiceFactory( rActionTriggerContainer, UNO_QUERY );
@ -295,6 +297,7 @@ Reference< XPropertySet > CreateActionTriggerSeparator( const Reference< XIndexC
return Reference< XPropertySet >(); return Reference< XPropertySet >();
} }
/// @throws RuntimeException
Reference< XIndexContainer > CreateActionTriggerContainer( const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException ) Reference< XIndexContainer > CreateActionTriggerContainer( const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException )
{ {
Reference< XMultiServiceFactory > xMultiServiceFactory( rActionTriggerContainer, UNO_QUERY ); Reference< XMultiServiceFactory > xMultiServiceFactory( rActionTriggerContainer, UNO_QUERY );

View File

@ -106,7 +106,11 @@ public:
throw (::css::container::NoSuchElementException, ::css::lang::WrappedTargetException, throw (::css::container::NoSuchElementException, ::css::lang::WrappedTargetException,
::css::uno::RuntimeException, ::std::exception) override; ::css::uno::RuntimeException, ::std::exception) override;
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO_NOFACTORY
/* Helper for registry */
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
}; };
} // namespace framework } // namespace framework

View File

@ -213,6 +213,9 @@ public:
*/ */
~LoadEnv(); ~LoadEnv();
/// @throws css::lang::IllegalArgumentException
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
static css::uno::Reference< css::lang::XComponent > loadComponentFromURL(const css::uno::Reference< css::frame::XComponentLoader >& xLoader, static css::uno::Reference< css::lang::XComponent > loadComponentFromURL(const css::uno::Reference< css::frame::XComponentLoader >& xLoader,
const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XComponentContext >& xContext,
const OUString& sURL , const OUString& sURL ,

View File

@ -356,9 +356,11 @@ public:
private: private:
virtual void SAL_CALL disposing() final override; virtual void SAL_CALL disposing() final override;
/// @throws css::uno::RuntimeException
OUString getStringProperty(const OUString& p1) OUString getStringProperty(const OUString& p1)
throw(css::uno::RuntimeException); throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void setStringProperty(const OUString& p1, const OUString& p2) void setStringProperty(const OUString& p1, const OUString& p2)
throw(css::uno::RuntimeException); throw(css::uno::RuntimeException);

View File

@ -175,10 +175,15 @@ protected:
OUString GetHomeVariableValue() const; OUString GetHomeVariableValue() const;
// XStringSubstitution implementation methods // XStringSubstitution implementation methods
/// @throws css::container::NoSuchElementException
/// @throws css::uno::RuntimeException
OUString impl_substituteVariable( const OUString& aText, bool bSustRequired ) OUString impl_substituteVariable( const OUString& aText, bool bSustRequired )
throw (css::container::NoSuchElementException, css::uno::RuntimeException); throw (css::container::NoSuchElementException, css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString impl_reSubstituteVariables( const OUString& aText ) OUString impl_reSubstituteVariables( const OUString& aText )
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::container::NoSuchElementException
/// @throws css::uno::RuntimeException
OUString const & impl_getSubstituteVariableValue( const OUString& variable ) OUString const & impl_getSubstituteVariableValue( const OUString& variable )
throw (css::container::NoSuchElementException, css::uno::RuntimeException); throw (css::container::NoSuchElementException, css::uno::RuntimeException);

View File

@ -94,33 +94,62 @@ namespace framework
void dispose(); void dispose();
void initialize( const css::uno::Sequence< css::uno::Any >& aArguments ); void initialize( const css::uno::Sequence< css::uno::Any >& aArguments );
/// @throws css::uno::RuntimeException
void addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw (css::uno::RuntimeException); void addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) throw (css::uno::RuntimeException); void removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) throw (css::uno::RuntimeException);
// XImageManager // XImageManager
/// @throws css::uno::RuntimeException
/// @throws css::lang::IllegalAccessException
void reset() throw (css::uno::RuntimeException, css::lang::IllegalAccessException); void reset() throw (css::uno::RuntimeException, css::lang::IllegalAccessException);
/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > getAllImageNames( ::sal_Int16 nImageType ) throw (css::uno::RuntimeException); css::uno::Sequence< OUString > getAllImageNames( ::sal_Int16 nImageType ) throw (css::uno::RuntimeException);
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
bool hasImage( ::sal_Int16 nImageType, const OUString& aCommandURL ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException); bool hasImage( ::sal_Int16 nImageType, const OUString& aCommandURL ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > getImages( ::sal_Int16 nImageType, const css::uno::Sequence< OUString >& aCommandURLSequence ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException); css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > getImages( ::sal_Int16 nImageType, const css::uno::Sequence< OUString >& aCommandURLSequence ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
/// @throws css::lang::IllegalArgumentException
/// @throws css::lang::IllegalAccessException
/// @throws css::uno::RuntimeException
void replaceImages( ::sal_Int16 nImageType, const css::uno::Sequence< OUString >& aCommandURLSequence, const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > >& aGraphicsSequence ) throw (css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException, std::exception); void replaceImages( ::sal_Int16 nImageType, const css::uno::Sequence< OUString >& aCommandURLSequence, const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > >& aGraphicsSequence ) throw (css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException, std::exception);
/// @throws css::lang::IllegalArgumentException
/// @throws css::lang::IllegalAccessException
/// @throws css::uno::RuntimeException
void removeImages( ::sal_Int16 nImageType, const css::uno::Sequence< OUString >& aResourceURLSequence ) throw (css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException); void removeImages( ::sal_Int16 nImageType, const css::uno::Sequence< OUString >& aResourceURLSequence ) throw (css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException);
/// @throws css::container::ElementExistException
/// @throws css::lang::IllegalArgumentException
/// @throws css::lang::IllegalAccessException
/// @throws css::uno::RuntimeException
void insertImages( ::sal_Int16 nImageType, const css::uno::Sequence< OUString >& aCommandURLSequence, const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > >& aGraphicSequence ) throw (css::container::ElementExistException, css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException); void insertImages( ::sal_Int16 nImageType, const css::uno::Sequence< OUString >& aCommandURLSequence, const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > >& aGraphicSequence ) throw (css::container::ElementExistException, css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException);
// XUIConfiguration // XUIConfiguration
/// @throws css::uno::RuntimeException
void addConfigurationListener( const css::uno::Reference< css::ui::XUIConfigurationListener >& Listener ) throw (css::uno::RuntimeException); void addConfigurationListener( const css::uno::Reference< css::ui::XUIConfigurationListener >& Listener ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void removeConfigurationListener( const css::uno::Reference< css::ui::XUIConfigurationListener >& Listener ) throw (css::uno::RuntimeException); void removeConfigurationListener( const css::uno::Reference< css::ui::XUIConfigurationListener >& Listener ) throw (css::uno::RuntimeException);
// XUIConfigurationPersistence // XUIConfigurationPersistence
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
void reload() throw (css::uno::Exception, css::uno::RuntimeException, std::exception); void reload() throw (css::uno::Exception, css::uno::RuntimeException, std::exception);
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
void store() void store()
throw (css::uno::Exception, throw (css::uno::Exception,
css::uno::RuntimeException, css::uno::RuntimeException,
std::exception); std::exception);
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
void storeToStorage( const css::uno::Reference< css::embed::XStorage >& Storage ) void storeToStorage( const css::uno::Reference< css::embed::XStorage >& Storage )
throw (css::uno::Exception, throw (css::uno::Exception,
css::uno::RuntimeException, css::uno::RuntimeException,
std::exception); std::exception);
/// @throws css::uno::RuntimeException
bool isModified() throw (css::uno::RuntimeException); bool isModified() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool isReadOnly() throw (css::uno::RuntimeException); bool isReadOnly() throw (css::uno::RuntimeException);
void clear(); void clear();

View File

@ -104,6 +104,7 @@ private:
OUString m_aGuessedTextLang; // the 'guessed' language for the selection, "" if none could be guessed OUString m_aGuessedTextLang; // the 'guessed' language for the selection, "" if none could be guessed
LanguageGuessingHelper m_aLangGuessHelper; LanguageGuessingHelper m_aLangGuessHelper;
/// @throws css::uno::RuntimeException
void LangMenu( const css::awt::Point& aPos ) throw (css::uno::RuntimeException, std::exception); void LangMenu( const css::awt::Point& aPos ) throw (css::uno::RuntimeException, std::exception);
}; };

View File

@ -83,6 +83,7 @@ class FWE_DLLPUBLIC DispatchHelper : public ::cppu::WeakImplHelper< css::lang::X
void SAL_CALL impl_initService ( ); void SAL_CALL impl_initService ( );
// Helper for registry // Helper for registry
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception ); static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception );
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ); static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
@ -97,6 +98,7 @@ class FWE_DLLPUBLIC DispatchHelper : public ::cppu::WeakImplHelper< css::lang::X
throw(css::uno::RuntimeException, std::exception) override; throw(css::uno::RuntimeException, std::exception) override;
// not a public XDispatchHelper-method, need in sfx2/source/control/statcach.cxx for extensions // not a public XDispatchHelper-method, need in sfx2/source/control/statcach.cxx for extensions
/// @throws css::uno::RuntimeException
css::uno::Any SAL_CALL executeDispatch( css::uno::Any SAL_CALL executeDispatch(
const css::uno::Reference< css::frame::XDispatch >& xDispatch , const css::uno::Reference< css::frame::XDispatch >& xDispatch ,
const css::util::URL& aURL , const css::util::URL& aURL ,

View File

@ -103,10 +103,14 @@ public:
~MenuConfiguration(); ~MenuConfiguration();
/// @throws css::lang::WrappedTargetException
/// @throws css::uno::RuntimeException
css::uno::Reference< css::container::XIndexAccess > CreateMenuBarConfigurationFromXML( css::uno::Reference< css::container::XIndexAccess > CreateMenuBarConfigurationFromXML(
css::uno::Reference< css::io::XInputStream >& rInputStream ) css::uno::Reference< css::io::XInputStream >& rInputStream )
throw (css::lang::WrappedTargetException, css::uno::RuntimeException); throw (css::lang::WrappedTargetException, css::uno::RuntimeException);
/// @throws css::lang::WrappedTargetException
/// @throws css::uno::RuntimeException
void StoreMenuBarConfigurationToXML( void StoreMenuBarConfigurationToXML(
css::uno::Reference< css::container::XIndexAccess >& rMenuBarConfiguration, css::uno::Reference< css::container::XIndexAccess >& rMenuBarConfiguration,
css::uno::Reference< css::io::XOutputStream >& rOutputStream, css::uno::Reference< css::io::XOutputStream >& rOutputStream,