diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-01 14:27:21 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-03 20:28:16 -0400 |
commit | d6d4d00114e267142145f0d6bb80a66dd4bca990 (patch) | |
tree | 17d4983876985388bc6bd5d614aa420a2fbb3cbd /sc/source/core/tool/editutil.cxx | |
parent | 9af4b611190c14b04460e2554735725b4231b685 (diff) |
Support date field in cells.
Change-Id: Iff20eb16bb4a7f700b0a533bc745b92fdce8ac0f
Diffstat (limited to 'sc/source/core/tool/editutil.cxx')
-rw-r--r-- | sc/source/core/tool/editutil.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/tool/editutil.cxx b/sc/source/core/tool/editutil.cxx index af953e56f87b..19134d724be0 100644 --- a/sc/source/core/tool/editutil.cxx +++ b/sc/source/core/tool/editutil.cxx @@ -752,6 +752,12 @@ String ScFieldEditEngine::CalcFieldValue( const SvxFieldItem& rField, aRet = pField->GetFormatted(*mpDoc->GetFormatTable(), ScGlobal::eLnge); } break; + case SVX_DATEFIELD: + { + Date aDate(Date::SYSTEM); + aRet = ScGlobal::pLocaleData->getDate(aDate); + } + break; default: aRet = "?"; } |