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 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)
 
int GetHeight (const SvTreeListBox *pView, const SvTreeListEntry *pEntry) const
 
void Enable (bool bEnabled)
 

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::SvLBoxContextBmp ( const Image aBmp1,
const Image aBmp2,
bool  bExpanded 
)

Definition at line 413 of file svlbitm.cxx.

References m_pImpl, and SetModeImages().

SvLBoxContextBmp::SvLBoxContextBmp ( )

Definition at line 422 of file svlbitm.cxx.

References m_pImpl.

SvLBoxContextBmp::~SvLBoxContextBmp ( )
overridevirtual

Definition at line 429 of file svlbitm.cxx.

Member Function Documentation

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

Implements SvLBoxItem.

Definition at line 477 of file svlbitm.cxx.

References m_pImpl.

const Image & SvLBoxContextBmp::GetBitmap1 ( ) const
inline
const Image & SvLBoxContextBmp::GetBitmap2 ( ) const
inline
SvLBoxItemType SvLBoxContextBmp::GetType ( ) const
overridevirtual

Implements SvLBoxItem.

Definition at line 433 of file svlbitm.cxx.

References ContextBmp.

Image & SvLBoxContextBmp::implGetImageStore ( bool  bFirst)
private

Definition at line 444 of file svlbitm.cxx.

References m_pImpl.

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

void SvLBoxContextBmp::InitViewData ( SvTreeListBox pView,
SvTreeListEntry pEntry,
SvViewDataItem pViewData = nullptr 
)
overridevirtual
void SvLBoxContextBmp::Paint ( const Point rPos,
SvTreeListBox rOutDev,
vcl::RenderContext rRenderContext,
const SvViewDataEntry pView,
const SvTreeListEntry rEntry 
)
overridevirtual
void SvLBoxContextBmp::SetBitmap1 ( const Image rImage)
inline

Definition at line 265 of file svlbitm.hxx.

References implGetImageStore().

Referenced by SvTreeListBox::SetCollapsedEntryBmp().

void SvLBoxContextBmp::SetBitmap2 ( const Image rImage)
inline

Definition at line 270 of file svlbitm.hxx.

References implGetImageStore().

Referenced by SvTreeListBox::SetExpandedEntryBmp().

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

Definition at line 438 of file svlbitm.cxx.

References m_pImpl.

Referenced by SvLBoxContextBmp().

Member Data Documentation

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

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