1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xinterface.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __FRAMEWORK_MACROS_XINTERFACE_HXX_
32 #define __FRAMEWORK_MACROS_XINTERFACE_HXX_
34 //_________________________________________________________________________________________________________________
36 //_________________________________________________________________________________________________________________
38 //_________________________________________________________________________________________________________________
40 //_________________________________________________________________________________________________________________
42 #include <com/sun/star/uno/RuntimeException.hpp>
44 //_________________________________________________________________________________________________________________
46 //_________________________________________________________________________________________________________________
47 #include <com/sun/star/uno/Any.hxx>
48 #include <com/sun/star/uno/Reference.hxx>
49 #include <com/sun/star/uno/Type.hxx>
50 #include <cppuhelper/queryinterface.hxx>
51 #include <rtl/ustring.hxx>
53 //_________________________________________________________________________________________________________________
55 //_________________________________________________________________________________________________________________
59 /*_________________________________________________________________________________________________________________
61 macros for declaration and definition of XInterface
62 Please use follow public macros only!
64 1) DEFINE_XINTERFACE => use it in header to declare XInterface and his methods
65 2) DIRECT_INTERFACE( INTERFACE ) => use it as parameter INTERFACEx at 4) if interface not ambigous
66 3) DERIVED_INTERFACE( BASEINTERFACE, DERIVEDINTERFACE ) => use it as parameter INTERFACEx at 4) if interface can be ambigous
67 4) DECLARE_XINTERFACE_0( CLASS, BASECLASS ) => use it to define implementation of XInterface for 0 additional interface to baseclass
68 DECLARE_XINTERFACE_1( CLASS, BASECLASS, INTERFACE1 ) => use it to define implementation of XInterface for 1 additional interface to baseclass
70 DECLARE_XINTERFACE_16( CLASS, BASECLASS, INTERFACE1, ... , INTERFACE16 )
72 _________________________________________________________________________________________________________________*/
74 //*****************************************************************************************************************
76 // implementation of XInterface::aquire()
77 // XInterface::release()
78 //*****************************************************************************************************************
79 #define PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
80 void SAL_CALL CLASS::acquire() throw() \
82 /* Don't use mutex in methods of XInterface! */ \
83 BASECLASS::acquire(); \
86 void SAL_CALL CLASS::release() throw() \
88 /* Don't use mutex in methods of XInterface! */ \
89 BASECLASS::release(); \
92 //*****************************************************************************************************************
94 // implementation of XInterface::queryInterface() without any other interfaces!
95 //*****************************************************************************************************************
96 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_PURE( CLASS, BASECLASS ) \
97 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ) \
99 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
100 /* I have no own supported interfaces ... */ \
101 /* ... ask baseclass for interfaces! */ \
102 return BASECLASS::queryInterface( aType ); \
105 //*****************************************************************************************************************
107 // implementation of XInterface::queryInterface() with max. 12 other interfaces!
108 //*****************************************************************************************************************
109 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE( CLASS, BASECLASS, INTERFACES ) \
110 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ) \
112 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
113 /* Ask for my own supported interfaces ... */ \
114 ::com::sun::star::uno::Any aReturn ( ::cppu::queryInterface INTERFACES \
116 /* If searched interface not supported by this class ... */ \
117 if ( aReturn.hasValue() == sal_False ) \
119 /* ... ask baseclass for interfaces! */ \
120 aReturn = BASECLASS::queryInterface( aType ); \
122 /* Return result of this search. */ \
126 //*****************************************************************************************************************
128 // implementation of XInterface::queryInterface() with more then 12 other interfaces!
129 //*****************************************************************************************************************
130 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND ) \
131 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ) \
133 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
134 /* Ask for my own supported interfaces ... */ \
135 ::com::sun::star::uno::Any aReturn ( ::cppu::queryInterface INTERFACES_FIRST \
137 /* If searched interface not supported by first group ... */ \
138 if ( aReturn.hasValue() == sal_False ) \
140 /* ... search in second group. (cppuhelper support 12 items only!) */ \
141 aReturn = ::cppu::queryInterface INTERFACES_SECOND ; \
142 /* If searched interface not supported by this class ... */ \
143 if ( aReturn.hasValue() == sal_False ) \
145 /* ... ask baseclass for interfaces! */ \
146 aReturn = BASECLASS::queryInterface( aType ); \
149 /* Return result of this search. */ \
153 //*****************************************************************************************************************
155 // complete implementation of XInterface for different use cases
156 //*****************************************************************************************************************
157 #define PRIVATE_DEFINE_XINTERFACE_PURE( CLASS, BASECLASS ) \
158 PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
159 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_PURE( CLASS, BASECLASS )
161 #define PRIVATE_DEFINE_XINTERFACE( CLASS, BASECLASS, INTERFACES ) \
162 PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
163 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE( CLASS, BASECLASS, INTERFACES )
165 #define PRIVATE_DEFINE_XINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND ) \
166 PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
167 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND )
169 //*****************************************************************************************************************
171 // help macros to replace INTERFACES in queryInterface() [see before]
172 //*****************************************************************************************************************
174 #ifdef ENABLE_SERVICEDEBUG
175 #define PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ) \
176 static_cast< XSPECIALDEBUGINTERFACE##* >( this ), \
180 #define PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ) \
182 //#endif // #ifdef ENABLE_SERVICEDEBUG
184 #define PRIVATE_DEFINE_INTERFACE_2( INTERFACE1, INTERFACE2 ) \
185 PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ), \
188 #define PRIVATE_DEFINE_INTERFACE_3( INTERFACE1, INTERFACE2, INTERFACE3 ) \
189 PRIVATE_DEFINE_INTERFACE_2( INTERFACE1, INTERFACE2 ), \
192 #define PRIVATE_DEFINE_INTERFACE_4( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ) \
193 PRIVATE_DEFINE_INTERFACE_3( INTERFACE1, INTERFACE2, INTERFACE3 ), \
196 #define PRIVATE_DEFINE_INTERFACE_5( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ) \
197 PRIVATE_DEFINE_INTERFACE_4( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ), \
200 #define PRIVATE_DEFINE_INTERFACE_6( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ) \
201 PRIVATE_DEFINE_INTERFACE_5( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ), \
204 #define PRIVATE_DEFINE_INTERFACE_7( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ) \
205 PRIVATE_DEFINE_INTERFACE_6( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ), \
208 #define PRIVATE_DEFINE_INTERFACE_8( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ) \
209 PRIVATE_DEFINE_INTERFACE_7( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ), \
212 #define PRIVATE_DEFINE_INTERFACE_9( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ) \
213 PRIVATE_DEFINE_INTERFACE_8( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ), \
216 #define PRIVATE_DEFINE_INTERFACE_10( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ) \
217 PRIVATE_DEFINE_INTERFACE_9( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ), \
220 #define PRIVATE_DEFINE_INTERFACE_11( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11 ) \
221 PRIVATE_DEFINE_INTERFACE_10( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ), \
224 //*****************************************************************************************************************
226 // help macros for follow XInterface definitions
227 //*****************************************************************************************************************
229 // Use it as parameter for DEFINE_XINTERFACE_X(), if you CAN use an interface directly in queryInterface()!
230 #define DIRECT_INTERFACE( INTERFACE ) \
231 static_cast< INTERFACE* >( this )
233 // Use it as parameter for DEFINE_XINTERFACE_X(), if you CAN'T use an interface directly in queryInterface()!
234 // (zB at ambigous errors!)
235 #define DERIVED_INTERFACE( BASEINTERFACE, DERIVEDINTERFACE ) \
236 static_cast< BASEINTERFACE* >( static_cast< DERIVEDINTERFACE* >( this ) )
238 //*****************************************************************************************************************
240 // declaration of XInterface
241 //*****************************************************************************************************************
242 #define FWK_DECLARE_XINTERFACE \
243 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ); \
244 virtual void SAL_CALL acquire ( ) throw(); \
245 virtual void SAL_CALL release ( ) throw();
247 //*****************************************************************************************************************
249 // implementation of XInterface
250 //*****************************************************************************************************************
252 // implementation of XInterface with 0 additional interface for queryInterface()
253 #define DEFINE_XINTERFACE_0( CLASS, BASECLASS ) \
254 PRIVATE_DEFINE_XINTERFACE_PURE ( CLASS, \
258 // implementation of XInterface with 1 additional interface for queryInterface()
259 #define DEFINE_XINTERFACE_1( CLASS, BASECLASS, INTERFACE1 ) \
260 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
262 ( aType, PRIVATE_DEFINE_INTERFACE_1 ( INTERFACE1 \
267 // implementation of XInterface with 2 additional interfaces for queryInterface()
268 #define DEFINE_XINTERFACE_2( CLASS, BASECLASS, INTERFACE1, INTERFACE2 ) \
269 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
271 ( aType, PRIVATE_DEFINE_INTERFACE_2 ( INTERFACE1 , \
277 // implementation of XInterface with 3 additional interfaces for queryInterface()
278 #define DEFINE_XINTERFACE_3( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3 ) \
279 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
281 ( aType, PRIVATE_DEFINE_INTERFACE_3 ( INTERFACE1 , \
288 // implementation of XInterface with 4 additional interfaces for queryInterface()
289 #define DEFINE_XINTERFACE_4( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ) \
290 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
292 ( aType, PRIVATE_DEFINE_INTERFACE_4 ( INTERFACE1 , \
300 // implementation of XInterface with 5 additional interfaces for queryInterface()
301 #define DEFINE_XINTERFACE_5( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ) \
302 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
304 ( aType, PRIVATE_DEFINE_INTERFACE_5 ( INTERFACE1 , \
313 // implementation of XInterface with 6 additional interfaces for queryInterface()
314 #define DEFINE_XINTERFACE_6( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ) \
315 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
317 ( aType, PRIVATE_DEFINE_INTERFACE_6 ( INTERFACE1 , \
327 // implementation of XInterface with 7 additional interfaces for queryInterface()
328 #define DEFINE_XINTERFACE_7( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ) \
329 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
331 ( aType, PRIVATE_DEFINE_INTERFACE_7 ( INTERFACE1 , \
342 // implementation of XInterface with 8 additional interfaces for queryInterface()
343 #define DEFINE_XINTERFACE_8( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ) \
344 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
346 ( aType, PRIVATE_DEFINE_INTERFACE_8 ( INTERFACE1 , \
358 // implementation of XInterface with 9 additional interfaces for queryInterface()
359 #define DEFINE_XINTERFACE_9( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ) \
360 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
362 ( aType, PRIVATE_DEFINE_INTERFACE_9 ( INTERFACE1 , \
375 // implementation of XInterface with 10 additional interfaces for queryInterface()
376 #define DEFINE_XINTERFACE_10( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ) \
377 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
379 ( aType, PRIVATE_DEFINE_INTERFACE_10 ( INTERFACE1 , \
393 // implementation of XInterface with 11 additional interfaces for queryInterface()
394 #define DEFINE_XINTERFACE_11( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11 ) \
395 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
397 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
412 // implementation of XInterface with 12 additional interfaces for queryInterface()
413 #define DEFINE_XINTERFACE_12( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12 ) \
414 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
416 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
429 ( aType, PRIVATE_DEFINE_INTERFACE_1 ( INTERFACE12 \
434 // implementation of XInterface with 13 additional interfaces for queryInterface()
435 #define DEFINE_XINTERFACE_13( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13 ) \
436 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
438 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
451 ( aType, PRIVATE_DEFINE_INTERFACE_2 ( INTERFACE12 , \
457 // implementation of XInterface with 14 additional interfaces for queryInterface()
458 #define DEFINE_XINTERFACE_14( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14 ) \
459 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
461 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
474 ( aType, PRIVATE_DEFINE_INTERFACE_3 ( INTERFACE12 , \
481 // implementation of XInterface with 15 additional interfaces for queryInterface()
482 #define DEFINE_XINTERFACE_15( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15 ) \
483 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
485 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
498 ( aType, PRIVATE_DEFINE_INTERFACE_4 ( INTERFACE12 , \
506 // implementation of XInterface with 16 additional interfaces for queryInterface()
507 #define DEFINE_XINTERFACE_16( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16 ) \
508 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
510 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
523 ( aType, PRIVATE_DEFINE_INTERFACE_5 ( INTERFACE12 , \
532 // implementation of XInterface with 17 additional interfaces for queryInterface()
533 #define DEFINE_XINTERFACE_17( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17 ) \
534 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
536 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
549 ( aType, PRIVATE_DEFINE_INTERFACE_6 ( INTERFACE12 , \
559 // implementation of XInterface with 18 additional interfaces for queryInterface()
560 #define DEFINE_XINTERFACE_18( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17, INTERFACE18 ) \
561 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
563 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
576 ( aType, PRIVATE_DEFINE_INTERFACE_7 ( INTERFACE12 , \
587 // implementation of XInterface with 19 additional interfaces for queryInterface()
588 #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 ) \
589 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
591 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
604 ( aType, PRIVATE_DEFINE_INTERFACE_8 ( INTERFACE12 , \
616 // implementation of XInterface with 20 additional interfaces for queryInterface()
617 #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 ) \
618 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
620 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
633 ( aType, PRIVATE_DEFINE_INTERFACE_9 ( INTERFACE12 , \
646 // implementation of XInterface with 21 additional interfaces for queryInterface()
647 #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 ) \
648 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
650 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
663 ( aType, PRIVATE_DEFINE_INTERFACE_10 ( INTERFACE12 , \
677 // implementation of XInterface with 22 additional interfaces for queryInterface()
678 #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 ) \
679 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
681 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
694 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE12 , \
709 } // namespace framework
711 #endif // #ifndef __FRAMEWORK_MACROS_XINTERFACE_HXX_