fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / framework / inc / macros / xinterface.hxx
blob2c2f378639dc19227dbc2102c820672378f752fa
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_FRAMEWORK_INC_MACROS_XINTERFACE_HXX
21 #define INCLUDED_FRAMEWORK_INC_MACROS_XINTERFACE_HXX
23 #include <com/sun/star/uno/RuntimeException.hpp>
25 #include <com/sun/star/uno/Any.hxx>
26 #include <com/sun/star/uno/Reference.hxx>
27 #include <com/sun/star/uno/Type.hxx>
28 #include <cppuhelper/queryinterface.hxx>
29 #include <rtl/ustring.hxx>
31 namespace framework{
33 /*_________________________________________________________________________________________________________________
35 macros for declaration and definition of XInterface
36 Please use follow public macros only!
38 1) DEFINE_XINTERFACE => use it in header to declare XInterface and his methods
39 2) DIRECT_INTERFACE( INTERFACE ) => use it as parameter INTERFACEx at 4) if interface not ambigous
40 3) DERIVED_INTERFACE( BASEINTERFACE, DERIVEDINTERFACE ) => use it as parameter INTERFACEx at 4) if interface can be ambigous
41 4) DECLARE_XINTERFACE_0( CLASS, BASECLASS ) => use it to define implementation of XInterface for 0 additional interface to baseclass
42 DECLARE_XINTERFACE_1( CLASS, BASECLASS, INTERFACE1 ) => use it to define implementation of XInterface for 1 additional interface to baseclass
43 ...
44 DECLARE_XINTERFACE_16( CLASS, BASECLASS, INTERFACE1, ... , INTERFACE16 )
46 _________________________________________________________________________________________________________________*/
48 // private
49 // implementation of XInterface::acquire()
50 // XInterface::release()
52 #define PRIVATE_DEFINE_XINTERFACE_ACQUIRE_RELEASE( CLASS, BASECLASS ) \
53 void SAL_CALL CLASS::acquire() throw() \
54 { \
55 /* Don't use mutex in methods of XInterface! */ \
56 BASECLASS::acquire(); \
57 } \
59 void SAL_CALL CLASS::release() throw() \
60 { \
61 /* Don't use mutex in methods of XInterface! */ \
62 BASECLASS::release(); \
65 // private
66 // implementation of XInterface::queryInterface() without any other interfaces!
68 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_PURE( CLASS, BASECLASS ) \
69 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ) \
70 { \
71 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
72 /* I have no own supported interfaces ... */ \
73 /* ... ask baseclass for interfaces! */ \
74 return BASECLASS::queryInterface( aType ); \
77 // private
78 // implementation of XInterface::queryInterface() with max. 12 other interfaces!
80 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE( CLASS, BASECLASS, INTERFACES ) \
81 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) \
82 { \
83 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
84 /* Ask for my own supported interfaces ... */ \
85 ::com::sun::star::uno::Any aReturn ( ::cppu::queryInterface INTERFACES \
86 ); \
87 /* If searched interface not supported by this class ... */ \
88 if ( !aReturn.hasValue() ) \
89 { \
90 /* ... ask baseclass for interfaces! */ \
91 aReturn = BASECLASS::queryInterface( aType ); \
92 } \
93 /* Return result of this search. */ \
94 return aReturn; \
97 // private
98 // implementation of XInterface::queryInterface() with more than 12 other interfaces!
100 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND ) \
101 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) \
103 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
104 /* Ask for my own supported interfaces ... */ \
105 ::com::sun::star::uno::Any aReturn ( ::cppu::queryInterface INTERFACES_FIRST \
106 ); \
107 /* If searched interface not supported by first group ... */ \
108 if ( !aReturn.hasValue() ) \
110 /* ... search in second group. (cppuhelper support 12 items only!) */ \
111 aReturn = ::cppu::queryInterface INTERFACES_SECOND; \
112 /* If searched interface not supported by this class ... */ \
113 if ( !aReturn.hasValue() ) \
115 /* ... ask baseclass for interfaces! */ \
116 aReturn = BASECLASS::queryInterface( aType ); \
119 /* Return result of this search. */ \
120 return aReturn; \
123 // private
124 // complete implementation of XInterface for different use cases
126 #define PRIVATE_DEFINE_XINTERFACE_PURE( CLASS, BASECLASS ) \
127 PRIVATE_DEFINE_XINTERFACE_ACQUIRE_RELEASE( CLASS, BASECLASS ) \
128 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_PURE( CLASS, BASECLASS )
130 #define PRIVATE_DEFINE_XINTERFACE( CLASS, BASECLASS, INTERFACES ) \
131 PRIVATE_DEFINE_XINTERFACE_ACQUIRE_RELEASE( CLASS, BASECLASS ) \
132 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE( CLASS, BASECLASS, INTERFACES )
134 #define PRIVATE_DEFINE_XINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND ) \
135 PRIVATE_DEFINE_XINTERFACE_ACQUIRE_RELEASE( CLASS, BASECLASS ) \
136 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND )
138 // private
139 // help macros to replace INTERFACES in queryInterface() [see before]
142 #ifdef ENABLE_SERVICEDEBUG
143 #define PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ) \
144 static_cast< XSPECIALDEBUGINTERFACE##* >( this ), \
145 INTERFACE1
146 #else
148 #define PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ) \
149 INTERFACE1
150 //#endif // #ifdef ENABLE_SERVICEDEBUG
152 #define PRIVATE_DEFINE_INTERFACE_2( INTERFACE1, INTERFACE2 ) \
153 PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ), \
154 INTERFACE2
156 #define PRIVATE_DEFINE_INTERFACE_3( INTERFACE1, INTERFACE2, INTERFACE3 ) \
157 PRIVATE_DEFINE_INTERFACE_2( INTERFACE1, INTERFACE2 ), \
158 INTERFACE3
160 #define PRIVATE_DEFINE_INTERFACE_4( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ) \
161 PRIVATE_DEFINE_INTERFACE_3( INTERFACE1, INTERFACE2, INTERFACE3 ), \
162 INTERFACE4
164 #define PRIVATE_DEFINE_INTERFACE_5( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ) \
165 PRIVATE_DEFINE_INTERFACE_4( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ), \
166 INTERFACE5
168 #define PRIVATE_DEFINE_INTERFACE_6( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ) \
169 PRIVATE_DEFINE_INTERFACE_5( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ), \
170 INTERFACE6
172 #define PRIVATE_DEFINE_INTERFACE_7( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ) \
173 PRIVATE_DEFINE_INTERFACE_6( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ), \
174 INTERFACE7
176 #define PRIVATE_DEFINE_INTERFACE_8( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ) \
177 PRIVATE_DEFINE_INTERFACE_7( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ), \
178 INTERFACE8
180 #define PRIVATE_DEFINE_INTERFACE_9( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ) \
181 PRIVATE_DEFINE_INTERFACE_8( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ), \
182 INTERFACE9
184 #define PRIVATE_DEFINE_INTERFACE_10( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ) \
185 PRIVATE_DEFINE_INTERFACE_9( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ), \
186 INTERFACE10
188 #define PRIVATE_DEFINE_INTERFACE_11( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11 ) \
189 PRIVATE_DEFINE_INTERFACE_10( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ), \
190 INTERFACE11
192 // public
193 // help macros for follow XInterface definitions
195 // Use it as parameter for DEFINE_XINTERFACE_X(), if you CAN use an interface directly in queryInterface()!
196 #define DIRECT_INTERFACE( INTERFACE ) \
197 static_cast< INTERFACE* >( this )
199 // Use it as parameter for DEFINE_XINTERFACE_X(), if you CAN'T use an interface directly in queryInterface()!
200 // (zB at ambigous errors!)
201 #define DERIVED_INTERFACE( BASEINTERFACE, DERIVEDINTERFACE ) \
202 static_cast< BASEINTERFACE* >( static_cast< DERIVEDINTERFACE* >( this ) )
204 // public
205 // declaration of XInterface
207 #define FWK_DECLARE_XINTERFACE \
208 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; \
209 virtual void SAL_CALL acquire ( ) throw() SAL_OVERRIDE; \
210 virtual void SAL_CALL release ( ) throw() SAL_OVERRIDE;
212 // public
213 // implementation of XInterface
215 // implementation of XInterface with 0 additional interface for queryInterface()
216 #define DEFINE_XINTERFACE_0( CLASS, BASECLASS ) \
217 PRIVATE_DEFINE_XINTERFACE_PURE ( CLASS, \
218 BASECLASS \
221 // implementation of XInterface with 1 additional interface for queryInterface()
222 #define DEFINE_XINTERFACE_1( CLASS, BASECLASS, INTERFACE1 ) \
223 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
224 BASECLASS, \
225 ( aType, PRIVATE_DEFINE_INTERFACE_1 ( INTERFACE1 \
230 // implementation of XInterface with 2 additional interfaces for queryInterface()
231 #define DEFINE_XINTERFACE_2( CLASS, BASECLASS, INTERFACE1, INTERFACE2 ) \
232 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
233 BASECLASS, \
234 ( aType, PRIVATE_DEFINE_INTERFACE_2 ( INTERFACE1 , \
235 INTERFACE2 \
240 // implementation of XInterface with 3 additional interfaces for queryInterface()
241 #define DEFINE_XINTERFACE_3( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3 ) \
242 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
243 BASECLASS, \
244 ( aType, PRIVATE_DEFINE_INTERFACE_3 ( INTERFACE1 , \
245 INTERFACE2 , \
246 INTERFACE3 \
251 // implementation of XInterface with 4 additional interfaces for queryInterface()
252 #define DEFINE_XINTERFACE_4( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ) \
253 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
254 BASECLASS, \
255 ( aType, PRIVATE_DEFINE_INTERFACE_4 ( INTERFACE1 , \
256 INTERFACE2 , \
257 INTERFACE3 , \
258 INTERFACE4 \
263 // implementation of XInterface with 5 additional interfaces for queryInterface()
264 #define DEFINE_XINTERFACE_5( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ) \
265 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
266 BASECLASS, \
267 ( aType, PRIVATE_DEFINE_INTERFACE_5 ( INTERFACE1 , \
268 INTERFACE2 , \
269 INTERFACE3 , \
270 INTERFACE4 , \
271 INTERFACE5 \
276 // implementation of XInterface with 6 additional interfaces for queryInterface()
277 #define DEFINE_XINTERFACE_6( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ) \
278 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
279 BASECLASS, \
280 ( aType, PRIVATE_DEFINE_INTERFACE_6 ( INTERFACE1 , \
281 INTERFACE2 , \
282 INTERFACE3 , \
283 INTERFACE4 , \
284 INTERFACE5 , \
285 INTERFACE6 \
290 // implementation of XInterface with 7 additional interfaces for queryInterface()
291 #define DEFINE_XINTERFACE_7( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ) \
292 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
293 BASECLASS, \
294 ( aType, PRIVATE_DEFINE_INTERFACE_7 ( INTERFACE1 , \
295 INTERFACE2 , \
296 INTERFACE3 , \
297 INTERFACE4 , \
298 INTERFACE5 , \
299 INTERFACE6 , \
300 INTERFACE7 \
305 // implementation of XInterface with 8 additional interfaces for queryInterface()
306 #define DEFINE_XINTERFACE_8( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ) \
307 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
308 BASECLASS, \
309 ( aType, PRIVATE_DEFINE_INTERFACE_8 ( INTERFACE1 , \
310 INTERFACE2 , \
311 INTERFACE3 , \
312 INTERFACE4 , \
313 INTERFACE5 , \
314 INTERFACE6 , \
315 INTERFACE7 , \
316 INTERFACE8 \
321 // implementation of XInterface with 9 additional interfaces for queryInterface()
322 #define DEFINE_XINTERFACE_9( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ) \
323 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
324 BASECLASS, \
325 ( aType, PRIVATE_DEFINE_INTERFACE_9 ( INTERFACE1 , \
326 INTERFACE2 , \
327 INTERFACE3 , \
328 INTERFACE4 , \
329 INTERFACE5 , \
330 INTERFACE6 , \
331 INTERFACE7 , \
332 INTERFACE8 , \
333 INTERFACE9 \
338 // implementation of XInterface with 10 additional interfaces for queryInterface()
339 #define DEFINE_XINTERFACE_10( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ) \
340 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
341 BASECLASS, \
342 ( aType, PRIVATE_DEFINE_INTERFACE_10 ( INTERFACE1 , \
343 INTERFACE2 , \
344 INTERFACE3 , \
345 INTERFACE4 , \
346 INTERFACE5 , \
347 INTERFACE6 , \
348 INTERFACE7 , \
349 INTERFACE8 , \
350 INTERFACE9 , \
351 INTERFACE10 \
356 // implementation of XInterface with 11 additional interfaces for queryInterface()
357 #define DEFINE_XINTERFACE_11( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11 ) \
358 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
359 BASECLASS, \
360 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
361 INTERFACE2 , \
362 INTERFACE3 , \
363 INTERFACE4 , \
364 INTERFACE5 , \
365 INTERFACE6 , \
366 INTERFACE7 , \
367 INTERFACE8 , \
368 INTERFACE9 , \
369 INTERFACE10 , \
370 INTERFACE11 \
375 // implementation of XInterface with 12 additional interfaces for queryInterface()
376 #define DEFINE_XINTERFACE_12( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12 ) \
377 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
378 BASECLASS, \
379 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
380 INTERFACE2 , \
381 INTERFACE3 , \
382 INTERFACE4 , \
383 INTERFACE5 , \
384 INTERFACE6 , \
385 INTERFACE7 , \
386 INTERFACE8 , \
387 INTERFACE9 , \
388 INTERFACE10 , \
389 INTERFACE11 \
391 ), \
392 ( aType, PRIVATE_DEFINE_INTERFACE_1 ( INTERFACE12 \
397 // implementation of XInterface with 13 additional interfaces for queryInterface()
398 #define DEFINE_XINTERFACE_13( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13 ) \
399 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
400 BASECLASS, \
401 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
402 INTERFACE2 , \
403 INTERFACE3 , \
404 INTERFACE4 , \
405 INTERFACE5 , \
406 INTERFACE6 , \
407 INTERFACE7 , \
408 INTERFACE8 , \
409 INTERFACE9 , \
410 INTERFACE10 , \
411 INTERFACE11 \
413 ), \
414 ( aType, PRIVATE_DEFINE_INTERFACE_2 ( INTERFACE12 , \
415 INTERFACE13 \
420 // implementation of XInterface with 14 additional interfaces for queryInterface()
421 #define DEFINE_XINTERFACE_14( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14 ) \
422 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
423 BASECLASS, \
424 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
425 INTERFACE2 , \
426 INTERFACE3 , \
427 INTERFACE4 , \
428 INTERFACE5 , \
429 INTERFACE6 , \
430 INTERFACE7 , \
431 INTERFACE8 , \
432 INTERFACE9 , \
433 INTERFACE10 , \
434 INTERFACE11 \
436 ), \
437 ( aType, PRIVATE_DEFINE_INTERFACE_3 ( INTERFACE12 , \
438 INTERFACE13 , \
439 INTERFACE14 \
444 // implementation of XInterface with 15 additional interfaces for queryInterface()
445 #define DEFINE_XINTERFACE_15( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15 ) \
446 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
447 BASECLASS, \
448 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
449 INTERFACE2 , \
450 INTERFACE3 , \
451 INTERFACE4 , \
452 INTERFACE5 , \
453 INTERFACE6 , \
454 INTERFACE7 , \
455 INTERFACE8 , \
456 INTERFACE9 , \
457 INTERFACE10 , \
458 INTERFACE11 \
460 ), \
461 ( aType, PRIVATE_DEFINE_INTERFACE_4 ( INTERFACE12 , \
462 INTERFACE13 , \
463 INTERFACE14 , \
464 INTERFACE15 \
469 // implementation of XInterface with 16 additional interfaces for queryInterface()
470 #define DEFINE_XINTERFACE_16( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16 ) \
471 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
472 BASECLASS, \
473 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
474 INTERFACE2 , \
475 INTERFACE3 , \
476 INTERFACE4 , \
477 INTERFACE5 , \
478 INTERFACE6 , \
479 INTERFACE7 , \
480 INTERFACE8 , \
481 INTERFACE9 , \
482 INTERFACE10 , \
483 INTERFACE11 \
485 ), \
486 ( aType, PRIVATE_DEFINE_INTERFACE_5 ( INTERFACE12 , \
487 INTERFACE13 , \
488 INTERFACE14 , \
489 INTERFACE15 , \
490 INTERFACE16 \
495 // implementation of XInterface with 17 additional interfaces for queryInterface()
496 #define DEFINE_XINTERFACE_17( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17 ) \
497 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
498 BASECLASS, \
499 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
500 INTERFACE2 , \
501 INTERFACE3 , \
502 INTERFACE4 , \
503 INTERFACE5 , \
504 INTERFACE6 , \
505 INTERFACE7 , \
506 INTERFACE8 , \
507 INTERFACE9 , \
508 INTERFACE10 , \
509 INTERFACE11 \
511 ), \
512 ( aType, PRIVATE_DEFINE_INTERFACE_6 ( INTERFACE12 , \
513 INTERFACE13 , \
514 INTERFACE14 , \
515 INTERFACE15 , \
516 INTERFACE16 , \
517 INTERFACE17 \
522 // implementation of XInterface with 18 additional interfaces for queryInterface()
523 #define DEFINE_XINTERFACE_18( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17, INTERFACE18 ) \
524 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
525 BASECLASS, \
526 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
527 INTERFACE2 , \
528 INTERFACE3 , \
529 INTERFACE4 , \
530 INTERFACE5 , \
531 INTERFACE6 , \
532 INTERFACE7 , \
533 INTERFACE8 , \
534 INTERFACE9 , \
535 INTERFACE10 , \
536 INTERFACE11 \
538 ), \
539 ( aType, PRIVATE_DEFINE_INTERFACE_7 ( INTERFACE12 , \
540 INTERFACE13 , \
541 INTERFACE14 , \
542 INTERFACE15 , \
543 INTERFACE16 , \
544 INTERFACE17 , \
545 INTERFACE18 \
550 // implementation of XInterface with 19 additional interfaces for queryInterface()
551 #define DEFINE_XINTERFACE_19( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17, INTERFACE18, INTERFACE19 ) \
552 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
553 BASECLASS, \
554 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
555 INTERFACE2 , \
556 INTERFACE3 , \
557 INTERFACE4 , \
558 INTERFACE5 , \
559 INTERFACE6 , \
560 INTERFACE7 , \
561 INTERFACE8 , \
562 INTERFACE9 , \
563 INTERFACE10 , \
564 INTERFACE11 \
566 ), \
567 ( aType, PRIVATE_DEFINE_INTERFACE_8 ( INTERFACE12 , \
568 INTERFACE13 , \
569 INTERFACE14 , \
570 INTERFACE15 , \
571 INTERFACE16 , \
572 INTERFACE17 , \
573 INTERFACE18 , \
574 INTERFACE19 \
579 // implementation of XInterface with 20 additional interfaces for queryInterface()
580 #define DEFINE_XINTERFACE_20( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17, INTERFACE18, INTERFACE19, INTERFACE20 ) \
581 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
582 BASECLASS, \
583 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
584 INTERFACE2 , \
585 INTERFACE3 , \
586 INTERFACE4 , \
587 INTERFACE5 , \
588 INTERFACE6 , \
589 INTERFACE7 , \
590 INTERFACE8 , \
591 INTERFACE9 , \
592 INTERFACE10 , \
593 INTERFACE11 \
595 ), \
596 ( aType, PRIVATE_DEFINE_INTERFACE_9 ( INTERFACE12 , \
597 INTERFACE13 , \
598 INTERFACE14 , \
599 INTERFACE15 , \
600 INTERFACE16 , \
601 INTERFACE17 , \
602 INTERFACE18 , \
603 INTERFACE19 , \
604 INTERFACE20 \
609 // implementation of XInterface with 21 additional interfaces for queryInterface()
610 #define DEFINE_XINTERFACE_21( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17, INTERFACE18, INTERFACE19, INTERFACE20, INTERFACE21 ) \
611 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
612 BASECLASS, \
613 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
614 INTERFACE2 , \
615 INTERFACE3 , \
616 INTERFACE4 , \
617 INTERFACE5 , \
618 INTERFACE6 , \
619 INTERFACE7 , \
620 INTERFACE8 , \
621 INTERFACE9 , \
622 INTERFACE10 , \
623 INTERFACE11 \
625 ), \
626 ( aType, PRIVATE_DEFINE_INTERFACE_10 ( INTERFACE12 , \
627 INTERFACE13 , \
628 INTERFACE14 , \
629 INTERFACE15 , \
630 INTERFACE16 , \
631 INTERFACE17 , \
632 INTERFACE18 , \
633 INTERFACE19 , \
634 INTERFACE20 , \
635 INTERFACE21 \
640 // implementation of XInterface with 22 additional interfaces for queryInterface()
641 #define DEFINE_XINTERFACE_22( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17, INTERFACE18, INTERFACE19, INTERFACE20, INTERFACE21, INTERFACE22 ) \
642 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
643 BASECLASS, \
644 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
645 INTERFACE2 , \
646 INTERFACE3 , \
647 INTERFACE4 , \
648 INTERFACE5 , \
649 INTERFACE6 , \
650 INTERFACE7 , \
651 INTERFACE8 , \
652 INTERFACE9 , \
653 INTERFACE10 , \
654 INTERFACE11 \
656 ), \
657 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE12 , \
658 INTERFACE13 , \
659 INTERFACE14 , \
660 INTERFACE15 , \
661 INTERFACE16 , \
662 INTERFACE17 , \
663 INTERFACE18 , \
664 INTERFACE19 , \
665 INTERFACE20 , \
666 INTERFACE22 , \
667 INTERFACE21 \
672 } // namespace framework
674 #endif // INCLUDED_FRAMEWORK_INC_MACROS_XINTERFACE_HXX
676 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */