LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
weld::MetricSpinButton Class Referencefinal

#include <weld.hxx>

Collaboration diagram for weld::MetricSpinButton:
[legend]

Public Member Functions

 MetricSpinButton (std::unique_ptr< SpinButton > pSpinButton, FieldUnit eSrcUnit)
 
FieldUnit get_unit () const
 
void set_unit (FieldUnit eUnit)
 
int convert_value_to (int nValue, FieldUnit eValueUnit) const
 
int convert_value_from (int nValue, FieldUnit eValueUnit) const
 
void set_value (int nValue, FieldUnit eValueUnit)
 
int get_value (FieldUnit eDestUnit) const
 
void reformat ()
 
void set_range (int min, int max, FieldUnit eValueUnit)
 
void get_range (int &min, int &max, FieldUnit eDestUnit) const
 
void set_min (int min, FieldUnit eValueUnit)
 
void set_max (int max, FieldUnit eValueUnit)
 
int get_min (FieldUnit eValueUnit) const
 
int get_max (FieldUnit eValueUnit) const
 
void set_increments (int step, int page, FieldUnit eValueUnit)
 
void get_increments (int &step, int &page, FieldUnit eDestUnit) const
 
void connect_value_changed (const Link< MetricSpinButton &, void > &rLink)
 
int normalize (int nValue) const
 
int denormalize (int nValue) const
 
void set_sensitive (bool sensitive)
 
bool get_sensitive () const
 
bool get_visible () const
 
void grab_focus ()
 
bool has_focus () const
 
void show ()
 
void set_visible (bool bShow)
 
void hide ()
 
void set_digits (unsigned int digits)
 
void set_accessible_name (const OUString &rName)
 
unsigned int get_digits () const
 
void save_value ()
 
bool get_value_changed_from_saved () const
 
void set_text (const OUString &rText)
 
OUString get_text () const
 
void set_size_request (int nWidth, int nHeight)
 
Size get_size_request () const
 
Size get_preferred_size () const
 
void connect_focus_in (const Link< Widget &, void > &rLink)
 
void connect_focus_out (const Link< Widget &, void > &rLink)
 
OString get_buildable_name ()
 
void set_help_id (const OString &rName)
 
void set_position (int nCursorPos)
 
void set_width_chars (int nChars)
 
weld::SpinButtonget_widget ()
 

Static Public Member Functions

static OUString MetricToString (FieldUnit rUnit)
 

Private Member Functions

 DECL_LINK (spin_button_value_changed, weld::SpinButton &, void)
 
 DECL_LINK (spin_button_output, weld::SpinButton &, void)
 
 DECL_LINK (spin_button_input, int *result, bool)
 
void signal_value_changed ()
 
int ConvertValue (int nValue, FieldUnit eInUnit, FieldUnit eOutUnit) const
 
OUString format_number (int nValue) const
 
void update_width_chars ()
 

Private Attributes

FieldUnit m_eSrcUnit
 
std::unique_ptr< weld::SpinButtonm_xSpinButton
 
Link< MetricSpinButton &, voidm_aValueChangedHdl
 

Detailed Description

Definition at line 1758 of file weld.hxx.

Constructor & Destructor Documentation

weld::MetricSpinButton::MetricSpinButton ( std::unique_ptr< SpinButton pSpinButton,
FieldUnit  eSrcUnit 
)
inline

Definition at line 1775 of file weld.hxx.

References LINK.

Member Function Documentation

void weld::MetricSpinButton::connect_focus_in ( const Link< Widget &, void > &  rLink)
inline

Definition at line 1906 of file weld.hxx.

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

Definition at line 1910 of file weld.hxx.

void weld::MetricSpinButton::connect_value_changed ( const Link< MetricSpinButton &, void > &  rLink)
inline

Definition at line 1875 of file weld.hxx.

int weld::MetricSpinButton::convert_value_from ( int  nValue,
FieldUnit  eValueUnit 
) const
inline

Definition at line 1798 of file weld.hxx.

References vcl::ConvertValue().

int weld::MetricSpinButton::convert_value_to ( int  nValue,
FieldUnit  eValueUnit 
) const
inline

Definition at line 1793 of file weld.hxx.

References vcl::ConvertValue().

int weld::MetricSpinButton::ConvertValue ( int  nValue,
FieldUnit  eInUnit,
FieldUnit  eOutUnit 
) const
private

Definition at line 326 of file builder.cxx.

References vcl::ConvertValue(), and m_xSpinButton.

weld::MetricSpinButton::DECL_LINK ( spin_button_value_changed  ,
weld::SpinButton ,
void   
)
private
weld::MetricSpinButton::DECL_LINK ( spin_button_output  ,
weld::SpinButton ,
void   
)
private
weld::MetricSpinButton::DECL_LINK ( spin_button_input  ,
int result,
bool   
)
private
int weld::MetricSpinButton::denormalize ( int  nValue) const
inline

Definition at line 1881 of file weld.hxx.

OUString weld::MetricSpinButton::format_number ( int  nValue) const
private
OString weld::MetricSpinButton::get_buildable_name ( )
inline

Definition at line 1914 of file weld.hxx.

unsigned int weld::MetricSpinButton::get_digits ( ) const
inline

Definition at line 1892 of file weld.hxx.

void weld::MetricSpinButton::get_increments ( int step,
int page,
FieldUnit  eDestUnit 
) const
inline

Definition at line 1868 of file weld.hxx.

Referenced by set_digits(), and set_unit().

