19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE1_HXX 20 #define INCLUDED_CPPUHELPER_IMPLBASE1_HXX 35 type_entry m_typeEntries[ 1 + 1 ];
38 template<
typename Ifc1,
typename Impl >
struct SAL_WARN_UNUSED ImplClassData1
40 class_data* operator ()()
42 static class_data1 s_cd =
45 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
47 CPPUHELPER_DETAIL_TYPEENTRY(Ifc1),
48 CPPUHELPER_DETAIL_TYPEENTRY(css::lang::XTypeProvider)
51 return reinterpret_cast< class_data *
>(&s_cd);
65 template<
class Ifc1 >
67 :
public css::lang::XTypeProvider
70 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1 < Ifc1, ImplHelper1<Ifc1> > > {};
73 {
return ImplHelper_query( rType, cd::get(),
this ); }
75 {
return ImplHelper_getTypes( cd::get() ); }
77 {
return ImplHelper_getImplementationId( cd::get() ); }
79 #if !defined _MSC_VER // public -> protected changes mangled names there 81 #elif defined __clang__ 82 #pragma clang diagnostic push 83 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 86 #if defined _MSC_VER && defined __clang__ 87 #pragma clang diagnostic pop 102 template<
class Ifc1 >
105 ,
public css::lang::XTypeProvider
108 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakImplHelper1< Ifc1 > > > {};
111 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
117 {
return WeakImplHelper_getTypes( cd::get() ); }
119 {
return ImplHelper_getImplementationId( cd::get() ); }
134 template<
class Ifc1 >
137 ,
public css::lang::XTypeProvider
140 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakAggImplHelper1< Ifc1 > > > {};
145 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
151 {
return WeakAggImplHelper_getTypes( cd::get() ); }
153 {
return ImplHelper_getImplementationId( cd::get() ); }
171 template<
class BaseClass,
class Ifc1 >
176 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, ImplInheritanceHelper1< BaseClass, Ifc1 > > > {};
178 template<
typename T1 >
180 template<
typename T1,
typename T2 >
182 BaseClass(arg1, arg2) {}
183 template<
typename T1,
typename T2,
typename T3 >
185 T1
const & arg1, T2
const & arg2, T3
const & arg3):
186 BaseClass(arg1, arg2, arg3) {}
187 template<
typename T1,
typename T2,
typename T3,
typename T4 >
189 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
190 BaseClass(arg1, arg2, arg3, arg4) {}
192 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
194 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
196 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
198 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
201 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
202 T5
const & arg5, T6
const & arg6):
203 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
208 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
214 { BaseClass::acquire(); }
216 { BaseClass::release(); }
218 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
220 {
return ImplHelper_getImplementationId( cd::get() ); }
239 template<
class BaseClass,
class Ifc1 >
244 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, AggImplInheritanceHelper1< BaseClass, Ifc1 > > > {};
246 template<
typename T1 >
248 template<
typename T1,
typename T2 >
250 BaseClass(arg1, arg2) {}
251 template<
typename T1,
typename T2,
typename T3 >
253 T1
const & arg1, T2
const & arg2, T3
const & arg3):
254 BaseClass(arg1, arg2, arg3) {}
255 template<
typename T1,
typename T2,
typename T3,
typename T4 >
257 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
258 BaseClass(arg1, arg2, arg3, arg4) {}
260 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
262 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
264 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
266 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
269 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
270 T5
const & arg5, T6
const & arg6):
271 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
278 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
281 return BaseClass::queryAggregation( rType );
284 { BaseClass::acquire(); }
286 { BaseClass::release(); }
288 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
290 {
return ImplHelper_getImplementationId( cd::get() ); }
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase1.hxx:103
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase1.hxx:148
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:405
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:317
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:289
ImplInheritanceHelper1()
Definition: implbase1.hxx:205
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:276
AggImplInheritanceHelper1()
Definition: implbase1.hxx:273
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase1.hxx:144
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
If a delegator is set, then the delegator is queried for the demanded interface.
Definition: implbase1.hxx:142
signed char sal_Int8
Definition: types.h:44
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase1.hxx:112
virtual void release() SAL_OVERRIDE
Definition: implbase1.hxx:215
virtual css::uno::Any queryInterface(const css::uno::Type &rType) SAL_OVERRIDE
If a delegator is set, then the delegator is queried for the demanded interface.
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase1.hxx:252
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:598
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase1.hxx:184
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:152
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:219
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:287
virtual void acquire() SAL_OVERRIDE
Definition: implbase1.hxx:283
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:74
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:217
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase1.hxx:268
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:72
unsigned char sal_Bool
Definition: types.h:39
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase1.hxx:135
Definition: Enterable.hxx:26
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2)
Definition: implbase1.hxx:249
virtual void acquire() SAL_OVERRIDE
Definition: implbase1.hxx:213
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase1.hxx:261
AggImplInheritanceHelper1(T1 const &arg1)
Definition: implbase1.hxx:247
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:116
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:150
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2)
Definition: implbase1.hxx:181
~ImplHelper1()
Definition: implbase1.hxx:85
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:118
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase1.hxx:188
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::...
Definition: implbase1.hxx:110
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:546
virtual void release() SAL_OVERRIDE
Definition: implbase1.hxx:285
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase1.hxx:256
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase1.hxx:172
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase1.hxx:200
ImplInheritanceHelper1(T1 const &arg1)
Definition: implbase1.hxx:179
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase1.hxx:66
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:274
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:206
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:76
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase1.hxx:193
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase1.hxx:114
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase1.hxx:240
virtual void release() SAL_OVERRIDE
decreasing m_refCount
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase1.hxx:146
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41