summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-10-10 15:23:05 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-10-10 15:24:50 +0200
commit14237c1678167da725fee079532c4669264d697f (patch)
tree44b3c90547e83e3a6d1227db77603f315587a452
parent3a03ee49e7cced375decefd336294632180414e4 (diff)
use trendline context for trendlines, tdf#94931, tdf#94934
Change-Id: I0cb9cdec33924e560b24744cc78d632025a189fc
-rw-r--r--chart2/source/controller/main/ChartController.cxx3
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu1
2 files changed, 4 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 754bc07596ad..d6674cfc7da9 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -336,6 +336,9 @@ OUString ChartController::GetContextName()
case OBJECTTYPE_DIAGRAM:
if (xChartType->getChartType() == "com.sun.star.chart2.PieChartType")
return OUString("ChartElements");
+ case OBJECTTYPE_DATA_CURVE:
+ case OBJECTTYPE_DATA_AVERAGE_LINE:
+ return OUString("Trendline");
default:
break;
}
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu b/officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu
index ecfd7d32a82a..d933003e079e 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu
@@ -1312,6 +1312,7 @@
Chart, ErrorBar, visible ;
Chart, Axis, visible ;
Chart, Grid, visible ;
+ Chart, Trendline, visible ;
</value>
</prop>
<prop oor:name="ImplementationURL" oor:type="xs:string">