diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-04 12:55:44 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-05 09:30:42 -0600 |
commit | 10fe4b9fd17e1da11ea7ebfa354f40c2e2da3f3f (patch) | |
tree | 1f29bcbf5e7f643a67b021db2f1ecba09fcd0cf3 /include/ucbhelper | |
parent | 66f2c35fac22a235a1e491824126f105e6d3869c (diff) |
de-macroize XINTERFACE_COMMON_IMPL
Change-Id: I7cffc8a111dd939272c6dbef8827b6f5c04a4590
Reviewed-on: https://gerrit.libreoffice.org/8455
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'include/ucbhelper')
-rw-r--r-- | include/ucbhelper/macros.hxx | 234 |
1 files changed, 0 insertions, 234 deletions
diff --git a/include/ucbhelper/macros.hxx b/include/ucbhelper/macros.hxx index c6f31a6b9baf..4a494e99e1b1 100644 --- a/include/ucbhelper/macros.hxx +++ b/include/ucbhelper/macros.hxx @@ -72,13 +72,6 @@ com::sun::star::uno::Any SAL_CALL Class::queryInterface( \ -// 1 interface implemented -#define XINTERFACE_IMPL_1( Class, Ifc1 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< Ifc1* >(this)) \ -QUERYINTERFACE_IMPL_END - // 2 interfaces implemented #define XINTERFACE_IMPL_2( Class, Ifc1, Ifc2 ) \ XINTERFACE_COMMON_IMPL( Class ) \ @@ -129,33 +122,6 @@ QUERYINTERFACE_IMPL_START( Class ) \ (static_cast< I6* >(this)) \ QUERYINTERFACE_IMPL_END -// 7 interfaces implemented -#define XINTERFACE_IMPL_7( Class,I1,I2,I3,I4,I5,I6,I7 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< I1* >(this)), \ - (static_cast< I2* >(this)), \ - (static_cast< I3* >(this)), \ - (static_cast< I4* >(this)), \ - (static_cast< I5* >(this)), \ - (static_cast< I6* >(this)), \ - (static_cast< I7* >(this)) \ -QUERYINTERFACE_IMPL_END - -// 8 interfaces implemented -#define XINTERFACE_IMPL_8( Class,I1,I2,I3,I4,I5,I6,I7,I8 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< I1* >(this)), \ - (static_cast< I2* >(this)), \ - (static_cast< I3* >(this)), \ - (static_cast< I4* >(this)), \ - (static_cast< I5* >(this)), \ - (static_cast< I6* >(this)), \ - (static_cast< I7* >(this)), \ - (static_cast< I8* >(this)) \ -QUERYINTERFACE_IMPL_END - // 9 interfaces implemented #define XINTERFACE_IMPL_9( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9 ) \ XINTERFACE_COMMON_IMPL( Class ) \ @@ -171,119 +137,6 @@ QUERYINTERFACE_IMPL_START( Class ) \ (static_cast< I9* >(this)) \ QUERYINTERFACE_IMPL_END -// 10 interfaces implemented -#define XINTERFACE_IMPL_10( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< I1* >(this)), \ - (static_cast< I2* >(this)), \ - (static_cast< I3* >(this)), \ - (static_cast< I4* >(this)), \ - (static_cast< I5* >(this)), \ - (static_cast< I6* >(this)), \ - (static_cast< I7* >(this)), \ - (static_cast< I8* >(this)), \ - (static_cast< I9* >(this)), \ - (static_cast< I10* >(this)) \ -QUERYINTERFACE_IMPL_END - -// 11 interfaces implemented -#define XINTERFACE_IMPL_11( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< I1* >(this)), \ - (static_cast< I2* >(this)), \ - (static_cast< I3* >(this)), \ - (static_cast< I4* >(this)), \ - (static_cast< I5* >(this)), \ - (static_cast< I6* >(this)), \ - (static_cast< I7* >(this)), \ - (static_cast< I8* >(this)), \ - (static_cast< I9* >(this)), \ - (static_cast< I10* >(this)), \ - (static_cast< I11* >(this)) \ -QUERYINTERFACE_IMPL_END - -// 12 interfaces implemented -#define XINTERFACE_IMPL_12( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< I1* >(this)), \ - (static_cast< I2* >(this)), \ - (static_cast< I3* >(this)), \ - (static_cast< I4* >(this)), \ - (static_cast< I5* >(this)), \ - (static_cast< I6* >(this)), \ - (static_cast< I7* >(this)), \ - (static_cast< I8* >(this)), \ - (static_cast< I9* >(this)), \ - (static_cast< I10* >(this)), \ - (static_cast< I11* >(this)), \ - (static_cast< I12* >(this)) \ -QUERYINTERFACE_IMPL_END - -// 13 interfaces implemented -#define XINTERFACE_IMPL_13( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< I1* >(this)), \ - (static_cast< I2* >(this)), \ - (static_cast< I3* >(this)), \ - (static_cast< I4* >(this)), \ - (static_cast< I5* >(this)), \ - (static_cast< I6* >(this)), \ - (static_cast< I7* >(this)), \ - (static_cast< I8* >(this)), \ - (static_cast< I9* >(this)), \ - (static_cast< I10* >(this)), \ - (static_cast< I11* >(this)), \ - (static_cast< I12* >(this)), \ - (static_cast< I13* >(this)) \ -QUERYINTERFACE_IMPL_END - -// 14 interfaces implemented -#define XINTERFACE_IMPL_14( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< I1* >(this)), \ - (static_cast< I2* >(this)), \ - (static_cast< I3* >(this)), \ - (static_cast< I4* >(this)), \ - (static_cast< I5* >(this)), \ - (static_cast< I6* >(this)), \ - (static_cast< I7* >(this)), \ - (static_cast< I8* >(this)), \ - (static_cast< I9* >(this)), \ - (static_cast< I10* >(this)), \ - (static_cast< I11* >(this)), \ - (static_cast< I12* >(this)), \ - (static_cast< I13* >(this)), \ - (static_cast< I14* >(this)) \ -QUERYINTERFACE_IMPL_END - -// 15 interfaces implemented -#define XINTERFACE_IMPL_15( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15 ) \ -XINTERFACE_COMMON_IMPL( Class ) \ -QUERYINTERFACE_IMPL_START( Class ) \ - (static_cast< I1* >(this)), \ - (static_cast< I2* >(this)), \ - (static_cast< I3* >(this)), \ - (static_cast< I4* >(this)), \ - (static_cast< I5* >(this)), \ - (static_cast< I6* >(this)), \ - (static_cast< I7* >(this)), \ - (static_cast< I8* >(this)), \ - (static_cast< I9* >(this)), \ - (static_cast< I10* >(this)), \ - (static_cast< I11* >(this)), \ - (static_cast< I12* >(this)), \ - (static_cast< I13* >(this)), \ - (static_cast< I14* >(this)), \ - (static_cast< I15* >(this)) \ -QUERYINTERFACE_IMPL_END - - - // XTypeProvider decl. @@ -347,13 +200,6 @@ Class::getTypes() \ -// 1 interface supported -#define XTYPEPROVIDER_IMPL_1( Class, I1 ) \ -XTYPEPROVIDER_COMMON_IMPL( Class ) \ -GETTYPES_IMPL_START( Class ) \ - CPPU_TYPE_REF( I1 ) \ -GETTYPES_IMPL_END - // 2 interfaces supported #define XTYPEPROVIDER_IMPL_2( Class, I1,I2 ) \ XTYPEPROVIDER_COMMON_IMPL( Class ) \ @@ -479,86 +325,6 @@ GETTYPES_IMPL_START( Class ) \ CPPU_TYPE_REF( I11 ) \ GETTYPES_IMPL_END -// 12 interfaces supported -#define XTYPEPROVIDER_IMPL_12( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12 ) \ -XTYPEPROVIDER_COMMON_IMPL( Class ) \ -GETTYPES_IMPL_START( Class ) \ - CPPU_TYPE_REF( I1 ), \ - CPPU_TYPE_REF( I2 ), \ - CPPU_TYPE_REF( I3 ), \ - CPPU_TYPE_REF( I4 ), \ - CPPU_TYPE_REF( I5 ), \ - CPPU_TYPE_REF( I6 ), \ - CPPU_TYPE_REF( I7 ), \ - CPPU_TYPE_REF( I8 ), \ - CPPU_TYPE_REF( I9 ), \ - CPPU_TYPE_REF( I10 ), \ - CPPU_TYPE_REF( I11 ), \ - CPPU_TYPE_REF( I12 ) \ -GETTYPES_IMPL_END - -// 13 interfaces supported -#define XTYPEPROVIDER_IMPL_13( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13 ) \ -XTYPEPROVIDER_COMMON_IMPL( Class ) \ -GETTYPES_IMPL_START( Class ) \ - CPPU_TYPE_REF( I1 ), \ - CPPU_TYPE_REF( I2 ), \ - CPPU_TYPE_REF( I3 ), \ - CPPU_TYPE_REF( I4 ), \ - CPPU_TYPE_REF( I5 ), \ - CPPU_TYPE_REF( I6 ), \ - CPPU_TYPE_REF( I7 ), \ - CPPU_TYPE_REF( I8 ), \ - CPPU_TYPE_REF( I9 ), \ - CPPU_TYPE_REF( I10 ), \ - CPPU_TYPE_REF( I11 ), \ - CPPU_TYPE_REF( I12 ), \ - CPPU_TYPE_REF( I13 ) \ -GETTYPES_IMPL_END - -// 14 interfaces supported -#define XTYPEPROVIDER_IMPL_14( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14 ) \ -XTYPEPROVIDER_COMMON_IMPL( Class ) \ -GETTYPES_IMPL_START( Class ) \ - CPPU_TYPE_REF( I1 ), \ - CPPU_TYPE_REF( I2 ), \ - CPPU_TYPE_REF( I3 ), \ - CPPU_TYPE_REF( I4 ), \ - CPPU_TYPE_REF( I5 ), \ - CPPU_TYPE_REF( I6 ), \ - CPPU_TYPE_REF( I7 ), \ - CPPU_TYPE_REF( I8 ), \ - CPPU_TYPE_REF( I9 ), \ - CPPU_TYPE_REF( I10 ), \ - CPPU_TYPE_REF( I11 ), \ - CPPU_TYPE_REF( I12 ), \ - CPPU_TYPE_REF( I13 ), \ - CPPU_TYPE_REF( I14 ) \ -GETTYPES_IMPL_END - -// 15 interfaces supported -#define XTYPEPROVIDER_IMPL_15( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15 ) \ -XTYPEPROVIDER_COMMON_IMPL( Class ) \ -GETTYPES_IMPL_START( Class ) \ - CPPU_TYPE_REF( I1 ), \ - CPPU_TYPE_REF( I2 ), \ - CPPU_TYPE_REF( I3 ), \ - CPPU_TYPE_REF( I4 ), \ - CPPU_TYPE_REF( I5 ), \ - CPPU_TYPE_REF( I6 ), \ - CPPU_TYPE_REF( I7 ), \ - CPPU_TYPE_REF( I8 ), \ - CPPU_TYPE_REF( I9 ), \ - CPPU_TYPE_REF( I10 ), \ - CPPU_TYPE_REF( I11 ), \ - CPPU_TYPE_REF( I12 ), \ - CPPU_TYPE_REF( I13 ), \ - CPPU_TYPE_REF( I14 ), \ - CPPU_TYPE_REF( I15 ) \ -GETTYPES_IMPL_END - - - // XServiceInfo decl. |