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