summaryrefslogtreecommitdiff
path: root/chart2/source/inc/Scaling.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-08 14:38:16 +0200
committerNoel Grandin <noel@peralex.com>2014-12-09 12:55:37 +0200
commit13b6c147e5a07439fb52044e4dfd4e58af858ec9 (patch)
treed5de1fbbd433173d282b81f4cf682d1bc240691e /chart2/source/inc/Scaling.hxx
parent3380e2acdfbb1e83f718369f5a2c5e4a63bc406d (diff)
inline UNO helper macro APPHELPER_SERVICE_FACTORY_HELPER
Change-Id: Ib416efb59ae166bb8d55dd7f3c84b7e5f72864e8
Diffstat (limited to 'chart2/source/inc/Scaling.hxx')
-rw-r--r--chart2/source/inc/Scaling.hxx24
1 files changed, 20 insertions, 4 deletions
diff --git a/chart2/source/inc/Scaling.hxx b/chart2/source/inc/Scaling.hxx
index f978b57bf002..fd968092c55b 100644
--- a/chart2/source/inc/Scaling.hxx
+++ b/chart2/source/inc/Scaling.hxx
@@ -47,7 +47,11 @@ public:
virtual ~LogarithmicScaling();
/// establish methods for factory instatiation
- APPHELPER_SERVICE_FACTORY_HELPER( LogarithmicScaling )
+ static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
+ throw(css::uno::Exception)
+ {
+ return (::cppu::OWeakObject *)new LogarithmicScaling( xContext );
+ }
/// declare XServiceInfo methods
APPHELPER_XSERVICEINFO_DECL()
@@ -86,7 +90,11 @@ public:
virtual ~ExponentialScaling();
/// establish methods for factory instatiation
- APPHELPER_SERVICE_FACTORY_HELPER( ExponentialScaling )
+ static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
+ throw(css::uno::Exception)
+ {
+ return (::cppu::OWeakObject *)new ExponentialScaling( xContext );
+ }
/// declare XServiceInfo methods
APPHELPER_XSERVICEINFO_DECL()
@@ -125,7 +133,11 @@ public:
virtual ~LinearScaling();
/// establish methods for factory instatiation
- APPHELPER_SERVICE_FACTORY_HELPER( LinearScaling )
+ static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
+ throw(css::uno::Exception)
+ {
+ return (::cppu::OWeakObject *)new LinearScaling( xContext );
+ }
/// declare XServiceInfo methods
APPHELPER_XSERVICEINFO_DECL()
@@ -163,7 +175,11 @@ public:
virtual ~PowerScaling();
/// establish methods for factory instatiation
- APPHELPER_SERVICE_FACTORY_HELPER( PowerScaling )
+ static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
+ throw(css::uno::Exception)
+ {
+ return (::cppu::OWeakObject *)new PowerScaling( xContext );
+ }
/// declare XServiceInfo methods
APPHELPER_XSERVICEINFO_DECL()