LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
SvLBoxItem Class Referenceabstract

#include <treelistbox.hxx>

Inheritance diagram for SvLBoxItem:

Public Member Functions

 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 Public Member Functions

static int GetHeight (const SvViewDataEntry *pData, sal_uInt16 nItemPos)

Protected Attributes

bool mbDisabled

Detailed Description

Definition at line 115 of file treelistbox.hxx.

Constructor & Destructor Documentation

◆ SvLBoxItem()

SvLBoxItem::SvLBoxItem ( )

Definition at line 325 of file treelistbox.cxx.

◆ ~SvLBoxItem()

SvLBoxItem::~SvLBoxItem ( )

Definition at line 330 of file treelistbox.cxx.

Member Function Documentation

◆ CalcWidth()

int SvLBoxItem::CalcWidth ( const SvTreeListBox pView) const

Reimplemented in SvLBoxString.

Definition at line 370 of file treelistbox.cxx.

Referenced by GetWidth().

◆ Clone()

virtual std::unique_ptr< SvLBoxItem > SvLBoxItem::Clone ( SvLBoxItem const *  pSource) const
pure virtual

◆ Enable()

void SvLBoxItem::Enable ( bool  bEnabled)

Definition at line 129 of file treelistbox.hxx.

Referenced by SalInstanceTreeView::set_sensitive().

◆ GetHeight() [1/2]

int SvLBoxItem::GetHeight ( const SvTreeListBox pView,
const SvTreeListEntry pEntry 
) const

◆ GetHeight() [2/2]

int SvLBoxItem::GetHeight ( const SvViewDataEntry pData,
sal_uInt16  nItemPos 

Definition at line 364 of file treelistbox.cxx.

References SvViewDataItem::mnHeight, and pData.

◆ GetType()

virtual SvLBoxItemType SvLBoxItem::GetType ( ) const
pure virtual

◆ GetWidth() [1/2]

int SvLBoxItem::GetWidth ( const SvTreeListBox pView,
const SvTreeListEntry pEntry 
) const

◆ GetWidth() [2/2]

int SvLBoxItem::GetWidth ( const SvTreeListBox pView,
const SvViewDataEntry pData,
sal_uInt16  nItemPos 
) const

Definition at line 352 of file treelistbox.cxx.

References CalcWidth(), mnWidth, SvViewDataItem::mnWidth, and pData.

◆ InitViewData()

virtual void SvLBoxItem::InitViewData ( SvTreeListBox pView,
SvTreeListEntry pEntry,
SvViewDataItem pViewData = nullptr 
pure virtual

◆ isEnable()

bool SvLBoxItem::isEnable ( ) const

◆ Paint()

virtual void SvLBoxItem::Paint ( const Point rPos,
SvTreeListBox rOutDev,
vcl::RenderContext rRenderContext,
const SvViewDataEntry pView,
const SvTreeListEntry rEntry 
pure virtual

Member Data Documentation

◆ mbDisabled

bool SvLBoxItem::mbDisabled

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