LibreOffice Module vcl (master)
1
|
#include <weldutils.hxx>
Public Member Functions | |
DateFormatter (weld::Entry &rEntry) | |
void | SetMin (const Date &rNewMin) |
void | SetMax (const Date &rNewMax) |
void | SetDate (const Date &rNewDate) |
Date | GetDate () |
void | SetExtDateFormat (ExtDateFieldFormat eFormat) |
void | SetShowDateCentury (bool bShowCentury) |
virtual | ~DateFormatter () override |
![]() | |
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 |
![]() | |
Formatter () | |
virtual | ~Formatter () |
void | SetFieldText (const OUString &rText, const Selection &rNewSelection) |
bool | HasMinValue () const |
double | GetMinValue () const |
bool | HasMaxValue () const |
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) |
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 CalendarWrapper & | GetCalendarWrapper () const |
SAL_DLLPRIVATE OUString | FormatNumber (int nValue) const |
Private Attributes | |
ExtDateFieldFormat | m_eFormat |
std::unique_ptr< CalendarWrapper > | m_xCalendarWrapper |
Definition at line 331 of file weldutils.hxx.
DateFormatter::DateFormatter | ( | weld::Entry & | rEntry | ) |
Definition at line 435 of file weldutils.cxx.
References Init(), and SystemShort.
|
overridevirtualdefault |
Definition at line 1730 of file field2.cxx.
|
private |
|
private |
|
private |
|
private |
Definition at line 2243 of file field2.cxx.
References AllSettings::GetLocaleDataWrapper(), Application::GetSettings(), Formatter::m_aStaticFormatter, and m_eFormat.
|
private |
Definition at line 1734 of file field2.cxx.
References comphelper::getProcessComponentContext().
Date DateFormatter::GetDate | ( | ) |
Definition at line 1904 of file field2.cxx.
References Date::EMPTY, and Date::SYSTEM.
Definition at line 442 of file weldutils.cxx.
References LINK, Formatter::SetInputHdl(), SetMax(), SetMin(), and Formatter::SetOutputHdl().
Referenced by DateFormatter().
Definition at line 1855 of file field2.cxx.
void DateFormatter::SetExtDateFormat | ( | ExtDateFieldFormat | eFormat | ) |
Definition at line 451 of file weldutils.cxx.
References m_eFormat, and Formatter::ReFormat().
Definition at line 1773 of file field2.cxx.
Referenced by Init().
Definition at line 1766 of file field2.cxx.
Referenced by Init().
void DateFormatter::SetShowDateCentury | ( | bool | bShowCentury | ) |
Definition at line 1846 of file field2.cxx.
|
private |
Definition at line 357 of file weldutils.hxx.
Referenced by FormatNumber(), and SetExtDateFormat().
|
mutableprivate |
Definition at line 358 of file weldutils.hxx.