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

#include <cuitabarea.hxx>

Public Member Functions

 ButtonBox ()
 
void AddButton (weld::Toggleable *pButton)
 
sal_Int32 GetCurrentButtonPos () const
 
sal_Int32 GetButtonPos (weld::Toggleable *pButton)
 
void SelectButton (weld::Toggleable *pButton)
 

Private Member Functions

void SelectButtonImpl (sal_Int32 nPos)
 

Private Attributes

sal_Int32 mnCurrentButton
 
std::vector< weld::Toggleable * > maButtonList
 
std::map< weld::Toggleable *, sal_Int32 > maButtonToPos
 

Detailed Description

Definition at line 38 of file cuitabarea.hxx.

Constructor & Destructor Documentation

◆ ButtonBox()

ButtonBox::ButtonBox ( )
inline

Definition at line 54 of file cuitabarea.hxx.

References mnCurrentButton, and NO_BUTTON_SELECTED.

Member Function Documentation

◆ AddButton()

void ButtonBox::AddButton ( weld::Toggleable pButton)
inline

Definition at line 58 of file cuitabarea.hxx.

References maButtonList, and maButtonToPos.

Referenced by SvxAreaTabPage::SvxAreaTabPage().

◆ GetButtonPos()

sal_Int32 ButtonBox::GetButtonPos ( weld::Toggleable pButton)
inline

Definition at line 64 of file cuitabarea.hxx.

References maButtonToPos.

Referenced by SelectButton(), and SvxAreaTabPage::SelectFillType().

◆ GetCurrentButtonPos()

sal_Int32 ButtonBox::GetCurrentButtonPos ( ) const
inline

◆ SelectButton()

void ButtonBox::SelectButton ( weld::Toggleable pButton)
inline

Definition at line 72 of file cuitabarea.hxx.

References GetButtonPos(), nPos, and SelectButtonImpl().

Referenced by SvxAreaTabPage::SelectFillType().

◆ SelectButtonImpl()

void ButtonBox::SelectButtonImpl ( sal_Int32  nPos)
inlineprivate

Definition at line 44 of file cuitabarea.hxx.

References maButtonList, mnCurrentButton, NO_BUTTON_SELECTED, and nPos.

Referenced by SelectButton().

Member Data Documentation

◆ maButtonList

std::vector<weld::Toggleable*> ButtonBox::maButtonList
private

Definition at line 42 of file cuitabarea.hxx.

Referenced by AddButton(), and SelectButtonImpl().

◆ maButtonToPos

std::map<weld::Toggleable*, sal_Int32 > ButtonBox::maButtonToPos
private

Definition at line 43 of file cuitabarea.hxx.

Referenced by AddButton(), and GetButtonPos().

◆ mnCurrentButton

sal_Int32 ButtonBox::mnCurrentButton
private

Definition at line 41 of file cuitabarea.hxx.

Referenced by ButtonBox(), GetCurrentButtonPos(), and SelectButtonImpl().


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