LibreOffice Module vcl (master) 1
|
#include <weldutils.hxx>
Public Member Functions | |
TimeFormatter (weld::Entry &rEntry) | |
TimeFormatter (weld::FormattedSpinButton &rSpinButton) | |
void | SetExtFormat (ExtTimeFieldFormat eFormat) |
void | SetDuration (bool bDuration) |
void | SetTimeFormat (TimeFieldFormat eTimeFormat) |
void | SetMin (const tools::Time &rNewMin) |
void | SetMax (const tools::Time &rNewMax) |
void | SetTime (const tools::Time &rNewTime) |
tools::Time | GetTime () |
virtual | ~TimeFormatter () override |
Public Member Functions inherited from weld::EntryFormatter | |
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 (FormatOutputHdl, LinkParamNone *, bool) | |
DECL_DLLPRIVATE_LINK (ParseInputHdl, sal_Int64 *, TriState) | |
DECL_DLLPRIVATE_LINK (CursorChangedHdl, weld::Entry &, void) | |
SAL_DLLPRIVATE void | Init () |
SAL_DLLPRIVATE OUString | FormatNumber (int nValue) const |
Static Private Member Functions | |
static SAL_DLLPRIVATE tools::Time | ConvertValue (int nValue) |
static SAL_DLLPRIVATE int | ConvertValue (const tools::Time &rTime) |
Private Attributes | |
TimeFieldFormat | m_eFormat |
TimeFormat | m_eTimeFormat |
bool | m_bDuration |
Definition at line 296 of file weldutils.hxx.
weld::TimeFormatter::TimeFormatter | ( | weld::Entry & | rEntry | ) |
Definition at line 338 of file weldutils.cxx.
weld::TimeFormatter::TimeFormatter | ( | weld::FormattedSpinButton & | rSpinButton | ) |
Definition at line 347 of file weldutils.cxx.
|
overridevirtualdefault |
Definition at line 2695 of file field2.cxx.
|
staticprivate |
Definition at line 3110 of file field2.cxx.
References tools::Time::GetMSFromTime().
|
staticprivate |
Definition at line 3103 of file field2.cxx.
References tools::Time::MakeTimeFromMS(), and nValue.
Referenced by FormatNumber().
|
private |
References FormatNumber(), and Init().
|
private |
|
private |
|
private |
Definition at line 3142 of file field2.cxx.
References ConvertValue(), AllSettings::GetLocaleDataWrapper(), Application::GetSettings(), m_bDuration, m_eFormat, m_eTimeFormat, and nValue.
tools::Time weld::TimeFormatter::GetTime | ( | ) |
Definition at line 2841 of file field2.cxx.
References GetFormat().
|
private |
Definition at line 356 of file weldutils.cxx.
References weld::Entry::connect_cursor_position(), Formatter::DisableRemainderFactor(), weld::EntryFormatter::get_widget(), LINK, Formatter::SetInputHdl(), SetMax(), SetMin(), and Formatter::SetOutputHdl().
Referenced by TimeFormatter().
void TimeFormatter::SetDuration | ( | bool | bDuration | ) |
Definition at line 421 of file weldutils.cxx.
References m_bDuration, and Formatter::ReFormat().
void weld::TimeFormatter::SetExtFormat | ( | ExtTimeFieldFormat | eFormat | ) |
Definition at line 372 of file weldutils.cxx.
References F_NONE, F_SEC, Hour12, Hour24, Long12H, Long24H, LongDuration, m_bDuration, m_eFormat, m_eTimeFormat, Formatter::ReFormat(), Short12H, Short24H, and ShortDuration.
void weld::TimeFormatter::SetMax | ( | const tools::Time & | rNewMax | ) |
Definition at line 2711 of file field2.cxx.
Referenced by Init().
void weld::TimeFormatter::SetMin | ( | const tools::Time & | rNewMin | ) |
Definition at line 2704 of file field2.cxx.
Referenced by Init().
void weld::TimeFormatter::SetTime | ( | const tools::Time & | rNewTime | ) |
Definition at line 2736 of file field2.cxx.
void TimeFormatter::SetTimeFormat | ( | TimeFieldFormat | eTimeFormat | ) |
Definition at line 427 of file weldutils.cxx.
References m_eFormat, and Formatter::ReFormat().
|
private |
Definition at line 328 of file weldutils.hxx.
Referenced by FormatNumber(), SetDuration(), and SetExtFormat().
|
private |
Definition at line 326 of file weldutils.hxx.
Referenced by FormatNumber(), SetExtFormat(), and SetTimeFormat().
|
private |
Definition at line 327 of file weldutils.hxx.
Referenced by FormatNumber(), and SetExtFormat().