LibreOffice Module cppuhelper (master) 1
compbase10.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20/*
21 * This file is part of LibreOffice published API.
22 */
23#ifndef INCLUDED_CPPUHELPER_COMPBASE10_HXX
24#define INCLUDED_CPPUHELPER_COMPBASE10_HXX
25
28
29namespace cppu
30{
31
46 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10 >
47 class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakComponentImplHelper10
48 : public WeakComponentImplHelperBase
49 , public css::lang::XTypeProvider
50 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9, public Ifc10
51 {
52 struct cd : public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, WeakComponentImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
53 public:
54 WeakComponentImplHelper10( ::osl::Mutex & rMutex ) SAL_NOEXCEPT
55 : WeakComponentImplHelperBase( rMutex )
56 {}
57 virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) SAL_OVERRIDE
58 { return WeakComponentImplHelper_query( rType, cd::get(), this, static_cast<WeakComponentImplHelperBase *>(this) ); }
59 virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
60 { WeakComponentImplHelperBase::acquire(); }
61 virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
62 { WeakComponentImplHelperBase::release(); }
63 virtual void SAL_CALL dispose() SAL_OVERRIDE
64 { WeakComponentImplHelperBase::dispose(); }
65 virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > & xListener) SAL_OVERRIDE
66 { WeakComponentImplHelperBase::addEventListener(xListener); }
67 virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > & xListener) SAL_OVERRIDE
68 { WeakComponentImplHelperBase::removeEventListener(xListener); }
69 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
70 { return WeakComponentImplHelper_getTypes( cd::get() ); }
71 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
72 { return ImplHelper_getImplementationId( cd::get() ); }
73 };
74
84 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10 >
86 : public WeakComponentImplHelperBase
87 , public css::lang::XTypeProvider
88 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9, public Ifc10
89 {
90 struct cd : public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, PartialWeakComponentImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
91 public:
92 PartialWeakComponentImplHelper10( ::osl::Mutex & rMutex ) SAL_NOEXCEPT
93 : WeakComponentImplHelperBase( rMutex )
94 {}
95 virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) SAL_OVERRIDE
96 { return WeakComponentImplHelper_query( rType, cd::get(), this, static_cast<WeakComponentImplHelperBase *>(this) ); }
97 virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
98 { WeakComponentImplHelperBase::acquire(); }
99 virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
100 { WeakComponentImplHelperBase::release(); }
101 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
102 { return WeakComponentImplHelper_getTypes( cd::get() ); }
103 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
104 { return ImplHelper_getImplementationId( cd::get() ); }
105 };
106
124 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10 >
125 class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakAggComponentImplHelper10
126 : public WeakAggComponentImplHelperBase
127 , public css::lang::XTypeProvider
128 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9, public Ifc10
129 {
130 struct cd : public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, WeakAggComponentImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
131 public:
132 WeakAggComponentImplHelper10( ::osl::Mutex & rMutex ) SAL_NOEXCEPT
133 : WeakAggComponentImplHelperBase( rMutex )
134 {}
135 virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) SAL_OVERRIDE
137 virtual css::uno::Any SAL_CALL queryAggregation( css::uno::Type const & rType ) SAL_OVERRIDE
138 { return WeakAggComponentImplHelper_queryAgg( rType, cd::get(), this, static_cast<WeakAggComponentImplHelperBase *>(this) ); }
139 virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
140 { WeakAggComponentImplHelperBase::acquire(); }
141 virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
142 { WeakAggComponentImplHelperBase::release(); }
143 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
144 { return WeakAggComponentImplHelper_getTypes( cd::get() ); }
145 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
146 { return ImplHelper_getImplementationId( cd::get() ); }
147 };
148}
149
150#endif
151
152/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Same as WeakComponentImplHelper10, except doesn't implement addEventListener, removeEventListener and...
Definition: compbase10.hxx:89
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase10.hxx:99
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase10.hxx:95
PartialWeakComponentImplHelper10(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase10.hxx:92
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase10.hxx:97
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
Definition: compbase10.hxx:101
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
Definition: compbase10.hxx:103
Implementation helper supporting css::lang::XTypeProvider and css::lang::XComponent.
Definition: compbase10.hxx:129
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
Definition: compbase10.hxx:145
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase10.hxx:135
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase10.hxx:139
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
Definition: compbase10.hxx:143
WeakAggComponentImplHelper10(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase10.hxx:132
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase10.hxx:141
virtual css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase10.hxx:137
Implementation helper supporting css::lang::XTypeProvider and css::lang::XComponent.
Definition: compbase10.hxx:51
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase10.hxx:59
virtual void SAL_CALL dispose() SAL_OVERRIDE
Definition: compbase10.hxx:63
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
Definition: compbase10.hxx:65
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
Definition: compbase10.hxx:69
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase10.hxx:57
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
Definition: compbase10.hxx:71
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
Definition: compbase10.hxx:67
WeakComponentImplHelper10(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase10.hxx:54
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase10.hxx:61
Any SAL_CALL WeakComponentImplHelper_query(Type const &rType, class_data *cd, void *that, WeakComponentImplHelperBase *pBase)
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Sequence< Type > SAL_CALL WeakAggComponentImplHelper_getTypes(class_data *cd)
css::uno::Sequence< sal_Int8 > ImplHelper_getImplementationId(SAL_UNUSED_PARAMETER class_data *)
Any SAL_CALL WeakAggComponentImplHelper_queryAgg(Type const &rType, class_data *cd, void *that, WeakAggComponentImplHelperBase *pBase)
Sequence< Type > SAL_CALL WeakComponentImplHelper_getTypes(class_data *cd)
#define SAL_NO_VTABLE