LibreOffice Module sc (master) 1
xeextlst.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
10#pragma once
11
12#include "xerecord.hxx"
13#include "xeroot.hxx"
14
15#include <colorscale.hxx>
16
17#include <memory>
18
20{
24};
25
27{
28 // -1 means don't write priority
29 sal_Int32 nPriority;
30 OString aGUID;
32};
33
38{
39public:
40 explicit XclExpExt( const XclExpRoot& rRoot );
41 virtual XclExpExtType GetType() = 0;
42
43protected:
44 OString maURI;
45};
46
47class XclExpExtCfvo : public XclExpRecordBase, protected XclExpRoot
48{
49public:
50 XclExpExtCfvo( const XclExpRoot& rRoot, const ScColorScaleEntry& rEntry, const ScAddress& rPos, bool bFirst );
51 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
52
53private:
55 OString maValue;
56 bool mbFirst;
57};
58
60{
61public:
62 XclExpExtNegativeColor( const Color& rColor );
64
65private:
67};
68
70{
71public:
74
75private:
77};
78
79class XclExpExtIcon : public XclExpRecordBase, protected XclExpRoot
80{
81public:
82 explicit XclExpExtIcon( const XclExpRoot& rRoot, const std::pair<ScIconSetType, sal_Int32>& rCustomEntry);
83 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
84
85private:
86 const char* pIconSetName;
87 sal_Int32 nIndex;
88};
89
90class XclExpExtCF : public XclExpRecordBase, protected XclExpRoot
91{
92public:
93 explicit XclExpExtCF( const XclExpRoot& rRoot, const ScCondFormatEntry& rFormat );
94 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
95
96private:
97 OUString aFormula;
99};
100
102{
103public:
104 explicit XclExpExtDataBar( const XclExpRoot& rRoot, const ScDataBarFormat& rFormat, const ScAddress& rPos );
105 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
106
107private:
112
113 std::unique_ptr<XclExpExtCfvo> mpLowerLimit;
114 std::unique_ptr<XclExpExtCfvo> mpUpperLimit;
115 std::unique_ptr<XclExpExtNegativeColor> mpNegativeColor;
116 std::unique_ptr<XclExpExtAxisColor> mpAxisColor;
117
118};
119
121{
122public:
123 explicit XclExpExtIconSet(const XclExpRoot& rRoot, const ScIconSetFormat& rFormat, const ScAddress& rPos);
124 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
125
126private:
132 const char* mpIconSetName;
133};
134
135
137{
138public:
139 XclExpExtCfRule( const XclExpRoot& rRoot, const ScFormatEntry& rFormat, const ScAddress& rPos, OString aId, sal_Int32 nPriority );
140 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
141
142private:
144 OString maId;
145 const char* pType;
146 sal_Int32 mnPriority;
147 const char* mOperator;
148};
149
151
153{
154public:
155 explicit XclExpExtConditionalFormatting( const XclExpRoot& rRoot, std::vector<XclExpExtCondFormatData>& rData, ScRangeList aRange);
156 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
157
158private:
161};
162
164
166{
167public:
168 XclExpExtCondFormat( const XclExpRoot& rRoot );
169 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
170
171 virtual XclExpExtType GetType() override { return XclExpExtDataBarType; }
172
174
175private:
177};
178
180{
181public:
183 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
184
185 virtual XclExpExtType GetType() override { return XclExpExtDataFooType; }
186
187private:
188 OString maSyntax;
189};
190
192{
193public:
194 explicit XclExtLst( const XclExpRoot& rRoot);
195 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
196
197 void AddRecord( XclExpExt* pEntry );
198 void AddRecord( const XclExpExtRef& aEntry ) { AddRecord(aEntry.get()); }
199
201
202private:
204};
205
207
208/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
basegfx::BColor maColor
void SaveXml(XclExpXmlStream &rStrm)
Definition: xeextlst.cxx:54
XclExpExtAxisColor(const Color &maColor)
Definition: xeextlst.cxx:49
ScCondFormatEntry mrFormat
Definition: xeextlst.hxx:98
XclExpExtCF(const XclExpRoot &rRoot, const ScCondFormatEntry &rFormat)
Definition: xeextlst.cxx:148
OUString aFormula
Definition: xeextlst.hxx:97
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:196
XclExpExtCalcPr(const XclExpRoot &rRoot, formula::FormulaGrammar::AddressConvention eConv)
Definition: xeextlst.cxx:555
OString maSyntax
Definition: xeextlst.hxx:188
virtual XclExpExtType GetType() override
Definition: xeextlst.hxx:185
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:584
XclExpRecordRef mxEntry
Definition: xeextlst.hxx:143
const char * pType
Definition: xeextlst.hxx:145
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:473
sal_Int32 mnPriority
Definition: xeextlst.hxx:146
XclExpExtCfRule(const XclExpRoot &rRoot, const ScFormatEntry &rFormat, const ScAddress &rPos, OString aId, sal_Int32 nPriority)
Definition: xeextlst.cxx:437
const char * mOperator
Definition: xeextlst.hxx:147
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:130
OString maValue
Definition: xeextlst.hxx:55
ScColorScaleEntryType meType
Definition: xeextlst.hxx:54
XclExpExtCfvo(const XclExpRoot &rRoot, const ScColorScaleEntry &rEntry, const ScAddress &rPos, bool bFirst)
Definition: xeextlst.cxx:82
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:602
XclExpExtCondFormat(const XclExpRoot &rRoot)
Definition: xeextlst.cxx:596
virtual XclExpExtType GetType() override
Definition: xeextlst.hxx:171
void AddRecord(XclExpExtConditionalFormatting *pFormat)
Definition: xeextlst.cxx:617
XclExpRecordList< XclExpExtConditionalFormatting > maCF
Definition: xeextlst.hxx:176
XclExpRecordList< XclExpExtCfRule > maCfRules
Definition: xeextlst.hxx:159
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:540
XclExpExtConditionalFormatting(const XclExpRoot &rRoot, std::vector< XclExpExtCondFormatData > &rData, ScRangeList aRange)
Definition: xeextlst.cxx:491
databar::ScAxisPosition meAxisPosition
Definition: xeextlst.hxx:108
std::unique_ptr< XclExpExtCfvo > mpLowerLimit
Definition: xeextlst.hxx:113
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:378
XclExpExtDataBar(const XclExpRoot &rRoot, const ScDataBarFormat &rFormat, const ScAddress &rPos)
Definition: xeextlst.cxx:267
std::unique_ptr< XclExpExtAxisColor > mpAxisColor
Definition: xeextlst.hxx:116
double mnMinLength
Definition: xeextlst.hxx:110
std::unique_ptr< XclExpExtCfvo > mpUpperLimit
Definition: xeextlst.hxx:114
double mnMaxLength
Definition: xeextlst.hxx:111
std::unique_ptr< XclExpExtNegativeColor > mpNegativeColor
Definition: xeextlst.hxx:115
XclExpRecordList< XclExpExtCfvo > maCfvos
Definition: xeextlst.hxx:127
XclExpRecordList< XclExpExtIcon > maCustom
Definition: xeextlst.hxx:128
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:417
const char * mpIconSetName
Definition: xeextlst.hxx:132
XclExpExtIconSet(const XclExpRoot &rRoot, const ScIconSetFormat &rFormat, const ScAddress &rPos)
Definition: xeextlst.cxx:395
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:67
XclExpExtIcon(const XclExpRoot &rRoot, const std::pair< ScIconSetType, sal_Int32 > &rCustomEntry)
Definition: xeextlst.cxx:60
const char * pIconSetName
Definition: xeextlst.hxx:86
sal_Int32 nIndex
Definition: xeextlst.hxx:87
void SaveXml(XclExpXmlStream &rStrm)
Definition: xeextlst.cxx:43
XclExpExtNegativeColor(const Color &rColor)
Definition: xeextlst.cxx:38
Base class for ext entries.
Definition: xeextlst.hxx:38
XclExpExt(const XclExpRoot &rRoot)
Definition: xeextlst.cxx:28
OString maURI
Definition: xeextlst.hxx:44
virtual XclExpExtType GetType()=0
Base class for all Excel records.
Definition: xerecord.hxx:39
Access to global data from other classes.
Definition: xeroot.hxx:113
XclExtLst(const XclExpRoot &rRoot)
Definition: xeextlst.cxx:33
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xeextlst.cxx:622
void AddRecord(const XclExpExtRef &aEntry)
Definition: xeextlst.hxx:198
XclExpExt * GetItem(XclExpExtType eType)
Definition: xeextlst.cxx:640
XclExpRecordList< XclExpExt > maExtEntries
Definition: xeextlst.hxx:203
void AddRecord(XclExpExt *pEntry)
Definition: xeextlst.cxx:635
ScColorScaleEntryType
Definition: colorscale.hxx:32
void SvStream & rStrm
const ScFormatEntry * pEntry
Definition: xeextlst.hxx:31
XclExpExtType
Definition: xeextlst.hxx:20
@ XclExpExtDataBarType
Definition: xeextlst.hxx:21
@ XclExpExtSparklineType
Definition: xeextlst.hxx:23
@ XclExpExtDataFooType
Definition: xeextlst.hxx:22
rtl::Reference< XclExtLst > XclExtLstRef
Definition: xeextlst.hxx:206
rtl::Reference< XclExpExtConditionalFormatting > XclExpExtConditionalFormattingRef
Definition: xeextlst.hxx:163
rtl::Reference< XclExpExt > XclExpExtRef
Definition: xeextlst.hxx:150