use insert function instead of for loop
[LibreOffice.git] / oox / source / drawingml / chart / seriesmodel.cxx
blob95b0deb225e79c36b6964449c796765cc305d4b6
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 #include <drawingml/chart/seriesmodel.hxx>
21 #include <oox/token/tokens.hxx>
23 namespace oox::drawingml::chart {
25 DataLabelModelBase::DataLabelModelBase(bool bMSO2007Doc) :
26 mbDeleted( !bMSO2007Doc )
30 DataLabelModelBase::~DataLabelModelBase()
34 DataLabelModel::DataLabelModel(const DataLabelsModel& rParent, bool bMSO2007Doc) :
35 DataLabelModelBase(bMSO2007Doc),
36 mrParent( rParent ),
37 mnIndex( -1 )
41 DataLabelModel::~DataLabelModel()
45 DataLabelsModel::DataLabelsModel(bool bMSO2007Doc) :
46 DataLabelModelBase(bMSO2007Doc),
47 mpLabelsSource( nullptr ),
48 mbShowLeaderLines( !bMSO2007Doc )
52 DataLabelsModel::~DataLabelsModel()
56 PictureOptionsModel::PictureOptionsModel(bool bMSO2007Doc) :
57 mfStackUnit( 1.0 ),
58 mnPictureFormat( XML_stretch ),
59 mbApplyToFront( !bMSO2007Doc ),
60 mbApplyToSides( !bMSO2007Doc ),
61 mbApplyToEnd( !bMSO2007Doc )
65 ErrorBarModel::ErrorBarModel(bool bMSO2007Doc) :
66 mfValue( 0.0 ),
67 mnDirection( XML_y ),
68 mnTypeId( XML_both ),
69 mnValueType( XML_fixedVal ),
70 mbNoEndCap( !bMSO2007Doc )
74 ErrorBarModel::~ErrorBarModel()
78 TrendlineLabelModel::TrendlineLabelModel()
82 TrendlineLabelModel::~TrendlineLabelModel()
86 TrendlineModel::TrendlineModel(bool bMSO2007Doc) :
87 mnOrder( 2 ),
88 mnPeriod( 2 ),
89 mnTypeId( XML_linear ),
90 mbDispEquation( !bMSO2007Doc ),
91 mbDispRSquared( !bMSO2007Doc )
95 TrendlineModel::~TrendlineModel()
99 DataPointModel::DataPointModel(bool bMSO2007Doc) :
100 mnIndex( -1 ),
101 mbInvertNeg( !bMSO2007Doc )
105 DataPointModel::~DataPointModel()
109 SeriesModel::SeriesModel(bool bMSO2007Doc) :
110 mnExplosion( 0 ),
111 mnIndex( -1 ),
112 mnMarkerSize( 5 ),
113 mnMarkerSymbol( XML_auto ),
114 mnOrder( -1 ),
115 mbBubble3d( !bMSO2007Doc ),
116 mbInvertNeg( !bMSO2007Doc ),
117 mbSmooth( !bMSO2007Doc )
121 SeriesModel::~SeriesModel()
125 } // namespace oox::drawingml::chart
127 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */