New loplugin:dynexcspec: Add @throws documentation, framework
Change-Id: I19a4517449be3defe97fe0d78dd1a16b08b79247
This commit is contained in:
parent
cbf61ee565
commit
fba7a44ee4
@ -89,16 +89,19 @@ class ActionTriggerPropertySet : private cppu::BaseMutex,
|
||||
|
||||
// helper
|
||||
|
||||
/// @throws css::lang::IllegalArgumentException
|
||||
bool impl_tryToChangeProperty( const OUString& aCurrentValue ,
|
||||
const css::uno::Any& aNewValue ,
|
||||
css::uno::Any& aOldValue ,
|
||||
css::uno::Any& aConvertedValue ) throw( css::lang::IllegalArgumentException );
|
||||
|
||||
/// @throws css::lang::IllegalArgumentException
|
||||
bool impl_tryToChangeProperty( const css::uno::Reference< css::awt::XBitmap >& xBitmap,
|
||||
const css::uno::Any& aNewValue ,
|
||||
css::uno::Any& aOldValue ,
|
||||
css::uno::Any& aConvertedValue ) throw( css::lang::IllegalArgumentException );
|
||||
|
||||
/// @throws css::lang::IllegalArgumentException
|
||||
bool impl_tryToChangeProperty( const css::uno::Reference< css::uno::XInterface >& xInterface,
|
||||
const css::uno::Any& aNewValue ,
|
||||
css::uno::Any& aOldValue ,
|
||||
|
@ -87,6 +87,8 @@ class ActionTriggerSeparatorPropertySet : private cppu::BaseMutex,
|
||||
|
||||
// helper
|
||||
|
||||
/// @throws css::lang::IllegalArgumentException
|
||||
/// @throws css::uno::RuntimeException
|
||||
bool impl_tryToChangeProperty( sal_Int16 aCurrentValue ,
|
||||
const css::uno::Any& aNewValue ,
|
||||
css::uno::Any& aOldValue ,
|
||||
|
@ -67,7 +67,11 @@ class MailToDispatcher : public ::cppu::WeakImplHelper<
|
||||
virtual ~MailToDispatcher( ) override;
|
||||
|
||||
// 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
|
||||
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 */
|
||||
private:
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
bool implts_dispatch( const css::util::URL& aURL ,
|
||||
const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException );
|
||||
|
||||
|
@ -63,7 +63,11 @@ class Oxt_Handler : public ::cppu::WeakImplHelper<
|
||||
|
||||
// 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
|
||||
|
||||
|
@ -82,7 +82,11 @@ class PopupMenuDispatcher : public ::cppu::WeakImplHelper<
|
||||
PopupMenuDispatcher( const css::uno::Reference< css::uno::XComponentContext >& xContext );
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& lArguments ) throw( css::uno::Exception ,
|
||||
|
@ -71,7 +71,11 @@ class ServiceHandler : public ::cppu::WeakImplHelper<
|
||||
virtual ~ServiceHandler( ) override;
|
||||
|
||||
// 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
|
||||
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 */
|
||||
private:
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
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 );
|
||||
|
||||
|
@ -69,7 +69,11 @@ class SystemExec : public ::cppu::WeakImplHelper<
|
||||
virtual ~SystemExec( ) override;
|
||||
|
||||
// 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
|
||||
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL ,
|
||||
|
@ -93,7 +93,11 @@ class HelpOnStartup : public ::cppu::WeakImplHelper< css::lang::XServiceInfo,css
|
||||
public:
|
||||
|
||||
// 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
|
||||
virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments)
|
||||
|
@ -77,7 +77,11 @@ class ShellJob : public ::cppu::WeakImplHelper< css::lang::XServiceInfo,css::tas
|
||||
public:
|
||||
|
||||
// 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
|
||||
virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments)
|
||||
|
@ -42,7 +42,6 @@ namespace framework{
|
||||
macros for declaration and definition of XServiceInfo
|
||||
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
|
||||
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!
|
||||
@ -151,12 +150,6 @@ namespace framework{
|
||||
/* Helper for initialization of service by using own reference! */ \
|
||||
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 ) \
|
||||
PRIVATE_DEFINE_XSERVICEINFO_OLDSTYLE( CLASS, XINTERFACECAST, SERVICENAME, IMPLEMENTATIONNAME ) \
|
||||
PRIVATE_DEFINE_SINGLEFACTORY( CLASS )
|
||||
|
@ -62,7 +62,11 @@ class DispatchRecorder
|
||||
virtual ~DispatchRecorder() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL startRecording ( const css::uno::Reference< css::frame::XFrame >& xFrame ) throw( css::uno::RuntimeException, std::exception ) override;
|
||||
|
@ -66,7 +66,11 @@ class DispatchRecorderSupplier : public ::cppu::WeakImplHelper<
|
||||
|
||||
// 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
|
||||
|
||||
|
@ -301,6 +301,7 @@ class Desktop : private cppu::BaseMutex,
|
||||
|
||||
// we need this wrapped terminate()-call to terminate even the QuickStarter
|
||||
// non-virtual and non-UNO for now
|
||||
/// @throws css::uno::RuntimeException
|
||||
bool SAL_CALL terminateQuickstarterToo()
|
||||
throw( css::uno::RuntimeException );
|
||||
|
||||
|
@ -235,9 +235,11 @@ namespace framework
|
||||
void implts_backupProgressBarWrapper();
|
||||
void implts_setOffset( const sal_Int32 nBottomOffset );
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
void implts_setInplaceMenuBar(
|
||||
const css::uno::Reference< css::container::XIndexAccess >& xMergedMenuBar )
|
||||
throw (css::uno::RuntimeException, std::exception);
|
||||
/// @throws css::uno::RuntimeException
|
||||
void implts_resetInplaceMenuBar()
|
||||
throw (css::uno::RuntimeException);
|
||||
|
||||
|
@ -69,7 +69,11 @@ class MediaTypeDetectionHelper : public ::cppu::WeakImplHelper< css::util::XS
|
||||
|
||||
// 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
|
||||
|
||||
|
@ -39,7 +39,11 @@ class UriAbbreviation: public ::cppu::WeakImplHelper< css::util::XStringAbbre
|
||||
public:
|
||||
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:
|
||||
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;
|
||||
|
@ -46,7 +46,11 @@ class TabWinFactory : public ::cppu::WeakImplHelper< css::lang::XSingleComponen
|
||||
virtual ~TabWinFactory() override;
|
||||
|
||||
// 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
|
||||
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;
|
||||
|
@ -108,7 +108,11 @@ class FWI_DLLPUBLIC TransactionManager
|
||||
TransactionManager& operator=(const TransactionManager&) = delete;
|
||||
void setWorkingMode ( EWorkingMode eMode );
|
||||
EWorkingMode getWorkingMode ( ) const;
|
||||
/// @throws css::uno::RuntimeException
|
||||
/// @throws 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 );
|
||||
|
||||
private:
|
||||
|
@ -105,6 +105,7 @@ namespace framework
|
||||
virtual sal_Bool SAL_CALL isReadOnly() throw (css::uno::RuntimeException, std::exception) override;
|
||||
|
||||
// Non-UNO methods
|
||||
/// @throws css::uno::RuntimeException
|
||||
void setStorage( const css::uno::Reference< css::embed::XStorage >& Storage ) throw (css::uno::RuntimeException);
|
||||
|
||||
private:
|
||||
|
@ -48,7 +48,11 @@ namespace framework
|
||||
virtual ~FontMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override;
|
||||
|
@ -51,7 +51,11 @@ namespace framework
|
||||
virtual ~FontSizeMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override;
|
||||
|
@ -38,6 +38,7 @@ namespace framework
|
||||
static css::uno::Sequence< OUString > SAL_CALL impl_getStaticSupportedServiceNames( );
|
||||
static OUString SAL_CALL impl_getStaticImplementationName ( );
|
||||
/* 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 );
|
||||
};
|
||||
|
@ -50,7 +50,11 @@ namespace framework
|
||||
virtual ~HeaderMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override;
|
||||
|
@ -51,7 +51,11 @@ namespace framework
|
||||
virtual ~LanguageSelectionMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL updatePopupMenu() throw (css::uno::RuntimeException, std::exception) override;
|
||||
|
@ -51,7 +51,11 @@ namespace framework
|
||||
virtual ~MacrosMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) throw ( css::uno::RuntimeException, std::exception ) override;
|
||||
|
@ -55,7 +55,11 @@ namespace framework
|
||||
virtual ~NewMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
|
||||
|
@ -50,7 +50,11 @@ namespace framework
|
||||
virtual ~NotebookbarMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override;
|
||||
|
@ -46,10 +46,15 @@ class ProgressBarWrapper : public UIElementWrapperBase
|
||||
css::uno::Reference< css::awt::XWindow > getStatusBar() const;
|
||||
|
||||
// wrapped methods of css::task::XStatusIndicator
|
||||
/// @throws css::uno::RuntimeException
|
||||
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);
|
||||
/// @throws css::uno::RuntimeException
|
||||
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);
|
||||
/// @throws css::uno::RuntimeException
|
||||
void reset() throw (css::uno::RuntimeException, std::exception);
|
||||
|
||||
// UNO interfaces
|
||||
|
@ -50,7 +50,11 @@ namespace framework
|
||||
virtual ~ToolbarModeMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override;
|
||||
|
@ -55,7 +55,11 @@ namespace framework
|
||||
virtual ~ToolbarsMenuController() override;
|
||||
|
||||
// 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
|
||||
virtual void SAL_CALL setPopupMenu( const css::uno::Reference< css::awt::XPopupMenu >& PopupMenu ) throw (css::uno::RuntimeException, std::exception) override;
|
||||
|
@ -139,23 +139,33 @@ class OWriteImagesDocumentHandler final
|
||||
rWriteDocumentHandler);
|
||||
~OWriteImagesDocumentHandler();
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteImagesDocument() throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
private:
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteImageList( const ImageListItemDescriptor* ) throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteExternalImageList( const ExternalImageItemListDescriptor* ) throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteImage( const ImageItemDescriptor* ) throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteExternalImage( const ExternalImageItemDescriptor* ) throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
@ -259,9 +259,13 @@ class FWE_DLLPUBLIC OWriteMenuDocumentHandler final
|
||||
bool bIsMenuBar );
|
||||
~OWriteMenuDocumentHandler();
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteMenuDocument() throw
|
||||
( css::xml::sax::SAXException, css::uno::RuntimeException );
|
||||
private:
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteMenu( const css::uno::Reference< css::container::XIndexAccess >& rSubMenuContainer ) throw
|
||||
( css::xml::sax::SAXException, css::uno::RuntimeException );
|
||||
|
||||
|
@ -125,11 +125,15 @@ class FWE_DLLPUBLIC OWriteStatusBarDocumentHandler final
|
||||
const css::uno::Reference< css::xml::sax::XDocumentHandler >& rWriteDocHandler );
|
||||
~OWriteStatusBarDocumentHandler();
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteStatusBarDocument() throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
private:
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteStatusBarItem(
|
||||
const OUString& rCommandURL,
|
||||
const OUString& rHelpURL,
|
||||
|
@ -144,24 +144,34 @@ class FWE_DLLPUBLIC OWriteToolBoxDocumentHandler final
|
||||
css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler );
|
||||
~OWriteToolBoxDocumentHandler();
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteToolBoxDocument() throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
private:
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteToolBoxItem( const OUString& aCommandURL, const OUString& aLabel, const OUString& aHelpURL,
|
||||
sal_Int16 nStyle, bool bVisible ) throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteToolBoxSpace() throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteToolBoxBreak() throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void WriteToolBoxSeparator() throw
|
||||
( css::xml::sax::SAXException,
|
||||
css::uno::RuntimeException );
|
||||
|
@ -35,17 +35,21 @@ class FWE_DLLPUBLIC XMLNamespaces final
|
||||
XMLNamespaces( const XMLNamespaces& );
|
||||
~XMLNamespaces();
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
void addNamespace( const OUString& aName, const OUString& aValue )
|
||||
throw( css::xml::sax::SAXException );
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
OUString applyNSToAttributeName( const OUString& ) const
|
||||
throw( css::xml::sax::SAXException, std::exception );
|
||||
/// @throws css::xml::sax::SAXException
|
||||
OUString applyNSToElementName( const OUString& ) const
|
||||
throw( css::xml::sax::SAXException, std::exception );
|
||||
|
||||
private:
|
||||
typedef ::std::map< OUString, OUString > NamespaceMap;
|
||||
|
||||
/// @throws css::xml::sax::SAXException
|
||||
OUString getNamespaceValue( const OUString& aNamespace ) const
|
||||
throw( css::xml::sax::SAXException );
|
||||
|
||||
|
@ -236,6 +236,7 @@ void InsertSubMenuItems( Menu* pSubMenu, sal_uInt16& nItemId, const Reference< X
|
||||
|
||||
// implementation helper ( ActionTrigger => menu )
|
||||
|
||||
/// @throws RuntimeException
|
||||
Reference< XPropertySet > CreateActionTrigger( sal_uInt16 nItemId, const Menu* pMenu, const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException )
|
||||
{
|
||||
Reference< XPropertySet > xPropSet;
|
||||
@ -282,6 +283,7 @@ Reference< XPropertySet > CreateActionTrigger( sal_uInt16 nItemId, const Menu* p
|
||||
return xPropSet;
|
||||
}
|
||||
|
||||
/// @throws RuntimeException
|
||||
Reference< XPropertySet > CreateActionTriggerSeparator( const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException )
|
||||
{
|
||||
Reference< XMultiServiceFactory > xMultiServiceFactory( rActionTriggerContainer, UNO_QUERY );
|
||||
@ -295,6 +297,7 @@ Reference< XPropertySet > CreateActionTriggerSeparator( const Reference< XIndexC
|
||||
return Reference< XPropertySet >();
|
||||
}
|
||||
|
||||
/// @throws RuntimeException
|
||||
Reference< XIndexContainer > CreateActionTriggerContainer( const Reference< XIndexContainer >& rActionTriggerContainer ) throw ( RuntimeException )
|
||||
{
|
||||
Reference< XMultiServiceFactory > xMultiServiceFactory( rActionTriggerContainer, UNO_QUERY );
|
||||
|
@ -106,7 +106,11 @@ public:
|
||||
throw (::css::container::NoSuchElementException, ::css::lang::WrappedTargetException,
|
||||
::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
|
||||
|
@ -213,6 +213,9 @@ public:
|
||||
*/
|
||||
~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,
|
||||
const css::uno::Reference< css::uno::XComponentContext >& xContext,
|
||||
const OUString& sURL ,
|
||||
|
@ -356,9 +356,11 @@ public:
|
||||
private:
|
||||
virtual void SAL_CALL disposing() final override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
OUString getStringProperty(const OUString& p1)
|
||||
throw(css::uno::RuntimeException);
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
void setStringProperty(const OUString& p1, const OUString& p2)
|
||||
throw(css::uno::RuntimeException);
|
||||
|
||||
|
@ -175,10 +175,15 @@ protected:
|
||||
OUString GetHomeVariableValue() const;
|
||||
|
||||
// XStringSubstitution implementation methods
|
||||
/// @throws css::container::NoSuchElementException
|
||||
/// @throws css::uno::RuntimeException
|
||||
OUString impl_substituteVariable( const OUString& aText, bool bSustRequired )
|
||||
throw (css::container::NoSuchElementException, css::uno::RuntimeException);
|
||||
/// @throws css::uno::RuntimeException
|
||||
OUString impl_reSubstituteVariables( const OUString& aText )
|
||||
throw (css::uno::RuntimeException);
|
||||
/// @throws css::container::NoSuchElementException
|
||||
/// @throws css::uno::RuntimeException
|
||||
OUString const & impl_getSubstituteVariableValue( const OUString& variable )
|
||||
throw (css::container::NoSuchElementException, css::uno::RuntimeException);
|
||||
|
||||
|
@ -94,33 +94,62 @@ namespace framework
|
||||
|
||||
void dispose();
|
||||
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);
|
||||
/// @throws css::uno::RuntimeException
|
||||
void removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) throw (css::uno::RuntimeException);
|
||||
|
||||
// XImageManager
|
||||
/// @throws css::uno::RuntimeException
|
||||
/// @throws 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);
|
||||
/// @throws css::lang::IllegalArgumentException
|
||||
/// @throws 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);
|
||||
/// @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);
|
||||
/// @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);
|
||||
/// @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);
|
||||
|
||||
// XUIConfiguration
|
||||
/// @throws 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);
|
||||
|
||||
// XUIConfigurationPersistence
|
||||
/// @throws css::uno::Exception
|
||||
/// @throws css::uno::RuntimeException
|
||||
void reload() throw (css::uno::Exception, css::uno::RuntimeException, std::exception);
|
||||
/// @throws css::uno::Exception
|
||||
/// @throws css::uno::RuntimeException
|
||||
void store()
|
||||
throw (css::uno::Exception,
|
||||
css::uno::RuntimeException,
|
||||
std::exception);
|
||||
/// @throws css::uno::Exception
|
||||
/// @throws css::uno::RuntimeException
|
||||
void storeToStorage( const css::uno::Reference< css::embed::XStorage >& Storage )
|
||||
throw (css::uno::Exception,
|
||||
css::uno::RuntimeException,
|
||||
std::exception);
|
||||
/// @throws css::uno::RuntimeException
|
||||
bool isModified() throw (css::uno::RuntimeException);
|
||||
/// @throws css::uno::RuntimeException
|
||||
bool isReadOnly() throw (css::uno::RuntimeException);
|
||||
|
||||
void clear();
|
||||
|
@ -104,6 +104,7 @@ private:
|
||||
OUString m_aGuessedTextLang; // the 'guessed' language for the selection, "" if none could be guessed
|
||||
LanguageGuessingHelper m_aLangGuessHelper;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
void LangMenu( const css::awt::Point& aPos ) throw (css::uno::RuntimeException, std::exception);
|
||||
};
|
||||
|
||||
|
@ -83,6 +83,7 @@ class FWE_DLLPUBLIC DispatchHelper : public ::cppu::WeakImplHelper< css::lang::X
|
||||
void SAL_CALL impl_initService ( );
|
||||
|
||||
// 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 );
|
||||
|
||||
@ -97,6 +98,7 @@ class FWE_DLLPUBLIC DispatchHelper : public ::cppu::WeakImplHelper< css::lang::X
|
||||
throw(css::uno::RuntimeException, std::exception) override;
|
||||
|
||||
// not a public XDispatchHelper-method, need in sfx2/source/control/statcach.cxx for extensions
|
||||
/// @throws css::uno::RuntimeException
|
||||
css::uno::Any SAL_CALL executeDispatch(
|
||||
const css::uno::Reference< css::frame::XDispatch >& xDispatch ,
|
||||
const css::util::URL& aURL ,
|
||||
|
@ -103,10 +103,14 @@ public:
|
||||
|
||||
~MenuConfiguration();
|
||||
|
||||
/// @throws css::lang::WrappedTargetException
|
||||
/// @throws css::uno::RuntimeException
|
||||
css::uno::Reference< css::container::XIndexAccess > CreateMenuBarConfigurationFromXML(
|
||||
css::uno::Reference< css::io::XInputStream >& rInputStream )
|
||||
throw (css::lang::WrappedTargetException, css::uno::RuntimeException);
|
||||
|
||||
/// @throws css::lang::WrappedTargetException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void StoreMenuBarConfigurationToXML(
|
||||
css::uno::Reference< css::container::XIndexAccess >& rMenuBarConfiguration,
|
||||
css::uno::Reference< css::io::XOutputStream >& rOutputStream,
|
||||
|
Loading…
x
Reference in New Issue
Block a user