summaryrefslogtreecommitdiff
path: root/cppuhelper/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-09-12 14:59:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-09-12 22:47:49 +0200
commit12e2e04977ddedcb2844b69a5060eb81be84d648 (patch)
tree8bd66f972a874e7fc65569f22fe41e53e4447a5c /cppuhelper/inc
parent30ad5e9d87adec68971464d49c733e29fc643847 (diff)
sb140: #i117697# simplify obsolete cppuhelper/stdidlclass.hxx implementation
Diffstat (limited to 'cppuhelper/inc')
-rw-r--r--cppuhelper/inc/cppuhelper/stdidlclass.hxx197
1 files changed, 42 insertions, 155 deletions
diff --git a/cppuhelper/inc/cppuhelper/stdidlclass.hxx b/cppuhelper/inc/cppuhelper/stdidlclass.hxx
index e7c8443ef0f3..73b8552a5a82 100644
--- a/cppuhelper/inc/cppuhelper/stdidlclass.hxx
+++ b/cppuhelper/inc/cppuhelper/stdidlclass.hxx
@@ -36,6 +36,7 @@ namespace cppu {
/*
@deprecated
+ always returns </NULL>
*/
::com::sun::star::reflection::XIdlClass * SAL_CALL createStandardClassWithSequence(
const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr ,
@@ -57,25 +58,19 @@ namespace cppu {
@see OTypeCollection
@deprecated
+ always returns </NULL>
*/
template < class Interface1 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(1);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -83,23 +78,15 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
template < class Interface1, class Interface2 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(2);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -109,25 +96,16 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
template < class Interface1, class Interface2 , class Interface3 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *,
const Interface3 *
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(3);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- seqInterface.getArray()[2] = Interface3::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -137,9 +115,9 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
template < class Interface1, class Interface2 , class Interface3 , class Interface4 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *,
const Interface3 *,
@@ -147,17 +125,7 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(4);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- seqInterface.getArray()[2] = Interface3::static_type().getTypeName();
- seqInterface.getArray()[3] = Interface4::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -169,9 +137,9 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
template < class Interface1, class Interface2 , class Interface3 , class Interface4 , class Interface5 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *,
const Interface3 *,
@@ -180,18 +148,7 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(5);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- seqInterface.getArray()[2] = Interface3::static_type().getTypeName();
- seqInterface.getArray()[3] = Interface4::static_type().getTypeName();
- seqInterface.getArray()[4] = Interface5::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -201,9 +158,9 @@ template < class Interface1, class Interface2 , class Interface3 , class Interf
class Interface6 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *,
const Interface3 *,
@@ -213,19 +170,7 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(6);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- seqInterface.getArray()[2] = Interface3::static_type().getTypeName();
- seqInterface.getArray()[3] = Interface4::static_type().getTypeName();
- seqInterface.getArray()[4] = Interface5::static_type().getTypeName();
- seqInterface.getArray()[5] = Interface6::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -236,9 +181,9 @@ template < class Interface1, class Interface2 , class Interface3 , class Interf
class Interface6, class Interface7 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *,
const Interface3 *,
@@ -249,20 +194,7 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(7);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- seqInterface.getArray()[2] = Interface3::static_type().getTypeName();
- seqInterface.getArray()[3] = Interface4::static_type().getTypeName();
- seqInterface.getArray()[4] = Interface5::static_type().getTypeName();
- seqInterface.getArray()[5] = Interface6::static_type().getTypeName();
- seqInterface.getArray()[6] = Interface7::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -274,9 +206,9 @@ template < class Interface1, class Interface2, class Interface3 , class Interfa
class Interface6, class Interface7, class Interface8 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *,
const Interface3 *,
@@ -288,21 +220,7 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(8);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- seqInterface.getArray()[2] = Interface3::static_type().getTypeName();
- seqInterface.getArray()[3] = Interface4::static_type().getTypeName();
- seqInterface.getArray()[4] = Interface5::static_type().getTypeName();
- seqInterface.getArray()[5] = Interface6::static_type().getTypeName();
- seqInterface.getArray()[6] = Interface7::static_type().getTypeName();
- seqInterface.getArray()[7] = Interface8::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -312,9 +230,9 @@ template < class Interface1, class Interface2, class Interface3 , class Interfa
class Interface6, class Interface7, class Interface8 , class Interface9 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *,
const Interface3 *,
@@ -327,22 +245,7 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(9);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- seqInterface.getArray()[2] = Interface3::static_type().getTypeName();
- seqInterface.getArray()[3] = Interface4::static_type().getTypeName();
- seqInterface.getArray()[4] = Interface5::static_type().getTypeName();
- seqInterface.getArray()[5] = Interface6::static_type().getTypeName();
- seqInterface.getArray()[6] = Interface7::static_type().getTypeName();
- seqInterface.getArray()[7] = Interface8::static_type().getTypeName();
- seqInterface.getArray()[8] = Interface9::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
@@ -350,9 +253,9 @@ template < class Interface1, class Interface2, class Interface3 , class Interfa
class Interface6, class Interface7, class Interface8 , class Interface9 , class Interface10 >
inline ::com::sun::star::reflection::XIdlClass * SAL_CALL
//inline ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass >
-createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &rSMgr,
- const ::rtl::OUString &sImplementationName ,
- const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > &rSuperClass ,
+createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &,
+ const ::rtl::OUString & ,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::reflection::XIdlClass > & ,
const Interface1 *,
const Interface2 *,
const Interface3 *,
@@ -366,23 +269,7 @@ createStandardClass( const ::com::sun::star::uno::Reference < ::com::sun::sta
)
SAL_THROW( () )
{
- ::com::sun::star::uno::Sequence < ::rtl::OUString > seqInterface(10);
- seqInterface.getArray()[0] = Interface1::static_type().getTypeName();
- seqInterface.getArray()[1] = Interface2::static_type().getTypeName();
- seqInterface.getArray()[2] = Interface3::static_type().getTypeName();
- seqInterface.getArray()[3] = Interface4::static_type().getTypeName();
- seqInterface.getArray()[4] = Interface5::static_type().getTypeName();
- seqInterface.getArray()[5] = Interface6::static_type().getTypeName();
- seqInterface.getArray()[6] = Interface7::static_type().getTypeName();
- seqInterface.getArray()[7] = Interface8::static_type().getTypeName();
- seqInterface.getArray()[8] = Interface9::static_type().getTypeName();
- seqInterface.getArray()[9] = Interface10::static_type().getTypeName();
- return createStandardClassWithSequence(
- rSMgr,
- sImplementationName,
- rSuperClass,
- seqInterface
- );
+ return 0;
}
} // end namespace cppu