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

#include <svlbitm.hxx>

Inheritance diagram for SvLBoxString:
Collaboration diagram for SvLBoxString:

Public Member Functions

 SvLBoxString (const OUString &rText)
 SvLBoxString ()
virtual ~SvLBoxString () override
virtual SvLBoxItemType GetType () const override
virtual void InitViewData (SvTreeListBox *pView, SvTreeListEntry *pEntry, SvViewDataItem *pViewData=nullptr) override
virtual int CalcWidth (const SvTreeListBox *pView) const override
void Emphasize (bool bEmphasize)
bool IsEmphasized () const
const OUString & GetText () const
void SetText (const OUString &rText)
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
- Public Member Functions inherited from SvLBoxItem
 SvLBoxItem ()
virtual ~SvLBoxItem ()
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)

Protected Attributes

OUString maText
- Protected Attributes inherited from SvLBoxItem
bool mbDisabled

Private Attributes

bool mbEmphasized

Additional Inherited Members

- Static Public Member Functions inherited from SvLBoxItem
static int GetHeight (const SvViewDataEntry *pData, sal_uInt16 nItemPos)

Detailed Description

Definition at line 104 of file svlbitm.hxx.

Constructor & Destructor Documentation

SvLBoxString::SvLBoxString ( const OUString &  rText)

Definition at line 175 of file svlbitm.cxx.

References maText.

SvLBoxString::SvLBoxString ( )

Definition at line 181 of file svlbitm.cxx.

SvLBoxString::~SvLBoxString ( )

Definition at line 186 of file svlbitm.cxx.

Member Function Documentation

int SvLBoxString::CalcWidth ( const SvTreeListBox pView) const

Reimplemented from SvLBoxItem.

Definition at line 254 of file svlbitm.cxx.

References OutputDevice::GetTextWidth(), and maText.

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

Implements SvLBoxItem.

Definition at line 226 of file svlbitm.cxx.

References maText.

void SvLBoxString::Emphasize ( bool  bEmphasize)

Definition at line 123 of file svlbitm.hxx.

const OUString& SvLBoxString::GetText ( ) const
SvLBoxItemType SvLBoxString::GetType ( ) const

Implements SvLBoxItem.

Definition at line 190 of file svlbitm.cxx.

References String.

void SvLBoxString::InitViewData ( SvTreeListBox pView,
SvTreeListEntry pEntry,
SvViewDataItem pViewData = nullptr 
bool SvLBoxString::IsEmphasized ( ) const

Definition at line 124 of file svlbitm.hxx.

void SvLBoxString::Paint ( const Point rPos,
SvTreeListBox rOutDev,
vcl::RenderContext rRenderContext,
const SvViewDataEntry pView,
const SvTreeListEntry rEntry 
void SvLBoxString::SetText ( const OUString &  rText)

Definition at line 130 of file svlbitm.hxx.

Referenced by SvTreeListBox::SetEntryText().

Member Data Documentation

OUString SvLBoxString::maText

Definition at line 109 of file svlbitm.hxx.

Referenced by CalcWidth(), Clone(), and Paint().

bool SvLBoxString::mbEmphasized

Definition at line 107 of file svlbitm.hxx.

Referenced by InitViewData(), and Paint().

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