diff options
author | sushil_shinde <sushil.shinde@synerzip.com> | 2014-01-29 13:33:23 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-11 23:24:41 +0000 |
commit | 3ec8d33e46046b13abad2daf850e23f896ad05bc (patch) | |
tree | 1e67ac46afa149b8d67ba16906c3c9a1e27ea9e9 /include/oox | |
parent | 1d497297ec9bc2ed00bbc8f586a67c76eaa7013d (diff) |
fdo#74112 Added properties to store chart display unit information in import.
- added display unit properties.
- added axis display unit converter class.
Change-Id: Iaa1f9a175b1109c8da7321a1567a04fb981568d1
Reviewed-on: https://gerrit.libreoffice.org/7720
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/drawingml/chart/axisconverter.hxx | 15 | ||||
-rw-r--r-- | include/oox/drawingml/chart/axismodel.hxx | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/include/oox/drawingml/chart/axisconverter.hxx b/include/oox/drawingml/chart/axisconverter.hxx index e107057ad5d4..7224b97fa508 100644 --- a/include/oox/drawingml/chart/axisconverter.hxx +++ b/include/oox/drawingml/chart/axisconverter.hxx @@ -33,6 +33,21 @@ namespace chart { // ============================================================================ +struct AxisDispUnitsModel; + +class AxisDispUnitsConverter : public ConverterBase< AxisDispUnitsModel > +{ +public: + explicit AxisDispUnitsConverter( + const ConverterRoot& rParent, + AxisDispUnitsModel& rModel ); + virtual ~AxisDispUnitsConverter(); + + /** Creates a chart2 axis and inserts it into the passed coordinate system. */ + void convertFromModel( + const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XAxis >& rxAxis); +}; + struct AxisModel; class TypeGroupConverter; diff --git a/include/oox/drawingml/chart/axismodel.hxx b/include/oox/drawingml/chart/axismodel.hxx index dd543d057746..d29af7fedfa3 100644 --- a/include/oox/drawingml/chart/axismodel.hxx +++ b/include/oox/drawingml/chart/axismodel.hxx @@ -41,7 +41,7 @@ struct AxisDispUnitsModel LayoutRef mxLayout; /// Layout/position of the axis units label. TextRef mxText; /// Text source of the axis units label. double mfCustomUnit; /// Custom unit size on value axis. - sal_Int32 mnBuiltInUnit; /// Built-in unit on value axis. + OUString mnBuiltInUnit; /// Built-in unit on value axis. explicit AxisDispUnitsModel(); ~AxisDispUnitsModel(); |