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

#include <svlbitm.hxx>

Inheritance diagram for SvLBoxButton:
Collaboration diagram for SvLBoxButton:

Public Member Functions

 SvLBoxButton (SvLBoxButtonKind eTheKind, 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)
SvLBoxButtonKind GetKind () const
bool CheckModification () const
- 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)
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
SvLBoxButtonKind const eKind
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 143 of file svlbitm.hxx.

Constructor & Destructor Documentation

SvLBoxButton::SvLBoxButton ( SvLBoxButtonKind  eTheKind,
SvLBoxButtonData pBData 

Definition at line 264 of file svlbitm.cxx.

References NONE, and SetStateUnchecked().

SvLBoxButton::SvLBoxButton ( )

Definition at line 274 of file svlbitm.cxx.

References EnabledCheckbox, NONE, and SetStateUnchecked().

SvLBoxButton::~SvLBoxButton ( )

Definition at line 284 of file svlbitm.cxx.

Member Function Documentation

bool SvLBoxButton::CheckModification ( ) const

Definition at line 394 of file svlbitm.cxx.

References eKind, and EnabledCheckbox.

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

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

Implements SvLBoxItem.

Definition at line 345 of file svlbitm.cxx.

References pData.

SvItemStateFlags SvLBoxButton::GetButtonFlags ( ) const
SvLBoxButtonKind SvLBoxButton::GetKind ( ) const

Definition at line 200 of file svlbitm.hxx.

Referenced by SvTreeListBox::CloneEntry().

SvLBoxItemType SvLBoxButton::GetType ( ) const

Implements SvLBoxItem.

Definition at line 288 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

Definition at line 179 of file svlbitm.hxx.

References CHECKED.

Referenced by ClickHdl(), and Paint().

bool SvLBoxButton::IsStateHilighted ( ) const

Definition at line 191 of file svlbitm.hxx.

References HILIGHTED.

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

bool SvLBoxButton::IsStateTristate ( ) const

Definition at line 187 of file svlbitm.hxx.

References TRISTATE.

Referenced by Paint().

bool SvLBoxButton::IsStateUnchecked ( ) const

Definition at line 183 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

SvLBoxButtonKind const SvLBoxButton::eKind

Definition at line 147 of file svlbitm.hxx.

Referenced by CheckModification(), and Paint().

bool SvLBoxButton::isVis

Definition at line 145 of file svlbitm.hxx.

Referenced by Paint().

SvItemStateFlags SvLBoxButton::nItemFlags
SvLBoxButtonData* SvLBoxButton::pData

Definition at line 146 of file svlbitm.hxx.

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

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