LibreOffice Module oox (master)  1
plotareaconverter.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_OOX_DRAWINGML_CHART_PLOTAREACONVERTER_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_PLOTAREACONVERTER_HXX
22 
24 
25 namespace com::sun::star {
26  namespace chart2 { class XDiagram; }
27 }
28 
29 namespace oox::drawingml::chart {
30 
31 
32 struct View3DModel;
33 class TypeGroupConverter;
34 
35 class View3DConverter final : public ConverterBase< View3DModel >
36 {
37 public:
38  explicit View3DConverter( const ConverterRoot& rParent, View3DModel& rModel );
39  virtual ~View3DConverter() override;
40 
42  void convertFromModel(
43  const css::uno::Reference< css::chart2::XDiagram >& rxDiagram,
44  TypeGroupConverter const & rTypeGroup );
45 };
46 
47 
48 struct WallFloorModel;
49 
50 class WallFloorConverter final : public ConverterBase< WallFloorModel >
51 {
52 public:
53  explicit WallFloorConverter( const ConverterRoot& rParent, WallFloorModel& rModel );
54  virtual ~WallFloorConverter() override;
55 
57  void convertFromModel(
58  const css::uno::Reference< css::chart2::XDiagram >& rxDiagram,
59  ObjectType eObjType );
60 };
61 
62 
63 struct DataTableModel;
64 
65 class DataTableConverter final : public ConverterBase< DataTableModel >
66 {
67 public:
68  explicit DataTableConverter( const ConverterRoot& rParent, DataTableModel& rModel );
69  virtual ~DataTableConverter() override;
70 
72  void convertFromModel(
73  const css::uno::Reference< css::chart2::XDiagram >& rxDiagram);
74 };
75 
76 
77 struct PlotAreaModel;
78 
79 class PlotAreaConverter final : public ConverterBase< PlotAreaModel >
80 {
81 public:
82  explicit PlotAreaConverter( const ConverterRoot& rParent, PlotAreaModel& rModel );
83  virtual ~PlotAreaConverter() override;
84 
86  void convertFromModel( View3DModel& rView3DModel );
89 
91  const OUString& getAutomaticTitle() const { return maAutoTitle; }
93  bool isWall3dChart() const { return mbWall3dChart; }
94 
95 private:
96  OUString maAutoTitle;
97  bool mb3dChart;
99  bool mbPieChart;
100 };
101 
102 
103 } // namespace oox::drawingml::chart
104 
105 #endif
106 
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
PlotAreaConverter(const ConverterRoot &rParent, PlotAreaModel &rModel)
void convertPositionFromModel()
Converts the manual plot area position and size, if set.
DataTableConverter(const ConverterRoot &rParent, DataTableModel &rModel)
Base class of all converter classes.
void convertFromModel(const css::uno::Reference< css::chart2::XDiagram > &rxDiagram, ObjectType eObjType)
Converts the OOXML wall/floor model to a chart2 diagram.
void convertFromModel(const css::uno::Reference< css::chart2::XDiagram > &rxDiagram)
Converts the OOXML data table model to a chart2 diagram.
void convertFromModel(View3DModel &rView3DModel)
Converts the OOXML plot area model to a chart2 diagram.
exports com.sun.star. chart2
ObjectType
Enumerates different object types for specific automatic formatting behaviour.
bool isWall3dChart() const
Returns true, if chart type supports wall and floor format in 3D mode.
const OUString & getAutomaticTitle() const
Returns the automatic chart title if the chart contains only one series.
void convertFromModel(const css::uno::Reference< css::chart2::XDiagram > &rxDiagram, TypeGroupConverter const &rTypeGroup)
Converts the OOXML plot area model to a chart2 diagram.
WallFloorConverter(const ConverterRoot &rParent, WallFloorModel &rModel)
View3DConverter(const ConverterRoot &rParent, View3DModel &rModel)