merge the formfield patch from ooo-build
[ooovba.git] / sc / source / filter / inc / otlnbuff.hxx
blobeed7fe676d369cf73de980bf714d96f234d4fe85
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: otlnbuff.hxx,v $
10 * $Revision: 1.5.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_OTLNBUFF_HXX
32 #define SC_OTLNBUFF_HXX
34 #include <tools/solar.h>
36 class ScOutlineArray;
38 class XclImpOutlineBuffer
40 // -> exctools.cxx
41 private:
42 BYTE* pLevel;
43 BOOL* pOuted;
44 BOOL* pHidden;
45 SCSIZE nSize;
46 SCSIZE nLast;
47 BYTE nMaxLevel;
48 ScOutlineArray* pOutlineArray;
49 BOOL bButtonNormal; // TRUE -> right / under
50 public:
51 XclImpOutlineBuffer( SCSIZE nNewSize );
52 ~XclImpOutlineBuffer();
53 void SetLevel( SCSIZE nIndex, BYTE nVal, BOOL bOuted, BOOL bHidden );
54 void SetOutlineArray( ScOutlineArray* pOArray );
55 void Reset( void );
56 void MakeScOutline( void );
57 void SetLevelRange( SCSIZE nF, SCSIZE nL, BYTE nVal,
58 BOOL bOuted, BOOL bHidden );
60 inline BOOL HasOutline( void ) const;
62 inline void SetButtonMode( const BOOL bRightOrUnder );
68 inline BOOL XclImpOutlineBuffer::HasOutline( void ) const
70 return nMaxLevel > 0;
74 inline void XclImpOutlineBuffer::SetButtonMode( const BOOL b )
76 bButtonNormal = b;
80 #endif