diff options
author | sushil_shinde <sushil.shinde@synerzip.com> | 2013-12-27 14:30:58 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-16 01:46:40 +0000 |
commit | 2054af83fefb955e20de2b40178a11726525057e (patch) | |
tree | 4dfb579bf58ea0710e9b321f12396cd64eff9013 /chart2 | |
parent | fdc383dcd3cb3ca954fe2f2b120433d8c6290d8c (diff) |
fdo#72520 : Added property to store external data path in chart.
- added new property entry to store xlsx external data for chart.
Change-Id: I3695865ad7e888359d1048e9bc380cba26108636
Reviewed-on: https://gerrit.libreoffice.org/7212
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx | 9 | ||||
-rw-r--r-- | chart2/source/model/main/Diagram.cxx | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx index 8fad1f83a420..cceaf7526c4a 100644 --- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx @@ -136,7 +136,8 @@ enum PROP_DIAGRAM_AUTOMATIC_SIZE, PROP_DIAGRAM_DATATABLEHBORDER, PROP_DIAGRAM_DATATABLEVBORDER, - PROP_DIAGRAM_DATATABLEOUTLINE + PROP_DIAGRAM_DATATABLEOUTLINE, + PROP_DIAGRAM_EXTERNALDATA }; void lcl_AddPropertiesToVector( @@ -436,6 +437,12 @@ void lcl_AddPropertiesToVector( ::getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::MAYBEDEFAULT )); + rOutProperties.push_back( + Property( "ExternalData", + PROP_DIAGRAM_EXTERNALDATA, + ::getCppuType( reinterpret_cast< const OUString * >(0)), + beans::PropertyAttribute::BOUND + | beans::PropertyAttribute::MAYBEVOID )); } diff --git a/chart2/source/model/main/Diagram.cxx b/chart2/source/model/main/Diagram.cxx index 5aef64793b41..9de30d9b118d 100644 --- a/chart2/source/model/main/Diagram.cxx +++ b/chart2/source/model/main/Diagram.cxx @@ -74,7 +74,8 @@ enum PROP_DIAGRAM_3DRELATIVEHEIGHT, PROP_DIAGRAM_DATATABLEHBORDER, PROP_DIAGRAM_DATATABLEVBORDER, - PROP_DIAGRAM_DATATABLEOUTLINE + PROP_DIAGRAM_DATATABLEOUTLINE, + PROP_DIAGRAM_EXTERNALDATA }; void lcl_AddPropertiesToVector( @@ -190,6 +191,11 @@ void lcl_AddPropertiesToVector( ::getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::MAYBEDEFAULT )); + rOutProperties.push_back( + Property( "ExternalData", + PROP_DIAGRAM_EXTERNALDATA, + ::getCppuType( reinterpret_cast< const OUString * >(0)), + beans::PropertyAttribute::MAYBEVOID )); } |