LibreOffice Module vcl (master)  1
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvLBoxButton Class Referencefinal

#include <svlbitm.hxx>

Inheritance diagram for SvLBoxButton:
Collaboration diagram for SvLBoxButton:

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< SvLBoxItemClone (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 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)

Static Private Member Functions

static void ImplAdjustBoxSize (Size &io_rCtrlSize, ControlType i_eType, vcl::RenderContext const &pRenderContext)

Private Attributes

bool isVis
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

Detailed Description

Definition at line 150 of file svlbitm.hxx.

Constructor & Destructor Documentation

SvLBoxButton::SvLBoxButton ( SvLBoxButtonData pBData)

Definition at line 327 of file svlbitm.cxx.

References NONE, pData, and SetStateUnchecked().

SvLBoxButton::SvLBoxButton ( )

Definition at line 335 of file svlbitm.cxx.

References false, NONE, pData, and SetStateUnchecked().

SvLBoxButton::~SvLBoxButton ( )

Definition at line 343 of file svlbitm.cxx.

Member Function Documentation

void SvLBoxButton::ClickHdl ( SvTreeListEntry pEntry)
std::unique_ptr< SvLBoxItem > SvLBoxButton::Clone ( SvLBoxItem const *  pSource) const

Implements SvLBoxItem.

Definition at line 401 of file svlbitm.cxx.

References pData.

SvItemStateFlags SvLBoxButton::GetButtonFlags ( ) const

Definition at line 180 of file svlbitm.hxx.

References nItemFlags.

Referenced by SvTreeListBox::GetCheckButtonState(), and SvHeaderTabListBox::IsItemChecked().

SvLBoxItemType SvLBoxButton::GetType ( ) const

Implements SvLBoxItem.

Definition at line 347 of file svlbitm.cxx.

References Button.

Referenced by SvHeaderTabListBox::IsItemChecked().

void SvLBoxButton::ImplAdjustBoxSize ( Size io_rCtrlSize,
ControlType  i_eType,
vcl::RenderContext const &  pRenderContext 
void SvLBoxButton::InitViewData ( SvTreeListBox pView,
SvTreeListEntry pEntry,
SvViewDataItem pViewData = nullptr 
bool SvLBoxButton::IsStateChecked ( ) const
bool SvLBoxButton::IsStateHilighted ( ) const

Definition at line 196 of file svlbitm.hxx.

References HILIGHTED.

Referenced by SvImpLBox::MouseMoveCheckCtrl(), and Paint().

bool SvLBoxButton::IsStateTristate ( ) const

Definition at line 192 of file svlbitm.hxx.

References TRISTATE.

Referenced by SalInstanceTreeView::do_get_toggle(), and Paint().

bool SvLBoxButton::IsStateUnchecked ( ) const

Definition at line 188 of file svlbitm.hxx.

References UNCHECKED.

Referenced by Paint().

void SvLBoxButton::Paint ( const Point rPos,
SvTreeListBox rOutDev,
vcl::RenderContext rRenderContext,
const SvViewDataEntry pView,
const SvTreeListEntry rEntry 
void SvLBoxButton::SetStateChecked ( )

Definition at line 206 of file svlbitm.hxx.

References CHECKED, HILIGHTED, and nItemFlags.

Referenced by ClickHdl(), and SvTreeListBox::SetCheckButtonState().

void SvLBoxButton::SetStateHilighted ( bool  bHilight)
void SvLBoxButton::SetStateTristate ( )

Definition at line 217 of file svlbitm.hxx.

References HILIGHTED, nItemFlags, and TRISTATE.

Referenced by SvTreeListBox::SetCheckButtonState().

void SvLBoxButton::SetStateUnchecked ( )

Definition at line 212 of file svlbitm.hxx.

References HILIGHTED, nItemFlags, and UNCHECKED.

Referenced by ClickHdl(), SvTreeListBox::SetCheckButtonState(), and SvLBoxButton().

Member Data Documentation

bool SvLBoxButton::isVis

Definition at line 152 of file svlbitm.hxx.

Referenced by Paint().

SvItemStateFlags SvLBoxButton::nItemFlags
SvLBoxButtonData* SvLBoxButton::pData

Definition at line 153 of file svlbitm.hxx.

Referenced by ClickHdl(), Clone(), InitViewData(), and Paint().

The documentation for this class was generated from the following files: