diff options
author | Eike Rathke <erack@redhat.com> | 2012-08-29 20:49:01 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-08-29 21:17:46 +0200 |
commit | cda156257003df673fa853a0a5ffcd1cb4848d43 (patch) | |
tree | 5fcd7aa0c1c8e5de2da387e069423530500b15b4 /cui/source/options/optgdlg.hxx | |
parent | 332451bea5ebe08136de2d51e0e29cac88f89e8c (diff) |
resolved fdo#52240 fdo#52137 fdo#52288 user editable date patterns
Implemented user editable date acceptance patterns.
The introduction of strict date parsing using locale dependent date
acceptance patterns in 3.6.0 wasn't always welcomed. Besides that not
every locale had patterns for incomplete (only day and month) date
input, users also complained about not being able to key in dates on
numeric keypads if the locale's date separator wasn't '/' or '-'
This commit implements a "Date acceptance patterns" edit field under
Tools->Options->LanguageSettings->Languages that follows the selected
locale and enables the user to add patterns.
Example de-DE locale:
* default patterns: D.M.Y;D.M.
* to enable additional input on numeric keypad: D.M.Y;D.M.;D-M-Y;D-M
* if 3-4 shall not result in a date, D-M- could be used instead of D-M
* note that to enter an ISO 8601 Y-M-D date with a D-M-Y pattern
active one needs to enter a year >31 or with at least 3 digits, e.g.
011
Change-Id: I9e20fcb168578b02d0f0248a0e209942e0f27113
Diffstat (limited to 'cui/source/options/optgdlg.hxx')
-rw-r--r-- | cui/source/options/optgdlg.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cui/source/options/optgdlg.hxx b/cui/source/options/optgdlg.hxx index e38c48c90db3..b58868866e75 100644 --- a/cui/source/options/optgdlg.hxx +++ b/cui/source/options/optgdlg.hxx @@ -179,6 +179,9 @@ class OfaLanguagesTabPage : public SfxTabPage CheckBox aDecimalSeparatorCB; FixedText aCurrencyFT; ListBox aCurrencyLB; + ReadOnlyImage aDatePatternsFI; + FixedText aDatePatternsFT; + Edit aDatePatternsED; FixedLine aLinguLanguageGB; ReadOnlyImage aWesternLanguageFI; @@ -207,6 +210,7 @@ class OfaLanguagesTabPage : public SfxTabPage DECL_LINK( SupportHdl, CheckBox* ) ; DECL_LINK( LocaleSettingHdl, SvxLanguageBox* ) ; + DECL_LINK( DatePatternsHdl, Edit* ) ; public: OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSet ); |