Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP
2 : : #define INCLUDED_COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/beans/XMultiPropertySet.hdl"
7 : :
8 : : #include "com/sun/star/beans/XPropertiesChangeListener.hpp"
9 : : #include "com/sun/star/lang/WrappedTargetException.hpp"
10 : : #include "com/sun/star/lang/IllegalArgumentException.hpp"
11 : : #include "com/sun/star/beans/PropertyVetoException.hpp"
12 : : #include "com/sun/star/uno/RuntimeException.hpp"
13 : : #include "com/sun/star/beans/XPropertySetInfo.hpp"
14 : : #include "com/sun/star/uno/XInterface.hpp"
15 : : #include "com/sun/star/uno/Any.hxx"
16 : : #include "com/sun/star/uno/Reference.hxx"
17 : : #include "com/sun/star/uno/Sequence.hxx"
18 : : #include "com/sun/star/uno/Type.hxx"
19 : : #include "cppu/unotype.hxx"
20 : : #include "osl/mutex.hxx"
21 : : #include "rtl/ustring.hxx"
22 : : #include "rtl/instance.hxx"
23 : :
24 : : namespace com { namespace sun { namespace star { namespace beans { namespace detail {
25 : :
26 : : struct theXMultiPropertySetType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXMultiPropertySetType >
27 : : {
28 : 1221 : ::com::sun::star::uno::Type * operator()() const
29 : : {
30 [ + - ]: 1221 : ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet") );
31 : :
32 : : // Start inline typedescription generation
33 : 1221 : typelib_InterfaceTypeDescription * pTD = 0;
34 : :
35 : : typelib_TypeDescriptionReference * aSuperTypes[1];
36 [ + - ]: 1221 : aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::get().getTypeLibType();
37 : 1221 : typelib_TypeDescriptionReference * pMembers[6] = { 0,0,0,0,0,0 };
38 [ + - ]: 1221 : ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::getPropertySetInfo") );
39 : : typelib_typedescriptionreference_new( &pMembers[0],
40 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
41 : 1221 : sMethodName0.pData );
42 [ + - ]: 1221 : ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::setPropertyValues") );
43 : : typelib_typedescriptionreference_new( &pMembers[1],
44 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
45 : 1221 : sMethodName1.pData );
46 [ + - ]: 1221 : ::rtl::OUString sMethodName2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::getPropertyValues") );
47 : : typelib_typedescriptionreference_new( &pMembers[2],
48 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
49 : 1221 : sMethodName2.pData );
50 [ + - ]: 1221 : ::rtl::OUString sMethodName3( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::addPropertiesChangeListener") );
51 : : typelib_typedescriptionreference_new( &pMembers[3],
52 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
53 : 1221 : sMethodName3.pData );
54 [ + - ]: 1221 : ::rtl::OUString sMethodName4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::removePropertiesChangeListener") );
55 : : typelib_typedescriptionreference_new( &pMembers[4],
56 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
57 : 1221 : sMethodName4.pData );
58 [ + - ]: 1221 : ::rtl::OUString sMethodName5( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::firePropertiesChangeEvent") );
59 : : typelib_typedescriptionreference_new( &pMembers[5],
60 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
61 : 1221 : sMethodName5.pData );
62 : :
63 : : typelib_typedescription_newMIInterface(
64 : : &pTD,
65 : : sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
66 : : 1, aSuperTypes,
67 : : 6,
68 : 1221 : pMembers );
69 : :
70 : 1221 : typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
71 : 1221 : typelib_typedescriptionreference_release( pMembers[0] );
72 : 1221 : typelib_typedescriptionreference_release( pMembers[1] );
73 : 1221 : typelib_typedescriptionreference_release( pMembers[2] );
74 : 1221 : typelib_typedescriptionreference_release( pMembers[3] );
75 : 1221 : typelib_typedescriptionreference_release( pMembers[4] );
76 : 1221 : typelib_typedescriptionreference_release( pMembers[5] );
77 : 1221 : typelib_typedescription_release( (typelib_TypeDescription*)pTD );
78 : :
79 : 1221 : return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
80 : : }
81 : : };
82 : :
83 : : } } } } }
84 : :
85 : : namespace com { namespace sun { namespace star { namespace beans {
86 : :
87 : 432749 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::beans::XMultiPropertySet const *) {
88 : 432749 : const ::com::sun::star::uno::Type &rRet = *detail::theXMultiPropertySetType::get();
89 : : // End inline typedescription generation
90 : : static bool bInitStarted = false;
91 [ + + ]: 432749 : if (!bInitStarted)
92 : : {
93 [ + - ][ + - ]: 1221 : ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
94 [ + - ]: 1221 : if (!bInitStarted)
95 : : {
96 : : OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
97 : 1221 : bInitStarted = true;
98 [ + - ]: 1221 : ::cppu::UnoType< ::com::sun::star::uno::RuntimeException >::get();
99 [ + - ]: 1221 : ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > >::get();
100 [ + - ]: 1221 : ::cppu::UnoType< ::cppu::UnoSequenceType< ::rtl::OUString > >::get();
101 [ + - ]: 1221 : ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Any > >::get();
102 : 1221 : ::cppu::UnoType< ::com::sun::star::beans::PropertyVetoException >::get();
103 : 1221 : ::cppu::UnoType< ::com::sun::star::lang::IllegalArgumentException >::get();
104 : 1221 : ::cppu::UnoType< ::com::sun::star::lang::WrappedTargetException >::get();
105 [ + - ]: 1221 : ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener > >::get();
106 : :
107 : 1221 : typelib_InterfaceMethodTypeDescription * pMethod = 0;
108 : : {
109 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
110 : 1221 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
111 [ + - ]: 1221 : ::rtl::OUString sReturnType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySetInfo") );
112 [ + - ]: 1221 : ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::getPropertySetInfo") );
113 : : typelib_typedescription_newInterfaceMethod( &pMethod,
114 : : 3, sal_False,
115 : : sMethodName0.pData,
116 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType0.pData,
117 : : 0, 0,
118 : 1221 : 1, the_Exceptions );
119 : 1221 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
120 : : }
121 : : {
122 : : typelib_Parameter_Init aParameters[2];
123 [ + - ]: 1221 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("aPropertyNames") );
124 [ + - ]: 1221 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("[]string") );
125 : 1221 : aParameters[0].pParamName = sParamName0.pData;
126 : 1221 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
127 : 1221 : aParameters[0].pTypeName = sParamType0.pData;
128 : 1221 : aParameters[0].bIn = sal_True;
129 : 1221 : aParameters[0].bOut = sal_False;
130 [ + - ]: 1221 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("aValues") );
131 [ + - ]: 1221 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("[]any") );
132 : 1221 : aParameters[1].pParamName = sParamName1.pData;
133 : 1221 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
134 : 1221 : aParameters[1].pTypeName = sParamType1.pData;
135 : 1221 : aParameters[1].bIn = sal_True;
136 : 1221 : aParameters[1].bOut = sal_False;
137 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.PropertyVetoException"));
138 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException"));
139 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName2(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.WrappedTargetException"));
140 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName3(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
141 : 1221 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData, the_ExceptionName2.pData, the_ExceptionName3.pData };
142 [ + - ]: 1221 : ::rtl::OUString sReturnType1( RTL_CONSTASCII_USTRINGPARAM("void") );
143 [ + - ]: 1221 : ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::setPropertyValues") );
144 : : typelib_typedescription_newInterfaceMethod( &pMethod,
145 : : 4, sal_False,
146 : : sMethodName1.pData,
147 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType1.pData,
148 : : 2, aParameters,
149 : 1221 : 4, the_Exceptions );
150 : 1221 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
151 : : }
152 : : {
153 : : typelib_Parameter_Init aParameters[1];
154 [ + - ]: 1221 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("aPropertyNames") );
155 [ + - ]: 1221 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("[]string") );
156 : 1221 : aParameters[0].pParamName = sParamName0.pData;
157 : 1221 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
158 : 1221 : aParameters[0].pTypeName = sParamType0.pData;
159 : 1221 : aParameters[0].bIn = sal_True;
160 : 1221 : aParameters[0].bOut = sal_False;
161 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
162 : 1221 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
163 [ + - ]: 1221 : ::rtl::OUString sReturnType2( RTL_CONSTASCII_USTRINGPARAM("[]any") );
164 [ + - ]: 1221 : ::rtl::OUString sMethodName2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::getPropertyValues") );
165 : : typelib_typedescription_newInterfaceMethod( &pMethod,
166 : : 5, sal_False,
167 : : sMethodName2.pData,
168 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType2.pData,
169 : : 1, aParameters,
170 : 1221 : 1, the_Exceptions );
171 : 1221 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
172 : : }
173 : : {
174 : : typelib_Parameter_Init aParameters[2];
175 [ + - ]: 1221 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("aPropertyNames") );
176 [ + - ]: 1221 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("[]string") );
177 : 1221 : aParameters[0].pParamName = sParamName0.pData;
178 : 1221 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
179 : 1221 : aParameters[0].pTypeName = sParamType0.pData;
180 : 1221 : aParameters[0].bIn = sal_True;
181 : 1221 : aParameters[0].bOut = sal_False;
182 [ + - ]: 1221 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("xListener") );
183 [ + - ]: 1221 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertiesChangeListener") );
184 : 1221 : aParameters[1].pParamName = sParamName1.pData;
185 : 1221 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
186 : 1221 : aParameters[1].pTypeName = sParamType1.pData;
187 : 1221 : aParameters[1].bIn = sal_True;
188 : 1221 : aParameters[1].bOut = sal_False;
189 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
190 : 1221 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
191 [ + - ]: 1221 : ::rtl::OUString sReturnType3( RTL_CONSTASCII_USTRINGPARAM("void") );
192 [ + - ]: 1221 : ::rtl::OUString sMethodName3( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::addPropertiesChangeListener") );
193 : : typelib_typedescription_newInterfaceMethod( &pMethod,
194 : : 6, sal_True,
195 : : sMethodName3.pData,
196 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType3.pData,
197 : : 2, aParameters,
198 : 1221 : 1, the_Exceptions );
199 : 1221 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
200 : : }
201 : : {
202 : : typelib_Parameter_Init aParameters[1];
203 [ + - ]: 1221 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("xListener") );
204 [ + - ]: 1221 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertiesChangeListener") );
205 : 1221 : aParameters[0].pParamName = sParamName0.pData;
206 : 1221 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
207 : 1221 : aParameters[0].pTypeName = sParamType0.pData;
208 : 1221 : aParameters[0].bIn = sal_True;
209 : 1221 : aParameters[0].bOut = sal_False;
210 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
211 : 1221 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
212 [ + - ]: 1221 : ::rtl::OUString sReturnType4( RTL_CONSTASCII_USTRINGPARAM("void") );
213 [ + - ]: 1221 : ::rtl::OUString sMethodName4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::removePropertiesChangeListener") );
214 : : typelib_typedescription_newInterfaceMethod( &pMethod,
215 : : 7, sal_True,
216 : : sMethodName4.pData,
217 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType4.pData,
218 : : 1, aParameters,
219 : 1221 : 1, the_Exceptions );
220 : 1221 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
221 : : }
222 : : {
223 : : typelib_Parameter_Init aParameters[2];
224 [ + - ]: 1221 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("aPropertyNames") );
225 [ + - ]: 1221 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("[]string") );
226 : 1221 : aParameters[0].pParamName = sParamName0.pData;
227 : 1221 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE;
228 : 1221 : aParameters[0].pTypeName = sParamType0.pData;
229 : 1221 : aParameters[0].bIn = sal_True;
230 : 1221 : aParameters[0].bOut = sal_False;
231 [ + - ]: 1221 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("xListener") );
232 [ + - ]: 1221 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertiesChangeListener") );
233 : 1221 : aParameters[1].pParamName = sParamName1.pData;
234 : 1221 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
235 : 1221 : aParameters[1].pTypeName = sParamType1.pData;
236 : 1221 : aParameters[1].bIn = sal_True;
237 : 1221 : aParameters[1].bOut = sal_False;
238 [ + - ]: 1221 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
239 : 1221 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
240 [ + - ]: 1221 : ::rtl::OUString sReturnType5( RTL_CONSTASCII_USTRINGPARAM("void") );
241 [ + - ]: 1221 : ::rtl::OUString sMethodName5( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XMultiPropertySet::firePropertiesChangeEvent") );
242 : : typelib_typedescription_newInterfaceMethod( &pMethod,
243 : : 8, sal_True,
244 : : sMethodName5.pData,
245 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType5.pData,
246 : : 2, aParameters,
247 : 1221 : 1, the_Exceptions );
248 : 1221 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
249 : : }
250 : 1221 : typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
251 [ + - ]: 1221 : }
252 : : }
253 : : else
254 : : {
255 : : OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
256 : : }
257 : 432749 : return rRet;
258 : : }
259 : :
260 : : } } } }
261 : :
262 : 431753 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > const *) SAL_THROW(()) {
263 : 431753 : return ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > >::get();
264 : : }
265 : :
266 : 386679 : ::com::sun::star::uno::Type const & ::com::sun::star::beans::XMultiPropertySet::static_type(SAL_UNUSED_PARAMETER void *) {
267 : 386679 : return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > * >(0));
268 : : }
269 : :
270 : : #endif // INCLUDED_COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP
|