xref: /AOO41X/main/vcl/inc/vcl/lstbox.h (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _SV_LSTBOX_H
29 #define _SV_LSTBOX_H
30 
31 #define LISTBOX_APPEND			  	((sal_uInt16)0xFFFF)
32 #define LISTBOX_ENTRY_NOTFOUND	  	((sal_uInt16)0xFFFF)
33 #define LISTBOX_ERROR			  	((sal_uInt16)0xFFFF)
34 
35 #define LISTBOX_USERDRAW_SELECTED	((sal_uInt16)0x0001)
36 
37 // --------------------------------------------------------------------
38 
39 // the following defines can be used for the SetEntryFlags()
40 // and GetEntryFlags() methods
41 
42 // !! Do not use these flags for user data as they are reserved      !!
43 // !! to change the internal behaviour of the ListBox implementation !!
44 // !! for specific entries.											 !!
45 
46 /** this flag disables a selection of an entry completly. It is not
47 	possible to select such entries either from the user interface
48 	nor from the ListBox methods. Cursor traveling is handled correctly.
49 	This flag can be used to add titles to a ListBox.
50 */
51 #define LISTBOX_ENTRY_FLAG_DISABLE_SELECTION		0x0000001
52 
53 /** this flag can be used to make an entry multine capable
54     A normal entry is single line and will therefore be clipped
55     at the right listbox border. Setting this flag enables
56     word breaks for the entry text.
57 */
58 #define LISTBOX_ENTRY_FLAG_MULTILINE                0x0000002
59 
60 /** this flags lets the item be drawn disabled (e.g. in grey text)
61     usage only guaranteed with LISTBOX_ENTRY_FLAG_DISABLE_SELECTION
62 */
63 #define LISTBOX_ENTRY_FLAG_DRAW_DISABLED            0x0000004
64 
65 #endif	// _SV_LSTBOX_H
66