diff options
author | Noel Grandin <noel@peralex.com> | 2013-07-08 15:34:36 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-07-23 10:05:44 +0200 |
commit | a19e9a5cd040e291c4bdbbde99b34b763af4d7ef (patch) | |
tree | 32fd54513521ad3c00b35222f4a2737befb516a9 /framework/source/uiconfiguration | |
parent | 4d5801a0c6770b2e1e4ecf289523396fbc090379 (diff) |
Convert ConfigurationAccess_WindowState to WeakImplHelper
Change-Id: I962e87e81905bfc61b03e1c1c7ee9f01b030df9d
Diffstat (limited to 'framework/source/uiconfiguration')
-rw-r--r-- | framework/source/uiconfiguration/windowstateconfiguration.cxx | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx index 3c1254705f0a..3053fbbee5ed 100644 --- a/framework/source/uiconfiguration/windowstateconfiguration.cxx +++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx @@ -125,23 +125,15 @@ namespace framework // Configuration access class for WindowState supplier implementation //***************************************************************************************************************** -class ConfigurationAccess_WindowState : // interfaces - public XTypeProvider , - public XNameContainer , - public XContainerListener , - // baseclasses - // Order is necessary for right initialization! +class ConfigurationAccess_WindowState : // Order is necessary for right initialization! private ThreadHelpBase , - public ::cppu::OWeakObject + // interfaces + public ::cppu::WeakImplHelper2< XNameContainer, XContainerListener > { public: ConfigurationAccess_WindowState( const OUString& aWindowStateConfigFile, const Reference< XComponentContext >& rxContext ); virtual ~ConfigurationAccess_WindowState(); - // XInterface, XTypeProvider - FWK_DECLARE_XINTERFACE - FWK_DECLARE_XTYPEPROVIDER - // XNameAccess virtual ::com::sun::star::uno::Any SAL_CALL getByName( const OUString& aName ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); @@ -255,28 +247,6 @@ class ConfigurationAccess_WindowState : // interfaces }; //***************************************************************************************************************** -// XInterface, XTypeProvider -//***************************************************************************************************************** -DEFINE_XINTERFACE_7 ( ConfigurationAccess_WindowState , - OWeakObject , - DIRECT_INTERFACE ( css::container::XNameContainer ), - DIRECT_INTERFACE ( css::container::XContainerListener ), - DIRECT_INTERFACE ( css::lang::XTypeProvider ), - DERIVED_INTERFACE( css::container::XElementAccess, css::container::XNameAccess ), - DERIVED_INTERFACE( css::container::XNameAccess, css::container::XNameReplace ), - DERIVED_INTERFACE( css::container::XNameReplace, css::container::XNameContainer ), - DERIVED_INTERFACE( css::lang::XEventListener, XContainerListener ) - ) - -DEFINE_XTYPEPROVIDER_7 ( ConfigurationAccess_WindowState , - css::container::XNameContainer , - css::container::XNameReplace , - css::container::XNameAccess , - css::container::XElementAccess , - css::container::XContainerListener , - css::lang::XEventListener , - css::lang::XTypeProvider - ) ConfigurationAccess_WindowState::ConfigurationAccess_WindowState( const OUString& aModuleName, const Reference< XComponentContext >& rxContext ) : ThreadHelpBase(), |