1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_SC_INC_FILLINFO_HXX
21 #define INCLUDED_SC_INC_FILLINFO_HXX
23 #include <sal/config.h>
27 #include <svx/framelinkarray.hxx>
29 #include "colorscale.hxx"
30 #include "cellvalue.hxx"
41 const sal_uInt8 SC_ROTDIR_NONE
= 0;
42 const sal_uInt8 SC_ROTDIR_STANDARD
= 1;
43 const sal_uInt8 SC_ROTDIR_LEFT
= 2;
44 const sal_uInt8 SC_ROTDIR_RIGHT
= 3;
45 const sal_uInt8 SC_ROTDIR_CENTER
= 4;
47 const sal_uInt8 SC_CLIPMARK_NONE
= 0;
48 const sal_uInt8 SC_CLIPMARK_LEFT
= 1;
49 const sal_uInt8 SC_CLIPMARK_RIGHT
= 2;
50 const sal_uInt8 SC_CLIPMARK_SIZE
= 64;
63 double mnZero
; // 0 to 100
65 double mnLength
; // -100 to 100
70 bool operator==(const ScDataBarInfo
& r
) const
72 if( mnZero
!= r
.mnZero
)
74 if( maColor
!= r
.maColor
)
76 if(mnLength
!= r
.mnLength
)
78 if (mbGradient
!= r
.mbGradient
)
84 bool operator!=(const ScDataBarInfo
& r
) const
93 ScIconSetType eIconSetType
;
100 : pPatternAttr(nullptr)
101 , pConditionSet(nullptr)
102 , pBackground(nullptr) // TODO: omit?
103 , pLinesAttr(nullptr)
104 , mpTLBRLine(nullptr)
105 , mpBLTRLine(nullptr)
106 , pShadowAttr(nullptr)
107 , pHShadowOrigin(nullptr)
108 , pVShadowOrigin(nullptr)
109 , eHShadowPart(SC_SHADOW_HSTART
)
110 , eVShadowPart(SC_SHADOW_HSTART
)
111 , nClipMark(SC_CLIPMARK_NONE
)
113 , nRotateDir(SC_ROTDIR_NONE
)
115 , bEmptyCellText(false)
117 , bHOverlapped(false)
118 , bVOverlapped(false)
120 , bPivotButton(false)
121 , bPivotPopupButton(false)
122 , bFilterActive(false)
123 , bPrinted(false) // view-internal
124 , bHideGrid(false) // view-internal
125 , bEditEngine(false) // view-internal
129 ~CellInfo() = default;
130 CellInfo(const CellInfo
&) = delete;
131 const CellInfo
& operator=(const CellInfo
&) = delete;
133 ScRefCellValue maCell
;
135 const ScPatternAttr
* pPatternAttr
;
136 const SfxItemSet
* pConditionSet
;
137 std::unique_ptr
<const Color
> pColorScale
;
138 std::unique_ptr
<const ScDataBarInfo
> pDataBar
;
139 std::unique_ptr
<const ScIconSetInfo
> pIconSet
;
141 const SvxBrushItem
* pBackground
;
143 const SvxBoxItem
* pLinesAttr
; /// original item from document.
144 const SvxLineItem
* mpTLBRLine
; /// original item from document.
145 const SvxLineItem
* mpBLTRLine
; /// original item from document.
147 const SvxShadowItem
* pShadowAttr
; // original item (internal)
149 const SvxShadowItem
* pHShadowOrigin
;
150 const SvxShadowItem
* pVShadowOrigin
;
152 ScShadowPart eHShadowPart
: 4; // shadow effective for drawing
153 ScShadowPart eVShadowPart
: 4;
156 sal_uInt8 nRotateDir
;
159 bool bEmptyCellText
: 1;
161 bool bHOverlapped
: 1;
162 bool bVOverlapped
: 1;
163 bool bAutoFilter
: 1;
165 bool bPivotPopupButton
:1;
166 bool bFilterActive
:1;
167 bool bPrinted
: 1; // when required (pagebreak mode)
168 bool bHideGrid
: 1; // output-internal
169 bool bEditEngine
: 1; // output-internal
172 const SCCOL SC_ROTMAX_NONE
= SCCOL_MAX
;
177 ~RowInfo() = default;
178 RowInfo(const RowInfo
&) = delete;
179 const RowInfo
& operator=(const RowInfo
&) = delete;
185 SCCOL nRotMaxCol
; // SC_ROTMAX_NONE, if nothing
191 bool bChanged
:1; // TRUE, if not tested
196 svx::frame::Array maArray
;
198 sal_uInt16 mnArrCount
;
201 explicit ScTableInfo();
203 ScTableInfo(const ScTableInfo
&) = delete;
204 const ScTableInfo
& operator=(const ScTableInfo
&) = delete;
209 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */