summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-16 12:43:09 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-16 12:44:15 +0200
commitca52e5ff2c98268ad1965d43746d3c0f9a53fa79 (patch)
treed971c75c72dcb83edf0b78bb704c99715b50d457 /chart2/source/model
parent2c7a4e8aff00f88dcc333f607a1c4334b197a4a1 (diff)
support property mapping in new 3D charts
Change-Id: I3da71e354ed2595c1f5b2eaeb5fb565205d24de0
Diffstat (limited to 'chart2/source/model')
-rw-r--r--chart2/source/model/template/GL3DBarChartType.cxx9
-rw-r--r--chart2/source/model/template/GL3DBarChartType.hxx3
2 files changed, 12 insertions, 0 deletions
diff --git a/chart2/source/model/template/GL3DBarChartType.cxx b/chart2/source/model/template/GL3DBarChartType.cxx
index 4e8868ccbae1..e99fe390c871 100644
--- a/chart2/source/model/template/GL3DBarChartType.cxx
+++ b/chart2/source/model/template/GL3DBarChartType.cxx
@@ -118,6 +118,15 @@ OUString SAL_CALL GL3DBarChartType::getChartType()
return CHART2_SERVICE_NAME_CHARTTYPE_GL3DBAR;
}
+uno::Sequence<OUString> GL3DBarChartType::getSupportedPropertyRoles()
+ throw (::com::sun::star::uno::RuntimeException, std::exception)
+{
+ uno::Sequence< OUString > aPropRoles(1);
+ aPropRoles[0] = "FillColor";
+
+ return aPropRoles;
+}
+
com::sun::star::uno::Reference<com::sun::star::util::XCloneable>
GL3DBarChartType::createClone()
throw (com::sun::star::uno::RuntimeException, std::exception)
diff --git a/chart2/source/model/template/GL3DBarChartType.hxx b/chart2/source/model/template/GL3DBarChartType.hxx
index f60ba4ac9bbb..c758d467bf6d 100644
--- a/chart2/source/model/template/GL3DBarChartType.hxx
+++ b/chart2/source/model/template/GL3DBarChartType.hxx
@@ -25,6 +25,9 @@ public:
GL3DBarChartType( const css::uno::Reference<css::uno::XComponentContext>& xContext );
virtual ~GL3DBarChartType();
+ virtual com::sun::star::uno::Sequence< OUString > SAL_CALL
+ getSupportedPropertyRoles()
+ throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL
getImplementationName()
throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;