AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
component.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_CPPUHELPER_COMPONENT_HXX
4 #define INCLUDED_CPPUHELPER_COMPONENT_HXX
5 
6 #include "cppuhelper/weakagg.hxx"
8 
9 #include "com/sun/star/lang/XComponent.hpp"
10 #include "com/sun/star/lang/XTypeProvider.hpp"
11 
13 
14 namespace osl { class Mutex; }
15 
16 namespace cppu
17 {
18 
29  : public ::cppu::OWeakAggObject
30  , public css::lang::XTypeProvider
31  , public css::lang::XComponent
32 {
33 public:
40  OComponentHelper( ::osl::Mutex & rMutex );
43  virtual ~OComponentHelper() SAL_OVERRIDE;
44 
45  // XAggregation
46  virtual css::uno::Any SAL_CALL queryInterface(
47  css::uno::Type const & rType ) SAL_OVERRIDE;
48  virtual css::uno::Any SAL_CALL queryAggregation(
49  css::uno::Type const & rType ) SAL_OVERRIDE;
50  virtual void SAL_CALL acquire()
52  virtual void SAL_CALL release()
54 
58  virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE = 0;
62  virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE;
63 
64  // XComponent
65  virtual void SAL_CALL dispose() SAL_OVERRIDE;
66  virtual void SAL_CALL addEventListener(
67  const css::uno::Reference< css::lang::XEventListener >& aListener ) SAL_OVERRIDE;
68  virtual void SAL_CALL removeEventListener(
69  const css::uno::Reference< css::lang::XEventListener >& aListener ) SAL_OVERRIDE;
70 
71 protected:
74  virtual void SAL_CALL disposing();
75 
77  OBroadcastHelper rBHelper;
79 
80 private:
82  OComponentHelper & operator = ( const OComponentHelper & )
84 };
85 
86 }
87 
88 #endif
89 
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class to implement a UNO object supporting weak references, i.e.
Definition: weakagg.hxx:25
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:12
Deprecated.
Definition: component.hxx:28
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
#define SAL_NOEXCEPT
Macro for C++11 &quot;noexcept&quot; vs.
Definition: types.h:396
A mutual exclusion synchronization object.
Definition: mutex.hxx:15
#define SAL_OVERRIDE
C++11 &quot;override&quot; feature.
Definition: types.h:371
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:419
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:358