diff options
Diffstat (limited to 'chart2/source/model/template/GL3DBarChartTypeTemplate.cxx')
-rw-r--r-- | chart2/source/model/template/GL3DBarChartTypeTemplate.cxx | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx b/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx index 262828c2c8aa..e65c8f562c48 100644 --- a/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx +++ b/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx @@ -8,6 +8,8 @@ */ #include "GL3DBarChartTypeTemplate.hxx" +#include "GL3DBarChartType.hxx" + #include <servicenames_charttypes.hxx> #include <macros.hxx> @@ -15,6 +17,12 @@ using namespace com::sun::star; namespace chart { +namespace { + +const OUString aServiceName("com.sun.star.chart2.BubbleChartTypeTemplate"); + +} + GL3DBarChartTypeTemplate::GL3DBarChartTypeTemplate( const uno::Reference<uno::XComponentContext>& xContext, const OUString& rServiceName ) : ChartTypeTemplate(xContext, rServiceName) {} @@ -51,8 +59,13 @@ GL3DBarChartTypeTemplate::getChartTypeForNewSeries( uno::Reference<lang::XMultiServiceFactory> xFact( GetComponentContext()->getServiceManager(), uno::UNO_QUERY_THROW); +#if 1 + // I gave up trying to use UNO just to instantiate this little thing... + xResult.set(new GL3DBarChartType(GetComponentContext())); +#else + // This never works for me. xResult.set(xFact->createInstance(CHART2_SERVICE_NAME_CHARTTYPE_GL3DBAR), uno::UNO_QUERY_THROW); - +#endif ChartTypeTemplate::copyPropertiesFromOldToNewCoordianteSystem(xOldChartTypes, xResult); } catch (const uno::Exception & ex) @@ -68,6 +81,16 @@ sal_Bool GL3DBarChartTypeTemplate::supportsCategories() return false; } +uno::Sequence<OUString> GL3DBarChartTypeTemplate::getSupportedServiceNames_Static() +{ + uno::Sequence<OUString> aServices(2); + aServices[0] = aServiceName; + aServices[1] = "com.sun.star.chart2.ChartTypeTemplate"; + return aServices; +} + +APPHELPER_XSERVICEINFO_IMPL(GL3DBarChartTypeTemplate, aServiceName); + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |