xref: /aoo41x/main/sc/inc/fillinfo.hxx (revision 38d50f7b)
1*38d50f7bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*38d50f7bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*38d50f7bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*38d50f7bSAndrew Rist  * distributed with this work for additional information
6*38d50f7bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*38d50f7bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*38d50f7bSAndrew Rist  * "License"); you may not use this file except in compliance
9*38d50f7bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*38d50f7bSAndrew Rist  *
11*38d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*38d50f7bSAndrew Rist  *
13*38d50f7bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*38d50f7bSAndrew Rist  * software distributed under the License is distributed on an
15*38d50f7bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*38d50f7bSAndrew Rist  * KIND, either express or implied.  See the License for the
17*38d50f7bSAndrew Rist  * specific language governing permissions and limitations
18*38d50f7bSAndrew Rist  * under the License.
19*38d50f7bSAndrew Rist  *
20*38d50f7bSAndrew Rist  *************************************************************/
21*38d50f7bSAndrew Rist 
22*38d50f7bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SC_FILLINFO_HXX
25cdf0e10cSrcweir #define SC_FILLINFO_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <svx/framelinkarray.hxx>
28cdf0e10cSrcweir #include "global.hxx"
29cdf0e10cSrcweir 
30cdf0e10cSrcweir class SfxItemSet;
31cdf0e10cSrcweir class SvxBrushItem;
32cdf0e10cSrcweir class SvxBoxItem;
33cdf0e10cSrcweir class SvxLineItem;
34cdf0e10cSrcweir class SvxShadowItem;
35cdf0e10cSrcweir 
36cdf0e10cSrcweir class ScBaseCell;
37cdf0e10cSrcweir class ScPatternAttr;
38cdf0e10cSrcweir 
39cdf0e10cSrcweir // ============================================================================
40cdf0e10cSrcweir 
41cdf0e10cSrcweir const sal_uInt8 SC_ROTDIR_NONE       = 0;
42cdf0e10cSrcweir const sal_uInt8 SC_ROTDIR_STANDARD   = 1;
43cdf0e10cSrcweir const sal_uInt8 SC_ROTDIR_LEFT       = 2;
44cdf0e10cSrcweir const sal_uInt8 SC_ROTDIR_RIGHT      = 3;
45cdf0e10cSrcweir const sal_uInt8 SC_ROTDIR_CENTER     = 4;
46cdf0e10cSrcweir 
47cdf0e10cSrcweir const sal_uInt8 SC_CLIPMARK_NONE     = 0;
48cdf0e10cSrcweir const sal_uInt8 SC_CLIPMARK_LEFT     = 1;
49cdf0e10cSrcweir const sal_uInt8 SC_CLIPMARK_RIGHT    = 2;
50cdf0e10cSrcweir const sal_uInt8 SC_CLIPMARK_SIZE     = 64;
51cdf0e10cSrcweir 
52cdf0e10cSrcweir enum ScShadowPart
53cdf0e10cSrcweir {
54cdf0e10cSrcweir 	SC_SHADOW_HSTART,
55cdf0e10cSrcweir 	SC_SHADOW_VSTART,
56cdf0e10cSrcweir 	SC_SHADOW_HORIZ,
57cdf0e10cSrcweir 	SC_SHADOW_VERT,
58cdf0e10cSrcweir 	SC_SHADOW_CORNER
59cdf0e10cSrcweir };
60cdf0e10cSrcweir 
61cdf0e10cSrcweir // ============================================================================
62cdf0e10cSrcweir 
63cdf0e10cSrcweir struct CellInfo
64cdf0e10cSrcweir {
65cdf0e10cSrcweir     ScBaseCell*                 pCell;
66cdf0e10cSrcweir 
67cdf0e10cSrcweir     const ScPatternAttr*        pPatternAttr;
68cdf0e10cSrcweir     const SfxItemSet*           pConditionSet;
69cdf0e10cSrcweir 
70cdf0e10cSrcweir     const SvxBrushItem*         pBackground;
71cdf0e10cSrcweir 
72cdf0e10cSrcweir     const SvxBoxItem*           pLinesAttr;         /// Original item from document.
73cdf0e10cSrcweir     const SvxLineItem*          mpTLBRLine;         /// Original item from document.
74cdf0e10cSrcweir     const SvxLineItem*          mpBLTRLine;         /// Original item from document.
75cdf0e10cSrcweir 
76cdf0e10cSrcweir     const SvxShadowItem*        pShadowAttr;            // Original-Item (intern)
77cdf0e10cSrcweir 
78cdf0e10cSrcweir     const SvxShadowItem*        pHShadowOrigin;
79cdf0e10cSrcweir     const SvxShadowItem*        pVShadowOrigin;
80cdf0e10cSrcweir 
81cdf0e10cSrcweir     ScShadowPart                eHShadowPart : 4;           // Schatten effektiv zum Zeichnen
82cdf0e10cSrcweir     ScShadowPart                eVShadowPart : 4;
83cdf0e10cSrcweir     sal_uInt8                        nClipMark;
84cdf0e10cSrcweir     sal_uInt16                      nWidth;
85cdf0e10cSrcweir     sal_uInt8                        nRotateDir;
86cdf0e10cSrcweir 
87cdf0e10cSrcweir     sal_Bool                        bMarked : 1;
88cdf0e10cSrcweir     sal_Bool                        bEmptyCellText : 1;
89cdf0e10cSrcweir 
90cdf0e10cSrcweir     sal_Bool                        bMerged : 1;
91cdf0e10cSrcweir     sal_Bool                        bHOverlapped : 1;
92cdf0e10cSrcweir     sal_Bool                        bVOverlapped : 1;
93cdf0e10cSrcweir     sal_Bool                        bAutoFilter : 1;
94cdf0e10cSrcweir     sal_Bool                        bPushButton : 1;
95cdf0e10cSrcweir     bool                        bPopupButton: 1;
96cdf0e10cSrcweir     bool                        bFilterActive:1;
97cdf0e10cSrcweir 
98cdf0e10cSrcweir     sal_Bool                        bPrinted : 1;               // bei Bedarf (Pagebreak-Modus)
99cdf0e10cSrcweir 
100cdf0e10cSrcweir     sal_Bool                        bHideGrid : 1;              // output-intern
101cdf0e10cSrcweir     sal_Bool                        bEditEngine : 1;            // output-intern
102cdf0e10cSrcweir };
103cdf0e10cSrcweir 
104cdf0e10cSrcweir const SCCOL SC_ROTMAX_NONE = SCCOL_MAX;
105cdf0e10cSrcweir 
106cdf0e10cSrcweir // ============================================================================
107cdf0e10cSrcweir 
108cdf0e10cSrcweir struct RowInfo
109cdf0e10cSrcweir {
110cdf0e10cSrcweir     CellInfo*           pCellInfo;
111cdf0e10cSrcweir 
112cdf0e10cSrcweir     sal_uInt16              nHeight;
113cdf0e10cSrcweir     SCROW               nRowNo;
114cdf0e10cSrcweir     SCCOL               nRotMaxCol;         // SC_ROTMAX_NONE, wenn nichts
115cdf0e10cSrcweir 
116cdf0e10cSrcweir     sal_Bool                bEmptyBack;
117cdf0e10cSrcweir     sal_Bool                bEmptyText;
118cdf0e10cSrcweir     sal_Bool                bAutoFilter;
119cdf0e10cSrcweir     sal_Bool                bPushButton;
120cdf0e10cSrcweir     sal_Bool                bChanged;           // sal_True, wenn nicht getestet
121cdf0e10cSrcweir 
RowInfoRowInfo122cdf0e10cSrcweir     inline explicit     RowInfo() : pCellInfo( 0 ) {}
123cdf0e10cSrcweir 
124cdf0e10cSrcweir private:
125cdf0e10cSrcweir                     RowInfo( const RowInfo& );
126cdf0e10cSrcweir     RowInfo&        operator=( const RowInfo& );
127cdf0e10cSrcweir };
128cdf0e10cSrcweir 
129cdf0e10cSrcweir // ============================================================================
130cdf0e10cSrcweir 
131cdf0e10cSrcweir struct ScTableInfo
132cdf0e10cSrcweir {
133cdf0e10cSrcweir     svx::frame::Array   maArray;
134cdf0e10cSrcweir     RowInfo*            mpRowInfo;
135cdf0e10cSrcweir     sal_uInt16              mnArrCount;
136cdf0e10cSrcweir     bool                mbPageMode;
137cdf0e10cSrcweir 
138cdf0e10cSrcweir     explicit            ScTableInfo();
139cdf0e10cSrcweir                         ~ScTableInfo();
140cdf0e10cSrcweir 
141cdf0e10cSrcweir private:
142cdf0e10cSrcweir                         ScTableInfo( const ScTableInfo& );
143cdf0e10cSrcweir     ScTableInfo&        operator=( const ScTableInfo& );
144cdf0e10cSrcweir };
145cdf0e10cSrcweir 
146cdf0e10cSrcweir // ============================================================================
147cdf0e10cSrcweir 
148cdf0e10cSrcweir #endif
149cdf0e10cSrcweir 
150