Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / tabcol.hxx
blobc49d50331d135a5fe4acdd48a7c1e9c114670354
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tabcol.hxx,v $
10 * $Revision: 1.7 $
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 ************************************************************************/
30 #ifndef _TABCOL_HXX
31 #define _TABCOL_HXX
33 #ifndef _SVSTDARR_HXX
34 #define _SVSTDARR_LONGS
35 #define _SVSTDARR_BOOLS
36 #include <bf_svtools/svstdarr.hxx>
37 #endif
38 namespace binfilter {
40 class SwTabCols : public SvLongs
42 long nLeftMin, //Linker aeusserer Rand (Bezugspunkt) in
43 //Dokumentkordinaten.
44 //Alle anderen Werte relativ zu diesem Punkt!
45 nLeft, //Linker Rand der Tabelle.
46 nRight, //Rechter Rand der Tabelle.
47 nRightMax; //Maximaler rechter Rand der Tabelle.
51 SvBools aHidden; //Fuer jeden Eintrag ein Flag, Hidden oder nicht.
52 //Wenn das Flag Hidden TRUE ist liegt der Spalten-
53 //trenner nicht in der aktuellen Zeile; er muss
54 //mit gepflegt werden, darf aber nicht angezeigt
55 //werden.
57 public:
58 SwTabCols( USHORT nSize = 0 ){DBG_BF_ASSERT(0, "STRIP");} ;//STRIP001 SwTabCols( USHORT nSize = 0 );
59 SwTabCols( const SwTabCols& ){DBG_BF_ASSERT(0, "STRIP");} ;//STRIP001 SwTabCols( const SwTabCols& );
61 BOOL IsHidden( USHORT nPos ) const { return aHidden[nPos]; }
62 void SetHidden( USHORT nPos, BOOL bValue ) { aHidden[nPos] = bValue; }
63 inline void InsertHidden( USHORT nPos, BOOL bValue );
64 inline void DeleteHidden( USHORT nPos, USHORT nAnz = 1 );
66 //fuer den CopyCTor
67 const SvBools& GetHidden() const { return aHidden; }
69 long GetLeftMin() const { return nLeftMin; }
70 long GetLeft() const { return nLeft; }
71 long GetRight() const { return nRight; }
72 long GetRightMax()const { return nRightMax;}
74 void SetLeftMin ( long nNew ) { nLeftMin = nNew; }
75 void SetLeft ( long nNew ) { nLeft = nNew; }
76 void SetRight ( long nNew ) { nRight = nNew; }
77 void SetRightMax( long nNew ) { nRightMax = nNew;}
80 inline void SwTabCols::InsertHidden( USHORT nPos, BOOL bValue )
82 aHidden.Insert( bValue, nPos );
84 inline void SwTabCols::DeleteHidden( USHORT nPos, USHORT nAnz )
86 aHidden.Remove( nPos, nAnz );
89 } //namespace binfilter
90 #endif //_TABCOL_HXX