LibreOffice LibreOffice 4.2 SDK C/C++ API Reference

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 * 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 #ifndef INCLUDED_CPPUHELPER_COMPBASE8_HXX
20 #define INCLUDED_CPPUHELPER_COMPBASE8_HXX
21
22 #include <cppuhelper/implbase8.hxx>
23 #include <cppuhelper/compbase_ex.hxx>
24
25 namespace cppu
26 {
27
28 // Suppress warnings about hidden functions in case any of the IfcN has
29 // functions named dispose, addEventListener, or removeEventListener:
30 #if defined __SUNPRO_CC
31 #pragma disable_warn
32 #endif
33
48 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8 >
49 class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakComponentImplHelper8
50 : public WeakComponentImplHelperBase
51 , public ::com::sun::star::lang::XTypeProvider
52 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8
53 {
54 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> > > {};
55 public:
56 inline WeakComponentImplHelper8( ::osl::Mutex & rMutex ) throw ()
57 : WeakComponentImplHelperBase( rMutex )
58 {}
59 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
60 { return WeakComponentImplHelper_query( rType, cd::get(), this, (WeakComponentImplHelperBase *)this ); }
61 virtual void SAL_CALL acquire() throw ()
62 { WeakComponentImplHelperBase::acquire(); }
63 virtual void SAL_CALL release() throw ()
64 { WeakComponentImplHelperBase::release(); }
65 virtual void SAL_CALL dispose()throw (::com::sun::star::uno::RuntimeException)
66 { WeakComponentImplHelperBase::dispose(); }
67 virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & xListener)throw (::com::sun::star::uno::RuntimeException)
68 { WeakComponentImplHelperBase::addEventListener(xListener); }
69 virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & xListener)throw (::com::sun::star::uno::RuntimeException)
70 { WeakComponentImplHelperBase::removeEventListener(xListener); }
71 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
72 { return WeakComponentImplHelper_getTypes( cd::get() ); }
73 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
74 { return ImplHelper_getImplementationId( cd::get() ); }
75 };
76
77 #if defined __SUNPRO_CC
78 #pragma enable_warn
79 #endif
80
90 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8 >
91 class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE PartialWeakComponentImplHelper8
92 : public WeakComponentImplHelperBase
93 , public ::com::sun::star::lang::XTypeProvider
94 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8
95 {
96 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> > > {};
97 public:
98 inline PartialWeakComponentImplHelper8( ::osl::Mutex & rMutex ) throw ()
99 : WeakComponentImplHelperBase( rMutex )
100 {}
101 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
102 { return WeakComponentImplHelper_query( rType, cd::get(), this, (WeakComponentImplHelperBase *)this ); }
103 virtual void SAL_CALL acquire() throw ()
104 { WeakComponentImplHelperBase::acquire(); }
105 virtual void SAL_CALL release() throw ()
106 { WeakComponentImplHelperBase::release(); }
107 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
108 { return WeakComponentImplHelper_getTypes( cd::get() ); }
109 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
110 { return ImplHelper_getImplementationId( cd::get() ); }
111 };
112
130 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8 >
131 class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakAggComponentImplHelper8
132 : public WeakAggComponentImplHelperBase
133 , public ::com::sun::star::lang::XTypeProvider
134 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8
135 {
136 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> > > {};
137 public:
138 inline WeakAggComponentImplHelper8( ::osl::Mutex & rMutex ) throw ()
139 : WeakAggComponentImplHelperBase( rMutex )
140 {}
141 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
142 { return WeakAggComponentImplHelperBase::queryInterface( rType ); }
143 virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
144 { return WeakAggComponentImplHelper_queryAgg( rType, cd::get(), this, (WeakAggComponentImplHelperBase *)this ); }
145 virtual void SAL_CALL acquire() throw ()
146 { WeakAggComponentImplHelperBase::acquire(); }
147 virtual void SAL_CALL release() throw ()
148 { WeakAggComponentImplHelperBase::release(); }
149 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
150 { return WeakAggComponentImplHelper_getTypes( cd::get() ); }
151 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
152 { return ImplHelper_getImplementationId( cd::get() ); }
153 };
154 }
155
156 #endif
157
158 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cppu::WeakAggComponentImplHelper8::getTypes
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > getTypes()
Definition: compbase8.hxx:149
cppu::PartialWeakComponentImplHelper8::PartialWeakComponentImplHelper8
PartialWeakComponentImplHelper8(::osl::Mutex &rMutex)
Definition: compbase8.hxx:98
cppu::PartialWeakComponentImplHelper8::release
virtual void release()
Definition: compbase8.hxx:105
cppu::PartialWeakComponentImplHelper8::getTypes
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > getTypes()
Definition: compbase8.hxx:107
rtl::StaticAggregate
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:542
com::sun::star::uno::Type
C++ class representing an IDL meta type.
Definition: Type.h:55
compbase_ex.hxx
cppu::WeakComponentImplHelper8::getImplementationId
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: compbase8.hxx:73
cppu::PartialWeakComponentImplHelper8::acquire
virtual void acquire()
Definition: compbase8.hxx:103
cppu::queryInterface
inline::com::sun::star::uno::Any queryInterface(const ::com::sun::star::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
cppu::WeakAggComponentImplHelper8
Implementation helper supporting com::sun::star::lang::XTypeProvider and com::sun::star::lang::XCompo...
Definition: compbase8.hxx:131
implbase8.hxx
cppu::WeakAggComponentImplHelper8::getImplementationId
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: compbase8.hxx:151
SAL_NO_VTABLE
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:315
cppu::WeakComponentImplHelper8::addEventListener
virtual void addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > &xListener)
Definition: compbase8.hxx:67
cppu::PartialWeakComponentImplHelper8::getImplementationId
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: compbase8.hxx:109
cppu::WeakAggComponentImplHelper8::WeakAggComponentImplHelper8
WeakAggComponentImplHelper8(::osl::Mutex &rMutex)
Definition: compbase8.hxx:138
cppu::WeakComponentImplHelper8::WeakComponentImplHelper8
WeakComponentImplHelper8(::osl::Mutex &rMutex)
Definition: compbase8.hxx:56
cppu::WeakComponentImplHelper8::acquire
virtual void acquire()
Definition: compbase8.hxx:61
cppu::WeakComponentImplHelper8::getTypes
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > getTypes()
Definition: compbase8.hxx:71
cppu::WeakComponentImplHelper8::dispose
virtual void dispose()
Definition: compbase8.hxx:65
osl::Mutex
A mutual exclusion synchronization object.
Definition: mutex.hxx:32
cppu::WeakAggComponentImplHelper8::release
virtual void release()
Definition: compbase8.hxx:147
cppu::WeakAggComponentImplHelper8::queryInterface
virtual ::com::sun::star::uno::Any queryInterface(::com::sun::star::uno::Type const &rType)
Definition: compbase8.hxx:141
cppu::WeakAggComponentImplHelper8::acquire
virtual void acquire()
Definition: compbase8.hxx:145
cppu::WeakComponentImplHelper8::queryInterface
virtual ::com::sun::star::uno::Any queryInterface(::com::sun::star::uno::Type const &rType)
Definition: compbase8.hxx:59
cppu::WeakComponentImplHelper8::removeEventListener
virtual void removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > &xListener)
Definition: compbase8.hxx:69
cppu::PartialWeakComponentImplHelper8::queryInterface
virtual ::com::sun::star::uno::Any queryInterface(::com::sun::star::uno::Type const &rType)
Definition: compbase8.hxx:101
cppu::WeakComponentImplHelper8::release
virtual void release()
Definition: compbase8.hxx:63
cppu::WeakAggComponentImplHelper8::queryAggregation
virtual ::com::sun::star::uno::Any queryAggregation(::com::sun::star::uno::Type const &rType)
Definition: compbase8.hxx:143
cppu::WeakComponentImplHelper8
Implementation helper supporting com::sun::star::lang::XTypeProvider and com::sun::star::lang::XCompo...
Definition: compbase8.hxx:49
cppu::PartialWeakComponentImplHelper8
Same as WeakComponentImplHelper8, except doesn't implement addEventListener, removeEventListener and ...
Definition: compbase8.hxx:91