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 Align (double fAlign)
void Emphasize (bool bEmphasize)
bool IsEmphasized () const
void SetCustomRender ()
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) const
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
bool mbCustom
double mfAlign

Additional Inherited Members

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

Detailed Description

Definition at line 105 of file svlbitm.hxx.

Constructor & Destructor Documentation

SvLBoxString::SvLBoxString ( const OUString &  rText)

Definition at line 170 of file svlbitm.cxx.

References false, and maText.

SvLBoxString::SvLBoxString ( )

Definition at line 178 of file svlbitm.cxx.

References false.

SvLBoxString::~SvLBoxString ( )

Definition at line 185 of file svlbitm.cxx.

Member Function Documentation

void SvLBoxString::Align ( double  fAlign)

Definition at line 126 of file svlbitm.hxx.

int SvLBoxString::CalcWidth ( const SvTreeListBox pView) const

Reimplemented from SvLBoxItem.

Definition at line 317 of file svlbitm.cxx.

References vcl::Window::GetTextWidth(), and maText.

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

Implements SvLBoxItem.

Definition at line 267 of file svlbitm.cxx.

References maText, mbCustom, mbEmphasized, and mfAlign.

void SvLBoxString::Emphasize ( bool  bEmphasize)

Definition at line 128 of file svlbitm.hxx.

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

Implements SvLBoxItem.

Definition at line 189 of file svlbitm.cxx.

References String.

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

Definition at line 129 of file svlbitm.hxx.

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

Definition at line 131 of file svlbitm.hxx.

void SvLBoxString::SetText ( const OUString &  rText)

Definition at line 137 of file svlbitm.hxx.

Referenced by SvTreeListBox::SetEntryText().

Member Data Documentation

OUString SvLBoxString::maText

Definition at line 112 of file svlbitm.hxx.

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

bool SvLBoxString::mbCustom

Definition at line 109 of file svlbitm.hxx.

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

bool SvLBoxString::mbEmphasized

Definition at line 108 of file svlbitm.hxx.

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

double SvLBoxString::mfAlign

Definition at line 110 of file svlbitm.hxx.

Referenced by Clone(), and Paint().

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