#include <ilstbox.hxx>

Public Member Functions | |
| ImplEntryList (Window *pWindow) | |
| ~ImplEntryList () | |
| USHORT | InsertEntry (USHORT nPos, ImplEntryType *pNewEntry, BOOL bSort) |
| void | RemoveEntry (USHORT nPos) |
| const ImplEntryType * | GetEntryPtr (USHORT nPos) const |
| ImplEntryType * | GetMutableEntryPtr (USHORT nPos) const |
| void | Clear () |
| USHORT | FindMatchingEntry (const XubString &rStr, USHORT nStart=0, BOOL bForward=TRUE, BOOL bLazy=TRUE) const |
| USHORT | FindEntry (const XubString &rStr, BOOL bSearchMRUArea=FALSE) const |
| USHORT | FindEntry (const void *pData) const |
| long | GetAddedHeight (USHORT nEndIndex, USHORT nBeginIndex=0, long nBeginHeight=0) const |
| long | GetEntryHeight (USHORT nPos) const |
| USHORT | GetEntryCount () const |
| BOOL | HasImages () const |
| XubString | GetEntryText (USHORT nPos) const |
| BOOL | HasEntryImage (USHORT nPos) const |
| Image | GetEntryImage (USHORT nPos) const |
| void | SetEntryData (USHORT nPos, void *pNewData) |
| void * | GetEntryData (USHORT nPos) const |
| void | SetEntryFlags (USHORT nPos, long nFlags) |
| long | GetEntryFlags (USHORT nPos) const |
| void | SelectEntry (USHORT nPos, BOOL bSelect) |
| USHORT | GetSelectEntryCount () const |
| XubString | GetSelectEntry (USHORT nIndex) const |
| USHORT | GetSelectEntryPos (USHORT nIndex) const |
| BOOL | IsEntrySelected (const XubString &rStr) const |
| BOOL | IsEntryPosSelected (USHORT nIndex) const |
| void | SetLastSelected (USHORT nPos) |
| USHORT | GetLastSelected () const |
| void | SetSelectionAnchor (USHORT nPos) |
| USHORT | GetSelectionAnchor () const |
| void | SetSelectionChangedHdl (const Link &rLnk) |
| void | SetCallSelectionChangedHdl (BOOL bCall) |
| void | SetMRUCount (USHORT n) |
| USHORT | GetMRUCount () const |
| void | SetMaxMRUCount (USHORT n) |
| USHORT | GetMaxMRUCount () const |
| bool | IsEntrySelectable (USHORT nPos) const |
| An Entry is selectable if its mnFlags does not have the LISTBOX_ENTRY_FLAG_DISABLE_SELECTION flag set. | |
| USHORT | FindFirstSelectable (USHORT nPos, bool bForward=true) |
| returns the first entry found from the given position nPos that is selectable or LISTBOX_ENTRY_NOTFOUND if non is found. | |
Private Member Functions | |
| ImplEntryType * | GetEntry (USHORT nPos) const |
Private Attributes | |
| Window * | mpWindow |
| USHORT | mnLastSelected |
| USHORT | mnSelectionAnchor |
| USHORT | mnImages |
| USHORT | mnMRUCount |
| USHORT | mnMaxMRUCount |
| Link | maSelectionChangedHdl |
| BOOL | mbCallSelectionChangedHdl |
Definition at line 105 of file ilstbox.hxx.
| ImplEntryList::ImplEntryList | ( | Window * | pWindow | ) |
Definition at line 105 of file ilstbox.cxx.
References LISTBOX_ENTRY_NOTFOUND, mbCallSelectionChangedHdl, mnImages, mnLastSelected, mnMaxMRUCount, mnMRUCount, mnSelectionAnchor, and mpWindow.
| ImplEntryList::~ImplEntryList | ( | ) |
| ImplEntryType* ImplEntryList::GetEntry | ( | USHORT | nPos | ) | const [inline, private] |
Definition at line 119 of file ilstbox.hxx.
Referenced by Clear(), FindEntry(), FindMatchingEntry(), GetEntryHeight(), GetEntryText(), GetSelectEntryCount(), GetSelectEntryPos(), InsertEntry(), IsEntryPosSelected(), IsEntrySelectable(), and SelectEntry().
| USHORT ImplEntryList::InsertEntry | ( | USHORT | nPos, | |
| ImplEntryType * | pNewEntry, | |||
| BOOL | bSort | |||
| ) |
Definition at line 165 of file ilstbox.cxx.
References GetEntry(), AllSettings::GetLocale(), Application::GetSettings(), ImplGetCollator(), ImplEntryType::maImage, ImplEntryType::maStr, mnImages, and mnMRUCount.
Referenced by ImplListBoxWindow::ImplCallSelect(), ImplListBoxWindow::InsertEntry(), and ImplListBox::SetMRUEntries().
| void ImplEntryList::RemoveEntry | ( | USHORT | nPos | ) |
Definition at line 255 of file ilstbox.cxx.
References ImplEntryType::maImage, and mnImages.
Referenced by ImplListBoxWindow::RemoveEntry().
| const ImplEntryType* ImplEntryList::GetEntryPtr | ( | USHORT | nPos | ) | const [inline] |
Definition at line 127 of file ilstbox.hxx.
Referenced by ImplListBoxWindow::DrawEntry(), GetAddedHeight(), ImplListBoxWindow::GetBoundingRectangle(), ImplListBoxWindow::GetEntryPosForPoint(), ImplListBoxWindow::ImplCalcMetrics(), ImplListBoxWindow::ImplDoPaint(), ImplListBoxWindow::ImplPaint(), and ImplListBoxWindow::SetTopEntry().
| ImplEntryType* ImplEntryList::GetMutableEntryPtr | ( | USHORT | nPos | ) | const [inline] |
Definition at line 128 of file ilstbox.hxx.
Referenced by ImplListBoxWindow::ImplCalcMetrics(), and ImplListBoxWindow::SetEntryFlags().
| void ImplEntryList::Clear | ( | ) |
Definition at line 126 of file ilstbox.cxx.
References GetEntry(), GetEntryCount(), and mnImages.
Referenced by ImplListBoxWindow::Clear(), and ~ImplEntryList().
| USHORT ImplEntryList::FindMatchingEntry | ( | const XubString & | rStr, | |
| USHORT | nStart = 0, |
|||
| BOOL | bForward = TRUE, |
|||
| BOOL | bLazy = TRUE | |||
| ) | const |
Definition at line 284 of file ilstbox.cxx.
References GetEntry(), GetEntryCount(), AllSettings::GetLocaleI18nHelper(), OutputDevice::GetSettings(), LISTBOX_ENTRY_NOTFOUND, ImplEntryType::maStr, vcl::I18nHelper::MatchString(), and mpWindow.
Referenced by IMPL_LINK(), ComboBox::ImplUpdateFloatSelection(), and ImplListBoxWindow::ProcessKeyInput().
| USHORT ImplEntryList::FindEntry | ( | const XubString & | rStr, | |
| BOOL | bSearchMRUArea = FALSE | |||
| ) | const |
Definition at line 269 of file ilstbox.cxx.
References vcl::I18nHelper::filterFormattingChars(), GetEntry(), GetEntryCount(), GetMRUCount(), LISTBOX_ENTRY_NOTFOUND, and ImplEntryType::maStr.
Referenced by ListBox::GetEntryPos(), ComboBox::GetEntryPos(), ListBox::GetSelectEntryPos(), ComboBox::GetSelectEntryPos(), IMPL_LINK(), ImplListBoxWindow::ImplCallSelect(), ImplListBoxWindow::ImplPaint(), ComboBox::ImplUpdateFloatSelection(), IsEntrySelected(), and lcl_GetSelectedEntries().
| USHORT ImplEntryList::FindEntry | ( | const void * | pData | ) | const |
Definition at line 314 of file ilstbox.cxx.
References GetEntry(), GetEntryCount(), LISTBOX_ENTRY_NOTFOUND, and ImplEntryType::mpUserData.
| long ImplEntryList::GetAddedHeight | ( | USHORT | nEndIndex, | |
| USHORT | nBeginIndex = 0, |
|||
| long | nBeginHeight = 0 | |||
| ) | const |
Definition at line 331 of file ilstbox.cxx.
References GetEntryCount(), GetEntryPtr(), and LISTBOX_ENTRY_NOTFOUND.
Referenced by ImplListBoxWindow::DrawEntry(), ImplListBoxWindow::GetBoundingRectangle(), ImplListBoxWindow::GetFocus(), ImplListBoxWindow::GetLastVisibleEntry(), ImplListBoxWindow::ImplDoPaint(), ImplListBoxWindow::ImplPaint(), ImplListBoxWindow::IsVisible(), ImplListBoxWindow::SelectEntries(), ImplListBoxWindow::SetTopEntry(), and ImplListBoxWindow::Tracking().
| long ImplEntryList::GetEntryHeight | ( | USHORT | nPos | ) | const |
Definition at line 359 of file ilstbox.cxx.
References GetEntry(), and ImplEntryType::mnHeight.
Referenced by ImplListBoxWindow::GetFocus(), ImplListBoxWindow::ImplDoPaint(), ImplListBoxWindow::Resize(), ImplListBoxWindow::SelectEntries(), and ImplListBoxWindow::Tracking().
| USHORT ImplEntryList::GetEntryCount | ( | ) | const [inline] |
Definition at line 142 of file ilstbox.hxx.
Referenced by ImplListBoxFloatingWindow::CalcFloatSize(), ListBox::CalcMinimumSize(), ComboBox::CalcMinimumSize(), Clear(), FindEntry(), FindFirstSelectable(), FindMatchingEntry(), GetAddedHeight(), ImplListBoxWindow::GetDisplayLineCount(), ListBox::GetEntryCount(), ComboBox::GetEntryCount(), ImplListBoxWindow::GetLastVisibleEntry(), GetSelectEntryCount(), GetSelectEntryPos(), IMPL_LINK(), ImplListBoxWindow::ImplCalcMetrics(), ImplListBox::ImplCheckScrollBars(), ImplListBoxWindow::ImplDoPaint(), ImplListBox::ImplInitScrollBars(), ComboBox::ImplUpdateFloatSelection(), ImplListBoxWindow::MouseMove(), ImplListBoxWindow::ProcessKeyInput(), ImplListBoxWindow::RemoveEntry(), ImplListBoxWindow::SelectEntries(), ImplListBoxWindow::SetTopEntry(), and ImplListBoxWindow::Tracking().
| BOOL ImplEntryList::HasImages | ( | ) | const [inline] |
Definition at line 143 of file ilstbox.hxx.
References mnImages.
Referenced by ImplListBoxWindow::DrawEntry(), IMPL_LINK(), and ImplListBoxWindow::ImplGetTextStyle().
| XubString ImplEntryList::GetEntryText | ( | USHORT | nPos | ) | const |
Definition at line 367 of file ilstbox.cxx.
References GetEntry(), and ImplEntryType::maStr.
Referenced by ListBox::Draw(), ComboBox::Draw(), ImplListBoxWindow::DrawEntry(), ListBox::GetEntry(), ComboBox::GetEntry(), ImplListBox::GetMRUEntries(), GetSelectEntry(), ListBox::GetSelectEntryPos(), ComboBox::GetSelectEntryPos(), IMPL_LINK(), ImplListBoxWindow::ImplCallSelect(), and ComboBox::ImplUpdateFloatSelection().
| BOOL ImplEntryList::HasEntryImage | ( | USHORT | nPos | ) | const |
Definition at line 378 of file ilstbox.cxx.
References ImplEntryType::maImage.
Referenced by ImplListBoxWindow::DrawEntry().
| Image ImplEntryList::GetEntryImage | ( | USHORT | nPos | ) | const |
Definition at line 389 of file ilstbox.cxx.
References ImplEntryType::maImage.
Referenced by ImplListBoxWindow::DrawEntry(), and IMPL_LINK().
| void ImplEntryList::SetEntryData | ( | USHORT | nPos, | |
| void * | pNewData | |||
| ) |
Definition at line 400 of file ilstbox.cxx.
References ImplEntryType::mpUserData.
Referenced by ImplListBox::SetEntryData().
| void * ImplEntryList::GetEntryData | ( | USHORT | nPos | ) | const |
Definition at line 409 of file ilstbox.cxx.
References ImplEntryType::mpUserData.
Referenced by ListBox::GetEntryData(), and ComboBox::GetEntryData().
| void ImplEntryList::SetEntryFlags | ( | USHORT | nPos, | |
| long | nFlags | |||
| ) |
Definition at line 417 of file ilstbox.cxx.
References ImplEntryType::mnFlags.
Referenced by ImplListBoxWindow::SetEntryFlags().
| long ImplEntryList::GetEntryFlags | ( | USHORT | nPos | ) | const |
Definition at line 426 of file ilstbox.cxx.
References ImplEntryType::mnFlags.
Referenced by ListBox::GetEntryFlags(), and ImplListBox::GetEntryFlags().
| void ImplEntryList::SelectEntry | ( | USHORT | nPos, | |
| BOOL | bSelect | |||
| ) |
Definition at line 139 of file ilstbox.cxx.
References GetEntry(), LISTBOX_ENTRY_FLAG_DISABLE_SELECTION, maSelectionChangedHdl, mbCallSelectionChangedHdl, ImplEntryType::mbIsSelected, and ImplEntryType::mnFlags.
Referenced by ImplListBoxWindow::SelectEntry().
| USHORT ImplEntryList::GetSelectEntryCount | ( | ) | const |
Definition at line 434 of file ilstbox.cxx.
References GetEntry(), GetEntryCount(), and ImplEntryType::mbIsSelected.
Referenced by ListBox::GetSelectEntryCount(), ComboBox::GetSelectEntryCount(), IMPL_LINK(), ImplListBoxWindow::MouseButtonDown(), ImplListBoxWindow::MouseMove(), and ImplListBoxWindow::SelectEntries().
| XubString ImplEntryList::GetSelectEntry | ( | USHORT | nIndex | ) | const |
Definition at line 448 of file ilstbox.cxx.
References GetEntryText(), and GetSelectEntryPos().
Referenced by IMPL_LINK().
| USHORT ImplEntryList::GetSelectEntryPos | ( | USHORT | nIndex | ) | const |
Definition at line 455 of file ilstbox.cxx.
References GetEntry(), GetEntryCount(), LISTBOX_ENTRY_NOTFOUND, and ImplEntryType::mbIsSelected.
Referenced by ImplListBoxWindow::DeselectAll(), GetSelectEntry(), ListBox::GetSelectEntryPos(), ComboBox::GetSelectEntryPos(), IMPL_LINK(), ImplListBoxWindow::ImplCallSelect(), ComboBox::ImplUpdateFloatSelection(), ImplListBoxWindow::MouseButtonDown(), ImplListBoxWindow::MouseMove(), ImplListBoxWindow::SelectEntries(), ImplListBoxWindow::SelectEntry(), and ImplListBoxFloatingWindow::StartFloat().
| BOOL ImplEntryList::IsEntrySelected | ( | const XubString & | rStr | ) | const |
| BOOL ImplEntryList::IsEntryPosSelected | ( | USHORT | nIndex | ) | const |
Definition at line 487 of file ilstbox.cxx.
References GetEntry(), and ImplEntryType::mbIsSelected.
Referenced by ListBox::Draw(), IMPL_LINK(), ImplListBoxWindow::ImplPaint(), ListBox::IsEntryPosSelected(), ComboBox::IsEntryPosSelected(), IsEntrySelected(), ImplListBoxWindow::ProcessKeyInput(), ImplListBoxWindow::SelectEntries(), ImplListBoxWindow::SelectEntry(), and ImplListBoxWindow::Tracking().
| void ImplEntryList::SetLastSelected | ( | USHORT | nPos | ) | [inline] |
Definition at line 164 of file ilstbox.hxx.
References mnLastSelected.
Referenced by ImplListBoxWindow::SelectEntries().
| USHORT ImplEntryList::GetLastSelected | ( | ) | const [inline] |
Definition at line 165 of file ilstbox.hxx.
References mnLastSelected.
Referenced by ImplListBoxWindow::SelectEntries().
| void ImplEntryList::SetSelectionAnchor | ( | USHORT | nPos | ) | [inline] |
Definition at line 167 of file ilstbox.hxx.
References mnSelectionAnchor.
Referenced by ImplListBoxWindow::MouseMove(), and ImplListBoxWindow::SelectEntries().
| USHORT ImplEntryList::GetSelectionAnchor | ( | ) | const [inline] |
Definition at line 168 of file ilstbox.hxx.
References mnSelectionAnchor.
Referenced by ImplListBoxWindow::MouseMove(), and ImplListBoxWindow::SelectEntries().
| void ImplEntryList::SetSelectionChangedHdl | ( | const Link & | rLnk | ) | [inline] |
Definition at line 171 of file ilstbox.hxx.
References maSelectionChangedHdl.
Referenced by ImplListBox::SetSelectionChangedHdl().
| void ImplEntryList::SetCallSelectionChangedHdl | ( | BOOL | bCall | ) | [inline] |
Definition at line 172 of file ilstbox.hxx.
References mbCallSelectionChangedHdl.
Referenced by ImplListBox::SetCallSelectionChangedHdl().
| void ImplEntryList::SetMRUCount | ( | USHORT | n | ) | [inline] |
Definition at line 174 of file ilstbox.hxx.
References mnMRUCount.
Referenced by ImplListBox::Clear(), ImplListBoxWindow::ImplCallSelect(), and ImplListBox::SetMRUEntries().
| USHORT ImplEntryList::GetMRUCount | ( | ) | const [inline] |
Definition at line 175 of file ilstbox.hxx.
References mnMRUCount.
Referenced by FindEntry(), ListBox::GetEntry(), ComboBox::GetEntry(), ListBox::GetEntryCount(), ComboBox::GetEntryCount(), ListBox::GetEntryData(), ComboBox::GetEntryData(), ListBox::GetEntryFlags(), ListBox::GetEntryPos(), ComboBox::GetEntryPos(), ImplListBox::GetMRUEntries(), ListBox::GetSelectEntryPos(), ComboBox::GetSelectEntryPos(), IMPL_LINK(), ImplListBoxWindow::ImplCallSelect(), ImplListBoxWindow::ImplPaint(), ListBox::InsertEntry(), ComboBox::InsertEntry(), ListBox::IsEntryPosSelected(), ComboBox::IsEntryPosSelected(), ComboBox::Notify(), ListBox::RemoveEntry(), ComboBox::RemoveEntry(), ListBox::SelectEntryPos(), ComboBox::SelectEntryPos(), ListBox::SetEntryData(), ComboBox::SetEntryData(), ListBox::SetEntryFlags(), ImplListBox::SetMRUEntries(), ListBox::SetTopEntry(), ComboBox::SetTopEntry(), and ComboBox::ToggleDropDown().
| void ImplEntryList::SetMaxMRUCount | ( | USHORT | n | ) | [inline] |
Definition at line 177 of file ilstbox.hxx.
References mnMaxMRUCount.
Referenced by ImplListBox::SetMaxMRUCount().
| USHORT ImplEntryList::GetMaxMRUCount | ( | ) | const [inline] |
Definition at line 178 of file ilstbox.hxx.
References mnMaxMRUCount.
Referenced by ImplListBox::GetMaxMRUCount().
| bool ImplEntryList::IsEntrySelectable | ( | USHORT | nPos | ) | const |
An Entry is selectable if its mnFlags does not have the LISTBOX_ENTRY_FLAG_DISABLE_SELECTION flag set.
Definition at line 495 of file ilstbox.cxx.
References GetEntry(), LISTBOX_ENTRY_FLAG_DISABLE_SELECTION, and ImplEntryType::mnFlags.
Referenced by FindFirstSelectable(), ImplListBoxWindow::MouseMove(), ImplListBoxWindow::SelectEntries(), and ImplListBoxWindow::SelectEntry().
| USHORT ImplEntryList::FindFirstSelectable | ( | USHORT | nPos, | |
| bool | bForward = true | |||
| ) |
returns the first entry found from the given position nPos that is selectable or LISTBOX_ENTRY_NOTFOUND if non is found.
If the entry at nPos is not selectable, it returns the first selectable entry after nPos if bForward is true and the first selectable entry after nPos is bForward is false.
Definition at line 503 of file ilstbox.cxx.
References GetEntryCount(), IsEntrySelectable(), and LISTBOX_ENTRY_NOTFOUND.
Referenced by ImplListBoxWindow::ProcessKeyInput().
Window* ImplEntryList::mpWindow [private] |
USHORT ImplEntryList::mnLastSelected [private] |
Definition at line 109 of file ilstbox.hxx.
Referenced by GetLastSelected(), ImplEntryList(), and SetLastSelected().
USHORT ImplEntryList::mnSelectionAnchor [private] |
Definition at line 110 of file ilstbox.hxx.
Referenced by GetSelectionAnchor(), ImplEntryList(), and SetSelectionAnchor().
USHORT ImplEntryList::mnImages [private] |
Definition at line 111 of file ilstbox.hxx.
Referenced by Clear(), HasImages(), ImplEntryList(), InsertEntry(), and RemoveEntry().
USHORT ImplEntryList::mnMRUCount [private] |
Definition at line 113 of file ilstbox.hxx.
Referenced by GetMRUCount(), ImplEntryList(), InsertEntry(), and SetMRUCount().
USHORT ImplEntryList::mnMaxMRUCount [private] |
Definition at line 114 of file ilstbox.hxx.
Referenced by GetMaxMRUCount(), ImplEntryList(), and SetMaxMRUCount().
Link ImplEntryList::maSelectionChangedHdl [private] |
Definition at line 116 of file ilstbox.hxx.
Referenced by SelectEntry(), and SetSelectionChangedHdl().
BOOL ImplEntryList::mbCallSelectionChangedHdl [private] |
Definition at line 117 of file ilstbox.hxx.
Referenced by ImplEntryList(), SelectEntry(), and SetCallSelectionChangedHdl().
1.5.6