xref: /AOO41X/main/cui/source/inc/headertablistbox.hxx (revision ffad8df045fe8db79e3e50f731c1fa6ab6501c83)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _HEADERTABLISTBOX_HXX
25 #define _HEADERTABLISTBOX_HXX
26 
27 #include <svtools/headbar.hxx>
28 #include <svtools/svtabbx.hxx>
29 
30 
31 class _HeaderTabListBox : public Control
32 {
33 private:
34     HeaderBar                   maHeaderBar;
35     SvHeaderTabListBox          maListBox;
36 protected:
37     DECL_LINK( HeaderEndDrag_Impl, HeaderBar* );
38     virtual long                Notify( NotifyEvent& rNEvt );
39 public:
40                                 _HeaderTabListBox( Window* pParent, const ResId& rId );
41     virtual                     ~_HeaderTabListBox();
42 
43     inline SvHeaderTabListBox&  GetListBox( void );
44     inline HeaderBar&           GetHeaderBar( void );
45 
46     void                        ConnectElements( void );
47                                     // should be called after all manipulations on elements are done
48                                     // calcs real sizes depending on sizes of this
49     void                        Show( sal_Bool bVisible = sal_True, sal_uInt16 nFlags = 0 );    // same meaning as Windows::Show()
50     void                        Enable( bool bEnable = true, bool bChild = true );  // same meaning as Windows::Enable()
51 };
52 
GetListBox(void)53 inline SvHeaderTabListBox& _HeaderTabListBox::GetListBox( void )
54 {
55     return maListBox;
56 }
57 
GetHeaderBar(void)58 inline HeaderBar& _HeaderTabListBox::GetHeaderBar( void )
59 {
60     return maHeaderBar;
61 }
62 
63 
64 #endif
65