Update ooo320-m1
[ooovba.git] / sc / source / filter / inc / colrowst.hxx
blob19b696ec3a074f1b0ee1f891a980f1df3d335ebb
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: colrowst.hxx,v $
10 * $Revision: 1.23.32.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_COLROWST_HXX
32 #define SC_COLROWST_HXX
34 #include "xiroot.hxx"
36 class XclImpStream;
38 // ============================================================================
40 class XclImpColRowSettings : protected XclImpRoot
42 public:
43 explicit XclImpColRowSettings( const XclImpRoot& rRoot );
44 virtual ~XclImpColRowSettings();
46 void SetDefWidth( sal_uInt16 nDefWidth, bool bStdWidthRec = false );
47 void SetWidthRange( SCCOL nCol1, SCCOL nCol2, sal_uInt16 nWidth );
48 void HideCol( SCCOL nCol );
49 void HideColRange( SCCOL nCol1, SCCOL nCol2 );
51 void SetDefHeight( sal_uInt16 nDefHeight, sal_uInt16 nFlags );
52 void SetHeight( SCROW nRow, sal_uInt16 nHeight );
53 void SetRowSettings( SCROW nRow, sal_uInt16 nHeight, sal_uInt16 nFlags );
54 void SetManualRowHeight( SCROW nScRow );
56 void SetDefaultXF( SCCOL nScCol1, SCCOL nScCol2, sal_uInt16 nXFIndex );
57 /** Inserts all column and row settings of the specified sheet, except the hidden flags. */
58 void Convert( SCTAB nScTab );
59 /** Sets the HIDDEN flags at all hidden columns and rows in the specified sheet. */
60 void ConvertHiddenFlags( SCTAB nScTab );
62 private:
63 ScfUInt16Vec maWidths; /// Column widths in twips.
64 ScfUInt8Vec maColFlags; /// Flags for all columns.
65 ScfUInt16Vec maHeights; /// Row heights in twips.
66 ScfUInt8Vec maRowFlags; /// Flags for all rows.
68 SCROW mnLastScRow;
70 sal_uInt16 mnDefWidth; /// Default width from DEFCOLWIDTH or STANDARDWIDTH record.
71 sal_uInt16 mnDefHeight; /// Default height from DEFAULTROWHEIGHT record.
72 sal_uInt16 mnDefRowFlags; /// Default row flags from DEFAULTROWHEIGHT record.
74 bool mbHasStdWidthRec; /// true = Width from STANDARDWIDTH (overrides DEFCOLWIDTH record).
75 bool mbHasDefHeight; /// true = mnDefHeight and mnDefRowFlags are valid.
76 bool mbDirty;
82 #endif