AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
compbase8.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_COMPBASE8_HXX
4 #define INCLUDED_CPPUHELPER_COMPBASE8_HXX
5 
8 
9 namespace cppu
10 {
11 
26  template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8 >
27  class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakComponentImplHelper8
28  : public WeakComponentImplHelperBase
29  , public css::lang::XTypeProvider
30  , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8
31  {
32  struct cd : public rtl::StaticAggregate< class_data, ImplClassData8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, WeakComponentImplHelper8<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8> > > {};
33  public:
35  : WeakComponentImplHelperBase( rMutex )
36  {}
37  virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) SAL_OVERRIDE
38  { return WeakComponentImplHelper_query( rType, cd::get(), this, static_cast<WeakComponentImplHelperBase *>(this) ); }
39  virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
40  { WeakComponentImplHelperBase::acquire(); }
41  virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
42  { WeakComponentImplHelperBase::release(); }
43  virtual void SAL_CALL dispose() SAL_OVERRIDE
44  { WeakComponentImplHelperBase::dispose(); }
45  virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > & xListener) SAL_OVERRIDE
46  { WeakComponentImplHelperBase::addEventListener(xListener); }
47  virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > & xListener) SAL_OVERRIDE
48  { WeakComponentImplHelperBase::removeEventListener(xListener); }
49  virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
50  { return WeakComponentImplHelper_getTypes( cd::get() ); }
51  virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
52  { return ImplHelper_getImplementationId( cd::get() ); }
53  };
54 
64  template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8 >
65  class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE PartialWeakComponentImplHelper8
66  : public WeakComponentImplHelperBase
67  , public css::lang::XTypeProvider
68  , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8
69  {
70  struct cd : public rtl::StaticAggregate< class_data, ImplClassData8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, PartialWeakComponentImplHelper8<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8> > > {};
71  public:
73  : WeakComponentImplHelperBase( rMutex )
74  {}
75  virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) SAL_OVERRIDE
76  { return WeakComponentImplHelper_query( rType, cd::get(), this, static_cast<WeakComponentImplHelperBase *>(this) ); }
77  virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
78  { WeakComponentImplHelperBase::acquire(); }
79  virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
80  { WeakComponentImplHelperBase::release(); }
81  virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
82  { return WeakComponentImplHelper_getTypes( cd::get() ); }
83  virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
84  { return ImplHelper_getImplementationId( cd::get() ); }
85  };
86 
104  template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8 >
105  class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakAggComponentImplHelper8
106  : public WeakAggComponentImplHelperBase
107  , public css::lang::XTypeProvider
108  , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8
109  {
110  struct cd : public rtl::StaticAggregate< class_data, ImplClassData8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, WeakAggComponentImplHelper8<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8> > > {};
111  public:
113  : WeakAggComponentImplHelperBase( rMutex )
114  {}
115  virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) SAL_OVERRIDE
117  virtual css::uno::Any SAL_CALL queryAggregation( css::uno::Type const & rType ) SAL_OVERRIDE
118  { return WeakAggComponentImplHelper_queryAgg( rType, cd::get(), this, static_cast<WeakAggComponentImplHelperBase *>(this) ); }
119  virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
120  { WeakAggComponentImplHelperBase::acquire(); }
121  virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
122  { WeakAggComponentImplHelperBase::release(); }
123  virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
124  { return WeakAggComponentImplHelper_getTypes( cd::get() ); }
125  virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
126  { return ImplHelper_getImplementationId( cd::get() ); }
127  };
128 }
129 
130 #endif
131 
132 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase8.hxx:51
virtual void addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
Definition: compbase8.hxx:45
virtual void dispose() SAL_OVERRIDE
Definition: compbase8.hxx:43
virtual void removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
Definition: compbase8.hxx:47
Implementation helper supporting css::lang::XTypeProvider and css::lang::XComponent.
Definition: compbase8.hxx:105
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase8.hxx:49
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase8.hxx:41
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase8.hxx:121
WeakComponentImplHelper8(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase8.hxx:34
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase8.hxx:75
Same as WeakComponentImplHelper8, except doesn&#39;t implement addEventListener, removeEventListener and ...
Definition: compbase8.hxx:65
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase8.hxx:119
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase8.hxx:83
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase8.hxx:79
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase8.hxx:77
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:528
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase8.hxx:37
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
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase8.hxx:39
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase8.hxx:115
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:274
A mutual exclusion synchronization object.
Definition: mutex.hxx:15
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase8.hxx:81
Implementation helper supporting css::lang::XTypeProvider and css::lang::XComponent.
Definition: compbase8.hxx:27
#define SAL_OVERRIDE
C++11 &quot;override&quot; feature.
Definition: types.h:371
PartialWeakComponentImplHelper8(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase8.hxx:72
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase8.hxx:117
WeakAggComponentImplHelper8(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase8.hxx:112
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase8.hxx:125
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase8.hxx:123