diff options
author | Nikhil Walvekar <nikhil.walvekar@synerzip.com> | 2013-12-12 17:47:55 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-19 03:55:05 +0100 |
commit | ba76bf5c7b705d3f5e8d807346a34d9da34127d3 (patch) | |
tree | a9508935c79156952509169b6509f6467a0eff23 /include/oox | |
parent | 20bb1e6854c42df50536238414d93993ad764999 (diff) |
fdo#72304 Added properties to store Chart data table information, during import.
Change-Id: I77c458828b86bc31fae533e2e632d57237e44e6f
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/drawingml/chart/plotareacontext.hxx | 15 | ||||
-rw-r--r-- | include/oox/drawingml/chart/plotareaconverter.hxx | 15 | ||||
-rw-r--r-- | include/oox/drawingml/chart/plotareamodel.hxx | 13 |
3 files changed, 43 insertions, 0 deletions
diff --git a/include/oox/drawingml/chart/plotareacontext.hxx b/include/oox/drawingml/chart/plotareacontext.hxx index da337c74e0e7..9caec48c0d73 100644 --- a/include/oox/drawingml/chart/plotareacontext.hxx +++ b/include/oox/drawingml/chart/plotareacontext.hxx @@ -59,6 +59,21 @@ public: // ============================================================================ +struct DataTableModel; + +/** Handler for a data table context (c:dTable element). + */ +class DataTableContext : public ContextBase< DataTableModel > +{ +public: + explicit DataTableContext( ::oox::core::ContextHandler2Helper& rParent, DataTableModel& rModel ); + virtual ~DataTableContext(); + + virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ); +}; + +// ============================================================================ + struct PlotAreaModel; /** Handler for a chart plot area context (c:plotArea element). diff --git a/include/oox/drawingml/chart/plotareaconverter.hxx b/include/oox/drawingml/chart/plotareaconverter.hxx index 2185d21c3298..aa38194c0ffe 100644 --- a/include/oox/drawingml/chart/plotareaconverter.hxx +++ b/include/oox/drawingml/chart/plotareaconverter.hxx @@ -65,6 +65,21 @@ public: // ============================================================================ +struct DataTableModel; + +class DataTableConverter : public ConverterBase< DataTableModel > +{ +public: + explicit DataTableConverter( const ConverterRoot& rParent, DataTableModel& rModel ); + virtual ~DataTableConverter(); + + /** Converts the OOXML data table model to a chart2 diagram. */ + void convertFromModel( + const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& rxDiagram); +}; + +// ============================================================================ + struct PlotAreaModel; class PlotAreaConverter : public ConverterBase< PlotAreaModel > diff --git a/include/oox/drawingml/chart/plotareamodel.hxx b/include/oox/drawingml/chart/plotareamodel.hxx index 262bf19df922..7852ba868278 100644 --- a/include/oox/drawingml/chart/plotareamodel.hxx +++ b/include/oox/drawingml/chart/plotareamodel.hxx @@ -60,17 +60,30 @@ struct WallFloorModel // ============================================================================ +struct DataTableModel +{ + bool mbShowHBorder; /// Show Horizontal Border + bool mbShowVBorder; /// Show Verticle Border + bool mbShowOutline; /// Show outline + explicit DataTableModel(); + ~DataTableModel(); +}; + +// ============================================================================ + struct PlotAreaModel { typedef ModelVector< TypeGroupModel > TypeGroupVector; typedef ModelVector< AxisModel > AxisVector; typedef ModelRef< Shape > ShapeRef; typedef ModelRef< LayoutModel > LayoutRef; + typedef ModelRef< DataTableModel > DataTableRef; TypeGroupVector maTypeGroups; /// All chart type groups contained in the chart. AxisVector maAxes; /// All axes contained in the chart. ShapeRef mxShapeProp; /// Plot area frame formatting. LayoutRef mxLayout; /// Layout/position of the plot area. + DataTableRef mxDataTable; /// Data table of the plot area. explicit PlotAreaModel(); ~PlotAreaModel(); |