int weld::MetricSpinButton::get_max ( FieldUnit  eValueUnit) const
inline

Definition at line 1854 of file weld.hxx.

References max.

int weld::MetricSpinButton::get_min ( FieldUnit  eValueUnit) const
inline

Definition at line 1847 of file weld.hxx.

References min.

Size weld::MetricSpinButton::get_preferred_size ( ) const
inline

Definition at line 1905 of file weld.hxx.

void weld::MetricSpinButton::get_range ( int min,
int max,
FieldUnit  eDestUnit 
) const
inline

Definition at line 1826 of file weld.hxx.

bool weld::MetricSpinButton::get_sensitive ( ) const
inline

Definition at line 1883 of file weld.hxx.

Size weld::MetricSpinButton::get_size_request ( ) const
inline

Definition at line 1904 of file weld.hxx.

OUString weld::MetricSpinButton::get_text ( ) const
inline

Definition at line 1899 of file weld.hxx.

FieldUnit weld::MetricSpinButton::get_unit ( ) const
inline

Definition at line 1789 of file weld.hxx.

int weld::MetricSpinButton::get_value ( FieldUnit  eDestUnit) const
inline

Definition at line 1808 of file weld.hxx.

Referenced by set_digits(), and set_unit().

bool weld::MetricSpinButton::get_value_changed_from_saved ( ) const
inline

Definition at line 1894 of file weld.hxx.

bool weld::MetricSpinButton::get_visible ( ) const
inline

Definition at line 1884 of file weld.hxx.

weld::SpinButton& weld::MetricSpinButton::get_widget ( )
inline

Definition at line 1921 of file weld.hxx.

void weld::MetricSpinButton::grab_focus ( )
inline

Definition at line 1885 of file weld.hxx.

bool weld::MetricSpinButton::has_focus ( ) const
inline

Definition at line 1886 of file weld.hxx.

void weld::MetricSpinButton::hide ( )
inline

Definition at line 1889 of file weld.hxx.

OUString weld::MetricSpinButton::MetricToString ( FieldUnit  rUnit)
static

Definition at line 197 of file builder.cxx.

References ImplGetFieldUnits().

Referenced by format_number().

int weld::MetricSpinButton::normalize ( int  nValue) const
inline

Definition at line 1880 of file weld.hxx.

void weld::MetricSpinButton::reformat ( )
inline

Definition at line 1816 of file weld.hxx.

void weld::MetricSpinButton::save_value ( )
inline

Definition at line 1893 of file weld.hxx.

void weld::MetricSpinButton::set_accessible_name ( const OUString &  rName)
inline

Definition at line 1891 of file weld.hxx.

void weld::MetricSpinButton::set_digits ( unsigned int  digits)
void weld::MetricSpinButton::set_help_id ( const OString &  rName)
inline

Definition at line 1915 of file weld.hxx.

void weld::MetricSpinButton::set_increments ( int  step,
int  page,
FieldUnit  eValueUnit 
)
inline

Definition at line 1861 of file weld.hxx.

Referenced by set_digits(), and set_unit().

void weld::MetricSpinButton::set_max ( int  max,
FieldUnit  eValueUnit 
)
inline

Definition at line 1840 of file weld.hxx.

References min.

void weld::MetricSpinButton::set_min ( int  min,
FieldUnit  eValueUnit 
)
inline

Definition at line 1833 of file weld.hxx.

References max.

void weld::MetricSpinButton::set_position ( int  nCursorPos)
inline

Definition at line 1916 of file weld.hxx.

void weld::MetricSpinButton::set_range ( int  min,
int  max,
FieldUnit  eValueUnit 
)
inline

Definition at line 1818 of file weld.hxx.

void weld::MetricSpinButton::set_sensitive ( bool  sensitive)
inline

Definition at line 1882 of file weld.hxx.

void weld::MetricSpinButton::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 1900 of file weld.hxx.

void weld::MetricSpinButton::set_text ( const OUString &  rText)
inline

Definition at line 1898 of file weld.hxx.

void weld::MetricSpinButton::set_unit ( FieldUnit  eUnit)
void weld::MetricSpinButton::set_value ( int  nValue,
FieldUnit  eValueUnit 
)
inline

Definition at line 1803 of file weld.hxx.

Referenced by set_digits(), and set_unit().

void weld::MetricSpinButton::set_visible ( bool  bShow)
inline

Definition at line 1888 of file weld.hxx.

void weld::MetricSpinButton::set_width_chars ( int  nChars)
inline

Definition at line 1920 of file weld.hxx.

void weld::MetricSpinButton::show ( )
inline

Definition at line 1887 of file weld.hxx.

void weld::MetricSpinButton::signal_value_changed ( )
inlineprivate

Definition at line 1768 of file weld.hxx.

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

void weld::MetricSpinButton::update_width_chars ( )
private

Definition at line 222 of file builder.cxx.

References format_number(), m_xSpinButton, max, and min.

Referenced by set_digits(), and set_unit().

Member Data Documentation

Link<MetricSpinButton&, void> weld::MetricSpinButton::m_aValueChangedHdl
private

Definition at line 1762 of file weld.hxx.

FieldUnit weld::MetricSpinButton::m_eSrcUnit
private

Definition at line 1760 of file weld.hxx.

Referenced by format_number(), set_digits(), and set_unit().

std::unique_ptr<weld::SpinButton> weld::MetricSpinButton::m_xSpinButton
private

Definition at line 1761 of file weld.hxx.

Referenced by ConvertValue(), format_number(), set_digits(), set_unit(), and update_width_chars().


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