19 #ifndef INCLUDED_SVX_RELFLD_HXX
20 #define INCLUDED_SVX_RELFLD_HXX
43 void EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax );
44 void SetRelative(
bool bRelative );
48 void set_sensitive(
bool sensitive) { m_xSpinButton->set_sensitive(sensitive); }
52 void set_min(
int min,
FieldUnit eValueUnit) { m_xSpinButton->set_min(min, eValueUnit); }
53 void set_max(
int max,
FieldUnit eValueUnit) { m_xSpinButton->set_max(max, eValueUnit); }
57 OUString
get_text()
const {
return m_xSpinButton->get_text(); }
58 void set_text(
const OUString& rText) { m_xSpinButton->set_text(rText); }
int normalize(int nValue) const
#define DECL_LINK(Member, ArgType, RetType)
weld::SpinButton & get_widget()
void EnableNegativeMode()
void connect_value_changed(const Link< weld::MetricSpinButton &, void > &rLink)
void set_value(int nValue, FieldUnit eValueUnit)
void set_min(int min, FieldUnit eValueUnit)
OUString get_text() const
int denormalize(int nValue) const
int GetCoreValue(MapUnit eUnit) const
void set_sensitive(bool sensitive)
void set_text(const OUString &rText)
void SetFieldUnit(FieldUnit eUnit, bool bAll=false)
int get_min(FieldUnit eValueUnit) const
void SetMetricValue(int lCoreValue, MapUnit eUnit)
void set_max(int max, FieldUnit eValueUnit)
std::unique_ptr< weld::MetricSpinButton > m_xSpinButton
int get_value(FieldUnit eDestUnit) const
bool get_value_changed_from_saved() const