Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_SHEET_ADDIN_XDATEFUNCTIONS_HPP
2 : : #define INCLUDED_COM_SUN_STAR_SHEET_ADDIN_XDATEFUNCTIONS_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/sheet/addin/XDateFunctions.hdl"
7 : :
8 : : #include "com/sun/star/uno/XInterface.hpp"
9 : : #include "com/sun/star/uno/RuntimeException.hpp"
10 : : #include "com/sun/star/lang/IllegalArgumentException.hpp"
11 : : #include "com/sun/star/beans/XPropertySet.hpp"
12 : : #include "com/sun/star/uno/Reference.hxx"
13 : : #include "com/sun/star/uno/Type.hxx"
14 : : #include "cppu/unotype.hxx"
15 : : #include "osl/mutex.hxx"
16 : : #include "rtl/instance.hxx"
17 : : #include "sal/types.h"
18 : :
19 : : namespace com { namespace sun { namespace star { namespace sheet { namespace addin { namespace detail {
20 : :
21 : : struct theXDateFunctionsType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXDateFunctionsType >
22 : : {
23 : 17 : ::com::sun::star::uno::Type * operator()() const
24 : : {
25 [ + - ]: 17 : ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions") );
26 : :
27 : : // Start inline typedescription generation
28 : 17 : typelib_InterfaceTypeDescription * pTD = 0;
29 : :
30 : : typelib_TypeDescriptionReference * aSuperTypes[1];
31 [ + - ]: 17 : aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::get().getTypeLibType();
32 : 17 : typelib_TypeDescriptionReference * pMembers[7] = { 0,0,0,0,0,0,0 };
33 [ + - ]: 17 : ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDiffWeeks") );
34 : : typelib_typedescriptionreference_new( &pMembers[0],
35 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
36 : 17 : sMethodName0.pData );
37 [ + - ]: 17 : ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDiffMonths") );
38 : : typelib_typedescriptionreference_new( &pMembers[1],
39 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
40 : 17 : sMethodName1.pData );
41 [ + - ]: 17 : ::rtl::OUString sMethodName2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDiffYears") );
42 : : typelib_typedescriptionreference_new( &pMembers[2],
43 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
44 : 17 : sMethodName2.pData );
45 [ + - ]: 17 : ::rtl::OUString sMethodName3( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getIsLeapYear") );
46 : : typelib_typedescriptionreference_new( &pMembers[3],
47 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
48 : 17 : sMethodName3.pData );
49 [ + - ]: 17 : ::rtl::OUString sMethodName4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDaysInMonth") );
50 : : typelib_typedescriptionreference_new( &pMembers[4],
51 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
52 : 17 : sMethodName4.pData );
53 [ + - ]: 17 : ::rtl::OUString sMethodName5( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDaysInYear") );
54 : : typelib_typedescriptionreference_new( &pMembers[5],
55 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
56 : 17 : sMethodName5.pData );
57 [ + - ]: 17 : ::rtl::OUString sMethodName6( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getWeeksInYear") );
58 : : typelib_typedescriptionreference_new( &pMembers[6],
59 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
60 : 17 : sMethodName6.pData );
61 : :
62 : : typelib_typedescription_newMIInterface(
63 : : &pTD,
64 : : sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
65 : : 1, aSuperTypes,
66 : : 7,
67 : 17 : pMembers );
68 : :
69 : 17 : typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
70 : 17 : typelib_typedescriptionreference_release( pMembers[0] );
71 : 17 : typelib_typedescriptionreference_release( pMembers[1] );
72 : 17 : typelib_typedescriptionreference_release( pMembers[2] );
73 : 17 : typelib_typedescriptionreference_release( pMembers[3] );
74 : 17 : typelib_typedescriptionreference_release( pMembers[4] );
75 : 17 : typelib_typedescriptionreference_release( pMembers[5] );
76 : 17 : typelib_typedescriptionreference_release( pMembers[6] );
77 : 17 : typelib_typedescription_release( (typelib_TypeDescription*)pTD );
78 : :
79 : 17 : 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 sheet { namespace addin {
86 : :
87 : 17 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::sheet::addin::XDateFunctions const *) {
88 : 17 : const ::com::sun::star::uno::Type &rRet = *detail::theXDateFunctionsType::get();
89 : : // End inline typedescription generation
90 : : static bool bInitStarted = false;
91 [ + - ]: 17 : if (!bInitStarted)
92 : : {
93 [ + - ][ + - ]: 17 : ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
94 [ + - ]: 17 : if (!bInitStarted)
95 : : {
96 : : OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
97 : 17 : bInitStarted = true;
98 [ + - ]: 17 : ::cppu::UnoType< ::com::sun::star::uno::RuntimeException >::get();
99 [ + - ]: 17 : ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > >::get();
100 [ + - ]: 17 : ::cppu::UnoType< ::com::sun::star::lang::IllegalArgumentException >::get();
101 : :
102 : 17 : typelib_InterfaceMethodTypeDescription * pMethod = 0;
103 : : {
104 : : typelib_Parameter_Init aParameters[4];
105 [ + - ]: 17 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("xOptions") );
106 [ + - ]: 17 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySet") );
107 : 17 : aParameters[0].pParamName = sParamName0.pData;
108 : 17 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
109 : 17 : aParameters[0].pTypeName = sParamType0.pData;
110 : 17 : aParameters[0].bIn = sal_True;
111 : 17 : aParameters[0].bOut = sal_False;
112 [ + - ]: 17 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nStartDate") );
113 [ + - ]: 17 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("long") );
114 : 17 : aParameters[1].pParamName = sParamName1.pData;
115 : 17 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
116 : 17 : aParameters[1].pTypeName = sParamType1.pData;
117 : 17 : aParameters[1].bIn = sal_True;
118 : 17 : aParameters[1].bOut = sal_False;
119 [ + - ]: 17 : ::rtl::OUString sParamName2( RTL_CONSTASCII_USTRINGPARAM("nEndDate") );
120 [ + - ]: 17 : ::rtl::OUString sParamType2( RTL_CONSTASCII_USTRINGPARAM("long") );
121 : 17 : aParameters[2].pParamName = sParamName2.pData;
122 : 17 : aParameters[2].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
123 : 17 : aParameters[2].pTypeName = sParamType2.pData;
124 : 17 : aParameters[2].bIn = sal_True;
125 : 17 : aParameters[2].bOut = sal_False;
126 [ + - ]: 17 : ::rtl::OUString sParamName3( RTL_CONSTASCII_USTRINGPARAM("nMode") );
127 [ + - ]: 17 : ::rtl::OUString sParamType3( RTL_CONSTASCII_USTRINGPARAM("long") );
128 : 17 : aParameters[3].pParamName = sParamName3.pData;
129 : 17 : aParameters[3].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
130 : 17 : aParameters[3].pTypeName = sParamType3.pData;
131 : 17 : aParameters[3].bIn = sal_True;
132 : 17 : aParameters[3].bOut = sal_False;
133 [ + - ]: 17 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException"));
134 [ + - ]: 17 : ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
135 : 17 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
136 [ + - ]: 17 : ::rtl::OUString sReturnType0( RTL_CONSTASCII_USTRINGPARAM("long") );
137 [ + - ]: 17 : ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDiffWeeks") );
138 : : typelib_typedescription_newInterfaceMethod( &pMethod,
139 : : 3, sal_False,
140 : : sMethodName0.pData,
141 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType0.pData,
142 : : 4, aParameters,
143 : 17 : 2, the_Exceptions );
144 : 17 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
145 : : }
146 : : {
147 : : typelib_Parameter_Init aParameters[4];
148 [ + - ]: 17 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("xOptions") );
149 [ + - ]: 17 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySet") );
150 : 17 : aParameters[0].pParamName = sParamName0.pData;
151 : 17 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
152 : 17 : aParameters[0].pTypeName = sParamType0.pData;
153 : 17 : aParameters[0].bIn = sal_True;
154 : 17 : aParameters[0].bOut = sal_False;
155 [ + - ]: 17 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nStartDate") );
156 [ + - ]: 17 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("long") );
157 : 17 : aParameters[1].pParamName = sParamName1.pData;
158 : 17 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
159 : 17 : aParameters[1].pTypeName = sParamType1.pData;
160 : 17 : aParameters[1].bIn = sal_True;
161 : 17 : aParameters[1].bOut = sal_False;
162 [ + - ]: 17 : ::rtl::OUString sParamName2( RTL_CONSTASCII_USTRINGPARAM("nEndDate") );
163 [ + - ]: 17 : ::rtl::OUString sParamType2( RTL_CONSTASCII_USTRINGPARAM("long") );
164 : 17 : aParameters[2].pParamName = sParamName2.pData;
165 : 17 : aParameters[2].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
166 : 17 : aParameters[2].pTypeName = sParamType2.pData;
167 : 17 : aParameters[2].bIn = sal_True;
168 : 17 : aParameters[2].bOut = sal_False;
169 [ + - ]: 17 : ::rtl::OUString sParamName3( RTL_CONSTASCII_USTRINGPARAM("nMode") );
170 [ + - ]: 17 : ::rtl::OUString sParamType3( RTL_CONSTASCII_USTRINGPARAM("long") );
171 : 17 : aParameters[3].pParamName = sParamName3.pData;
172 : 17 : aParameters[3].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
173 : 17 : aParameters[3].pTypeName = sParamType3.pData;
174 : 17 : aParameters[3].bIn = sal_True;
175 : 17 : aParameters[3].bOut = sal_False;
176 [ + - ]: 17 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException"));
177 [ + - ]: 17 : ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
178 : 17 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
179 [ + - ]: 17 : ::rtl::OUString sReturnType1( RTL_CONSTASCII_USTRINGPARAM("long") );
180 [ + - ]: 17 : ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDiffMonths") );
181 : : typelib_typedescription_newInterfaceMethod( &pMethod,
182 : : 4, sal_False,
183 : : sMethodName1.pData,
184 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType1.pData,
185 : : 4, aParameters,
186 : 17 : 2, the_Exceptions );
187 : 17 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
188 : : }
189 : : {
190 : : typelib_Parameter_Init aParameters[4];
191 [ + - ]: 17 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("xOptions") );
192 [ + - ]: 17 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySet") );
193 : 17 : aParameters[0].pParamName = sParamName0.pData;
194 : 17 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
195 : 17 : aParameters[0].pTypeName = sParamType0.pData;
196 : 17 : aParameters[0].bIn = sal_True;
197 : 17 : aParameters[0].bOut = sal_False;
198 [ + - ]: 17 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nStartDate") );
199 [ + - ]: 17 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("long") );
200 : 17 : aParameters[1].pParamName = sParamName1.pData;
201 : 17 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
202 : 17 : aParameters[1].pTypeName = sParamType1.pData;
203 : 17 : aParameters[1].bIn = sal_True;
204 : 17 : aParameters[1].bOut = sal_False;
205 [ + - ]: 17 : ::rtl::OUString sParamName2( RTL_CONSTASCII_USTRINGPARAM("nEndDate") );
206 [ + - ]: 17 : ::rtl::OUString sParamType2( RTL_CONSTASCII_USTRINGPARAM("long") );
207 : 17 : aParameters[2].pParamName = sParamName2.pData;
208 : 17 : aParameters[2].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
209 : 17 : aParameters[2].pTypeName = sParamType2.pData;
210 : 17 : aParameters[2].bIn = sal_True;
211 : 17 : aParameters[2].bOut = sal_False;
212 [ + - ]: 17 : ::rtl::OUString sParamName3( RTL_CONSTASCII_USTRINGPARAM("nMode") );
213 [ + - ]: 17 : ::rtl::OUString sParamType3( RTL_CONSTASCII_USTRINGPARAM("long") );
214 : 17 : aParameters[3].pParamName = sParamName3.pData;
215 : 17 : aParameters[3].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
216 : 17 : aParameters[3].pTypeName = sParamType3.pData;
217 : 17 : aParameters[3].bIn = sal_True;
218 : 17 : aParameters[3].bOut = sal_False;
219 [ + - ]: 17 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException"));
220 [ + - ]: 17 : ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
221 : 17 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
222 [ + - ]: 17 : ::rtl::OUString sReturnType2( RTL_CONSTASCII_USTRINGPARAM("long") );
223 [ + - ]: 17 : ::rtl::OUString sMethodName2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDiffYears") );
224 : : typelib_typedescription_newInterfaceMethod( &pMethod,
225 : : 5, sal_False,
226 : : sMethodName2.pData,
227 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType2.pData,
228 : : 4, aParameters,
229 : 17 : 2, the_Exceptions );
230 : 17 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
231 : : }
232 : : {
233 : : typelib_Parameter_Init aParameters[2];
234 [ + - ]: 17 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("xOptions") );
235 [ + - ]: 17 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySet") );
236 : 17 : aParameters[0].pParamName = sParamName0.pData;
237 : 17 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
238 : 17 : aParameters[0].pTypeName = sParamType0.pData;
239 : 17 : aParameters[0].bIn = sal_True;
240 : 17 : aParameters[0].bOut = sal_False;
241 [ + - ]: 17 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nDate") );
242 [ + - ]: 17 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("long") );
243 : 17 : aParameters[1].pParamName = sParamName1.pData;
244 : 17 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
245 : 17 : aParameters[1].pTypeName = sParamType1.pData;
246 : 17 : aParameters[1].bIn = sal_True;
247 : 17 : aParameters[1].bOut = sal_False;
248 [ + - ]: 17 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException"));
249 [ + - ]: 17 : ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
250 : 17 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
251 [ + - ]: 17 : ::rtl::OUString sReturnType3( RTL_CONSTASCII_USTRINGPARAM("long") );
252 [ + - ]: 17 : ::rtl::OUString sMethodName3( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getIsLeapYear") );
253 : : typelib_typedescription_newInterfaceMethod( &pMethod,
254 : : 6, sal_False,
255 : : sMethodName3.pData,
256 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType3.pData,
257 : : 2, aParameters,
258 : 17 : 2, the_Exceptions );
259 : 17 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
260 : : }
261 : : {
262 : : typelib_Parameter_Init aParameters[2];
263 [ + - ]: 17 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("xOptions") );
264 [ + - ]: 17 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySet") );
265 : 17 : aParameters[0].pParamName = sParamName0.pData;
266 : 17 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
267 : 17 : aParameters[0].pTypeName = sParamType0.pData;
268 : 17 : aParameters[0].bIn = sal_True;
269 : 17 : aParameters[0].bOut = sal_False;
270 [ + - ]: 17 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nDate") );
271 [ + - ]: 17 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("long") );
272 : 17 : aParameters[1].pParamName = sParamName1.pData;
273 : 17 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
274 : 17 : aParameters[1].pTypeName = sParamType1.pData;
275 : 17 : aParameters[1].bIn = sal_True;
276 : 17 : aParameters[1].bOut = sal_False;
277 [ + - ]: 17 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException"));
278 [ + - ]: 17 : ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
279 : 17 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
280 [ + - ]: 17 : ::rtl::OUString sReturnType4( RTL_CONSTASCII_USTRINGPARAM("long") );
281 [ + - ]: 17 : ::rtl::OUString sMethodName4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDaysInMonth") );
282 : : typelib_typedescription_newInterfaceMethod( &pMethod,
283 : : 7, sal_False,
284 : : sMethodName4.pData,
285 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType4.pData,
286 : : 2, aParameters,
287 : 17 : 2, the_Exceptions );
288 : 17 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
289 : : }
290 : : {
291 : : typelib_Parameter_Init aParameters[2];
292 [ + - ]: 17 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("xOptions") );
293 [ + - ]: 17 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySet") );
294 : 17 : aParameters[0].pParamName = sParamName0.pData;
295 : 17 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
296 : 17 : aParameters[0].pTypeName = sParamType0.pData;
297 : 17 : aParameters[0].bIn = sal_True;
298 : 17 : aParameters[0].bOut = sal_False;
299 [ + - ]: 17 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nDate") );
300 [ + - ]: 17 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("long") );
301 : 17 : aParameters[1].pParamName = sParamName1.pData;
302 : 17 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
303 : 17 : aParameters[1].pTypeName = sParamType1.pData;
304 : 17 : aParameters[1].bIn = sal_True;
305 : 17 : aParameters[1].bOut = sal_False;
306 [ + - ]: 17 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException"));
307 [ + - ]: 17 : ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
308 : 17 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
309 [ + - ]: 17 : ::rtl::OUString sReturnType5( RTL_CONSTASCII_USTRINGPARAM("long") );
310 [ + - ]: 17 : ::rtl::OUString sMethodName5( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getDaysInYear") );
311 : : typelib_typedescription_newInterfaceMethod( &pMethod,
312 : : 8, sal_False,
313 : : sMethodName5.pData,
314 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType5.pData,
315 : : 2, aParameters,
316 : 17 : 2, the_Exceptions );
317 : 17 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
318 : : }
319 : : {
320 : : typelib_Parameter_Init aParameters[2];
321 [ + - ]: 17 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("xOptions") );
322 [ + - ]: 17 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySet") );
323 : 17 : aParameters[0].pParamName = sParamName0.pData;
324 : 17 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
325 : 17 : aParameters[0].pTypeName = sParamType0.pData;
326 : 17 : aParameters[0].bIn = sal_True;
327 : 17 : aParameters[0].bOut = sal_False;
328 [ + - ]: 17 : ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nDate") );
329 [ + - ]: 17 : ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("long") );
330 : 17 : aParameters[1].pParamName = sParamName1.pData;
331 : 17 : aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
332 : 17 : aParameters[1].pTypeName = sParamType1.pData;
333 : 17 : aParameters[1].bIn = sal_True;
334 : 17 : aParameters[1].bOut = sal_False;
335 [ + - ]: 17 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException"));
336 [ + - ]: 17 : ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
337 : 17 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
338 [ + - ]: 17 : ::rtl::OUString sReturnType6( RTL_CONSTASCII_USTRINGPARAM("long") );
339 [ + - ]: 17 : ::rtl::OUString sMethodName6( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.addin.XDateFunctions::getWeeksInYear") );
340 : : typelib_typedescription_newInterfaceMethod( &pMethod,
341 : : 9, sal_False,
342 : : sMethodName6.pData,
343 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType6.pData,
344 : : 2, aParameters,
345 : 17 : 2, the_Exceptions );
346 : 17 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
347 : : }
348 : 17 : typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
349 [ + - ]: 17 : }
350 : : }
351 : : else
352 : : {
353 : : OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
354 : : }
355 : 17 : return rRet;
356 : : }
357 : :
358 : : } } } } }
359 : :
360 : 17 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< ::com::sun::star::sheet::addin::XDateFunctions > const *) SAL_THROW(()) {
361 : 17 : return ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::sheet::addin::XDateFunctions > >::get();
362 : : }
363 : :
364 : 17 : ::com::sun::star::uno::Type const & ::com::sun::star::sheet::addin::XDateFunctions::static_type(SAL_UNUSED_PARAMETER void *) {
365 : 17 : return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< ::com::sun::star::sheet::addin::XDateFunctions > * >(0));
366 : : }
367 : :
368 : : #endif // INCLUDED_COM_SUN_STAR_SHEET_ADDIN_XDATEFUNCTIONS_HPP
|