LibreOffice Module vcl (master)  1
Classes | Namespaces | Macros | Enumerations
lstbox.hxx File Reference
#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...
 
class  MultiListBox
 

Namespaces

 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  ListBoxEntryFlags {
  ListBoxEntryFlags::NONE = 0x0000,
  ListBoxEntryFlags::DisableSelection = 0x0001,
  ListBoxEntryFlags::MultiLine = 0x0002,
  ListBoxEntryFlags::DrawDisabled = 0x0004
}
 

Macro Definition Documentation

#define LISTBOX_APPEND   (SAL_MAX_INT32)

Definition at line 32 of file lstbox.hxx.

#define LISTBOX_ENTRY_NOTFOUND   (SAL_MAX_INT32)

Definition at line 33 of file lstbox.hxx.

Referenced by ListBox::Clear(), ImplListBoxWindow::Clear(), ImplListBox::Clear(), ImplListBoxWindow::CurrentEntry(), SalInstanceComboBox< ComboBox >::find_text(), ImplEntryList::FindEntry(), ImplEntryList::FindFirstSelectable(), ImplEntryList::FindMatchingEntry(), SalInstanceComboBox< ComboBox >::get_active(), SalInstanceComboBox< ComboBox >::get_active_id(), ImplEntryList::GetAddedHeight(), ComboBox::GetEntryPos(), ListBox::GetEntryPos(), ImplListBoxWindow::GetEntryPosForPoint(), ImplListBoxWindow::GetFocus(), ComboBox::GetIndexForPoint(), ListBox::GetIndexForPoint(), ImplEntryList::GetSelectedEntryPos(), ComboBox::GetSelectedEntryPos(), ListBox::GetSelectedEntryPos(), ImplListBoxWindow::GetSeparatorPos(), ComboBox::GetTopEntry(), ListBox::GetTopEntry(), IMPL_LINK(), IMPL_LINK_NOARG(), ImplListBoxWindow::ImplCalcMetrics(), ImplListBox::ImplCheckScrollBars(), ImplEntryList::ImplEntryList(), ListBox::ImplInitListBoxData(), ImplListBoxFloatingWindow::ImplListBoxFloatingWindow(), ImplListBoxWindow::ImplListBoxWindow(), ComboBox::Impl::ImplUpdateFloatSelection(), ImplWin::ImplWin(), lcl_GetSelectedEntries(), ImplListBoxWindow::MouseButtonDown(), ImplListBoxWindow::MouseMove(), vcl::PrintDialog::PrintDialog(), ImplListBoxWindow::ProcessKeyInput(), ImplListBoxWindow::RemoveEntry(), ImplListBoxWindow::ResetCurrentPos(), ImplListBoxWindow::Resize(), ImplListBoxWindow::SelectEntries(), ImplListBoxWindow::SelectEntry(), ImplListBox::SetMRUEntries(), ListBox::SetNoSelection(), ImplListBoxWindow::SetSeparatorPos(), ImplListBoxFloatingWindow::StartFloat(), and ImplListBoxWindow::Tracking().

#define LISTBOX_MAX_ENTRIES   (SAL_MAX_INT32 - 1)

Definition at line 34 of file lstbox.hxx.

Referenced by ImplEntryList::InsertEntry(), and ImplListBoxWindow::InsertEntry().

Enumeration Type Documentation

enum 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 43 of file lstbox.hxx.