Update ooo320-m1
[ooovba.git] / svx / source / cui / headertablistbox.hxx
blob7c5500fd95c1244c66ab8089ea9ca415ad29f9c2
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: headertablistbox.hxx,v $
10 * $Revision: 1.5 $
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 _HEADERTABLISTBOX_HXX
32 #define _HEADERTABLISTBOX_HXX
34 #include <svtools/headbar.hxx>
35 #include <svtools/svtabbx.hxx>
38 class _HeaderTabListBox : public Control
40 private:
41 SvHeaderTabListBox maListBox;
42 HeaderBar maHeaderBar;
43 protected:
44 DECL_LINK( HeaderEndDrag_Impl, HeaderBar* );
45 virtual long Notify( NotifyEvent& rNEvt );
46 public:
47 _HeaderTabListBox( Window* pParent, const ResId& rId );
48 virtual ~_HeaderTabListBox();
50 inline SvHeaderTabListBox& GetListBox( void );
51 inline HeaderBar& GetHeaderBar( void );
53 void ConnectElements( void );
54 // should be called after all manipulations on elements are done
55 // calcs real sizes depending on sizes of this
56 void Show( BOOL bVisible = TRUE, USHORT nFlags = 0 ); // same meaning as Windows::Show()
57 void Enable( bool bEnable = true, bool bChild = true ); // same meaning as Windows::Enable()
60 inline SvHeaderTabListBox& _HeaderTabListBox::GetListBox( void )
62 return maListBox;
65 inline HeaderBar& _HeaderTabListBox::GetHeaderBar( void )
67 return maHeaderBar;
71 #endif