summaryrefslogtreecommitdiff
path: root/include/svl/zforlist.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-08-12 14:29:25 +0200
committerEike Rathke <erack@redhat.com>2015-08-12 14:34:28 +0200
commit9d370f2bb9f2af1b3acc1531f1e71b0ded36e40f (patch)
treecae00f9ac8dc70ff398167aad3bba66bbed53715 /include/svl/zforlist.hxx
parentc1c142dc64f96791ebbaf03caeb3ff1852a7598f (diff)
move date/time guess work to SvNumberFormatter::GuessDateTimeFormat()
Change-Id: I26f7c47f5b3cf4a3c4274832448d9c8076981af0
Diffstat (limited to 'include/svl/zforlist.hxx')
-rw-r--r--include/svl/zforlist.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx
index b22aeef4ff0f..a6e8732618e3 100644
--- a/include/svl/zforlist.hxx
+++ b/include/svl/zforlist.hxx
@@ -572,6 +572,15 @@ public:
/// Whether nFIndex is a special builtin format
bool IsSpecialStandardFormat( sal_uInt32 nFIndex, LanguageType eLnge );
+ /** Return a time format that best matches fNumber. */
+ sal_uInt32 GetTimeFormat( double fNumber, LanguageType eLnge );
+
+ /** Return a format and type that best matches the value of fNumber if
+ fNumber is assumed to be a date, time or datetime value, but unknown
+ which. Originally introduced for Chart databrowser editor, probably
+ should not be used otherwise. */
+ sal_uInt32 GuessDateTimeFormat( short& rType, double fNumber, LanguageType eLnge );
+
/** Return the corresponding edit format of a format. */
sal_uInt32 GetEditFormat( double fNumber, sal_uInt32 nFIndex, short eType,
LanguageType eLnge, SvNumberformat* pFormat );