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:
[legend]
Collaboration diagram for SvLBoxButton:
[legend]

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 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< SvLBoxItemClone (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
 
SvLBoxButtonDatapData
 
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() [1/2]

SvLBoxButton::SvLBoxButton ( SvLBoxButtonData pBData)

Definition at line 328 of file svlbitm.cxx.

References NONE, pData, and SetStateUnchecked().

◆ SvLBoxButton() [2/2]

SvLBoxButton::SvLBoxButton ( )

Definition at line 336 of file svlbitm.cxx.

References NONE, pData, and SetStateUnchecked().

◆ ~SvLBoxButton()

SvLBoxButton::~SvLBoxButton ( )
overridevirtual

Definition at line 344 of file svlbitm.cxx.

Member Function Documentation

◆ ClickHdl()

void SvLBoxButton::ClickHdl ( SvTreeListEntry pEntry)

◆ Clone()

std::unique_ptr< SvLBoxItem > SvLBoxButton::Clone ( SvLBoxItem const *  pSource) const
overridevirtual

Implements SvLBoxItem.

Definition at line 402 of file svlbitm.cxx.

References pData.

◆ GetButtonFlags()

SvItemStateFlags SvLBoxButton::GetButtonFlags ( ) const
inline

Definition at line 180 of file svlbitm.hxx.

References nItemFlags.

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

◆ GetType()

SvLBoxItemType SvLBoxButton::GetType ( ) const
overridevirtual

Implements SvLBoxItem.

Definition at line 348 of file svlbitm.cxx.

References Button.

Referenced by SvHeaderTabListBox::IsItemChecked().

◆ ImplAdjustBoxSize()

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

◆ InitViewData()

void SvLBoxButton::InitViewData ( SvTreeListBox pView,
SvTreeListEntry pEntry,
SvViewDataItem pViewData = nullptr 
)
overridevirtual

◆ IsStateChecked()

bool SvLBoxButton::IsStateChecked ( ) const
inline

◆ IsStateHilighted()

bool SvLBoxButton::IsStateHilighted ( ) const
inline

Definition at line 196 of file svlbitm.hxx.

References HIGHLIGHTED, and nItemFlags.

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

◆ IsStateTristate()

bool SvLBoxButton::IsStateTristate ( ) const
inline

Definition at line 192 of file svlbitm.hxx.

References nItemFlags, and TRISTATE.

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

◆ IsStateUnchecked()

bool SvLBoxButton::IsStateUnchecked ( ) const
inline

Definition at line 188 of file svlbitm.hxx.

References nItemFlags, and UNCHECKED.

Referenced by Paint().

◆ Paint()

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

◆ SetStateChecked()

void SvLBoxButton::SetStateChecked ( )
inline

Definition at line 206 of file svlbitm.hxx.

References CHECKED, HIGHLIGHTED, and nItemFlags.

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

◆ SetStateHilighted()

void SvLBoxButton::SetStateHilighted ( bool  bHilight)
inline

◆ SetStateTristate()

void SvLBoxButton::SetStateTristate ( )
inline

Definition at line 217 of file svlbitm.hxx.

References HIGHLIGHTED, nItemFlags, and TRISTATE.

Referenced by SvTreeListBox::SetCheckButtonState().

◆ SetStateUnchecked()

void SvLBoxButton::SetStateUnchecked ( )
inline

Definition at line 212 of file svlbitm.hxx.

References HIGHLIGHTED, nItemFlags, and UNCHECKED.

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

Member Data Documentation

◆ isVis

bool SvLBoxButton::isVis
private

Definition at line 152 of file svlbitm.hxx.

Referenced by Paint().

◆ nItemFlags

SvItemStateFlags SvLBoxButton::nItemFlags
private

◆ pData

SvLBoxButtonData* SvLBoxButton::pData
private

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: