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 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>
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 _________________________________________________________________________________________________________________*/
49 // implementation of XInterface::acquire()
50 // XInterface::release()
52 #define PRIVATE_DEFINE_XINTERFACE_ACQUIRE_RELEASE( CLASS, BASECLASS ) \
53 void SAL_CALL CLASS::acquire() throw() \
55 /* Don't use mutex in methods of XInterface! */ \
56 BASECLASS::acquire(); \
59 void SAL_CALL CLASS::release() throw() \
61 /* Don't use mutex in methods of XInterface! */ \
62 BASECLASS::release(); \
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 ) \
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 ); \
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 ) \
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 \
87 /* If searched interface not supported by this class ... */ \
88 if ( !aReturn.hasValue() ) \
90 /* ... ask baseclass for interfaces! */ \
91 aReturn = BASECLASS::queryInterface( aType ); \
93 /* Return result of this search. */ \
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 \
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. */ \
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 )
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 ), \
148 #define PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ) \
150 //#endif // #ifdef ENABLE_SERVICEDEBUG
152 #define PRIVATE_DEFINE_INTERFACE_2( INTERFACE1, INTERFACE2 ) \
153 PRIVATE_DEFINE_INTERFACE_1( INTERFACE1 ), \
156 #define PRIVATE_DEFINE_INTERFACE_3( INTERFACE1, INTERFACE2, INTERFACE3 ) \
157 PRIVATE_DEFINE_INTERFACE_2( INTERFACE1, INTERFACE2 ), \
160 #define PRIVATE_DEFINE_INTERFACE_4( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ) \
161 PRIVATE_DEFINE_INTERFACE_3( INTERFACE1, INTERFACE2, INTERFACE3 ), \
164 #define PRIVATE_DEFINE_INTERFACE_5( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ) \
165 PRIVATE_DEFINE_INTERFACE_4( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4 ), \
168 #define PRIVATE_DEFINE_INTERFACE_6( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ) \
169 PRIVATE_DEFINE_INTERFACE_5( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5 ), \
172 #define PRIVATE_DEFINE_INTERFACE_7( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7 ) \
173 PRIVATE_DEFINE_INTERFACE_6( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6 ), \
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 ), \
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 ), \
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 ), \
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 ), \
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 ) )
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;
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, \
221 // implementation of XInterface with 1 additional interface for queryInterface()
222 #define DEFINE_XINTERFACE_1( CLASS, BASECLASS, INTERFACE1 ) \
223 PRIVATE_DEFINE_XINTERFACE ( CLASS, \
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, \
234 ( aType, PRIVATE_DEFINE_INTERFACE_2 ( INTERFACE1 , \
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, \
244 ( aType, PRIVATE_DEFINE_INTERFACE_3 ( INTERFACE1 , \
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, \
255 ( aType, PRIVATE_DEFINE_INTERFACE_4 ( INTERFACE1 , \
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, \
267 ( aType, PRIVATE_DEFINE_INTERFACE_5 ( INTERFACE1 , \
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, \
280 ( aType, PRIVATE_DEFINE_INTERFACE_6 ( INTERFACE1 , \
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, \
294 ( aType, PRIVATE_DEFINE_INTERFACE_7 ( INTERFACE1 , \
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, \
309 ( aType, PRIVATE_DEFINE_INTERFACE_8 ( INTERFACE1 , \
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, \
325 ( aType, PRIVATE_DEFINE_INTERFACE_9 ( INTERFACE1 , \
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, \
342 ( aType, PRIVATE_DEFINE_INTERFACE_10 ( INTERFACE1 , \
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, \
360 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
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, \
379 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
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, \
401 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
414 ( aType, PRIVATE_DEFINE_INTERFACE_2 ( INTERFACE12 , \
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, \
424 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
437 ( aType, PRIVATE_DEFINE_INTERFACE_3 ( INTERFACE12 , \
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, \
448 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
461 ( aType, PRIVATE_DEFINE_INTERFACE_4 ( INTERFACE12 , \
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, \
473 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
486 ( aType, PRIVATE_DEFINE_INTERFACE_5 ( INTERFACE12 , \
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, \
499 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
512 ( aType, PRIVATE_DEFINE_INTERFACE_6 ( INTERFACE12 , \
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, \
526 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
539 ( aType, PRIVATE_DEFINE_INTERFACE_7 ( INTERFACE12 , \
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, \
554 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
567 ( aType, PRIVATE_DEFINE_INTERFACE_8 ( INTERFACE12 , \
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, \
583 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
596 ( aType, PRIVATE_DEFINE_INTERFACE_9 ( INTERFACE12 , \
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, \
613 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
626 ( aType, PRIVATE_DEFINE_INTERFACE_10 ( INTERFACE12 , \
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, \
644 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE1 , \
657 ( aType, PRIVATE_DEFINE_INTERFACE_11 ( INTERFACE12 , \
672 } // namespace framework
674 #endif // INCLUDED_FRAMEWORK_INC_MACROS_XINTERFACE_HXX
676 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */