LibreOffice Module oox (master) 1
seriesmodel.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_SERIESMODEL_HXX
21#define INCLUDED_OOX_DRAWINGML_CHART_SERIESMODEL_HXX
22
25
26namespace oox::drawingml::chart {
27
29{
32
36 std::optional< OUString > moaSeparator;
37 std::optional< sal_Int32 > monLabelPos;
38 std::optional< bool > mobShowBubbleSize;
39 std::optional< bool > mobShowCatName;
40 std::optional< bool > mobShowLegendKey;
41 std::optional< bool > mobShowPercent;
42 std::optional< bool > mobShowSerName;
43 std::optional< bool > mobShowVal;
44
47 std::optional< bool > mobShowDataLabelsRange;
48 bool mbDeleted;
49
50 explicit DataLabelModelBase(bool bMSO2007Doc);
52};
53
54struct DataLabelsModel;
55
57{
60
64 sal_Int32 mnIndex;
65
66 explicit DataLabelModel(const DataLabelsModel& rParent, bool bMSO2007Doc);
68};
69
71{
74
77
81
82 explicit DataLabelsModel(bool bMSO2007Doc);
84};
85
87{
88 double mfStackUnit;
89 sal_Int32 mnPictureFormat;
93
94 explicit PictureOptionsModel(bool bMSO2007Doc);
95};
96
98{
100 {
102 MINUS
103 };
104
107
110 double mfValue;
111 sal_Int32 mnDirection;
112 sal_Int32 mnTypeId;
113 sal_Int32 mnValueType;
115
116 explicit ErrorBarModel(bool bMSO2007Doc);
118};
119
121{
126
132
133 explicit TrendlineLabelModel();
135};
136
138{
141
144 OUString maName;
145 std::optional< double > mfBackward;
146 std::optional< double > mfForward;
147 std::optional< double > mfIntercept;
148 sal_Int32 mnOrder;
149 sal_Int32 mnPeriod;
150 sal_Int32 mnTypeId;
153
154 explicit TrendlineModel(bool bMSO2007Doc);
156};
157
159{
162
166 std::optional< sal_Int32 > monExplosion;
167 std::optional< sal_Int32 > monMarkerSize;
168 std::optional< sal_Int32 > monMarkerSymbol;
169 std::optional< bool > mobBubble3d;
170 sal_Int32 mnIndex;
172
173 explicit DataPointModel(bool bMSO2007Doc);
175};
176
178{
180 {
185 };
186
195
205 std::optional< sal_Int32 > monShape;
206 sal_Int32 mnExplosion;
207 sal_Int32 mnIndex;
208 sal_Int32 mnMarkerSize;
209 sal_Int32 mnMarkerSymbol;
210 sal_Int32 mnOrder;
213 bool mbSmooth;
214
215 explicit SeriesModel(bool bMSO2007Doc);
216 ~SeriesModel();
217};
218
219} // namespace oox::drawingml::chart
220
221#endif
222
223/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::optional< OUString > moaSeparator
Number format for numeric data labels.
Definition: seriesmodel.hxx:36
std::optional< bool > mobShowVal
True = show series name.
Definition: seriesmodel.hxx:43
std::optional< bool > mobShowBubbleSize
Data label position.
Definition: seriesmodel.hxx:38
std::optional< sal_Int32 > monLabelPos
Separator between label components.
Definition: seriesmodel.hxx:37
TextBodyRef mxTextProp
Data label frame formatting.
Definition: seriesmodel.hxx:34
std::optional< bool > mobShowDataLabelsRange
True = show data point value.
Definition: seriesmodel.hxx:47
NumberFormat maNumberFormat
Data label text formatting.
Definition: seriesmodel.hxx:35
std::optional< bool > mobShowLegendKey
True = show category name of data points.
Definition: seriesmodel.hxx:40
std::optional< bool > mobShowCatName
True = show size of bubbles in bubble charts.
Definition: seriesmodel.hxx:39
std::optional< bool > mobShowPercent
True = show legend key of data series.
Definition: seriesmodel.hxx:41
std::optional< bool > mobShowSerName
True = show percentual value in pie/doughnut charts.
Definition: seriesmodel.hxx:42
DataLabelModelBase(bool bMSO2007Doc)
True = data label(s) deleted.
Definition: seriesmodel.cxx:25
DataLabelModel(const DataLabelsModel &rParent, bool bMSO2007Doc)
Data point index for this data label.
Definition: seriesmodel.cxx:34
ModelRef< LayoutModel > LayoutRef
Definition: seriesmodel.hxx:58
const DataLabelsModel & mrParent
Manual or linked text for this data point label.
Definition: seriesmodel.hxx:63
sal_Int32 mnIndex
Reference to the labels container.
Definition: seriesmodel.hxx:64
TextRef mxText
Layout/position of the data point label frame.
Definition: seriesmodel.hxx:62
ShapeRef mxLeaderLines
Settings for individual data point labels.
Definition: seriesmodel.hxx:76
ModelVector< DataLabelModel > DataLabelVector
Definition: seriesmodel.hxx:72
DataLabelsModel(bool bMSO2007Doc)
True = show connector lines between data points and labels.
Definition: seriesmodel.cxx:45
const DataSourceModel * mpLabelsSource
Formatting of connector lines between data points and labels.
Definition: seriesmodel.hxx:79
std::optional< sal_Int32 > monMarkerSize
Pie slice moved from pie center.
DataPointModel(bool bMSO2007Doc)
True = invert negative data points (not derived from series!).
Definition: seriesmodel.cxx:99
sal_Int32 mnIndex
True = show bubbles with 3D shade.
std::optional< sal_Int32 > monExplosion
Data point marker formatting.
bool mbInvertNeg
Unique data point index.
ShapeRef mxMarkerProp
Fill bitmap settings.
std::optional< sal_Int32 > monMarkerSymbol
Size of the series line marker (2...72).
PictureOptionsRef mxPicOptions
Data point formatting.
std::optional< bool > mobBubble3d
Series line marker symbol.
ModelRef< PictureOptionsModel > PictureOptionsRef
sal_Int32 mnValueType
Type of the error bars (plus/minus/both).
bool mbNoEndCap
Type of the values.
ErrorBarModel(bool bMSO2007Doc)
True = no end cap at error bar lines.
Definition: seriesmodel.cxx:65
sal_Int32 mnTypeId
Direction of the error bars (x/y).
ShapeRef mxShapeProp
Source ranges for manual error bar values.
ModelMap< SourceType, DataSourceModel > DataSourceMap
double mfValue
Error line formatting.
sal_Int32 mnDirection
Fixed value for several error bar types.
bool mbApplyToEnd
True = draw picture at left/right side of 3D data points.
Definition: seriesmodel.hxx:92
sal_Int32 mnPictureFormat
Bitmap stacking unit.
Definition: seriesmodel.hxx:89
bool mbApplyToSides
True = draw picture at front/back side of 3D data points.
Definition: seriesmodel.hxx:91
bool mbApplyToFront
Bitmap mode (stretch/tile).
Definition: seriesmodel.hxx:90
PictureOptionsModel(bool bMSO2007Doc)
True = draw picture at top/bottom side of 3D data points.
Definition: seriesmodel.cxx:56
sal_Int32 mnMarkerSymbol
Size of the series line marker (2...72).
DataPointVector maPoints
All trendlines of this series.
sal_Int32 mnOrder
Series line marker symbol.
TrendlineVector maTrendlines
All error bars of this series.
sal_Int32 mnExplosion
3D bar shape type.
SeriesModel(bool bMSO2007Doc)
True = smooth series line.
DataLabelsRef mxLabels
Series title source.
bool mbInvertNeg
True = show bubbles with 3D shade.
ErrorBarVector maErrorBars
Series source ranges.
@ DATALABELS
Data point size (e.g. bubble size in bubble charts).
@ VALUES
Data point categories.
sal_Int32 mnMarkerSize
Series index used for automatic formatting.
sal_Int32 mnIndex
Pie slice moved from pie center.
std::optional< sal_Int32 > monShape
Data point label settings for all points.
PictureOptionsRef mxPicOptions
Series formatting.
ModelRef< PictureOptionsModel > PictureOptionsRef
ModelMap< SourceType, DataSourceModel > DataSourceMap
ModelVector< TrendlineModel > TrendlineVector
ShapeRef mxMarkerProp
Fill bitmap settings.
ModelVector< ErrorBarModel > ErrorBarVector
TextRef mxText
Data point marker formatting.
ShapeRef mxShapeProp
Explicit formatted data points.
ModelVector< DataPointModel > DataPointVector
bool mbSmooth
True = invert negative data points.
ModelRef< DataLabelsModel > DataLabelsRef
NumberFormat maNumberFormat
Text source of the label.
TrendlineLabelModel()
Number format for coefficients.
Definition: seriesmodel.cxx:78
TextRef mxText
Layout/position of the frame.
LayoutRef mxLayout
Label text formatting.
TextBodyRef mxTextProp
Label frame formatting.
TrendlineLabelRef mxLabel
Trendline formatting.
sal_Int32 mnTypeId
Moving average period in range [2, 255].
ModelRef< TrendlineLabelModel > TrendlineLabelRef
std::optional< double > mfBackward
User-defined name of the trendline.
TrendlineModel(bool bMSO2007Doc)
True = show R-squared of the trendline.
Definition: seriesmodel.cxx:86
bool mbDispRSquared
True = show equation of the trendline.
bool mbDispEquation
Type of the trendline.
OUString maName
Trendline label text object.
std::optional< double > mfIntercept
Size of trendline behind last data point.
sal_Int32 mnPeriod
Polynomial order in range [2, 6].
sal_Int32 mnOrder
Crossing point with Y axis.
std::optional< double > mfForward
Size of trendline before first data point.