Kaydet (Commit) 5e184fd2 authored tarafından Noel Grandin's avatar Noel Grandin

Convert GlobalSettings_Access to WeakImplHelper

Change-Id: Iaa1134bee8e3b36e940376622b5c22085892b81b
üst 0abf81ca
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <rtl/instance.hxx> #include <rtl/instance.hxx>
#include <cppuhelper/weak.hxx> #include <cppuhelper/implbase2.hxx>
//_________________________________________________________________________________________________________________ //_________________________________________________________________________________________________________________
// Defines // Defines
...@@ -59,18 +59,15 @@ namespace framework ...@@ -59,18 +59,15 @@ namespace framework
// Configuration access class for WindowState supplier implementation // Configuration access class for WindowState supplier implementation
//***************************************************************************************************************** //*****************************************************************************************************************
class GlobalSettings_Access : public ::com::sun::star::lang::XComponent , class GlobalSettings_Access : private ThreadHelpBase , // Struct for right initalization of mutex member! Must be first of baseclasses.
public ::com::sun::star::lang::XEventListener , public ::cppu::WeakImplHelper2<
private ThreadHelpBase , // Struct for right initalization of mutex member! Must be first of baseclasses. ::com::sun::star::lang::XComponent,
public ::cppu::OWeakObject ::com::sun::star::lang::XEventListener>
{ {
public: public:
GlobalSettings_Access( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); GlobalSettings_Access( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
virtual ~GlobalSettings_Access(); virtual ~GlobalSettings_Access();
// XInterface, XTypeProvider, XServiceInfo
FWK_DECLARE_XINTERFACE
// XComponent // XComponent
virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
...@@ -99,13 +96,6 @@ class GlobalSettings_Access : public ::com::sun::star::lang::XComponent , ...@@ -99,13 +96,6 @@ class GlobalSettings_Access : public ::com::sun::star::lang::XComponent ,
//***************************************************************************************************************** //*****************************************************************************************************************
// XInterface
//*****************************************************************************************************************
DEFINE_XINTERFACE_2 ( GlobalSettings_Access ,
OWeakObject ,
DIRECT_INTERFACE ( css::lang::XComponent ),
DIRECT_INTERFACE ( css::lang::XEventListener )
)
GlobalSettings_Access::GlobalSettings_Access( const css::uno::Reference< css::uno::XComponentContext >& rxContext ) : GlobalSettings_Access::GlobalSettings_Access( const css::uno::Reference< css::uno::XComponentContext >& rxContext ) :
ThreadHelpBase(), ThreadHelpBase(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment