tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / oox / inc / drawingml / chart / plotareaconverter.hxx
blob988405b3247cc3a05043c6872bb5da6bda46b9d3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_OOX_DRAWINGML_CHART_PLOTAREACONVERTER_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_PLOTAREACONVERTER_HXX
23 #include <drawingml/chart/converterbase.hxx>
25 namespace com::sun::star {
26 namespace chart2 { class XDiagram; }
29 namespace oox::drawingml::chart {
32 struct View3DModel;
33 class TypeGroupConverter;
35 class View3DConverter final : public ConverterBase< View3DModel >
37 public:
38 explicit View3DConverter( const ConverterRoot& rParent, View3DModel& rModel );
39 virtual ~View3DConverter() override;
41 /** Converts the OOXML plot area model to a chart2 diagram. */
42 void convertFromModel(
43 const css::uno::Reference< css::chart2::XDiagram >& rxDiagram,
44 TypeGroupConverter const & rTypeGroup );
48 struct WallFloorModel;
50 class WallFloorConverter final : public ConverterBase< WallFloorModel >
52 public:
53 explicit WallFloorConverter( const ConverterRoot& rParent, WallFloorModel& rModel );
54 virtual ~WallFloorConverter() override;
56 /** Converts the OOXML wall/floor model to a chart2 diagram. */
57 void convertFromModel(
58 const css::uno::Reference< css::chart2::XDiagram >& rxDiagram,
59 ObjectType eObjType );
62 struct PlotAreaModel;
64 class PlotAreaConverter final : public ConverterBase< PlotAreaModel >
66 public:
67 explicit PlotAreaConverter( const ConverterRoot& rParent, PlotAreaModel& rModel );
68 virtual ~PlotAreaConverter() override;
70 /** Converts the OOXML plot area model to a chart2 diagram. */
71 void convertFromModel( View3DModel& rView3DModel );
72 /** Converts the manual plot area position and size, if set. */
73 void convertPositionFromModel();
75 /** Returns the automatic chart title if the chart contains only one series. */
76 const OUString& getAutomaticTitle() const { return maAutoTitle; }
77 /** Returns true, if the chart contains only one series and have title textbox (even empty). */
78 bool isSingleSeriesTitle() const { return mbSingleSeriesTitle; }
79 /** Returns true, if chart type supports wall and floor format in 3D mode. */
80 bool isWall3dChart() const { return mbWall3dChart; }
82 private:
83 OUString maAutoTitle;
84 bool mb3dChart;
85 bool mbWall3dChart;
86 bool mbPieChart;
87 bool mbSingleSeriesTitle;;
91 } // namespace oox::drawingml::chart
93 #endif
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */