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

#include <ctrlbox.hxx>

Collaboration diagram for FontSizeBox:
[legend]

Public Member Functions

 FontSizeBox (std::unique_ptr< weld::ComboBox > p)
 
void Fill (const FontList *pList)
 
void EnableRelativeMode (sal_uInt16 nMin, sal_uInt16 nMax, sal_uInt16 nStep=5)
 
void EnablePtRelativeMode (short nMin, short nMax, short nStep=10)
 
bool IsRelativeMode () const
 
void SetRelative (bool bRelative)
 
bool IsRelative () const
 
void SetPtRelative (bool bPtRel)
 
bool IsPtRelative () const
 
void connect_changed (const Link< weld::ComboBox &, void > &rLink)
 
void connect_focus_out (const Link< weld::Widget &, void > &rLink)
 
void connect_key_press (const Link< const KeyEvent &, bool > &rLink)
 
OUString get_active_text () const
 
void set_active_or_entry_text (const OUString &rText)
 
void set_sensitive (bool bSensitive)
 
void set_size_request (int nWidth, int nHeight)
 
int get_active () const
 
int get_value () const
 
void set_value (int nValue)
 
void save_value ()
 
int get_saved_value () const
 
bool get_value_changed_from_saved () const
 
int get_count () const
 
OUString get_text (int i) const
 
void grab_focus ()
 
bool has_focus () const
 
void connect_entry_activate (const Link< weld::ComboBox &, bool > &rLink)
 
void disable_entry_completion ()
 
void connect_get_property_tree (const Link< tools::JsonWriter &, void > &rLink)
 

Private Member Functions

sal_uInt16 GetDecimalDigits () const
 
void SetDecimalDigits (sal_uInt16 nDigits)
 
FieldUnit GetUnit () const
 
void SetUnit (FieldUnit _eUnit)
 
void SetRange (int nNewMin, int nNewMax)
 
void SetValue (int nNewValue, FieldUnit eInUnit)
 
void InsertValue (int i)
 
OUString format_number (int nValue) const
 
 DECL_DLLPRIVATE_LINK (ModifyHdl, weld::ComboBox &, void)
 
 DECL_DLLPRIVATE_LINK (ReformatHdl, weld::Widget &, void)
 
 FontSizeBox (const FontSizeBox &)=delete
 
FontSizeBoxoperator= (const FontSizeBox &)=delete
 

Private Attributes

const FontListpFontList
 
int nSavedValue
 
int nMin
 
int nMax
 
FieldUnit eUnit
 
sal_uInt16 nDecimalDigits
 
sal_uInt16 nRelMin
 
sal_uInt16 nRelMax
 
sal_uInt16 nRelStep
 
short nPtRelMin
 
short nPtRelMax
 
short nPtRelStep
 
bool bRelativeMode:1
 
bool bRelative:1
 
bool bPtRelative:1
 
bool bStdSize:1
 
Link< weld::ComboBox &, void > m_aChangeHdl
 
Link< weld::Widget &, void > m_aFocusOutHdl
 
std::unique_ptr< weld::ComboBoxm_xComboBox
 

Detailed Description

Definition at line 416 of file ctrlbox.hxx.

Constructor & Destructor Documentation

◆ FontSizeBox() [1/2]

FontSizeBox::FontSizeBox ( std::unique_ptr< weld::ComboBox p)

Definition at line 985 of file ctrlbox.cxx.

References format_number(), LINK, m_xComboBox, p, POINT, and Width.

◆ FontSizeBox() [2/2]

FontSizeBox::FontSizeBox ( const FontSizeBox )
privatedelete

Member Function Documentation

◆ connect_changed()

void FontSizeBox::connect_changed ( const Link< weld::ComboBox &, void > &  rLink)
inline

Definition at line 468 of file ctrlbox.hxx.

◆ connect_entry_activate()

void FontSizeBox::connect_entry_activate ( const Link< weld::ComboBox &, bool > &  rLink)
inline

Definition at line 486 of file ctrlbox.hxx.

◆ connect_focus_out()

void FontSizeBox::connect_focus_out ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 469 of file ctrlbox.hxx.

◆ connect_get_property_tree()

void FontSizeBox::connect_get_property_tree ( const Link< tools::JsonWriter &, void > &  rLink)
inline

Definition at line 488 of file ctrlbox.hxx.

◆ connect_key_press()

void FontSizeBox::connect_key_press ( const Link< const KeyEvent &, bool > &  rLink)
inline

Definition at line 470 of file ctrlbox.hxx.

◆ DECL_DLLPRIVATE_LINK() [1/2]

FontSizeBox::DECL_DLLPRIVATE_LINK ( ModifyHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/2]

FontSizeBox::DECL_DLLPRIVATE_LINK ( ReformatHdl  ,
weld::Widget ,
void   
)
private

References Fill.

◆ disable_entry_completion()

void FontSizeBox::disable_entry_completion ( )
inline

Definition at line 487 of file ctrlbox.hxx.

◆ EnablePtRelativeMode()

void FontSizeBox::EnablePtRelativeMode ( short  nMin,
short  nMax,
short  nStep = 10 
)

Definition at line 1173 of file ctrlbox.cxx.

References bRelativeMode, nPtRelMax, nPtRelMin, nPtRelStep, and SetUnit().

◆ EnableRelativeMode()

void FontSizeBox::EnableRelativeMode ( sal_uInt16  nMin,
sal_uInt16  nMax,
sal_uInt16  nStep = 5 
)

Definition at line 1164 of file ctrlbox.cxx.

References bRelativeMode, nRelMax, nRelMin, nRelStep, and SetUnit().

◆ Fill()

void FontSizeBox::Fill ( const FontList pList)

◆ format_number()

OUString FontSizeBox::format_number ( int  nValue) const
private

◆ get_active()

int FontSizeBox::get_active ( ) const
inline

Definition at line 476 of file ctrlbox.hxx.

◆ get_active_text()

OUString FontSizeBox::get_active_text ( ) const
inline

Definition at line 471 of file ctrlbox.hxx.

◆ get_count()

int FontSizeBox::get_count ( ) const
inline

Definition at line 482 of file ctrlbox.hxx.

◆ get_saved_value()

int FontSizeBox::get_saved_value ( ) const
inline

Definition at line 480 of file ctrlbox.hxx.

◆ get_text()

OUString FontSizeBox::get_text ( int  i) const
inline

Definition at line 483 of file ctrlbox.hxx.

References i.

◆ get_value()

int FontSizeBox::get_value ( ) const

◆ get_value_changed_from_saved()

bool FontSizeBox::get_value_changed_from_saved ( ) const
inline

Definition at line 481 of file ctrlbox.hxx.

◆ GetDecimalDigits()

sal_uInt16 FontSizeBox::GetDecimalDigits ( ) const
inlineprivate

Definition at line 438 of file ctrlbox.hxx.

Referenced by get_value(), and SetValue().

◆ GetUnit()

FieldUnit FontSizeBox::GetUnit ( ) const
inlineprivate

Definition at line 440 of file ctrlbox.hxx.

Referenced by get_value(), and SetValue().

◆ grab_focus()

void FontSizeBox::grab_focus ( )
inline

Definition at line 484 of file ctrlbox.hxx.

◆ has_focus()

bool FontSizeBox::has_focus ( ) const
inline

Definition at line 485 of file ctrlbox.hxx.

◆ InsertValue()

void FontSizeBox::InsertValue ( int  i)
private

Definition at line 1182 of file ctrlbox.cxx.

References format_number(), i, and m_xComboBox.

Referenced by Fill(), and SetRelative().

◆ IsPtRelative()

bool FontSizeBox::IsPtRelative ( ) const
inline

Definition at line 466 of file ctrlbox.hxx.

◆ IsRelative()

bool FontSizeBox::IsRelative ( ) const
inline

Definition at line 460 of file ctrlbox.hxx.

◆ IsRelativeMode()

bool FontSizeBox::IsRelativeMode ( ) const
inline

Definition at line 458 of file ctrlbox.hxx.

◆ operator=()

FontSizeBox & FontSizeBox::operator= ( const FontSizeBox )
privatedelete

◆ save_value()

void FontSizeBox::save_value ( )
inline

Definition at line 479 of file ctrlbox.hxx.

◆ set_active_or_entry_text()

void FontSizeBox::set_active_or_entry_text ( const OUString &  rText)

Definition at line 1010 of file ctrlbox.cxx.

References m_xComboBox.

Referenced by Fill(), SetRelative(), and SetValue().

◆ set_sensitive()

void FontSizeBox::set_sensitive ( bool  bSensitive)
inline

Definition at line 473 of file ctrlbox.hxx.

◆ set_size_request()

void FontSizeBox::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 474 of file ctrlbox.hxx.

◆ set_value()

void FontSizeBox::set_value ( int  nValue)

Definition at line 1299 of file ctrlbox.cxx.

References eUnit, and SetValue().

◆ SetDecimalDigits()

void FontSizeBox::SetDecimalDigits ( sal_uInt16  nDigits)
inlineprivate

Definition at line 439 of file ctrlbox.hxx.

Referenced by SetRelative().

◆ SetPtRelative()

void FontSizeBox::SetPtRelative ( bool  bPtRel)
inline

Definition at line 461 of file ctrlbox.hxx.

◆ SetRange()

void FontSizeBox::SetRange ( int  nNewMin,
int  nNewMax 
)
inlineprivate

Definition at line 442 of file ctrlbox.hxx.

Referenced by SetRelative().

◆ SetRelative()

void FontSizeBox::SetRelative ( bool  bRelative)

◆ SetUnit()

void FontSizeBox::SetUnit ( FieldUnit  _eUnit)
inlineprivate

Definition at line 441 of file ctrlbox.hxx.

Referenced by EnablePtRelativeMode(), EnableRelativeMode(), and SetRelative().

◆ SetValue()

void FontSizeBox::SetValue ( int  nNewValue,
FieldUnit  eInUnit 
)
private

Member Data Documentation

◆ bPtRelative

bool FontSizeBox::bPtRelative
private

Definition at line 432 of file ctrlbox.hxx.

Referenced by format_number(), and SetRelative().

◆ bRelative

bool FontSizeBox::bRelative
private

Definition at line 431 of file ctrlbox.hxx.

Referenced by Fill(), get_value(), SetRelative(), and SetValue().

◆ bRelativeMode

bool FontSizeBox::bRelativeMode
private

Definition at line 430 of file ctrlbox.hxx.

Referenced by EnablePtRelativeMode(), EnableRelativeMode(), format_number(), and SetRelative().

◆ bStdSize

bool FontSizeBox::bStdSize
private

Definition at line 433 of file ctrlbox.hxx.

Referenced by Fill(), and SetRelative().

◆ eUnit

FieldUnit FontSizeBox::eUnit
private

Definition at line 422 of file ctrlbox.hxx.

Referenced by format_number(), and set_value().

◆ m_aChangeHdl

Link<weld::ComboBox&, void> FontSizeBox::m_aChangeHdl
private

Definition at line 434 of file ctrlbox.hxx.

◆ m_aFocusOutHdl

Link<weld::Widget&, void> FontSizeBox::m_aFocusOutHdl
private

Definition at line 435 of file ctrlbox.hxx.

◆ m_xComboBox

std::unique_ptr<weld::ComboBox> FontSizeBox::m_xComboBox
private

◆ nDecimalDigits

sal_uInt16 FontSizeBox::nDecimalDigits
private

Definition at line 423 of file ctrlbox.hxx.

Referenced by format_number().

◆ nMax

int FontSizeBox::nMax
private

Definition at line 421 of file ctrlbox.hxx.

Referenced by get_value(), and SetValue().

◆ nMin

int FontSizeBox::nMin
private

Definition at line 420 of file ctrlbox.hxx.

Referenced by get_value(), and SetValue().

◆ nPtRelMax

short FontSizeBox::nPtRelMax
private

Definition at line 428 of file ctrlbox.hxx.

Referenced by EnablePtRelativeMode(), and SetRelative().

◆ nPtRelMin

short FontSizeBox::nPtRelMin
private

Definition at line 427 of file ctrlbox.hxx.

Referenced by EnablePtRelativeMode(), and SetRelative().

◆ nPtRelStep

short FontSizeBox::nPtRelStep
private

Definition at line 429 of file ctrlbox.hxx.

Referenced by EnablePtRelativeMode(), and SetRelative().

◆ nRelMax

sal_uInt16 FontSizeBox::nRelMax
private

Definition at line 425 of file ctrlbox.hxx.

Referenced by EnableRelativeMode(), and SetRelative().

◆ nRelMin

sal_uInt16 FontSizeBox::nRelMin
private

Definition at line 424 of file ctrlbox.hxx.

Referenced by EnableRelativeMode(), and SetRelative().

◆ nRelStep

sal_uInt16 FontSizeBox::nRelStep
private

Definition at line 426 of file ctrlbox.hxx.

Referenced by EnableRelativeMode(), and SetRelative().

◆ nSavedValue

int FontSizeBox::nSavedValue
private

Definition at line 419 of file ctrlbox.hxx.

◆ pFontList

const FontList* FontSizeBox::pFontList
private

Definition at line 418 of file ctrlbox.hxx.

Referenced by Fill(), and SetRelative().


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