diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-08 14:38:16 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-12-09 12:55:37 +0200 |
commit | 13b6c147e5a07439fb52044e4dfd4e58af858ec9 (patch) | |
tree | d5de1fbbd433173d282b81f4cf682d1bc240691e /chart2/source/tools | |
parent | 3380e2acdfbb1e83f718369f5a2c5e4a63bc406d (diff) |
inline UNO helper macro APPHELPER_SERVICE_FACTORY_HELPER
Change-Id: Ib416efb59ae166bb8d55dd7f3c84b7e5f72864e8
Diffstat (limited to 'chart2/source/tools')
-rw-r--r-- | chart2/source/tools/RegressionCurveModel.hxx | 47 | ||||
-rw-r--r-- | chart2/source/tools/RegressionEquation.hxx | 6 |
2 files changed, 40 insertions, 13 deletions
diff --git a/chart2/source/tools/RegressionCurveModel.hxx b/chart2/source/tools/RegressionCurveModel.hxx index 4aad97372c95..1ff6627eae5c 100644 --- a/chart2/source/tools/RegressionCurveModel.hxx +++ b/chart2/source/tools/RegressionCurveModel.hxx @@ -104,11 +104,6 @@ protected: virtual OUString SAL_CALL getServiceName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - // ____ XCloneable ____ - // not implemented here -// virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone() -// throw (::com::sun::star::uno::RuntimeException); - // ____ XModifyBroadcaster ____ virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) @@ -164,7 +159,11 @@ public: /// XServiceInfo declarations APPHELPER_XSERVICEINFO_DECL() /// establish methods for factory instatiation - APPHELPER_SERVICE_FACTORY_HELPER( MeanValueRegressionCurve ) + 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 MeanValueRegressionCurve( xContext ); + } }; class LinearRegressionCurve : public RegressionCurveModel @@ -184,7 +183,11 @@ public: /// XServiceInfo declarations APPHELPER_XSERVICEINFO_DECL() /// establish methods for factory instatiation - APPHELPER_SERVICE_FACTORY_HELPER( LinearRegressionCurve ) + 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 LinearRegressionCurve( xContext ); + } }; class LogarithmicRegressionCurve : public RegressionCurveModel @@ -204,7 +207,11 @@ public: /// XServiceInfo declarations APPHELPER_XSERVICEINFO_DECL() /// establish methods for factory instatiation - APPHELPER_SERVICE_FACTORY_HELPER( LogarithmicRegressionCurve ) + 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 LogarithmicRegressionCurve( xContext ); + } }; class ExponentialRegressionCurve : public RegressionCurveModel @@ -224,7 +231,11 @@ public: /// XServiceInfo declarations APPHELPER_XSERVICEINFO_DECL() /// establish methods for factory instatiation - APPHELPER_SERVICE_FACTORY_HELPER( ExponentialRegressionCurve ) + 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 ExponentialRegressionCurve( xContext ); + } }; class PotentialRegressionCurve : public RegressionCurveModel @@ -244,7 +255,11 @@ public: /// XServiceInfo declarations APPHELPER_XSERVICEINFO_DECL() /// establish methods for factory instatiation - APPHELPER_SERVICE_FACTORY_HELPER( PotentialRegressionCurve ) + 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 PotentialRegressionCurve( xContext ); + } }; class PolynomialRegressionCurve : public RegressionCurveModel @@ -264,7 +279,11 @@ public: /// XServiceInfo declarations APPHELPER_XSERVICEINFO_DECL() /// establish methods for factory instatiation - APPHELPER_SERVICE_FACTORY_HELPER( PolynomialRegressionCurve ) + 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 PolynomialRegressionCurve( xContext ); + } }; class MovingAverageRegressionCurve : public RegressionCurveModel @@ -284,7 +303,11 @@ public: /// XServiceInfo declarations APPHELPER_XSERVICEINFO_DECL() /// establish methods for factory instatiation - APPHELPER_SERVICE_FACTORY_HELPER( MovingAverageRegressionCurve ) + 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 MovingAverageRegressionCurve( xContext ); + } }; } // namespace chart diff --git a/chart2/source/tools/RegressionEquation.hxx b/chart2/source/tools/RegressionEquation.hxx index 0fe9798acb8b..e305372b9621 100644 --- a/chart2/source/tools/RegressionEquation.hxx +++ b/chart2/source/tools/RegressionEquation.hxx @@ -78,7 +78,11 @@ public: /// merge XInterface implementations DECLARE_XINTERFACE() /// establish methods for factory instatiation - APPHELPER_SERVICE_FACTORY_HELPER( RegressionEquation ) + 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 RegressionEquation( xContext ); + } protected: explicit RegressionEquation( const RegressionEquation & rOther ); |