#include <lstbox.hxx>


Public Member Functions | |
| ListBox (Window *pParent, WinBits nStyle=WB_BORDER) | |
| ListBox (Window *pParent, const ResId &rResId) | |
| ~ListBox () | |
| virtual void | Draw (OutputDevice *pDev, const Point &rPos, const Size &rSize, ULONG nFlags) |
| virtual void | Resize () |
| virtual long | PreNotify (NotifyEvent &rNEvt) |
| virtual void | StateChanged (StateChangedType nType) |
| virtual void | DataChanged (const DataChangedEvent &rDCEvt) |
| virtual void | UserDraw (const UserDrawEvent &rUDEvt) |
| virtual void | Select () |
| virtual void | DoubleClick () |
| virtual void | GetFocus () |
| virtual void | LoseFocus () |
| virtual Window * | GetPreferredKeyInputWindow () |
| virtual const Wallpaper & | GetDisplayBackground () const |
| virtual void | SetPosSizePixel (long nX, long nY, long nWidth, long nHeight, USHORT nFlags=WINDOW_POSSIZE_ALL) |
| void | SetPosSizePixel (const Point &rNewPos, const Size &rNewSize) |
| void | SetDropDownSizePixel (const Size &rNewSize) |
| Rectangle | GetDropDownPosSizePixel () const |
| void | SetDropDownLineCount (USHORT nLines) |
| USHORT | GetDropDownLineCount () const |
| void | EnableAutoSize (BOOL bAuto) |
| BOOL | IsAutoSizeEnabled () const |
| void | EnableDDAutoWidth (BOOL b) |
| BOOL | IsDDAutoWidthEnabled () const |
| virtual USHORT | InsertEntry (const XubString &rStr, USHORT nPos=LISTBOX_APPEND) |
| virtual USHORT | InsertEntry (const Image &rImage, USHORT nPos=LISTBOX_APPEND) |
| virtual USHORT | InsertEntry (const XubString &rStr, const Image &rImage, USHORT nPos=LISTBOX_APPEND) |
| virtual void | RemoveEntry (const XubString &rStr) |
| virtual void | RemoveEntry (USHORT nPos) |
| virtual void | Clear () |
| virtual USHORT | GetEntryPos (const XubString &rStr) const |
| virtual USHORT | GetEntryPos (const void *pData) const |
| virtual XubString | GetEntry (USHORT nPos) const |
| virtual USHORT | GetEntryCount () const |
| virtual void | SelectEntry (const XubString &rStr, BOOL bSelect=TRUE) |
| virtual void | SelectEntryPos (USHORT nPos, BOOL bSelect=TRUE) |
| virtual USHORT | GetSelectEntryCount () const |
| virtual XubString | GetSelectEntry (USHORT nSelIndex=0) const |
| virtual USHORT | GetSelectEntryPos (USHORT nSelIndex=0) const |
| virtual BOOL | IsEntrySelected (const XubString &rStr) const |
| virtual BOOL | IsEntryPosSelected (USHORT nPos) const |
| virtual void | SetNoSelection () |
| void | SetEntryData (USHORT nPos, void *pNewData) |
| void * | GetEntryData (USHORT nPos) const |
| void | SetEntryFlags (USHORT nPos, long nFlags) |
| this methods stores a combination of flags from the LISTBOX_ENTRY_FLAG_* defines at the given entry. | |
| long | GetEntryFlags (USHORT nPos) const |
| this methods gets the current combination of flags from the LISTBOX_ENTRY_FLAG_* defines from the given entry. | |
| void | SetTopEntry (USHORT nPos) |
| void | SetTopEntryStr (const XubString &rStr) |
| USHORT | GetTopEntry () const |
| void | SaveValue () |
| USHORT | GetSavedValue () const |
| void | SetSeparatorPos (USHORT n) |
| void | SetSeparatorPos () |
| USHORT | GetSeparatorPos () const |
| BOOL | IsTravelSelect () const |
| BOOL | IsInDropDown () const |
| void | ToggleDropDown () |
| void | EnableMultiSelection (BOOL bMulti, BOOL bStackSelection) |
| void | EnableMultiSelection (BOOL bMulti) |
| BOOL | IsMultiSelectionEnabled () const |
| void | SetReadOnly (BOOL bReadOnly=TRUE) |
| BOOL | IsReadOnly () const |
| long | CalcWindowSizePixel (USHORT nLines) const |
| Rectangle | GetBoundingRectangle (USHORT nItem) const |
| void | SetUserItemSize (const Size &rSz) |
| const Size & | GetUserItemSize () const |
| void | EnableUserDraw (BOOL bUserDraw) |
| BOOL | IsUserDrawEnabled () const |
| void | DrawEntry (const UserDrawEvent &rEvt, BOOL bDrawImage, BOOL bDrawText, BOOL bDrawTextAtImagePos=FALSE) |
| void | SetSelectHdl (const Link &rLink) |
| const Link & | GetSelectHdl () const |
| void | SetDoubleClickHdl (const Link &rLink) |
| const Link & | GetDoubleClickHdl () const |
| Size | CalcMinimumSize () const |
| virtual Size | GetOptimalSize (WindowSizeType eType) const |
| Size | CalcAdjustedSize (const Size &rPrefSize) const |
| Size | CalcSize (USHORT nColumns, USHORT nLines) const |
| void | GetMaxVisColumnsAndLines (USHORT &rnCols, USHORT &rnLines) const |
| void | SetMRUEntries (const XubString &rEntries, xub_Unicode cSep= ';') |
| XubString | GetMRUEntries (xub_Unicode cSep= ';') const |
| void | SetMaxMRUCount (USHORT n) |
| USHORT | GetMaxMRUCount () const |
| USHORT | GetDisplayLineCount () const |
| void | EnableMirroring () |
| long | GetIndexForPoint (const Point &rPoint, USHORT &rPos) const |
Protected Member Functions | |
| SAL_DLLPRIVATE void | ImplInit (Window *pParent, WinBits nStyle) |
| SAL_DLLPRIVATE WinBits | ImplInitStyle (WinBits nStyle) |
| SAL_DLLPRIVATE void | ImplLoadRes (const ResId &rResId) |
| BOOL | IsDropDownBox () const |
| ListBox (WindowType nType) | |
| virtual void | FillLayoutData () const |
Private Member Functions | |
| SAL_DLLPRIVATE void | ImplInitListBoxData () |
| DECL_DLLPRIVATE_LINK (ImplSelectHdl, void *) | |
| DECL_DLLPRIVATE_LINK (ImplScrollHdl, void *) | |
| DECL_DLLPRIVATE_LINK (ImplCancelHdl, void *) | |
| DECL_DLLPRIVATE_LINK (ImplDoubleClickHdl, void *) | |
| DECL_DLLPRIVATE_LINK (ImplClickBtnHdl, void *) | |
| DECL_DLLPRIVATE_LINK (ImplPopupModeEndHdl, void *) | |
| DECL_DLLPRIVATE_LINK (ImplSelectionChangedHdl, void *) | |
| DECL_DLLPRIVATE_LINK (ImplUserDrawHdl, UserDrawEvent *) | |
Private Attributes | |
| ImplListBox * | mpImplLB |
| ImplListBoxFloatingWindow * | mpFloatWin |
| ImplWin * | mpImplWin |
| ImplBtn * | mpBtn |
| USHORT | mnDDHeight |
| USHORT | mnSaveValue |
| BOOL | mbDDAutoSize |
| Link | maSelectHdl |
| Link | maDoubleClickHdl |
| USHORT | mnLineCount |
Definition at line 45 of file lstbox.hxx.
| ListBox::ListBox | ( | WindowType | nType | ) | [protected] |
| ListBox::ListBox | ( | Window * | pParent, | |
| const ResId & | rResId | |||
| ) |
Definition at line 66 of file lstbox.cxx.
References ImplInit(), ImplInitListBoxData(), Window::ImplInitRes(), ImplLoadRes(), Window::Show(), and WB_HIDE.
| ListBox::~ListBox | ( | ) |
Definition at line 81 of file lstbox.cxx.
References Window::ImplCallEventListeners(), mpBtn, mpFloatWin, mpImplLB, mpImplWin, and VCLEVENT_OBJECT_DYING.
| void ListBox::ImplInitListBoxData | ( | ) | [private] |
Definition at line 99 of file lstbox.cxx.
References LISTBOX_ENTRY_NOTFOUND, mbDDAutoSize, mnDDHeight, mnLineCount, mnSaveValue, mpBtn, mpFloatWin, mpImplLB, and mpImplWin.
Referenced by ListBox().
| ListBox::DECL_DLLPRIVATE_LINK | ( | ImplSelectHdl | , | |
| void * | ||||
| ) | [private] |
| ListBox::DECL_DLLPRIVATE_LINK | ( | ImplScrollHdl | , | |
| void * | ||||
| ) | [private] |
| ListBox::DECL_DLLPRIVATE_LINK | ( | ImplCancelHdl | , | |
| void * | ||||
| ) | [private] |
| ListBox::DECL_DLLPRIVATE_LINK | ( | ImplDoubleClickHdl | , | |
| void * | ||||
| ) | [private] |
| ListBox::DECL_DLLPRIVATE_LINK | ( | ImplClickBtnHdl | , | |
| void * | ||||
| ) | [private] |
| ListBox::DECL_DLLPRIVATE_LINK | ( | ImplPopupModeEndHdl | , | |
| void * | ||||
| ) | [private] |
| ListBox::DECL_DLLPRIVATE_LINK | ( | ImplSelectionChangedHdl | , | |
| void * | ||||
| ) | [private] |
| ListBox::DECL_DLLPRIVATE_LINK | ( | ImplUserDrawHdl | , | |
| UserDrawEvent * | ||||
| ) | [private] |
Definition at line 114 of file lstbox.cxx.
References ImplListBoxWindow::AllowGrabFocus(), CTRL_LISTBOX, CTRL_STATE_ENABLED, Window::GetBorder(), Region::GetBoundRect(), ImplListBox::GetMainWindow(), Window::GetNativeControlRegion(), OutputDevice::GetTextHeight(), Window::ImplInit(), ImplInitDropDownButton(), ImplInitStyle(), Window::IsNativeControlSupported(), Window::IsNativeWidgetEnabled(), mnDDHeight, mpBtn, mpFloatWin, mpImplLB, mpImplWin, PART_ENTIRE_CONTROL, ImplListBoxFloatingWindow::SetAutoWidth(), OutputDevice::SetBackground(), ImplListBox::SetCancelHdl(), Window::SetCompoundControl(), ImplListBox::SetDoubleClickHdl(), ImplListBoxFloatingWindow::SetImplListBox(), ImplBtn::SetMBDownHdl(), ImplWin::SetMBDownHdl(), FloatingWindow::SetPopupModeEndHdl(), Window::SetPosPixel(), ImplListBox::SetScrollHdl(), ImplListBox::SetSelectHdl(), ImplListBox::SetSelectionChangedHdl(), ImplListBox::SetUserDrawHdl(), ImplWin::SetUserDrawHdl(), Window::Show(), WB_BORDER, WB_CENTER, WB_DROPDOWN, WB_LEFT, WB_NOBORDER, WB_NOLIGHTBORDER, WB_RECTSTYLE, and WB_RIGHT.
Referenced by ListBox(), and MultiListBox::MultiListBox().
Definition at line 187 of file lstbox.cxx.
References WB_GROUP, WB_NOGROUP, WB_NOTABSTOP, and WB_TABSTOP.
Referenced by ImplInit(), and StateChanged().
| void ListBox::ImplLoadRes | ( | const ResId & | rResId | ) | [protected] |
Reimplemented from Window.
Definition at line 198 of file lstbox.cxx.
References Window::ImplLoadRes(), InsertEntry(), LISTBOX_APPEND, SelectEntryPos(), and SetEntryData().
Referenced by ListBox(), and MultiListBox::MultiListBox().
| BOOL ListBox::IsDropDownBox | ( | ) | const [inline, protected] |
Definition at line 78 of file lstbox.hxx.
Referenced by CalcAdjustedSize(), CalcMinimumSize(), CalcSize(), Clear(), DataChanged(), Draw(), GetFocus(), GetMaxVisColumnsAndLines(), GetPreferredKeyInputWindow(), IMPL_LINK(), LoseFocus(), Resize(), SetNoSelection(), SetPosSizePixel(), and ToggleDropDown().
| void ListBox::FillLayoutData | ( | ) | const [protected, virtual] |
Reimplemented from Control.
Definition at line 719 of file lstbox.cxx.
References Control::AppendLayoutData(), ImplListBox::GetMainWindow(), Window::IsReallyVisible(), mpFloatWin, mpImplLB, mpImplWin, Control::mpLayoutData, and Control::SetLayoutDataParent().
Referenced by GetIndexForPoint().
| void ListBox::Draw | ( | OutputDevice * | pDev, | |
| const Point & | rPos, | |||
| const Size & | rSize, | |||
| ULONG | nFlags | |||
| ) | [virtual] |
Reimplemented from Window.
Definition at line 377 of file lstbox.cxx.
References OutputDevice::DrawRect(), OutputDevice::DrawText(), Window::GetControlBackground(), StyleSettings::GetDisableColor(), Window::GetDrawPixel(), Window::GetDrawPixelFont(), ImplListBox::GetEntryList(), ImplEntryList::GetEntryText(), ImplListBox::GetMainWindow(), OutputDevice::GetOutDevType(), GetSelectEntry(), OutputDevice::GetSettings(), Window::GetStyle(), AllSettings::GetStyleSettings(), OutputDevice::GetTextColor(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), ImplListBox::GetTopEntry(), Control::ImplDrawFrame(), ImplListBoxWindow::ImplInitSettings(), OutputDevice::IntersectClipRegion(), Window::IsControlBackground(), IsDropDownBox(), Window::IsEnabled(), ImplEntryList::IsEntryPosSelected(), OutputDevice::LogicToPixel(), mpImplLB, OUTDEV_PRINTER, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), OutputDevice::SetTextColor(), OutputDevice::SetTextFillColor(), TEXT_DRAW_CENTER, TEXT_DRAW_LEFT, TEXT_DRAW_RIGHT, TEXT_DRAW_VCENTER, WB_BORDER, WB_CENTER, WB_RIGHT, WINDOW_DRAW_MONO, WINDOW_DRAW_NOBACKGROUND, WINDOW_DRAW_NOBORDER, and WINDOW_DRAW_NODISABLE.
| void ListBox::Resize | ( | ) | [virtual] |
Reimplemented from Control.
Definition at line 642 of file lstbox.cxx.
References ImplListBoxFloatingWindow::CalcFloatSize(), Window::CalcZoom(), CTRL_LISTBOX, Region::GetBoundRect(), Window::GetNativeControlRegion(), OutputDevice::GetOutputSizePixel(), StyleSettings::GetScrollBarSize(), OutputDevice::GetSettings(), Window::GetStyle(), AllSettings::GetStyleSettings(), Window::GetWindow(), ImplGetSVData(), IsDropDownBox(), Region::Move(), mpBtn, mpFloatWin, mpImplLB, mpImplWin, Window::OutputToScreenPixel(), PART_BUTTON_DOWN, PART_SUB_EDIT, Control::Resize(), Window::ScreenToOutputPixel(), Window::SetPosSizePixel(), Window::SetSizePixel(), WB_BORDER, and WINDOW_BORDER.
Referenced by DataChanged(), and StateChanged().
| long ListBox::PreNotify | ( | NotifyEvent & | rNEvt | ) | [virtual] |
Reimplemented from Window.
Definition at line 908 of file lstbox.cxx.
References COMMAND_WHEEL, FloatingWindow::EndPopupMode(), EVENT_COMMAND, EVENT_KEYINPUT, EVENT_LOSEFOCUS, KeyCode::GetCode(), CommandEvent::GetCommand(), NotifyEvent::GetCommandEvent(), KeyEvent::GetKeyCode(), NotifyEvent::GetKeyEvent(), OutputDevice::GetSettings(), NotifyEvent::GetType(), NotifyEvent::GetWindow(), ImplListBox::HandleWheelAsCursorTravel(), Window::HasChildPathFocus(), Window::ImplCallEventListeners(), IsInDropDown(), FloatingWindow::IsInPopupMode(), KeyCode::IsMod2(), KEY_DOWN, KEY_RETURN, KEY_UP, MOUSE_WHEEL_ALWAYS, MOUSE_WHEEL_FOCUS_ONLY, mpBtn, mpFloatWin, mpImplLB, mpImplWin, Window::PreNotify(), ImplListBox::ProcessKeyInput(), PushButton::SetPressed(), ImplListBoxFloatingWindow::StartFloat(), VCLEVENT_DROPDOWN_OPEN, and VCLEVENT_DROPDOWN_PRE_OPEN.
| void ListBox::StateChanged | ( | StateChangedType | nType | ) | [virtual] |
Reimplemented from Control.
Definition at line 802 of file lstbox.cxx.
References CTRL_LISTBOX, Window::Enable(), OutputDevice::EnableRTL(), ImplListBoxWindow::EnableSort(), Window::GetControlBackground(), Window::GetControlFont(), Window::GetControlForeground(), OutputDevice::GetFont(), ImplListBox::GetMainWindow(), Window::GetStyle(), Window::GetWindow(), Window::GetZoom(), ImplInitDropDownButton(), ImplInitStyle(), Window::Invalidate(), INVALIDATE_NOERASE, Window::IsEnabled(), Window::IsNativeControlSupported(), IsReadOnly(), OutputDevice::IsRTLEnabled(), Window::IsUpdateMode(), mpBtn, mpImplLB, mpImplWin, PART_BUTTON_DOWN, PART_ENTIRE_CONTROL, Resize(), OutputDevice::SetBackground(), Window::SetControlBackground(), Window::SetControlFont(), Window::SetControlForeground(), OutputDevice::SetFont(), Window::SetStyle(), OutputDevice::SetTextColor(), Window::SetUpdateMode(), Window::SetZoom(), STATE_CHANGE_CONTROLBACKGROUND, STATE_CHANGE_CONTROLFONT, STATE_CHANGE_CONTROLFOREGROUND, STATE_CHANGE_ENABLE, STATE_CHANGE_MIRRORING, STATE_CHANGE_READONLY, STATE_CHANGE_STYLE, STATE_CHANGE_UPDATEMODE, STATE_CHANGE_ZOOM, Control::StateChanged(), WB_SORT, and WINDOW_BORDER.
Referenced by SetReadOnly().
| void ListBox::DataChanged | ( | const DataChangedEvent & | rDCEvt | ) | [virtual] |
Reimplemented from Control.
Definition at line 544 of file lstbox.cxx.
References Control::DataChanged(), DATACHANGED_FONTS, DATACHANGED_FONTSUBSTITUTION, DATACHANGED_SETTINGS, DataChangedEvent::GetFlags(), OutputDevice::GetSettings(), DataChangedEvent::GetType(), ImplInitDropDownButton(), ImplInitFieldSettings(), Window::Invalidate(), IsDropDownBox(), mpBtn, mpImplLB, mpImplWin, ImplListBox::Resize(), Resize(), OutputDevice::SetBackground(), Window::SetSettings(), and SETTINGS_STYLE.
| void ListBox::UserDraw | ( | const UserDrawEvent & | rUDEvt | ) | [virtual] |
| void ListBox::Select | ( | ) | [virtual] |
Definition at line 995 of file lstbox.cxx.
References Control::ImplCallEventListenersAndHandler(), maSelectHdl, and VCLEVENT_LISTBOX_SELECT.
Referenced by IMPL_LINK().
| void ListBox::DoubleClick | ( | ) | [virtual] |
Definition at line 1002 of file lstbox.cxx.
References Control::ImplCallEventListenersAndHandler(), maDoubleClickHdl, and VCLEVENT_LISTBOX_DOUBLECLICK.
Referenced by IMPL_LINK().
| void ListBox::GetFocus | ( | ) | [virtual] |
Reimplemented from Control.
Definition at line 502 of file lstbox.cxx.
References Control::GetFocus(), Window::GrabFocus(), IsDropDownBox(), mpImplLB, and mpImplWin.
| void ListBox::LoseFocus | ( | ) | [virtual] |
Reimplemented from Control.
Definition at line 532 of file lstbox.cxx.
References Window::HideFocus(), IsDropDownBox(), Control::LoseFocus(), mpImplLB, and mpImplWin.
| Window * ListBox::GetPreferredKeyInputWindow | ( | ) | [virtual] |
Reimplemented from Window.
Definition at line 517 of file lstbox.cxx.
References ImplListBox::GetPreferredKeyInputWindow(), Window::GetPreferredKeyInputWindow(), IsDropDownBox(), mpImplLB, and mpImplWin.
| const Wallpaper & ListBox::GetDisplayBackground | ( | ) | const [virtual] |
Reimplemented from Window.
Definition at line 1563 of file lstbox.cxx.
References ImplListBox::GetDisplayBackground(), and mpImplLB.
| void ListBox::SetPosSizePixel | ( | long | nX, | |
| long | nY, | |||
| long | nWidth, | |||
| long | nHeight, | |||
| USHORT | nFlags = WINDOW_POSSIZE_ALL | |||
| ) | [virtual] |
Reimplemented from Window.
Definition at line 622 of file lstbox.cxx.
References ImplListBoxFloatingWindow::GetPrefSize(), IsAutoSizeEnabled(), IsDropDownBox(), mnDDHeight, mpFloatWin, Window::SetPosSizePixel(), ImplListBoxFloatingWindow::SetPrefSize(), WINDOW_POSSIZE_DROPDOWN, WINDOW_POSSIZE_HEIGHT, WINDOW_POSSIZE_SIZE, and WINDOW_POSSIZE_WIDTH.
Referenced by DbgDialog::DbgDialog(), and DbgInfoDialog::DbgInfoDialog().
| void ListBox::SetPosSizePixel | ( | const Point & | rNewPos, | |
| const Size & | rNewSize | |||
| ) | [inline, virtual] |
Reimplemented from Window.
Definition at line 107 of file lstbox.hxx.
References Window::SetPosSizePixel().
| void ListBox::SetDropDownSizePixel | ( | const Size & | rNewSize | ) | [inline] |
Definition at line 109 of file lstbox.hxx.
References Window::SetPosSizePixel(), WINDOW_POSSIZE_DROPDOWN, and WINDOW_POSSIZE_SIZE.
| Rectangle ListBox::GetDropDownPosSizePixel | ( | ) | const |
Definition at line 1556 of file lstbox.cxx.
References Window::GetWindowExtentsRelative(), and mpFloatWin.
| void ListBox::SetDropDownLineCount | ( | USHORT | nLines | ) |
Definition at line 604 of file lstbox.cxx.
References mnLineCount, mpFloatWin, and ImplListBoxFloatingWindow::SetDropDownLineCount().
| USHORT ListBox::GetDropDownLineCount | ( | ) | const |
Definition at line 613 of file lstbox.cxx.
References ImplListBoxFloatingWindow::GetDropDownLineCount(), mnLineCount, and mpFloatWin.
| void ListBox::EnableAutoSize | ( | BOOL | bAuto | ) |
Definition at line 575 of file lstbox.cxx.
References ImplListBoxFloatingWindow::GetDropDownLineCount(), mbDDAutoSize, mpFloatWin, and ImplListBoxFloatingWindow::SetDropDownLineCount().
| BOOL ListBox::IsAutoSizeEnabled | ( | ) | const [inline] |
| void ListBox::EnableDDAutoWidth | ( | BOOL | b | ) |
Definition at line 589 of file lstbox.cxx.
References mpFloatWin, and ImplListBoxFloatingWindow::SetAutoWidth().
| BOOL ListBox::IsDDAutoWidthEnabled | ( | ) | const |
Definition at line 597 of file lstbox.cxx.
References ImplListBoxFloatingWindow::IsAutoWidth(), and mpFloatWin.
| USHORT ListBox::InsertEntry | ( | const XubString & | rStr, | |
| USHORT | nPos = LISTBOX_APPEND | |||
| ) | [virtual] |
Definition at line 1040 of file lstbox.cxx.
References Window::CallEventListeners(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), ImplListBox::InsertEntry(), mpImplLB, and VCLEVENT_LISTBOX_ITEMADDED.
Referenced by DbgDialog::DbgDialog(), ImplAppendUserDefinedChannels(), ImplLoadRes(), DbgWindow::InsertLine(), and DbgInfoDialog::SetInfoText().
| USHORT ListBox::InsertEntry | ( | const Image & | rImage, | |
| USHORT | nPos = LISTBOX_APPEND | |||
| ) | [virtual] |
Definition at line 1050 of file lstbox.cxx.
References Window::CallEventListeners(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), ImplListBox::InsertEntry(), mpImplLB, and VCLEVENT_LISTBOX_ITEMADDED.
| USHORT ListBox::InsertEntry | ( | const XubString & | rStr, | |
| const Image & | rImage, | |||
| USHORT | nPos = LISTBOX_APPEND | |||
| ) | [virtual] |
Definition at line 1060 of file lstbox.cxx.
References Window::CallEventListeners(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), ImplListBox::InsertEntry(), mpImplLB, and VCLEVENT_LISTBOX_ITEMADDED.
| void ListBox::RemoveEntry | ( | const XubString & | rStr | ) | [virtual] |
Definition at line 1070 of file lstbox.cxx.
References GetEntryPos().
Referenced by DbgWindow::InsertLine().
| void ListBox::RemoveEntry | ( | USHORT | nPos | ) | [virtual] |
Definition at line 1077 of file lstbox.cxx.
References Window::CallEventListeners(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), mpImplLB, ImplListBox::RemoveEntry(), and VCLEVENT_LISTBOX_ITEMREMOVED.
| void ListBox::Clear | ( | ) | [virtual] |
Definition at line 1009 of file lstbox.cxx.
References Window::CallEventListeners(), ImplListBox::Clear(), ImplGetSVEmptyStr(), Window::Invalidate(), IsDropDownBox(), LISTBOX_ENTRY_NOTFOUND, mpImplLB, mpImplWin, ImplWin::SetImage(), ImplWin::SetItemPos(), ImplWin::SetString(), and VCLEVENT_LISTBOX_ITEMREMOVED.
Referenced by DbgInfoDialog::SetInfoText().
| USHORT ListBox::GetEntryPos | ( | const XubString & | rStr | ) | const [virtual] |
Definition at line 1085 of file lstbox.cxx.
References ImplEntryList::FindEntry(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), LISTBOX_ENTRY_NOTFOUND, and mpImplLB.
Referenced by IsEntrySelected(), RemoveEntry(), and SelectEntry().
| USHORT ListBox::GetEntryPos | ( | const void * | pData | ) | const [virtual] |
Definition at line 1095 of file lstbox.cxx.
References ImplEntryList::FindEntry(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), LISTBOX_ENTRY_NOTFOUND, and mpImplLB.
| XubString ListBox::GetEntry | ( | USHORT | nPos | ) | const [virtual] |
Definition at line 1105 of file lstbox.cxx.
References ImplListBox::GetEntryList(), ImplEntryList::GetEntryText(), ImplEntryList::GetMRUCount(), and mpImplLB.
Referenced by GetSelectEntry(), and DbgWindow::PreNotify().
| USHORT ListBox::GetEntryCount | ( | ) | const [virtual] |
Definition at line 1112 of file lstbox.cxx.
References ImplEntryList::GetEntryCount(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), and mpImplLB.
Referenced by DbgWindow::GetAssertionEntryRange(), GetTopEntry(), ImplSelectChannel(), DbgWindow::InsertLine(), and SelectEntryPos().
| void ListBox::SelectEntry | ( | const XubString & | rStr, | |
| BOOL | bSelect = TRUE | |||
| ) | [virtual] |
| void ListBox::SelectEntryPos | ( | USHORT | nPos, | |
| BOOL | bSelect = TRUE | |||
| ) | [virtual] |
Definition at line 1168 of file lstbox.cxx.
References GetEntryCount(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), mpImplLB, and ImplListBox::SelectEntry().
Referenced by ImplLoadRes(), ImplSelectChannel(), and SelectEntry().
| USHORT ListBox::GetSelectEntryCount | ( | ) | const [virtual] |
Definition at line 1126 of file lstbox.cxx.
References ImplListBox::GetEntryList(), ImplEntryList::GetSelectEntryCount(), and mpImplLB.
| XubString ListBox::GetSelectEntry | ( | USHORT | nSelIndex = 0 |
) | const [virtual] |
Definition at line 1119 of file lstbox.cxx.
References GetEntry(), and GetSelectEntryPos().
Referenced by Draw(), and IMPL_LINK().
| USHORT ListBox::GetSelectEntryPos | ( | USHORT | nSelIndex = 0 |
) | const [virtual] |
Definition at line 1133 of file lstbox.cxx.
References ImplEntryList::FindEntry(), ImplListBox::GetEntryList(), ImplEntryList::GetEntryText(), ImplEntryList::GetMRUCount(), ImplEntryList::GetSelectEntryPos(), LISTBOX_ENTRY_NOTFOUND, and mpImplLB.
Referenced by GetSelectEntry(), IMPL_LINK(), ImplGetChannelId(), and DbgWindow::PreNotify().
| BOOL ListBox::IsEntrySelected | ( | const XubString & | rStr | ) | const [virtual] |
| BOOL ListBox::IsEntryPosSelected | ( | USHORT | nPos | ) | const [virtual] |
Definition at line 1154 of file lstbox.cxx.
References ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), ImplEntryList::IsEntryPosSelected(), and mpImplLB.
Referenced by IMPL_LINK(), and IsEntrySelected().
| void ListBox::SetNoSelection | ( | ) | [virtual] |
Definition at line 1025 of file lstbox.cxx.
References ImplGetSVEmptyStr(), Window::Invalidate(), IsDropDownBox(), LISTBOX_ENTRY_NOTFOUND, mpImplLB, mpImplWin, ImplWin::SetImage(), ImplWin::SetItemPos(), ImplListBox::SetNoSelection(), and ImplWin::SetString().
| void ListBox::SetEntryData | ( | USHORT | nPos, | |
| void * | pNewData | |||
| ) |
Definition at line 1176 of file lstbox.cxx.
References ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), mpImplLB, and ImplListBox::SetEntryData().
Referenced by ImplAppendUserDefinedChannels(), ImplLoadRes(), and DbgWindow::InsertLine().
| void * ListBox::GetEntryData | ( | USHORT | nPos | ) | const |
Definition at line 1183 of file lstbox.cxx.
References ImplEntryList::GetEntryData(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), and mpImplLB.
Referenced by DbgWindow::GetAssertionEntryRange(), ImplGetChannelId(), and ImplSelectChannel().
| void ListBox::SetEntryFlags | ( | USHORT | nPos, | |
| long | nFlags | |||
| ) |
this methods stores a combination of flags from the LISTBOX_ENTRY_FLAG_* defines at the given entry.
See description of the possible LISTBOX_ENTRY_FLAG_* flags for details. Do not use these flags for user data as they are reserved to change the internal behaviour of the ListBox implementation for specific entries.
Definition at line 1190 of file lstbox.cxx.
References ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), mpImplLB, and ImplListBox::SetEntryFlags().
| long ListBox::GetEntryFlags | ( | USHORT | nPos | ) | const |
this methods gets the current combination of flags from the LISTBOX_ENTRY_FLAG_* defines from the given entry.
See description of the possible LISTBOX_ENTRY_FLAG_* flags for details.
Definition at line 1197 of file lstbox.cxx.
References ImplEntryList::GetEntryFlags(), ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), and mpImplLB.
| void ListBox::SetTopEntry | ( | USHORT | nPos | ) |
Definition at line 1204 of file lstbox.cxx.
References ImplListBox::GetEntryList(), ImplEntryList::GetMRUCount(), mpImplLB, and ImplListBox::SetTopEntry().
Referenced by DbgWindow::InsertLine().
| void ListBox::SetTopEntryStr | ( | const XubString & | rStr | ) |
| USHORT ListBox::GetTopEntry | ( | ) | const |
Definition at line 1211 of file lstbox.cxx.
References GetEntryCount(), ImplListBox::GetTopEntry(), LISTBOX_ENTRY_NOTFOUND, and mpImplLB.
| void ListBox::SaveValue | ( | ) | [inline] |
| USHORT ListBox::GetSavedValue | ( | ) | const [inline] |
Definition at line 172 of file lstbox.hxx.
| void ListBox::SetSeparatorPos | ( | USHORT | n | ) |
Definition at line 1491 of file lstbox.cxx.
References mpImplLB, and ImplListBox::SetSeparatorPos().
| void ListBox::SetSeparatorPos | ( | ) |
Definition at line 1498 of file lstbox.cxx.
References LISTBOX_ENTRY_NOTFOUND, mpImplLB, and ImplListBox::SetSeparatorPos().
| USHORT ListBox::GetSeparatorPos | ( | ) | const |
Definition at line 1505 of file lstbox.cxx.
References ImplListBox::GetSeparatorPos(), and mpImplLB.
| BOOL ListBox::IsTravelSelect | ( | ) | const |
Definition at line 1221 of file lstbox.cxx.
References ImplListBox::IsTravelSelect(), and mpImplLB.
Referenced by IMPL_LINK().
| BOOL ListBox::IsInDropDown | ( | ) | const |
Definition at line 1228 of file lstbox.cxx.
References FloatingWindow::IsInPopupMode(), and mpFloatWin.
Referenced by IMPL_LINK(), and PreNotify().
| void ListBox::ToggleDropDown | ( | ) |
Definition at line 358 of file lstbox.cxx.
References FloatingWindow::EndPopupMode(), Window::GrabFocus(), Window::ImplCallEventListeners(), IsDropDownBox(), FloatingWindow::IsInPopupMode(), mpBtn, mpFloatWin, mpImplWin, PushButton::SetPressed(), ImplListBoxFloatingWindow::StartFloat(), VCLEVENT_DROPDOWN_OPEN, and VCLEVENT_DROPDOWN_PRE_OPEN.
| void ListBox::EnableMultiSelection | ( | BOOL | bMulti, | |
| BOOL | bStackSelection | |||
| ) |
Definition at line 1255 of file lstbox.cxx.
References ImplListBoxWindow::AllowGrabFocus(), ImplListBox::EnableMultiSelection(), ImplListBox::GetMainWindow(), Window::GetStyle(), mpFloatWin, mpImplLB, ImplListBox::SetMultiSelectionSimpleMode(), and WB_SIMPLEMODE.
Referenced by EnableMultiSelection(), and MultiListBox::MultiListBox().
| void ListBox::EnableMultiSelection | ( | BOOL | bMulti | ) |
| BOOL ListBox::IsMultiSelectionEnabled | ( | ) | const |
Definition at line 1273 of file lstbox.cxx.
References ImplListBox::IsMultiSelectionEnabled(), and mpImplLB.
Referenced by IMPL_LINK().
| void ListBox::SetReadOnly | ( | BOOL | bReadOnly = TRUE |
) |
Definition at line 1473 of file lstbox.cxx.
References ImplListBox::IsReadOnly(), mpImplLB, ImplListBox::SetReadOnly(), STATE_CHANGE_READONLY, and StateChanged().
| BOOL ListBox::IsReadOnly | ( | ) | const |
Definition at line 1484 of file lstbox.cxx.
References ImplListBox::IsReadOnly(), and mpImplLB.
Referenced by StateChanged().
| long ListBox::CalcWindowSizePixel | ( | USHORT | nLines | ) | const |
| Rectangle ListBox::GetBoundingRectangle | ( | USHORT | nItem | ) | const |
Definition at line 1240 of file lstbox.cxx.
References ImplListBoxWindow::GetBoundingRectangle(), ImplListBox::GetMainWindow(), Window::GetWindowExtentsRelative(), and mpImplLB.
Referenced by DbgWindow::PreNotify().
| void ListBox::SetUserItemSize | ( | const Size & | rSz | ) |
Definition at line 1441 of file lstbox.cxx.
References ImplListBox::GetMainWindow(), mpImplLB, mpImplWin, ImplWin::SetUserItemSize(), and ImplListBoxWindow::SetUserItemSize().
| const Size & ListBox::GetUserItemSize | ( | ) | const |
Definition at line 1450 of file lstbox.cxx.
References ImplListBox::GetMainWindow(), ImplListBoxWindow::GetUserItemSize(), and mpImplLB.
| void ListBox::EnableUserDraw | ( | BOOL | bUserDraw | ) |
Definition at line 1457 of file lstbox.cxx.
References ImplWin::EnableUserDraw(), ImplListBoxWindow::EnableUserDraw(), ImplListBox::GetMainWindow(), mpImplLB, and mpImplWin.
| BOOL ListBox::IsUserDrawEnabled | ( | ) | const |
Definition at line 1466 of file lstbox.cxx.
References ImplListBox::GetMainWindow(), ImplListBoxWindow::IsUserDrawEnabled(), and mpImplLB.
| void ListBox::DrawEntry | ( | const UserDrawEvent & | rEvt, | |
| BOOL | bDrawImage, | |||
| BOOL | bDrawText, | |||
| BOOL | bDrawTextAtImagePos = FALSE | |||
| ) |
Definition at line 1431 of file lstbox.cxx.
References ImplWin::DrawEntry(), ImplListBoxWindow::DrawEntry(), UserDrawEvent::GetDevice(), UserDrawEvent::GetItemId(), ImplListBox::GetMainWindow(), mpImplLB, and mpImplWin.
| void ListBox::SetSelectHdl | ( | const Link & | rLink | ) | [inline] |
Definition at line 200 of file lstbox.hxx.
| const Link& ListBox::GetSelectHdl | ( | ) | const [inline] |
Definition at line 201 of file lstbox.hxx.
| void ListBox::SetDoubleClickHdl | ( | const Link & | rLink | ) | [inline] |
Definition at line 202 of file lstbox.hxx.
| const Link& ListBox::GetDoubleClickHdl | ( | ) | const [inline] |
Definition at line 203 of file lstbox.hxx.
| Size ListBox::CalcMinimumSize | ( | ) | const |
Definition at line 1280 of file lstbox.cxx.
References ImplListBox::CalcSize(), Window::CalcWindowSize(), CTRL_LISTBOX, Region::GetBoundRect(), ImplEntryList::GetEntryCount(), ImplListBox::GetEntryList(), ImplListBox::GetMaxEntryWidth(), Window::GetNativeControlRegion(), StyleSettings::GetScrollBarSize(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), ImplGetSVData(), IsDropDownBox(), Window::IsNativeControlSupported(), Window::IsNativeWidgetEnabled(), mnDDHeight, mnLineCount, mpImplLB, and PART_ENTIRE_CONTROL.
Referenced by CalcSize(), and GetOptimalSize().
| Size ListBox::GetOptimalSize | ( | WindowSizeType | eType | ) | const [virtual] |
Reimplemented from Control.
Definition at line 1318 of file lstbox.cxx.
References CalcMinimumSize(), Control::GetOptimalSize(), and WINDOWSIZE_MINIMUM.
| Size ListBox::CalcAdjustedSize | ( | const Size & | rPrefSize | ) | const |
Definition at line 1330 of file lstbox.cxx.
References CalcSize(), Window::CalcWindowSize(), IsDropDownBox(), and mnDDHeight.
| Size ListBox::CalcSize | ( | USHORT | nColumns, | |
| USHORT | nLines | |||
| ) | const |
Definition at line 1356 of file lstbox.cxx.
References CalcMinimumSize(), ImplListBox::CalcSize(), Window::CalcWindowSize(), StyleSettings::GetScrollBarSize(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), OutputDevice::GetTextWidth(), IsDropDownBox(), mnDDHeight, and mpImplLB.
Referenced by CalcAdjustedSize().
| void ListBox::GetMaxVisColumnsAndLines | ( | USHORT & | rnCols, | |
| USHORT & | rnLines | |||
| ) | const |
Definition at line 1398 of file lstbox.cxx.
References ImplListBox::GetEntryHeight(), ImplListBox::GetMainWindow(), OutputDevice::GetOutputSizePixel(), OutputDevice::GetTextWidth(), IsDropDownBox(), mpImplLB, and mpImplWin.
| void ListBox::SetMRUEntries | ( | const XubString & | rEntries, | |
| xub_Unicode | cSep = ';' | |||
| ) |
| XubString ListBox::GetMRUEntries | ( | xub_Unicode | cSep = ';' |
) | const |
| void ListBox::SetMaxMRUCount | ( | USHORT | n | ) |
| USHORT ListBox::GetMaxMRUCount | ( | ) | const |
| USHORT ListBox::GetDisplayLineCount | ( | ) | const |
Definition at line 1540 of file lstbox.cxx.
References ImplListBox::GetDisplayLineCount(), and mpImplLB.
| void ListBox::EnableMirroring | ( | ) |
Definition at line 1549 of file lstbox.cxx.
References ImplListBox::EnableMirroring(), and mpImplLB.
| long ListBox::GetIndexForPoint | ( | const Point & | rPoint, | |
| USHORT & | rPos | |||
| ) | const |
Definition at line 743 of file lstbox.cxx.
References Window::AbsoluteScreenToOutputPixel(), FillLayoutData(), ImplListBoxWindow::GetEntryPosForPoint(), Control::GetIndexForPoint(), ImplWin::GetItemPos(), ImplListBox::GetMainWindow(), OutputDevice::GetOutputSizePixel(), Window::IsReallyVisible(), LISTBOX_ENTRY_NOTFOUND, OutputDevice::LogicToPixel(), mpImplLB, mpImplWin, Control::mpLayoutData, Window::OutputToAbsoluteScreenPixel(), OutputDevice::PixelToLogic(), and Control::ToRelativeLineIndex().
ImplListBox* ListBox::mpImplLB [private] |
Definition at line 48 of file lstbox.hxx.
Referenced by CalcMinimumSize(), CalcSize(), CalcWindowSizePixel(), Clear(), DataChanged(), Draw(), DrawEntry(), EnableMirroring(), EnableMultiSelection(), EnableUserDraw(), FillLayoutData(), GetBoundingRectangle(), GetDisplayBackground(), GetDisplayLineCount(), GetEntry(), GetEntryCount(), GetEntryData(), GetEntryFlags(), GetEntryPos(), GetFocus(), GetIndexForPoint(), GetMaxMRUCount(), GetMaxVisColumnsAndLines(), GetMRUEntries(), GetPreferredKeyInputWindow(), GetSelectEntryCount(), GetSelectEntryPos(), GetSeparatorPos(), GetTopEntry(), GetUserItemSize(), IMPL_LINK(), ImplInit(), ImplInitListBoxData(), InsertEntry(), IsEntryPosSelected(), IsMultiSelectionEnabled(), IsReadOnly(), IsTravelSelect(), IsUserDrawEnabled(), LoseFocus(), PreNotify(), RemoveEntry(), Resize(), SelectEntryPos(), SetEntryData(), SetEntryFlags(), SetMaxMRUCount(), SetMRUEntries(), SetNoSelection(), SetReadOnly(), SetSeparatorPos(), SetTopEntry(), SetUserItemSize(), StateChanged(), and ~ListBox().
ImplListBoxFloatingWindow* ListBox::mpFloatWin [private] |
Definition at line 49 of file lstbox.hxx.
Referenced by EnableAutoSize(), EnableDDAutoWidth(), EnableMultiSelection(), FillLayoutData(), GetDropDownLineCount(), GetDropDownPosSizePixel(), IMPL_LINK(), ImplInit(), ImplInitListBoxData(), IsDDAutoWidthEnabled(), IsInDropDown(), PreNotify(), Resize(), SetDropDownLineCount(), SetPosSizePixel(), ToggleDropDown(), and ~ListBox().
ImplWin* ListBox::mpImplWin [private] |
Definition at line 50 of file lstbox.hxx.
Referenced by Clear(), DataChanged(), DrawEntry(), EnableUserDraw(), FillLayoutData(), GetFocus(), GetIndexForPoint(), GetMaxVisColumnsAndLines(), GetPreferredKeyInputWindow(), IMPL_LINK(), ImplInit(), ImplInitListBoxData(), LoseFocus(), PreNotify(), Resize(), SetNoSelection(), SetUserItemSize(), StateChanged(), ToggleDropDown(), and ~ListBox().
ImplBtn* ListBox::mpBtn [private] |
Definition at line 51 of file lstbox.hxx.
Referenced by DataChanged(), IMPL_LINK(), ImplInit(), ImplInitListBoxData(), PreNotify(), Resize(), StateChanged(), ToggleDropDown(), and ~ListBox().
USHORT ListBox::mnDDHeight [private] |
Definition at line 52 of file lstbox.hxx.
Referenced by CalcAdjustedSize(), CalcMinimumSize(), CalcSize(), ImplInit(), ImplInitListBoxData(), and SetPosSizePixel().
USHORT ListBox::mnSaveValue [private] |
BOOL ListBox::mbDDAutoSize [private] |
Definition at line 54 of file lstbox.hxx.
Referenced by EnableAutoSize(), and ImplInitListBoxData().
Link ListBox::maSelectHdl [private] |
Link ListBox::maDoubleClickHdl [private] |
USHORT ListBox::mnLineCount [private] |
Definition at line 57 of file lstbox.hxx.
Referenced by CalcMinimumSize(), GetDropDownLineCount(), ImplInitListBoxData(), and SetDropDownLineCount().
1.5.6