1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 __FRAMEWORK_MACROS_XINTERFACE_HXX_
21 #define __FRAMEWORK_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>
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
44 DECLARE_XINTERFACE_16( CLASS, BASECLASS, INTERFACE1, ... , INTERFACE16 )
46 _________________________________________________________________________________________________________________*/
48 //*****************************************************************************************************************
50 // implementation of XInterface::aquire()
51 // XInterface::release()
52 //*****************************************************************************************************************
53 #define PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
54 void SAL_CALL CLASS::acquire() throw() \
56 /* Don't use mutex in methods of XInterface! */ \
57 BASECLASS::acquire(); \
60 void SAL_CALL CLASS::release() throw() \
62 /* Don't use mutex in methods of XInterface! */ \
63 BASECLASS::release(); \
66 //*****************************************************************************************************************
68 // implementation of XInterface::queryInterface() without any other interfaces!
69 //*****************************************************************************************************************
70 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_PURE( CLASS, BASECLASS ) \
71 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ) \
73 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
74 /* I have no own supported interfaces ... */ \
75 /* ... ask baseclass for interfaces! */ \
76 return BASECLASS::queryInterface( aType ); \
79 //*****************************************************************************************************************
81 // implementation of XInterface::queryInterface() with max. 12 other interfaces!
82 //*****************************************************************************************************************
83 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE( CLASS, BASECLASS, INTERFACES ) \
84 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ) \
86 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
87 /* Ask for my own supported interfaces ... */ \
88 ::com::sun::star::uno::Any aReturn ( ::cppu::queryInterface INTERFACES \
90 /* If searched interface not supported by this class ... */ \
91 if ( aReturn.hasValue() == sal_False ) \
93 /* ... ask baseclass for interfaces! */ \
94 aReturn = BASECLASS::queryInterface( aType ); \
96 /* Return result of this search. */ \
100 //*****************************************************************************************************************
102 // implementation of XInterface::queryInterface() with more then 12 other interfaces!
103 //*****************************************************************************************************************
104 #define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND ) \
105 ::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ) \
107 /* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */ \
108 /* Ask for my own supported interfaces ... */ \
109 ::com::sun::star::uno::Any aReturn ( ::cppu::queryInterface INTERFACES_FIRST \
111 /* If searched interface not supported by first group ... */ \
112 if ( aReturn.hasValue() == sal_False ) \
114 /* ... search in second group. (cppuhelper support 12 items only!) */ \
115 aReturn = ::cppu::queryInterface INTERFACES_SECOND ; \
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 ); \
123 /* Return result of this search. */ \
127 //*****************************************************************************************************************
129 // complete implementation of XInterface for different use cases
130 //*****************************************************************************************************************
131 #define PRIVATE_DEFINE_XINTERFACE_PURE( CLASS, BASECLASS ) \
132 PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
133 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_PURE( CLASS, BASECLASS )
135 #define PRIVATE_DEFINE_XINTERFACE( CLASS, BASECLASS, INTERFACES ) \
136 PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
137 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE( CLASS, BASECLASS, INTERFACES )
139 #define PRIVATE_DEFINE_XINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND ) \
140 PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
141 PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND )
143 //*****************************************************************************************************************
145 // help macros to replace INTERFACES in queryInterface() [see before]
146 //*****************************************************************************************************************
148 #ifdef ENABLE_SERVICEDEBUG
149 #define PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ) \
150 static_cast< XSPECIALDEBUGINTERFACE##* >( this ), \
154 #define PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ) \
156 //#endif // #ifdef ENABLE_SERVICEDEBUG
158 #define PRIVATE_DEFINE_INTERFACE_2( INTERFACE1, INTERFACE2 ) \
159 PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ), \
162 #define PRIVATE_DEFINE_INTERFACE_3( INTERFACE1, INTERFACE2, INTERFACE3 ) \
163 PRIVATE_DEFINE_INTERFACE_2( INTERFACE1, INTERFACE2 ), \
166 #define PRIVATE_DEFINE_INTERFACE_4( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ) \
167 PRIVATE_DEFINE_INTERFACE_3( INTERFACE1, INTERFACE2, INTERFACE3 ), \
170 #define PRIVATE_DEFINE_INTERFACE_5( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ) \
171 PRIVATE_DEFINE_INTERFACE_4( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ), \
174 #define PRIVATE_DEFINE_INTERFACE_6( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ) \
175 PRIVATE_DEFINE_INTERFACE_5( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ), \
178 #define PRIVATE_DEFINE_INTERFACE_7( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ) \
179 PRIVATE_DEFINE_INTERFACE_6( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ), \
182 #define PRIVATE_DEFINE_INTERFACE_8( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ) \
183 PRIVATE_DEFINE_INTERFACE_7( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ), \
186 #define PRIVATE_DEFINE_INTERFACE_9( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ) \
187 PRIVATE_DEFINE_INTERFACE_8( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ), \
190 #define PRIVATE_DEFINE_INTERFACE_10( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ) \
191 PRIVATE_DEFINE_INTERFACE_9( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ), \
194 #define PRIVATE_DEFINE_INTERFACE_11( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11 ) \
195 PRIVATE_DEFINE_INTERFACE_10( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ), \
198 //*****************************************************************************************************************
200 // help macros for follow XInterface definitions
201 //*****************************************************************************************************************
203 // Use it as parameter for DEFINE_XINTERFACE_X(), if you CAN use an interface directly in queryInterface()!
204 #define DIRECT_INTERFACE( INTERFACE ) \
205 static_cast< INTERFACE* >( this )
207 // Use it as parameter for DEFINE_XINTERFACE_X(), if you CAN'T use an interface directly in queryInterface()!
208 // (zB at ambigous errors!)
209 #define DERIVED_INTERFACE( BASEINTERFACE, DERIVEDINTERFACE ) \
210 static_cast< BASEINTERFACE* >( static_cast< DERIVEDINTERFACE* >( this ) )
212 //*****************************************************************************************************************
214 // declaration of XInterface
215 //*****************************************************************************************************************
216 #define FWK_DECLARE_XINTERFACE \
217 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ); \
218 virtual void SAL_CALL acquire ( ) throw(); \
219 virtual void SAL_CALL release ( ) throw();
221 //*****************************************************************************************************************
223 // implementation of XInterface
224 //*****************************************************************************************************************
226 // implementation of XInterface with 0 additional interface for queryInterface()
227 #define DEFINE_XINTERFACE_0( CLASS, BASECLASS ) \
228 PRIVATE_DEFINE_XINTERFACE_PURE ( CLASS, \
232 // implementation of XInterface with 1 additional interface for queryInterface()
233 #define DEFINE_XINTERFACE_1( CLASS, BASECLASS, INTERFACE1 ) \
234 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
236 ( aType, PRIVATE_DEFINE_INTERFACE_1 ( INTERFACE1 \
241 // implementation of XInterface with 2 additional interfaces for queryInterface()
242 #define DEFINE_XINTERFACE_2( CLASS, BASECLASS, INTERFACE1, INTERFACE2 ) \
243 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
245 ( aType, PRIVATE_DEFINE_INTERFACE_2 ( INTERFACE1 , \
251 // implementation of XInterface with 3 additional interfaces for queryInterface()
252 #define DEFINE_XINTERFACE_3( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3 ) \
253 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
255 ( aType, PRIVATE_DEFINE_INTERFACE_3 ( INTERFACE1 , \
262 // implementation of XInterface with 4 additional interfaces for queryInterface()
263 #define DEFINE_XINTERFACE_4( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ) \
264 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
266 ( aType, PRIVATE_DEFINE_INTERFACE_4 ( INTERFACE1 , \
274 // implementation of XInterface with 5 additional interfaces for queryInterface()
275 #define DEFINE_XINTERFACE_5( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ) \
276 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
278 ( aType, PRIVATE_DEFINE_INTERFACE_5 ( INTERFACE1 , \
287 // implementation of XInterface with 6 additional interfaces for queryInterface()
288 #define DEFINE_XINTERFACE_6( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ) \
289 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
291 ( aType, PRIVATE_DEFINE_INTERFACE_6 ( INTERFACE1 , \
301 // implementation of XInterface with 7 additional interfaces for queryInterface()
302 #define DEFINE_XINTERFACE_7( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ) \
303 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
305 ( aType, PRIVATE_DEFINE_INTERFACE_7 ( INTERFACE1 , \
316 // implementation of XInterface with 8 additional interfaces for queryInterface()
317 #define DEFINE_XINTERFACE_8( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8 ) \
318 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
320 ( aType, PRIVATE_DEFINE_INTERFACE_8 ( INTERFACE1 , \
332 // implementation of XInterface with 9 additional interfaces for queryInterface()
333 #define DEFINE_XINTERFACE_9( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9 ) \
334 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
336 ( aType, PRIVATE_DEFINE_INTERFACE_9 ( INTERFACE1 , \
349 // implementation of XInterface with 10 additional interfaces for queryInterface()
350 #define DEFINE_XINTERFACE_10( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ) \
351 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
353 ( aType, PRIVATE_DEFINE_INTERFACE_10 ( INTERFACE1 , \
367 // implementation of XInterface with 11 additional interfaces for queryInterface()
368 #define DEFINE_XINTERFACE_11( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11 ) \
369 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
371 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
386 // implementation of XInterface with 12 additional interfaces for queryInterface()
387 #define DEFINE_XINTERFACE_12( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12 ) \
388 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
390 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
403 ( aType, PRIVATE_DEFINE_INTERFACE_1 ( INTERFACE12 \
408 // implementation of XInterface with 13 additional interfaces for queryInterface()
409 #define DEFINE_XINTERFACE_13( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13 ) \
410 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
412 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
425 ( aType, PRIVATE_DEFINE_INTERFACE_2 ( INTERFACE12 , \
431 // implementation of XInterface with 14 additional interfaces for queryInterface()
432 #define DEFINE_XINTERFACE_14( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14 ) \
433 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
435 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
448 ( aType, PRIVATE_DEFINE_INTERFACE_3 ( INTERFACE12 , \
455 // implementation of XInterface with 15 additional interfaces for queryInterface()
456 #define DEFINE_XINTERFACE_15( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15 ) \
457 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
459 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
472 ( aType, PRIVATE_DEFINE_INTERFACE_4 ( INTERFACE12 , \
480 // implementation of XInterface with 16 additional interfaces for queryInterface()
481 #define DEFINE_XINTERFACE_16( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16 ) \
482 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
484 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
497 ( aType, PRIVATE_DEFINE_INTERFACE_5 ( INTERFACE12 , \
506 // implementation of XInterface with 17 additional interfaces for queryInterface()
507 #define DEFINE_XINTERFACE_17( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17 ) \
508 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
510 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
523 ( aType, PRIVATE_DEFINE_INTERFACE_6 ( INTERFACE12 , \
533 // implementation of XInterface with 18 additional interfaces for queryInterface()
534 #define DEFINE_XINTERFACE_18( CLASS, BASECLASS, INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10, INTERFACE11, INTERFACE12, INTERFACE13, INTERFACE14, INTERFACE15, INTERFACE16, INTERFACE17, INTERFACE18 ) \
535 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
537 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
550 ( aType, PRIVATE_DEFINE_INTERFACE_7 ( INTERFACE12 , \
561 // implementation of XInterface with 19 additional interfaces for queryInterface()
562 #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 ) \
563 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
565 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
578 ( aType, PRIVATE_DEFINE_INTERFACE_8 ( INTERFACE12 , \
590 // implementation of XInterface with 20 additional interfaces for queryInterface()
591 #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 ) \
592 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
594 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
607 ( aType, PRIVATE_DEFINE_INTERFACE_9 ( INTERFACE12 , \
620 // implementation of XInterface with 21 additional interfaces for queryInterface()
621 #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 ) \
622 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
624 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
637 ( aType, PRIVATE_DEFINE_INTERFACE_10 ( INTERFACE12 , \
651 // implementation of XInterface with 22 additional interfaces for queryInterface()
652 #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 ) \
653 PRIVATE_DEFINE_XINTERFACE_LARGE ( CLASS, \
655 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
668 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE12 , \
683 } // namespace framework
685 #endif // #ifndef __FRAMEWORK_MACROS_XINTERFACE_HXX_
687 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */