diff options
author | Ursache Vladimir <ursache@collabora.co.uk> | 2015-02-12 03:47:36 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-02-12 18:11:37 +0100 |
commit | 917bd2350cfb0e697595cdb7bd61fdfd00b9faa3 (patch) | |
tree | 2faa4db0b3602a40b693345662c060922869083d /chart2/source/tools/Scaling.cxx | |
parent | 6694a6a4069f7ca587bbf3f553d38163b01b3a5c (diff) |
Use constructors for services from chartcore.component.
Change-Id: I72227b45f305734060a669275044f6f9c8859bc5
Diffstat (limited to 'chart2/source/tools/Scaling.cxx')
-rw-r--r-- | chart2/source/tools/Scaling.cxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chart2/source/tools/Scaling.cxx b/chart2/source/tools/Scaling.cxx index 43ff6cd964a5..87237d0154af 100644 --- a/chart2/source/tools/Scaling.cxx +++ b/chart2/source/tools/Scaling.cxx @@ -324,4 +324,32 @@ css::uno::Sequence< OUString > SAL_CALL PowerScaling::getSupportedServiceNames() } //namespace chart +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_chart2_LinearScaling_get_implementation(css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new chart::LinearScaling(context)); +} + +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_chart2_ExponentialScaling_get_implementation(css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new chart::ExponentialScaling(context)); +} + +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_chart2_LogarithmicScaling_get_implementation(css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new chart::LogarithmicScaling(context)); +} + +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_chart2_PowerScaling_get_implementation(css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new chart::PowerScaling(context)); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |