diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-02-12 15:38:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-02-12 16:01:55 +0100 |
commit | e47f9d0e8beb8ea1f6f36f3983c8405bd4a25533 (patch) | |
tree | fc4d047533bf4248d714ea9804ca2c8ef33f68fe /chart2 | |
parent | 5a28f236523b8fa81f793264cd27a02668c94dd3 (diff) |
Add missing registration of GL3DBarChartType in g_entries_chart2_charttypes
...looks like it just got forgotten in 05efb605b36ea340762ef1583b3aea6a6b5cdddb
"Add a new skeleton plotter for the GL3D bar chart."
Change-Id: I54b7164d3702de6bdbcc3c3e21ea5569ada0336b
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/model/template/GL3DBarChartTypeTemplate.cxx | 12 | ||||
-rw-r--r-- | chart2/source/model/template/_serviceregistration_charttypes.cxx | 9 |
2 files changed, 12 insertions, 9 deletions
diff --git a/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx b/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx index 4440db517071..5f373bacbc6f 100644 --- a/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx +++ b/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx @@ -154,9 +154,9 @@ GL3DBarChartTypeTemplate::getChartTypeForNewSeries( const uno::Sequence<uno::Ref try { -#if 1 - // I gave up trying to use UNO just to instantiate this little thing... - xResult.set(new GL3DBarChartType(GetComponentContext())); + uno::Reference<lang::XMultiServiceFactory> xFact( + GetComponentContext()->getServiceManager(), uno::UNO_QUERY_THROW); + xResult.set(xFact->createInstance(CHART2_SERVICE_NAME_CHARTTYPE_GL3DBAR), uno::UNO_QUERY_THROW); uno::Reference<beans::XPropertySet> xCTProp(xResult, uno::UNO_QUERY); if (xCTProp.is()) { @@ -164,12 +164,6 @@ GL3DBarChartTypeTemplate::getChartTypeForNewSeries( const uno::Sequence<uno::Ref getFastPropertyValue(PROP_GL3DCHARTTYPE_ROUNDED_EDGE) >>= bVal; xCTProp->setPropertyValue(CHART_UNONAME_ROUNDED_EDGE, uno::makeAny(bVal)); } -#else - // This never works for me. - uno::Reference<lang::XMultiServiceFactory> xFact( - GetComponentContext()->getServiceManager(), uno::UNO_QUERY_THROW); - xResult.set(xFact->createInstance(CHART2_SERVICE_NAME_CHARTTYPE_GL3DBAR), uno::UNO_QUERY_THROW); -#endif } catch (const uno::Exception & ex) { diff --git a/chart2/source/model/template/_serviceregistration_charttypes.cxx b/chart2/source/model/template/_serviceregistration_charttypes.cxx index 299f1623136b..52b829b56f71 100644 --- a/chart2/source/model/template/_serviceregistration_charttypes.cxx +++ b/chart2/source/model/template/_serviceregistration_charttypes.cxx @@ -23,6 +23,7 @@ #include "BarChartType.hxx" #include "CandleStickChartType.hxx" #include "ColumnChartType.hxx" +#include "GL3DBarChartType.hxx" #include "LineChartType.hxx" #include "NetChartType.hxx" #include "FilledNetChartType.hxx" @@ -114,6 +115,14 @@ static const struct ::cppu::ImplementationEntry g_entries_chart2_charttypes[] = , 0 , 0 } + ,{ + ::chart::GL3DBarChartType::create + , ::chart::GL3DBarChartType::getImplementationName_Static + , ::chart::GL3DBarChartType::getSupportedServiceNames_Static + , ::cppu::createSingleComponentFactory + , 0 + , 0 + } ,{ 0, 0, 0, 0, 0, 0 } }; |