xref: /trunk/main/sc/source/ui/inc/shtabdlg.hxx (revision 38d50f7b)
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 SC_SHTABDLG_HXX
25 #define SC_SHTABDLG_HXX
26 
27 #ifndef _FIXED_HXX //autogen
28 #include <vcl/fixed.hxx>
29 #endif
30 #ifndef _BUTTON_HXX //autogen
31 #include <vcl/button.hxx>
32 #endif
33 #include <svtools/tooltiplbox.hxx>
34 #ifndef _DIALOG_HXX //autogen
35 #include <vcl/dialog.hxx>
36 #endif
37 
38 //------------------------------------------------------------------------
39 
40 class ScShowTabDlg : public ModalDialog
41 {
42 private:
43 	FixedText                       aFtLbTitle;
44     ::svtools::ToolTipMultiListBox  aLb;
45     OKButton                        aBtnOk;
46     CancelButton                    aBtnCancel;
47     HelpButton                      aBtnHelp;
48 
49 	DECL_LINK( DblClkHdl, void * );
50 
51 public:
52             ScShowTabDlg( Window* pParent );
53 			~ScShowTabDlg();
54 
55     /** Sets dialog title, fixed text for listbox and help IDs. */
56     void    SetDescription(
57                 const String& rTitle, const String& rFixedText,
58                 const ::rtl::OString& nDlgHelpId, const rtl::OString& nLbHelpId );
59 
60     /** Inserts a string into the ListBox. */
61     void    Insert( const String& rString, sal_Bool bSelected );
62 
63 	sal_uInt16	GetSelectEntryCount() const;
64 	String	GetSelectEntry(sal_uInt16 nPos) const;
65     sal_uInt16  GetSelectEntryPos(sal_uInt16 nPos) const;
66 };
67 
68 
69 #endif
70 
71 
72