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

#include <svlbitm.hxx>

Collaboration diagram for SvLBoxButtonData:
[legend]

Public Member Functions

 SvLBoxButtonData (const Control *pControlForSettings)
 
 SvLBoxButtonData (const Control *pControlForSettings, bool _bRadioBtn)
 
 ~SvLBoxButtonData ()
 
long Width ()
 
long Height ()
 
void SetLink (const Link< SvLBoxButtonData *, void > &rLink)
 
bool IsRadio () const
 
void CallLink ()
 
void StoreButtonState (SvTreeListEntry *pActEntry, SvLBoxButton *pActBox)
 
SvTreeListEntryGetActEntry () const
 
SvLBoxButtonGetActBox () const
 
void SetImage (SvBmp nIndex, const Image &aImage)
 
ImageGetImage (SvBmp nIndex)
 
void SetDefaultImages (const Control *pControlForSettings)
 
bool HasDefaultImages () const
 

Static Public Member Functions

static SvBmp GetIndex (SvItemStateFlags nItemState)
 
static SvButtonState ConvertToButtonState (SvItemStateFlags nItemFlags)
 

Private Member Functions

VCL_DLLPRIVATE void SetWidthAndHeight ()
 
VCL_DLLPRIVATE void InitData (bool _bRadioBtn, const Control *pControlForSettings)
 

Private Attributes

Link< SvLBoxButtonData *, voidaLink
 
long nWidth
 
long nHeight
 
std::unique_ptr< SvLBoxButtonData_ImplpImpl
 
bool bDataOk
 
std::vector< ImageaBmps
 

Detailed Description

Definition at line 60 of file svlbitm.hxx.

Constructor & Destructor Documentation

SvLBoxButtonData::SvLBoxButtonData ( const Control pControlForSettings)

Definition at line 52 of file svlbitm.cxx.

References InitData().

SvLBoxButtonData::SvLBoxButtonData ( const Control pControlForSettings,
bool  _bRadioBtn 
)

Definition at line 58 of file svlbitm.cxx.

References InitData().

SvLBoxButtonData::~SvLBoxButtonData ( )

Definition at line 64 of file svlbitm.cxx.

Member Function Documentation

void SvLBoxButtonData::CallLink ( )

Definition at line 68 of file svlbitm.cxx.

References aLink, and Link< class, class >::Call().

Referenced by SvLBoxButton::ClickHdl().

SvButtonState SvLBoxButtonData::ConvertToButtonState ( SvItemStateFlags  nItemFlags)
static
SvLBoxButton * SvLBoxButtonData::GetActBox ( ) const

Definition at line 131 of file svlbitm.cxx.

References pImpl.

SvTreeListEntry * SvLBoxButtonData::GetActEntry ( ) const

Definition at line 125 of file svlbitm.cxx.

References pImpl.

Referenced by SvTreeListBox::CheckButtonHdl().

Image& SvLBoxButtonData::GetImage ( SvBmp  nIndex)
inline

Definition at line 94 of file svlbitm.hxx.

Referenced by SvLBoxButton::Paint().

SvBmp SvLBoxButtonData::GetIndex ( SvItemStateFlags  nItemState)
static

Definition at line 73 of file svlbitm.cxx.

References CHECKED, HICHECKED, HILIGHTED, HITRISTATE, HIUNCHECKED, TRISTATE, and UNCHECKED.

Referenced by SvLBoxButton::Paint().

bool SvLBoxButtonData::HasDefaultImages ( ) const

Definition at line 161 of file svlbitm.cxx.

References pImpl.

Referenced by SvTreeListBox::ApplySettings(), and SvTreeListBox::InitSettings().

long SvLBoxButtonData::Height ( )

Definition at line 482 of file svlbitm.cxx.

References bDataOk, nHeight, and SetWidthAndHeight().

Referenced by SvLBoxButton::InitViewData(), and SvLBoxButton::Paint().

void SvLBoxButtonData::InitData ( bool  _bRadioBtn,
const Control pControlForSettings 
)
private

Definition at line 39 of file svlbitm.cxx.

References aBmps, bDataOk, HITRISTATE, nHeight, nWidth, pImpl, and SetDefaultImages().

Referenced by SvLBoxButtonData().

bool SvLBoxButtonData::IsRadio ( ) const

Definition at line 166 of file svlbitm.cxx.

References pImpl.

Referenced by SvLBoxButton::InitViewData(), and SvLBoxButton::Paint().

void SvLBoxButtonData::SetDefaultImages ( const Control pControlForSettings)
void SvLBoxButtonData::SetImage ( SvBmp  nIndex,
const Image aImage 
)
inline

Definition at line 93 of file svlbitm.hxx.

Referenced by SetDefaultImages().

void SvLBoxButtonData::SetLink ( const Link< SvLBoxButtonData *, void > &  rLink)
inline
void SvLBoxButtonData::SetWidthAndHeight ( )
private

Definition at line 93 of file svlbitm.cxx.

References aBmps, bDataOk, Size::Height(), nHeight, nWidth, UNCHECKED, and Size::Width().

Referenced by Height(), and Width().

void SvLBoxButtonData::StoreButtonState ( SvTreeListEntry pActEntry,
SvLBoxButton pActBox 
)

Definition at line 101 of file svlbitm.cxx.

References pImpl.

Referenced by SvLBoxButton::ClickHdl().

long SvLBoxButtonData::Width ( )

Definition at line 475 of file svlbitm.cxx.

References bDataOk, nWidth, and SetWidthAndHeight().

Referenced by SvLBoxButton::InitViewData(), and SvLBoxButton::Paint().

Member Data Documentation

std::vector<Image> SvLBoxButtonData::aBmps
private

Definition at line 68 of file svlbitm.hxx.

Referenced by InitData(), and SetWidthAndHeight().

Link<SvLBoxButtonData*,void> SvLBoxButtonData::aLink
private

Definition at line 63 of file svlbitm.hxx.

Referenced by CallLink().

bool SvLBoxButtonData::bDataOk
private

Definition at line 67 of file svlbitm.hxx.

Referenced by Height(), InitData(), SetWidthAndHeight(), and Width().

long SvLBoxButtonData::nHeight
private

Definition at line 65 of file svlbitm.hxx.

Referenced by Height(), InitData(), and SetWidthAndHeight().

long SvLBoxButtonData::nWidth
private

Definition at line 64 of file svlbitm.hxx.

Referenced by InitData(), SetWidthAndHeight(), and Width().

std::unique_ptr<SvLBoxButtonData_Impl> SvLBoxButtonData::pImpl
private

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