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