xref: /aoo4110/main/vcl/inc/vcl/lstbox.h (revision b1cdbd2c)
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 _SV_LSTBOX_H
25 #define _SV_LSTBOX_H
26 
27 #define LISTBOX_APPEND			  	((sal_uInt16)0xFFFF)
28 #define LISTBOX_ENTRY_NOTFOUND	  	((sal_uInt16)0xFFFF)
29 #define LISTBOX_ERROR			  	((sal_uInt16)0xFFFF)
30 
31 #define LISTBOX_USERDRAW_SELECTED	((sal_uInt16)0x0001)
32 
33 // --------------------------------------------------------------------
34 
35 // the following defines can be used for the SetEntryFlags()
36 // and GetEntryFlags() methods
37 
38 // !! Do not use these flags for user data as they are reserved      !!
39 // !! to change the internal behaviour of the ListBox implementation !!
40 // !! for specific entries.											 !!
41 
42 /** this flag disables a selection of an entry completly. It is not
43 	possible to select such entries either from the user interface
44 	nor from the ListBox methods. Cursor traveling is handled correctly.
45 	This flag can be used to add titles to a ListBox.
46 */
47 #define LISTBOX_ENTRY_FLAG_DISABLE_SELECTION		0x0000001
48 
49 /** this flag can be used to make an entry multine capable
50     A normal entry is single line and will therefore be clipped
51     at the right listbox border. Setting this flag enables
52     word breaks for the entry text.
53 */
54 #define LISTBOX_ENTRY_FLAG_MULTILINE                0x0000002
55 
56 /** this flags lets the item be drawn disabled (e.g. in grey text)
57     usage only guaranteed with LISTBOX_ENTRY_FLAG_DISABLE_SELECTION
58 */
59 #define LISTBOX_ENTRY_FLAG_DRAW_DISABLED            0x0000004
60 
61 #endif	// _SV_LSTBOX_H
62