LibreOffice Module vcl (master) 1
|
#include <weldutils.hxx>
Public Member Functions | |
EntryFormatter (weld::Entry &rEntry) | |
EntryFormatter (weld::FormattedSpinButton &rSpinButton) | |
weld::Entry & | get_widget () |
virtual SAL_DLLPRIVATE Selection | GetEntrySelection () const override |
virtual SAL_DLLPRIVATE OUString | GetEntryText () const override |
virtual SAL_DLLPRIVATE void | SetEntryText (const OUString &rText, const Selection &rSel) override |
virtual SAL_DLLPRIVATE void | SetEntryTextColor (const Color *pColor) override |
virtual SAL_DLLPRIVATE SelectionOptions | GetEntrySelectionOptions () const override |
virtual SAL_DLLPRIVATE void | FieldModified () override |
virtual SAL_DLLPRIVATE void | ClearMinValue () override |
virtual SAL_DLLPRIVATE void | SetMinValue (double dMin) override |
virtual SAL_DLLPRIVATE void | ClearMaxValue () override |
virtual SAL_DLLPRIVATE void | SetMaxValue (double dMin) override |
virtual SAL_DLLPRIVATE void | SetSpinSize (double dStep) override |
void | SetEntrySelectionOptions (SelectionOptions eOptions) |
void | connect_changed (const Link< weld::Entry &, void > &rLink) |
void | connect_focus_out (const Link< weld::Widget &, void > &rLink) |
virtual SAL_DLLPRIVATE | ~EntryFormatter () override |
Public Member Functions inherited from Formatter | |
Formatter () | |
virtual | ~Formatter () |
void | SetFieldText (const OUString &rText, const Selection &rNewSelection) |
virtual Selection | GetEntrySelection () const =0 |
virtual OUString | GetEntryText () const =0 |
virtual SelectionOptions | GetEntrySelectionOptions () const =0 |
virtual void | SetEntryText (const OUString &rText, const Selection &rSel)=0 |
virtual void | SetEntryTextColor (const Color *pColor)=0 |
virtual void | FieldModified ()=0 |
bool | HasMinValue () const |
virtual void | ClearMinValue () |
virtual void | SetMinValue (double dMin) |
double | GetMinValue () const |
bool | HasMaxValue () const |
virtual void | ClearMaxValue () |
virtual void | SetMaxValue (double dMax) |
double | GetMaxValue () const |
void | SetValue (double dVal) |
double | GetValue () |
void | SetTextValue (const OUString &rText) |
bool | IsEmptyFieldEnabled () const |
void | EnableEmptyField (bool bEnable) |
void | SetDefaultValue (double dDefault) |
double | GetDefaultValue () const |
void | SetLastSelection (const Selection &rSelection) |
sal_uLong | GetFormatKey () const |
void | SetFormatKey (sal_uLong nFormatKey) |
SvNumberFormatter * | GetOrCreateFormatter () const |
SvNumberFormatter * | GetFormatter () const |
void | SetFormatter (SvNumberFormatter *pFormatter, bool bResetFormat=true) |
bool | GetThousandsSep () const |
void | SetThousandsSep (bool _bUseSeparator) |
void | DisableRemainderFactor () |
bool | GetDisableRemainderFactor () const |
void | SetWrapOnLimits (bool bWrapOnLimits) |
sal_uInt16 | GetDecimalDigits () const |
void | SetDecimalDigits (sal_uInt16 _nPrecision) |
SvNumberFormatter * | StandardFormatter () |
OUString | GetFormat (LanguageType &eLang) const |
bool | SetFormat (const OUString &rFormatString, LanguageType eLang) |
bool | IsStrictFormat () const |
void | SetStrictFormat (bool bEnable) |
virtual void | SetSpinSize (double dStep) |
double | GetSpinSize () const |
void | SetSpinFirst (double dFirst) |
double | GetSpinFirst () const |
void | SetSpinLast (double dLast) |
double | GetSpinLast () const |
bool | TreatingAsNumber () const |
void | TreatAsNumber (bool bDoSo) |
void | SetInputHdl (const Link< sal_Int64 *, TriState > &rLink) |
void | SetOutputHdl (const Link< LinkParamNone *, bool > &rLink) |
void | SetTextFormatted (const OUString &rText) |
OUString const & | GetTextValue () const |
void | SetDefaultText (const OUString &rDefault) |
const OUString & | GetDefaultText () const |
const Color * | GetLastOutputColor () const |
void | Commit () |
reformats the current text. More... | |
void | SetAutoColor (bool _bAutomatic) |
void | EnableNotANumber (bool _bEnable) |
enables handling of not-a-number value. More... | |
void | UseInputStringForFormatting () |
When being set to true, the strings in the field are formatted using the InputLine format. More... | |
bool | IsUsingInputStringForFormatting () const |
void | Modify (bool makeValueDirty=true) |
void | EntryLostFocus () |
void | ReFormat () |
virtual void | FormatChanged (FORMAT_CHANGE_TYPE nWhat) |
Private Member Functions | |
DECL_DLLPRIVATE_LINK (ModifyHdl, weld::Entry &, void) | |
DECL_DLLPRIVATE_LINK (FocusOutHdl, weld::Widget &, void) | |
SAL_DLLPRIVATE void | Init () |
virtual SAL_DLLPRIVATE void | UpdateCurrentValue (double dCurrentValue) override |
Private Attributes | |
weld::Entry & | m_rEntry |
weld::FormattedSpinButton * | m_pSpinButton |
Link< weld::Entry &, void > | m_aModifyHdl |
Link< weld::Widget &, void > | m_aFocusOutHdl |
SelectionOptions | m_eOptions |
Definition at line 205 of file weldutils.hxx.
weld::EntryFormatter::EntryFormatter | ( | weld::Entry & | rEntry | ) |
Definition at line 145 of file weldutils.cxx.
References Init().
weld::EntryFormatter::EntryFormatter | ( | weld::FormattedSpinButton & | rSpinButton | ) |
Definition at line 137 of file weldutils.cxx.
References Init().
|
overridevirtual |
Definition at line 153 of file weldutils.cxx.
References weld::Entry::connect_changed(), weld::Widget::connect_focus_out(), m_pSpinButton, m_rEntry, and weld::FormattedSpinButton::SetFormatter().
|
overridevirtual |
Reimplemented from Formatter.
Definition at line 212 of file weldutils.cxx.
References Formatter::ClearMaxValue(), m_pSpinButton, and weld::FormattedSpinButton::sync_range_from_formatter().
|
overridevirtual |
Reimplemented from Formatter.
Definition at line 198 of file weldutils.cxx.
References Formatter::ClearMinValue(), m_pSpinButton, and weld::FormattedSpinButton::sync_range_from_formatter().
|
inline |
Definition at line 239 of file weldutils.hxx.
Referenced by SalInstanceFormattedSpinButton::connect_changed().
|
inline |
Definition at line 240 of file weldutils.hxx.
Referenced by SalInstanceFormattedSpinButton::connect_focus_out().
|
private |
References Init().
|
private |
|
overridevirtual |
Implements Formatter.
Definition at line 235 of file weldutils.cxx.
References Link< typename Arg, typename Ret >::Call(), m_aModifyHdl, and m_rEntry.
|
inline |
Definition at line 211 of file weldutils.hxx.
Referenced by weld::TimeFormatter::Init().
|
overridevirtual |
Implements Formatter.
Definition at line 169 of file weldutils.cxx.
References weld::Entry::get_selection_bounds(), and m_rEntry.
|
overridevirtual |
|
overridevirtual |
Implements Formatter.
Definition at line 176 of file weldutils.cxx.
References weld::Entry::get_text(), and m_rEntry.
|
private |
Definition at line 161 of file weldutils.cxx.
References weld::Entry::connect_changed(), weld::Widget::connect_focus_out(), LINK, m_pSpinButton, m_rEntry, and weld::FormattedSpinButton::SetFormatter().
Referenced by EntryFormatter().
|
inline |
Definition at line 229 of file weldutils.hxx.
|
overridevirtual |
Implements Formatter.
Definition at line 178 of file weldutils.cxx.
References m_rEntry, Selection::Max(), Selection::Min(), weld::Entry::select_region(), SELECTION_MAX, and weld::Entry::set_text().
|
overridevirtual |
Implements Formatter.
Definition at line 186 of file weldutils.cxx.
References COL_AUTO(), m_rEntry, and weld::Entry::set_font_color().
|
overridevirtual |
Reimplemented from Formatter.
Definition at line 219 of file weldutils.cxx.
References m_pSpinButton, Formatter::SetMaxValue(), and weld::FormattedSpinButton::sync_range_from_formatter().
|
overridevirtual |
Reimplemented from Formatter.
Definition at line 205 of file weldutils.cxx.
References m_pSpinButton, Formatter::SetMinValue(), and weld::FormattedSpinButton::sync_range_from_formatter().
|
overridevirtual |
Reimplemented from Formatter.
Definition at line 226 of file weldutils.cxx.
References m_pSpinButton, Formatter::SetSpinSize(), and weld::FormattedSpinButton::sync_increments_from_formatter().
|
overrideprivatevirtual |
Reimplemented from Formatter.
Definition at line 191 of file weldutils.cxx.
References m_pSpinButton, weld::FormattedSpinButton::sync_value_from_formatter(), and Formatter::UpdateCurrentValue().
|
private |
Definition at line 248 of file weldutils.hxx.
|
private |
Definition at line 247 of file weldutils.hxx.
Referenced by FieldModified().
|
private |
Definition at line 249 of file weldutils.hxx.
Referenced by GetEntrySelectionOptions().
|
private |
Definition at line 246 of file weldutils.hxx.
Referenced by ClearMaxValue(), ClearMinValue(), Init(), SetMaxValue(), SetMinValue(), SetSpinSize(), UpdateCurrentValue(), and ~EntryFormatter().
|
private |
Definition at line 245 of file weldutils.hxx.
Referenced by FieldModified(), GetEntrySelection(), GetEntryText(), Init(), SetEntryText(), SetEntryTextColor(), and ~EntryFormatter().