summaryrefslogtreecommitdiff
path: root/chart2/source/model/template/BubbleChartType.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-09 19:02:03 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-09 19:27:49 +0100
commit1e9993be107905fdbcbf095b55bb2ae6a493600b (patch)
tree604a03670649bb8d7237a71dd5da9baa9a4ce237 /chart2/source/model/template/BubbleChartType.cxx
parentcaac9026f6532483e0ae1fa09a36a4fc0e92aa8a (diff)
don't hardcode property mapping, read them from chart2::XChartType
Change-Id: I7889dbddab603d7650d58a04f53e7c5fe38fcce2
Diffstat (limited to 'chart2/source/model/template/BubbleChartType.cxx')
-rw-r--r--chart2/source/model/template/BubbleChartType.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/chart2/source/model/template/BubbleChartType.cxx b/chart2/source/model/template/BubbleChartType.cxx
index 1b68d5b9fa4e..999fe504a5b9 100644
--- a/chart2/source/model/template/BubbleChartType.cxx
+++ b/chart2/source/model/template/BubbleChartType.cxx
@@ -167,7 +167,6 @@ uno::Sequence< OUString > SAL_CALL BubbleChartType::getSupportedMandatoryRoles()
throw (uno::RuntimeException, std::exception)
{
uno::Sequence< OUString > aMandRolesSeq(4);
- aMandRolesSeq.realloc( 4 );
aMandRolesSeq[0] = "label";
aMandRolesSeq[1] = "values-x";
aMandRolesSeq[2] = "values-y";
@@ -175,6 +174,15 @@ uno::Sequence< OUString > SAL_CALL BubbleChartType::getSupportedMandatoryRoles()
return aMandRolesSeq;
}
+uno::Sequence< OUString > SAL_CALL BubbleChartType::getSupportedPropertyRoles()
+ throw(com::sun::star::uno::RuntimeException, std::exception)
+{
+ uno::Sequence< OUString > aPropertyRoles(2);
+ aPropertyRoles[0] = "FillColor";
+ aPropertyRoles[1] = "BorderColor";
+ return aPropertyRoles;
+}
+
OUString SAL_CALL BubbleChartType::getRoleOfSequenceForSeriesLabel()
throw (uno::RuntimeException, std::exception)
{