diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-04-14 15:57:01 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-04-15 01:35:09 +0200 |
commit | 32e38ec654cfd467aad74da59366bd41142b3bdc (patch) | |
tree | 347098774ccce5171bec2810382bb0ecd0b2c0aa /oox/source/drawingml/chart/plotareacontext.cxx | |
parent | ee76783d2b2718a66bceefc6f8a71019daa7cc5b (diff) |
oox: move DataTable{Context,Model} into own file, prop. "showKeys"
Move DataTableContext and DataTableModel into its own files and
add the missing "showKeys" property of the data table (dTable).
Change-Id: I44fb436000c7f00a596fc9b12489d15ea1368e68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133021
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'oox/source/drawingml/chart/plotareacontext.cxx')
-rw-r--r-- | oox/source/drawingml/chart/plotareacontext.cxx | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/oox/source/drawingml/chart/plotareacontext.cxx b/oox/source/drawingml/chart/plotareacontext.cxx index 4f231e0eda35..4afddee4700c 100644 --- a/oox/source/drawingml/chart/plotareacontext.cxx +++ b/oox/source/drawingml/chart/plotareacontext.cxx @@ -24,6 +24,7 @@ #include <drawingml/chart/plotareamodel.hxx> #include <drawingml/chart/seriescontext.hxx> #include <drawingml/chart/typegroupcontext.hxx> +#include <drawingml/chart/datatablecontext.hxx> #include <oox/core/xmlfilterbase.hxx> #include <oox/helper/attributelist.hxx> #include <oox/token/namespaces.hxx> @@ -106,37 +107,6 @@ ContextHandlerRef WallFloorContext::onCreateContext( sal_Int32 nElement, const A return nullptr; } -DataTableContext::DataTableContext( ContextHandler2Helper& rParent, DataTableModel& rModel ) : - ContextBase< DataTableModel >( rParent, rModel ) -{ -} - -DataTableContext::~DataTableContext() -{ -} - -ContextHandlerRef DataTableContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs) -{ - switch( getCurrentElement() ) - { - case C_TOKEN( dTable ): - switch( nElement ) - { - case C_TOKEN( showHorzBorder ): - mrModel.mbShowHBorder = rAttribs.getBool( XML_val, false ); - break; - case C_TOKEN( showVertBorder ): - mrModel.mbShowVBorder = rAttribs.getBool( XML_val, false ); - break; - case C_TOKEN( showOutline ): - mrModel.mbShowOutline = rAttribs.getBool( XML_val, false ); - break; - } - break; - } - return nullptr; -} - PlotAreaContext::PlotAreaContext( ContextHandler2Helper& rParent, PlotAreaModel& rModel ) : ContextBase< PlotAreaModel >( rParent, rModel ) { |