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, bool _bRadioBtn)
 
 ~SvLBoxButtonData ()
 
tools::Long Width ()
 
tools::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

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

Private Attributes

Link< SvLBoxButtonData *, void > aLink
 
tools::Long nWidth
 
tools::Long nHeight
 
std::unique_ptr< SvLBoxButtonData_ImplpImpl
 
bool bDataOk
 
std::vector< ImageaBmps
 

Detailed Description

Definition at line 62 of file svlbitm.hxx.

Constructor & Destructor Documentation

◆ SvLBoxButtonData()

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

Definition at line 54 of file svlbitm.cxx.

References InitData().

◆ ~SvLBoxButtonData()

SvLBoxButtonData::~SvLBoxButtonData ( )

Definition at line 60 of file svlbitm.cxx.

Member Function Documentation

◆ CallLink()

void SvLBoxButtonData::CallLink ( )

Definition at line 64 of file svlbitm.cxx.

References aLink, and Link< typename Arg, typename Ret >::Call().

Referenced by SvLBoxButton::ClickHdl().

◆ ConvertToButtonState()

SvButtonState SvLBoxButtonData::ConvertToButtonState ( SvItemStateFlags  nItemFlags)
static

◆ GetActBox()

SvLBoxButton * SvLBoxButtonData::GetActBox ( ) const

Definition at line 127 of file svlbitm.cxx.

References pImpl.

◆ GetActEntry()

SvTreeListEntry * SvLBoxButtonData::GetActEntry ( ) const

Definition at line 121 of file svlbitm.cxx.

References pImpl.

Referenced by SvTreeListBox::CheckButtonHdl().

◆ GetImage()

Image & SvLBoxButtonData::GetImage ( SvBmp  nIndex)
inline

Definition at line 95 of file svlbitm.hxx.

References aBmps, and nIndex.

Referenced by SvLBoxButton::Paint().

◆ GetIndex()

SvBmp SvLBoxButtonData::GetIndex ( SvItemStateFlags  nItemState)
static

Definition at line 69 of file svlbitm.cxx.

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

Referenced by SvLBoxButton::Paint().

◆ HasDefaultImages()

bool SvLBoxButtonData::HasDefaultImages ( ) const

Definition at line 157 of file svlbitm.cxx.

References pImpl.

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

◆ Height()

tools::Long SvLBoxButtonData::Height ( )

Definition at line 544 of file svlbitm.cxx.

References bDataOk, nHeight, and SetWidthAndHeight().

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

◆ InitData()

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

Definition at line 41 of file svlbitm.cxx.

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

Referenced by SvLBoxButtonData().

◆ IsRadio()

bool SvLBoxButtonData::IsRadio ( ) const

Definition at line 162 of file svlbitm.cxx.

References pImpl.

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

◆ SetDefaultImages()

void SvLBoxButtonData::SetDefaultImages ( const Control pControlForSettings)

◆ SetImage()

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

Definition at line 94 of file svlbitm.hxx.

References aBmps, and nIndex.

Referenced by SetDefaultImages().

◆ SetLink()

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

Definition at line 83 of file svlbitm.hxx.

References aLink.

Referenced by SalInstanceTreeView::SalInstanceTreeView().

◆ SetWidthAndHeight()

void SvLBoxButtonData::SetWidthAndHeight ( )
private

Definition at line 89 of file svlbitm.cxx.

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

Referenced by Height(), and Width().

◆ StoreButtonState()

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

Definition at line 97 of file svlbitm.cxx.

References pImpl.

Referenced by SvLBoxButton::ClickHdl().

◆ Width()

tools::Long SvLBoxButtonData::Width ( )

Definition at line 537 of file svlbitm.cxx.

References bDataOk, nWidth, and SetWidthAndHeight().

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

Member Data Documentation

◆ aBmps

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

Definition at line 70 of file svlbitm.hxx.

Referenced by GetImage(), InitData(), SetImage(), and SetWidthAndHeight().

◆ aLink

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

Definition at line 65 of file svlbitm.hxx.

Referenced by CallLink(), and SetLink().

◆ bDataOk

bool SvLBoxButtonData::bDataOk
private

Definition at line 69 of file svlbitm.hxx.

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

◆ nHeight

tools::Long SvLBoxButtonData::nHeight
private

Definition at line 67 of file svlbitm.hxx.

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

◆ nWidth

tools::Long SvLBoxButtonData::nWidth
private

Definition at line 66 of file svlbitm.hxx.

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

◆ pImpl

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

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