LibreOffice Module vcl (master) 1
|
#include <svlbitm.hxx>
Public Member Functions | |
SvLBoxButton (SvLBoxButtonData *pBData) | |
SvLBoxButton () | |
virtual | ~SvLBoxButton () override |
virtual void | InitViewData (SvTreeListBox *pView, SvTreeListEntry *pEntry, SvViewDataItem *pViewData=nullptr) override |
virtual SvLBoxItemType | GetType () const override |
void | ClickHdl (SvTreeListEntry *) |
virtual void | Paint (const Point &rPos, SvTreeListBox &rOutDev, vcl::RenderContext &rRenderContext, const SvViewDataEntry *pView, const SvTreeListEntry &rEntry) override |
virtual std::unique_ptr< SvLBoxItem > | Clone (SvLBoxItem const *pSource) const override |
SvItemStateFlags | GetButtonFlags () const |
bool | IsStateChecked () const |
bool | IsStateUnchecked () const |
bool | IsStateTristate () const |
bool | IsStateHilighted () const |
void | SetStateChecked () |
void | SetStateUnchecked () |
void | SetStateTristate () |
void | SetStateHilighted (bool bHilight) |
Public Member Functions inherited from SvLBoxItem | |
SvLBoxItem () | |
virtual | ~SvLBoxItem () |
virtual SvLBoxItemType | GetType () const =0 |
virtual int | CalcWidth (const SvTreeListBox *pView) const |
int | GetWidth (const SvTreeListBox *pView, const SvTreeListEntry *pEntry) const |
int | GetWidth (const SvTreeListBox *pView, const SvViewDataEntry *pData, sal_uInt16 nItemPos) const |
int | GetHeight (const SvTreeListBox *pView, const SvTreeListEntry *pEntry) const |
void | Enable (bool bEnabled) |
bool | isEnable () const |
virtual void | Paint (const Point &rPos, SvTreeListBox &rOutDev, vcl::RenderContext &rRenderContext, const SvViewDataEntry *pView, const SvTreeListEntry &rEntry)=0 |
virtual void | InitViewData (SvTreeListBox *pView, SvTreeListEntry *pEntry, SvViewDataItem *pViewData=nullptr)=0 |
virtual std::unique_ptr< SvLBoxItem > | Clone (SvLBoxItem const *pSource) const =0 |
Static Private Member Functions | |
static void | ImplAdjustBoxSize (Size &io_rCtrlSize, ControlType i_eType, vcl::RenderContext const &pRenderContext) |
Private Attributes | |
bool | isVis |
SvLBoxButtonData * | pData |
SvItemStateFlags | nItemFlags |
Additional Inherited Members | |
Static Public Member Functions inherited from SvLBoxItem | |
static int | GetHeight (const SvViewDataEntry *pData, sal_uInt16 nItemPos) |
Protected Attributes inherited from SvLBoxItem | |
bool | mbDisabled |
Definition at line 150 of file svlbitm.hxx.
SvLBoxButton::SvLBoxButton | ( | SvLBoxButtonData * | pBData | ) |
Definition at line 328 of file svlbitm.cxx.
References NONE, pData, and SetStateUnchecked().
SvLBoxButton::SvLBoxButton | ( | ) |
Definition at line 336 of file svlbitm.cxx.
References NONE, pData, and SetStateUnchecked().
|
overridevirtual |
Definition at line 344 of file svlbitm.cxx.
void SvLBoxButton::ClickHdl | ( | SvTreeListEntry * | pEntry | ) |
Definition at line 353 of file svlbitm.cxx.
References SvLBoxButtonData::CallLink(), IsStateChecked(), pData, SetStateChecked(), SetStateUnchecked(), and SvLBoxButtonData::StoreButtonState().
Referenced by SvImpLBox::ButtonUpCheckCtrl(), TreeListEntryUIObject::execute(), and SvTreeListBox::MouseButtonUp().
|
overridevirtual |
|
inline |
Definition at line 180 of file svlbitm.hxx.
References nItemFlags.
Referenced by SvTreeListBox::GetCheckButtonState(), and SvHeaderTabListBox::IsItemChecked().
|
overridevirtual |
Implements SvLBoxItem.
Definition at line 348 of file svlbitm.cxx.
References Button.
Referenced by SvHeaderTabListBox::IsItemChecked().
|
staticprivate |
Definition at line 409 of file svlbitm.cxx.
References ENABLED, Entire, OutputDevice::GetNativeControlRegion(), tools::Rectangle::GetSize(), Size::Height(), OutputDevice::IsNativeControlSupported(), On, Size::setHeight(), ImplControlValue::setTristateVal(), Size::setWidth(), and Size::Width().
Referenced by InitViewData(), and Paint().
|
overridevirtual |
Implements SvLBoxItem.
Definition at line 438 of file svlbitm.cxx.
References Checkbox, vcl::Window::GetOutDev(), SvTreeListBox::GetViewDataItem(), SvLBoxButtonData::Height(), Size::Height(), ImplAdjustBoxSize(), SvLBoxButtonData::IsRadio(), SvViewDataItem::mnHeight, SvViewDataItem::mnWidth, pData, Radiobutton, SvLBoxButtonData::Width(), and Size::Width().
|
inline |
Definition at line 184 of file svlbitm.hxx.
References CHECKED, and nItemFlags.
Referenced by ClickHdl(), SalInstanceTreeView::do_get_toggle(), TreeListEntryUIObject::get_state(), and Paint().
|
inline |
Definition at line 196 of file svlbitm.hxx.
References HIGHLIGHTED, and nItemFlags.
Referenced by SvImpLBox::MouseMoveCheckCtrl(), and Paint().
|
inline |
Definition at line 192 of file svlbitm.hxx.
References nItemFlags, and TRISTATE.
Referenced by SalInstanceTreeView::do_get_toggle(), and Paint().
|
inline |
Definition at line 188 of file svlbitm.hxx.
References nItemFlags, and UNCHECKED.
Referenced by Paint().
|
overridevirtual |
Implements SvLBoxItem.
Definition at line 363 of file svlbitm.cxx.
References Checkbox, Disable, OutputDevice::DrawImage(), OutputDevice::DrawNativeControl(), ENABLED, Entire, FOCUSED, SvLBoxButtonData::GetImage(), SvLBoxButtonData::GetIndex(), SvLBoxButtonData::Height(), ImplAdjustBoxSize(), vcl::Window::IsEnabled(), OutputDevice::IsNativeControlSupported(), SvLBoxButtonData::IsRadio(), IsStateChecked(), IsStateHilighted(), IsStateTristate(), IsStateUnchecked(), isVis, SvLBoxItem::mbDisabled, Mixed, nIndex, nItemFlags, NONE, nState, Off, On, pData, Radiobutton, ImplControlValue::setTristateVal(), and SvLBoxButtonData::Width().
|
inline |
Definition at line 206 of file svlbitm.hxx.
References CHECKED, HIGHLIGHTED, and nItemFlags.
Referenced by ClickHdl(), and SvTreeListBox::SetCheckButtonState().
|
inline |
Definition at line 222 of file svlbitm.hxx.
References HIGHLIGHTED, and nItemFlags.
Referenced by SvImpLBox::ButtonDownCheckCtrl(), SvImpLBox::ButtonUpCheckCtrl(), and SvImpLBox::MouseMoveCheckCtrl().
|
inline |
Definition at line 217 of file svlbitm.hxx.
References HIGHLIGHTED, nItemFlags, and TRISTATE.
Referenced by SvTreeListBox::SetCheckButtonState().
|
inline |
Definition at line 212 of file svlbitm.hxx.
References HIGHLIGHTED, nItemFlags, and UNCHECKED.
Referenced by ClickHdl(), SvTreeListBox::SetCheckButtonState(), and SvLBoxButton().
|
private |
Definition at line 152 of file svlbitm.hxx.
Referenced by Paint().
|
private |
Definition at line 154 of file svlbitm.hxx.
Referenced by GetButtonFlags(), IsStateChecked(), IsStateHilighted(), IsStateTristate(), IsStateUnchecked(), Paint(), SetStateChecked(), SetStateHilighted(), SetStateTristate(), and SetStateUnchecked().
|
private |
Definition at line 153 of file svlbitm.hxx.
Referenced by ClickHdl(), Clone(), InitViewData(), and Paint().