diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-09 14:03:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-13 09:38:03 +0200 |
commit | 088e86b865062dd4cc5ba0c85c6068dea62238db (patch) | |
tree | 3f4ba85335bae3349bf4852245400b35b36d7ea0 /oox/source/drawingml | |
parent | 5d1ad167294878789e644452f23ef883af93fe87 (diff) |
fdo#46808, Convert some chart2 services to new style
The services already existed, they just needed IDL files
Change-Id: Ia7bdae932c5fb4b47d23afd2bb0756ecc9cbf6f7
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r-- | oox/source/drawingml/chart/typegroupconverter.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/oox/source/drawingml/chart/typegroupconverter.cxx b/oox/source/drawingml/chart/typegroupconverter.cxx index 7f996bfa062b..12d086d09fef 100644 --- a/oox/source/drawingml/chart/typegroupconverter.cxx +++ b/oox/source/drawingml/chart/typegroupconverter.cxx @@ -20,6 +20,10 @@ #include "oox/drawingml/chart/typegroupconverter.hxx" #include <com/sun/star/chart/DataLabelPlacement.hpp> +#include <com/sun/star/chart2/CartesianCoordinateSystem2d.hpp> +#include <com/sun/star/chart2/CartesianCoordinateSystem3d.hpp> +#include <com/sun/star/chart2/PolarCoordinateSystem2d.hpp> +#include <com/sun/star/chart2/PolarCoordinateSystem3d.hpp> #include <com/sun/star/chart2/CurveStyle.hpp> #include <com/sun/star/chart2/DataPointGeometry3D.hpp> #include <com/sun/star/chart2/StackingDirection.hpp> @@ -238,26 +242,24 @@ OUString TypeGroupConverter::getSingleSeriesTitle() const Reference< XCoordinateSystem > TypeGroupConverter::createCoordinateSystem() { - // find service name for coordinate system - OUString aServiceName; + // create the coordinate system object + Reference< css::uno::XComponentContext > xContext = getComponentContext(); + Reference< XCoordinateSystem > xCoordSystem; if( maTypeInfo.mbPolarCoordSystem ) { if( mb3dChart ) - aServiceName = "com.sun.star.chart2.PolarCoordinateSystem3d"; + xCoordSystem = css::chart2::PolarCoordinateSystem2d::create(xContext); else - aServiceName = "com.sun.star.chart2.PolarCoordinateSystem2d"; + xCoordSystem = css::chart2::PolarCoordinateSystem3d::create(xContext); } else { if( mb3dChart ) - aServiceName = "com.sun.star.chart2.CartesianCoordinateSystem3d"; + xCoordSystem = css::chart2::CartesianCoordinateSystem3d::create(xContext); else - aServiceName = "com.sun.star.chart2.CartesianCoordinateSystem2d"; + xCoordSystem = css::chart2::CartesianCoordinateSystem2d::create(xContext); } - // create the coordinate system object - Reference< XCoordinateSystem > xCoordSystem( createInstance( aServiceName ), UNO_QUERY ); - // swap X and Y axis if( maTypeInfo.mbSwappedAxesSet ) { |