LibreOffice Module svx (master) 1
|
#include <relfld.hxx>
Public Member Functions | |
SvxRelativeField (std::unique_ptr< weld::MetricSpinButton > pControl) | |
void | EnableRelativeMode (sal_uInt16 nMin, sal_uInt16 nMax) |
void | SetRelative (bool bRelative) |
bool | IsRelative () const |
void | EnableNegativeMode () |
void | set_sensitive (bool sensitive) |
void | set_value (int nValue, FieldUnit eValueUnit) |
int | get_value (FieldUnit eDestUnit) const |
int | get_min (FieldUnit eValueUnit) const |
void | set_min (int min, FieldUnit eValueUnit) |
void | set_max (int max, FieldUnit eValueUnit) |
int | normalize (int nValue) const |
int | denormalize (int nValue) const |
void | connect_value_changed (const Link< weld::MetricSpinButton &, void > &rLink) |
OUString | get_text () const |
void | set_text (const OUString &rText) |
void | save_value () |
bool | get_value_changed_from_saved () const |
weld::SpinButton & | get_widget () |
int | GetCoreValue (MapUnit eUnit) const |
void | SetFieldUnit (FieldUnit eUnit, bool bAll=false) |
void | SetMetricValue (int lCoreValue, MapUnit eUnit) |
Private Member Functions | |
DECL_DLLPRIVATE_LINK (ModifyHdl, weld::Entry &, void) | |
Private Attributes | |
std::unique_ptr< weld::MetricSpinButton > | m_xSpinButton |
sal_uInt16 | nRelMin |
sal_uInt16 | nRelMax |
bool | bRelativeMode |
bool | bRelative |
bool | bNegativeEnabled |
Definition at line 27 of file relfld.hxx.
SvxRelativeField::SvxRelativeField | ( | std::unique_ptr< weld::MetricSpinButton > | pControl | ) |
Definition at line 22 of file relfld.cxx.
References weld::Entry::connect_changed(), LINK, and m_xSpinButton.
|
inline |
Definition at line 56 of file relfld.hxx.
|
private |
Definition at line 55 of file relfld.hxx.
References nValue.
|
inline |
Definition at line 46 of file relfld.hxx.
void SvxRelativeField::EnableRelativeMode | ( | sal_uInt16 | nMin, |
sal_uInt16 | nMax | ||
) |
Definition at line 68 of file relfld.cxx.
References bRelativeMode, m_xSpinButton, nRelMax, and nRelMin.
Definition at line 51 of file relfld.hxx.
|
inline |
Definition at line 57 of file relfld.hxx.
Definition at line 50 of file relfld.hxx.
|
inline |
Definition at line 60 of file relfld.hxx.
|
inline |
Definition at line 61 of file relfld.hxx.
Referenced by limitWidthForSidebar().
Definition at line 63 of file relfld.hxx.
|
inline |
Definition at line 45 of file relfld.hxx.
Definition at line 54 of file relfld.hxx.
References nValue.
|
inline |
Definition at line 59 of file relfld.hxx.
Definition at line 53 of file relfld.hxx.
References max.
Definition at line 52 of file relfld.hxx.
References min().
|
inline |
Definition at line 48 of file relfld.hxx.
|
inline |
Definition at line 58 of file relfld.hxx.
Definition at line 49 of file relfld.hxx.
References nValue.
|
inline |
Definition at line 64 of file relfld.hxx.
Definition at line 65 of file relfld.hxx.
void SvxRelativeField::SetRelative | ( | bool | bRelative | ) |
Definition at line 76 of file relfld.cxx.
References aStr, bNegativeEnabled, bRelative, weld::Entry::get_selection_bounds(), weld::Entry::get_text(), m_xSpinButton, nRelMax, nRelMin, weld::Entry::select_region(), and weld::Entry::set_text().
|
private |
Definition at line 36 of file relfld.hxx.
Referenced by SetRelative().
|
private |
Definition at line 35 of file relfld.hxx.
Referenced by SetRelative().
|
private |
Definition at line 34 of file relfld.hxx.
Referenced by EnableRelativeMode().
|
private |
Definition at line 30 of file relfld.hxx.
Referenced by EnableRelativeMode(), SetRelative(), and SvxRelativeField().
|
private |
Definition at line 33 of file relfld.hxx.
Referenced by EnableRelativeMode(), and SetRelative().
|
private |
Definition at line 32 of file relfld.hxx.
Referenced by EnableRelativeMode(), and SetRelative().