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

Public Member Functions

 SvLBoxString (OUString aText)
 
 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 ()
 
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
 

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

SvLBoxString::SvLBoxString ( OUString  aText)

Definition at line 171 of file svlbitm.cxx.

References aStr, and maText.

◆ SvLBoxString() [2/2]

SvLBoxString::SvLBoxString ( )

Definition at line 179 of file svlbitm.cxx.

◆ ~SvLBoxString()

SvLBoxString::~SvLBoxString ( )
overridevirtual

Definition at line 186 of file svlbitm.cxx.

Member Function Documentation

◆ Align()

void SvLBoxString::Align ( double  fAlign)
inline

Definition at line 126 of file svlbitm.hxx.

◆ CalcWidth()

int SvLBoxString::CalcWidth ( const SvTreeListBox pView) const
overridevirtual

Reimplemented from SvLBoxItem.

Definition at line 318 of file svlbitm.cxx.

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

◆ Clone()

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

Implements SvLBoxItem.

Definition at line 268 of file svlbitm.cxx.

References maText, mbCustom, mbEmphasized, and mfAlign.

◆ Emphasize()

void SvLBoxString::Emphasize ( bool  bEmphasize)
inline

Definition at line 128 of file svlbitm.hxx.

◆ GetText()

const OUString & SvLBoxString::GetText ( ) const
inline

◆ GetType()

SvLBoxItemType SvLBoxString::GetType ( ) const
overridevirtual

Implements SvLBoxItem.

Definition at line 190 of file svlbitm.cxx.

References String.

◆ InitViewData()

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

◆ IsEmphasized()

bool SvLBoxString::IsEmphasized ( ) const
inline

Definition at line 129 of file svlbitm.hxx.

◆ Paint()

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

◆ SetCustomRender()

void SvLBoxString::SetCustomRender ( )
inline

Definition at line 131 of file svlbitm.hxx.

◆ SetText()

void SvLBoxString::SetText ( const OUString &  rText)
inline

Definition at line 137 of file svlbitm.hxx.

References maText.

Referenced by SvTreeListBox::SetEntryText().

Member Data Documentation

◆ maText

OUString SvLBoxString::maText
protected

Definition at line 112 of file svlbitm.hxx.

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

◆ mbCustom

bool SvLBoxString::mbCustom
private

Definition at line 109 of file svlbitm.hxx.

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

◆ mbEmphasized

bool SvLBoxString::mbEmphasized
private

Definition at line 108 of file svlbitm.hxx.

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

◆ mfAlign

double SvLBoxString::mfAlign
private

Definition at line 110 of file svlbitm.hxx.

Referenced by Clone(), and Paint().


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