LibreOffice Module vcl (master) 1
Classes | Namespaces | Macros | Enumerations
lstbox.hxx File Reference
#include <config_options.h>
#include <sal/types.h>
#include <o3tl/typed_flags_set.hxx>
#include <vcl/dllapi.h>
#include <vcl/ctrl.hxx>
Include dependency graph for lstbox.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< ListBoxEntryFlags >
 
class  ListBox
 A widget used to choose from a list of items and which has no entry. More...
 

Namespaces

namespace  o3tl
 

Macros

#define LISTBOX_APPEND   (SAL_MAX_INT32)
 
#define LISTBOX_ENTRY_NOTFOUND   (SAL_MAX_INT32)
 
#define LISTBOX_MAX_ENTRIES   (SAL_MAX_INT32 - 1)
 

Enumerations

enum class  ListBoxEntryFlags {
  NONE = 0x0000 ,
  DisableSelection = 0x0001 ,
  MultiLine = 0x0002 ,
  DrawDisabled = 0x0004
}
 

Macro Definition Documentation

◆ LISTBOX_APPEND

#define LISTBOX_APPEND   (SAL_MAX_INT32)

Definition at line 36 of file lstbox.hxx.

◆ LISTBOX_ENTRY_NOTFOUND

#define LISTBOX_ENTRY_NOTFOUND   (SAL_MAX_INT32)

Definition at line 37 of file lstbox.hxx.

◆ LISTBOX_MAX_ENTRIES

#define LISTBOX_MAX_ENTRIES   (SAL_MAX_INT32 - 1)

Definition at line 38 of file lstbox.hxx.

Enumeration Type Documentation

◆ ListBoxEntryFlags

enum class ListBoxEntryFlags
strong
Enumerator
NONE 
DisableSelection 

this flag disables a selection of an entry completely.

It is not possible to select such entries either from the user interface nor from the ListBox methods. Cursor traveling is handled correctly. This flag can be used to add titles to a ListBox.

MultiLine 

this flag can be used to make an entry multiline capable A normal entry is single line and will therefore be clipped at the right listbox border.

Setting this flag enables word breaks for the entry text.

DrawDisabled 

this flags lets the item be drawn disabled (e.g.

in grey text) usage only guaranteed with ListBoxEntryFlags::DisableSelection

Definition at line 47 of file lstbox.hxx.