diff options
author | Vasily Melenchuk <Vasily.Melenchuk@cib.de> | 2017-11-10 18:37:25 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-01-10 01:24:06 +0100 |
commit | 0074951704022d173a5fdb9df933f47be1dcbb91 (patch) | |
tree | 73503c1938be3b4757ecaa082f6307396f296b8b /chart2/inc | |
parent | 8c15140f92a0dff2aa7cc9e1f8bb5d8a0df34bf8 (diff) |
tdf#113572: allow switching to data range in copypasted chart
- enable data range toolbar button for charts with internal
data table and possiblilty to switch to data range
- show warning before destoying data table
- recreation of data provider
Change-Id: I2a08b723be80d411e970bfe2ee53dee7d3d52faa
Reviewed-on: https://gerrit.libreoffice.org/44605
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'chart2/inc')
-rw-r--r-- | chart2/inc/ChartModel.hxx | 2 | ||||
-rw-r--r-- | chart2/inc/strings.hrc | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/chart2/inc/ChartModel.hxx b/chart2/inc/ChartModel.hxx index 063e3fc6a72b..191533418943 100644 --- a/chart2/inc/ChartModel.hxx +++ b/chart2/inc/ChartModel.hxx @@ -474,6 +474,8 @@ public: bool isDataFromPivotTable(); + void removeDataProviders(); + #if HAVE_FEATURE_OPENGL OpenGLWindow* getOpenGLWindow() { return mpOpenGLWindow;} #endif diff --git a/chart2/inc/strings.hrc b/chart2/inc/strings.hrc index fac728c6e4dd..e4a1844d1f18 100644 --- a/chart2/inc/strings.hrc +++ b/chart2/inc/strings.hrc @@ -24,6 +24,7 @@ #define STR_DLG_CHART_WIZARD NC_("STR_DLG_CHART_WIZARD", "Chart Wizard") #define STR_DLG_SMOOTH_LINE_PROPERTIES NC_("STR_DLG_SMOOTH_LINE_PROPERTIES", "Smooth Lines") #define STR_DLG_STEPPED_LINE_PROPERTIES NC_("STR_DLG_STEPPED_LINE_PROPERTIES", "Stepped Lines") +#define STR_DLG_REMOVE_DATA_TABLE NC_("STR_DLG_REMOVE_DATA_TABLE", "This chart currently contains an internal data table. Do you want to proceed, deleting the internal data table, and set a new data range?") #define STR_PAGE_CHARTTYPE NC_("STR_PAGE_CHARTTYPE", "Chart Type") #define STR_PAGE_DATA_RANGE NC_("STR_PAGE_DATA_RANGE", "Data Range") #define STR_PAGE_CHART_ELEMENTS NC_("STR_PAGE_CHART_ELEMENTS", "Chart Elements") |