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

#include <svlbitm.hxx>

Inheritance diagram for SvLBoxContextBmp:
[legend]
Collaboration diagram for SvLBoxContextBmp:
[legend]

Public Member Functions

 SvLBoxContextBmp (const Image &aBmp1, const Image &aBmp2, bool bExpanded)
 
 SvLBoxContextBmp ()
 
virtual ~SvLBoxContextBmp () override
 
virtual SvLBoxItemType GetType () const override
 
virtual void InitViewData (SvTreeListBox *pView, SvTreeListEntry *pEntry, SvViewDataItem *pViewData=nullptr) override
 
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
 
void SetModeImages (const Image &rBitmap1, const Image &rBitmap2)
 
void SetBitmap1 (const Image &rImage)
 
void SetBitmap2 (const Image &rImage)
 
const ImageGetBitmap1 () const
 
const ImageGetBitmap2 () const
 
- 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
 

Private Member Functions

ImageimplGetImageStore (bool bFirst)
 

Private Attributes

std::unique_ptr< SvLBoxContextBmp_Implm_pImpl
 

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 232 of file svlbitm.hxx.

Constructor & Destructor Documentation

◆ SvLBoxContextBmp() [1/2]

SvLBoxContextBmp::SvLBoxContextBmp ( const Image aBmp1,
const Image aBmp2,
bool  bExpanded 
)

Definition at line 465 of file svlbitm.cxx.

References m_pImpl, m_pImpl, and SetModeImages().

◆ SvLBoxContextBmp() [2/2]

SvLBoxContextBmp::SvLBoxContextBmp ( )

Definition at line 474 of file svlbitm.cxx.

References m_pImpl, and m_pImpl.

◆ ~SvLBoxContextBmp()

SvLBoxContextBmp::~SvLBoxContextBmp ( )
overridevirtual

Definition at line 480 of file svlbitm.cxx.

Member Function Documentation

◆ Clone()

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

Implements SvLBoxItem.

Definition at line 528 of file svlbitm.cxx.

References m_pImpl.

◆ GetBitmap1()

const Image & SvLBoxContextBmp::GetBitmap1 ( ) const
inline

◆ GetBitmap2()

const Image & SvLBoxContextBmp::GetBitmap2 ( ) const
inline

◆ GetType()

SvLBoxItemType SvLBoxContextBmp::GetType ( ) const
overridevirtual

Implements SvLBoxItem.

Definition at line 484 of file svlbitm.cxx.

References ContextBmp.

◆ implGetImageStore()

Image & SvLBoxContextBmp::implGetImageStore ( bool  bFirst)
private

Definition at line 495 of file svlbitm.cxx.

References m_pImpl.

Referenced by GetBitmap1(), GetBitmap2(), Paint(), SetBitmap1(), and SetBitmap2().

◆ InitViewData()

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

◆ Paint()

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

◆ SetBitmap1()

void SvLBoxContextBmp::SetBitmap1 ( const Image rImage)
inline

Definition at line 265 of file svlbitm.hxx.

References implGetImageStore().

Referenced by SvTreeListBox::SetCollapsedEntryBmp().

◆ SetBitmap2()

void SvLBoxContextBmp::SetBitmap2 ( const Image rImage)
inline

Definition at line 270 of file svlbitm.hxx.

References implGetImageStore().

Referenced by SvTreeListBox::SetExpandedEntryBmp().

◆ SetModeImages()

void SvLBoxContextBmp::SetModeImages ( const Image rBitmap1,
const Image rBitmap2 
)

Definition at line 489 of file svlbitm.cxx.

References m_pImpl.

Referenced by SvLBoxContextBmp().

Member Data Documentation

◆ m_pImpl

std::unique_ptr<SvLBoxContextBmp_Impl> SvLBoxContextBmp::m_pImpl
private

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