#include <ilstbox.hxx>


Public Member Functions | |
| ImplWin (Window *pParent, WinBits nWinStyle=0) | |
| ~ImplWin () | |
| virtual void | MouseButtonDown (const MouseEvent &rMEvt) |
| virtual void | Paint (const Rectangle &rRect) |
| virtual void | Resize () |
| virtual void | GetFocus () |
| virtual void | LoseFocus () |
| virtual long | PreNotify (NotifyEvent &rNEvt) |
| USHORT | GetItemPos () const |
| void | SetItemPos (USHORT n) |
| const XubString & | GetString () const |
| void | SetString (const XubString &rStr) |
| const Image & | GetImage () const |
| void | SetImage (const Image &rImg) |
| BOOL | SetModeImage (const Image &rImage, BmpColorMode eMode=BMP_COLOR_NORMAL) |
| const Image & | GetModeImage (BmpColorMode eMode=BMP_COLOR_NORMAL) const |
| virtual void | MBDown () |
| void | SetMBDownHdl (const Link &rLink) |
| const Link & | GetMBDownHdl () const |
| void | SetUserDrawHdl (const Link &rLink) |
| const Link & | GetUserDrawHdl () const |
| void | SetUserItemSize (const Size &rSz) |
| const Size & | GetUserItemSize () const |
| void | EnableUserDraw (BOOL bUserDraw) |
| BOOL | IsUserDrawEnabled () const |
| void | DrawEntry (BOOL bDrawImage, BOOL bDrawText, BOOL bDrawTextAtImagePos=FALSE, bool bLayout=false) |
Protected Member Functions | |
| virtual void | FillLayoutData () const |
Private Member Functions | |
| void | ImplDraw (bool bLayout=false) |
Private Attributes | |
| USHORT | mnItemPos |
| XubString | maString |
| Image | maImage |
| Image | maImageHC |
| Rectangle | maFocusRect |
| Size | maUserItemSize |
| Link | maMBDownHdl |
| Link | maUserDrawHdl |
| BOOL | mbUserDrawEnabled: 1 |
| BOOL | mbInUserDraw: 1 |
Definition at line 541 of file ilstbox.hxx.
Definition at line 2683 of file ilstbox.cxx.
References CTRL_LISTBOX, OutputDevice::GetSettings(), Window::IsNativeControlSupported(), LISTBOX_ENTRY_NOTFOUND, mbInUserDraw, mbUserDrawEnabled, mnItemPos, PART_BUTTON_DOWN, PART_ENTIRE_CONTROL, and OutputDevice::SetBackground().
| ImplWin::~ImplWin | ( | ) | [inline] |
Definition at line 566 of file ilstbox.hxx.
| void ImplWin::ImplDraw | ( | bool | bLayout = false |
) | [private] |
Definition at line 2773 of file ilstbox.cxx.
References CTRL_LISTBOX, CTRL_STATE_ENABLED, CTRL_STATE_FOCUSED, CTRL_STATE_ROLLOVER, DrawEntry(), Window::DrawNativeControl(), OutputDevice::DrawRect(), OutputDevice::Erase(), Window::GetBorder(), Window::GetControlForeground(), StyleSettings::GetDisableColor(), StyleSettings::GetFieldRolloverTextColor(), StyleSettings::GetFieldTextColor(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), Window::GetParent(), Window::GetPosPixel(), OutputDevice::GetSettings(), Window::GetSizePixel(), Window::GetStyle(), AllSettings::GetStyleSettings(), Window::GetWindow(), HAS_BACKGROUND_TEXTURE, Window::HasFocus(), Window::IsControlForeground(), Window::IsEnabled(), Window::IsMouseOver(), Window::IsNativeControlSupported(), IsUserDrawEnabled(), maFocusRect, maUserDrawHdl, mbInUserDraw, mnItemPos, PART_ENTIRE_CONTROL, OutputDevice::SetFillColor(), OutputDevice::SetTextColor(), WB_BORDER, WB_NOBORDER, WINDOW_FIRSTCHILD, and WINDOW_NEXT.
Referenced by FillLayoutData(), and Paint().
| void ImplWin::FillLayoutData | ( | ) | const [protected, virtual] |
Reimplemented from Control.
Definition at line 2741 of file ilstbox.cxx.
References ImplDraw(), and Control::mpLayoutData.
| void ImplWin::MouseButtonDown | ( | const MouseEvent & | rMEvt | ) | [virtual] |
Reimplemented from Window.
Definition at line 2730 of file ilstbox.cxx.
References Window::IsEnabled(), and MBDown().
| void ImplWin::Paint | ( | const Rectangle & | rRect | ) | [virtual] |
| void ImplWin::Resize | ( | ) | [virtual] |
Reimplemented from Control.
Definition at line 2947 of file ilstbox.cxx.
References OutputDevice::GetOutputSizePixel(), Window::Invalidate(), maFocusRect, and Control::Resize().
| void ImplWin::GetFocus | ( | ) | [virtual] |
Reimplemented from Control.
Definition at line 2956 of file ilstbox.cxx.
References CTRL_LISTBOX, Control::GetFocus(), Window::GetParent(), Window::GetWindow(), ImplGetSVData(), Window::Invalidate(), Window::IsNativeControlSupported(), Window::IsNativeWidgetEnabled(), maFocusRect, PART_ENTIRE_CONTROL, Window::ShowFocus(), and WINDOW_BORDER.
| void ImplWin::LoseFocus | ( | ) | [virtual] |
Reimplemented from Control.
Definition at line 2975 of file ilstbox.cxx.
References CTRL_LISTBOX, Window::GetParent(), Window::GetWindow(), Window::HideFocus(), ImplGetSVData(), Window::Invalidate(), Window::IsNativeControlSupported(), Window::IsNativeWidgetEnabled(), Control::LoseFocus(), PART_ENTIRE_CONTROL, and WINDOW_BORDER.
| long ImplWin::PreNotify | ( | NotifyEvent & | rNEvt | ) | [virtual] |
Reimplemented from Window.
Definition at line 2749 of file ilstbox.cxx.
References CTRL_LISTBOX, EVENT_MOUSEMOVE, NotifyEvent::GetMouseEvent(), Window::GetParent(), NotifyEvent::GetType(), Window::GetWindow(), Window::Invalidate(), INVALIDATE_NOERASE, MouseEvent::IsEnterWindow(), MouseEvent::IsLeaveWindow(), Window::IsNativeControlSupported(), PART_BUTTON_DOWN, PART_ENTIRE_CONTROL, Window::PreNotify(), Window::Update(), and WINDOW_BORDER.
| USHORT ImplWin::GetItemPos | ( | ) | const [inline] |
Definition at line 575 of file ilstbox.hxx.
References mnItemPos.
Referenced by ListBox::GetIndexForPoint().
| void ImplWin::SetItemPos | ( | USHORT | n | ) | [inline] |
Definition at line 576 of file ilstbox.hxx.
References mnItemPos.
Referenced by ListBox::Clear(), IMPL_LINK(), and ListBox::SetNoSelection().
| const XubString& ImplWin::GetString | ( | ) | const [inline] |
| void ImplWin::SetString | ( | const XubString & | rStr | ) | [inline] |
Definition at line 579 of file ilstbox.hxx.
References maString.
Referenced by ListBox::Clear(), IMPL_LINK(), and ListBox::SetNoSelection().
| const Image& ImplWin::GetImage | ( | ) | const [inline] |
| void ImplWin::SetImage | ( | const Image & | rImg | ) | [inline] |
Definition at line 582 of file ilstbox.hxx.
References maImage.
Referenced by ListBox::Clear(), IMPL_LINK(), SetModeImage(), and ListBox::SetNoSelection().
| BOOL ImplWin::SetModeImage | ( | const Image & | rImage, | |
| BmpColorMode | eMode = BMP_COLOR_NORMAL | |||
| ) |
Definition at line 2699 of file ilstbox.cxx.
References BMP_COLOR_HIGHCONTRAST, BMP_COLOR_NORMAL, maImageHC, and SetImage().
| const Image & ImplWin::GetModeImage | ( | BmpColorMode | eMode = BMP_COLOR_NORMAL |
) | const |
Definition at line 2712 of file ilstbox.cxx.
References BMP_COLOR_HIGHCONTRAST, maImage, and maImageHC.
| void ImplWin::MBDown | ( | ) | [virtual] |
Definition at line 2722 of file ilstbox.cxx.
References Window::IsEnabled(), and maMBDownHdl.
Referenced by MouseButtonDown().
| void ImplWin::SetMBDownHdl | ( | const Link & | rLink | ) | [inline] |
Definition at line 589 of file ilstbox.hxx.
References maMBDownHdl.
Referenced by ListBox::ImplInit().
| const Link& ImplWin::GetMBDownHdl | ( | ) | const [inline] |
| void ImplWin::SetUserDrawHdl | ( | const Link & | rLink | ) | [inline] |
Definition at line 592 of file ilstbox.hxx.
References maUserDrawHdl.
Referenced by ListBox::ImplInit().
| const Link& ImplWin::GetUserDrawHdl | ( | ) | const [inline] |
| void ImplWin::SetUserItemSize | ( | const Size & | rSz | ) | [inline] |
Definition at line 595 of file ilstbox.hxx.
References maUserItemSize.
Referenced by ListBox::SetUserItemSize().
| const Size& ImplWin::GetUserItemSize | ( | ) | const [inline] |
| void ImplWin::EnableUserDraw | ( | BOOL | bUserDraw | ) | [inline] |
Definition at line 598 of file ilstbox.hxx.
References mbUserDrawEnabled.
Referenced by ListBox::EnableUserDraw().
| BOOL ImplWin::IsUserDrawEnabled | ( | ) | const [inline] |
Definition at line 599 of file ilstbox.hxx.
References mbUserDrawEnabled.
Referenced by DrawEntry(), and ImplDraw().
| void ImplWin::DrawEntry | ( | BOOL | bDrawImage, | |
| BOOL | bDrawText, | |||
| BOOL | bDrawTextAtImagePos = FALSE, |
|||
| bool | bLayout = false | |||
| ) |
Definition at line 2882 of file ilstbox.cxx.
References Window::CalcZoom(), OutputDevice::DrawImage(), OutputDevice::DrawText(), StyleSettings::GetHighContrastMode(), OutputDevice::GetOutputSizePixel(), OutputDevice::GetSettings(), Image::GetSizePixel(), Window::GetStyle(), AllSettings::GetStyleSettings(), Window::HasFocus(), IMG_TXT_DISTANCE, IsUserDrawEnabled(), Window::IsZoom(), vcl::ControlLayoutData::m_aDisplayText, vcl::ControlLayoutData::m_aUnicodeBoundRects, maFocusRect, maImage, maImageHC, maString, maUserItemSize, Control::mpLayoutData, Window::ShowFocus(), TEXT_DRAW_CENTER, TEXT_DRAW_LEFT, TEXT_DRAW_RIGHT, TEXT_DRAW_VCENTER, WB_CENTER, and WB_RIGHT.
Referenced by ListBox::DrawEntry(), and ImplDraw().
USHORT ImplWin::mnItemPos [private] |
Definition at line 545 of file ilstbox.hxx.
Referenced by GetItemPos(), ImplDraw(), ImplWin(), and SetItemPos().
XubString ImplWin::maString [private] |
Definition at line 546 of file ilstbox.hxx.
Referenced by DrawEntry(), GetString(), and SetString().
Image ImplWin::maImage [private] |
Definition at line 547 of file ilstbox.hxx.
Referenced by DrawEntry(), GetImage(), GetModeImage(), and SetImage().
Image ImplWin::maImageHC [private] |
Definition at line 548 of file ilstbox.hxx.
Referenced by DrawEntry(), GetModeImage(), and SetModeImage().
Rectangle ImplWin::maFocusRect [private] |
Definition at line 550 of file ilstbox.hxx.
Referenced by DrawEntry(), GetFocus(), ImplDraw(), and Resize().
Size ImplWin::maUserItemSize [private] |
Definition at line 551 of file ilstbox.hxx.
Referenced by DrawEntry(), GetUserItemSize(), and SetUserItemSize().
Link ImplWin::maMBDownHdl [private] |
Definition at line 553 of file ilstbox.hxx.
Referenced by GetMBDownHdl(), MBDown(), and SetMBDownHdl().
Link ImplWin::maUserDrawHdl [private] |
Definition at line 554 of file ilstbox.hxx.
Referenced by GetUserDrawHdl(), ImplDraw(), and SetUserDrawHdl().
BOOL ImplWin::mbUserDrawEnabled [private] |
Definition at line 556 of file ilstbox.hxx.
Referenced by EnableUserDraw(), ImplWin(), and IsUserDrawEnabled().
BOOL ImplWin::mbInUserDraw [private] |
1.5.6