From e3df55842c4f9e37492a7b653f42b8f2b68305ef Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 11 May 2012 01:00:59 -0400 Subject: Fixed a regression on impress/draw file save losing date field format info. Change-Id: If9e01ab91d52d21cab175bfda925e690625fac3e --- editeng/source/uno/unofield.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'editeng/source/uno') diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx index f08a820f90ca..dd3f56abbfae 100644 --- a/editeng/source/uno/unofield.cxx +++ b/editeng/source/uno/unofield.cxx @@ -148,12 +148,11 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) { case text::textfield::Type::EXTENDED_DATE: case text::textfield::Type::EXTENDED_TIME: + case text::textfield::Type::DATE: return &aExDateTimeFieldPropertySet_Impl; case text::textfield::Type::URL: return &aUrlFieldPropertySet_Impl; - case text::textfield::Type::DATE: case text::textfield::Type::TIME: - case text::textfield::Type::DATE_TIME: return &aDateTimeFieldPropertySet_Impl; case text::textfield::Type::EXTENDED_FILE: return &aExtFileFieldPropertySet_Impl; @@ -161,6 +160,7 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) return &aAuthorFieldPropertySet_Impl; case text::textfield::Type::MEASURE: return &aMeasureFieldPropertySet_Impl; + case text::textfield::Type::DATE_TIME: default: return &aEmptyPropertySet_Impl; } @@ -877,13 +877,13 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextField::getSupportedServiceNames() pServices[3] = "com.sun.star.presentation.textfield.Footer"; break; case text::textfield::Type::DATE_TIME: - pServices[2] = "com.sun.star.text.TextField.DateTime"; - pServices[3] = "com.sun.star.text.textfield.DateTime"; - break; - case text::textfield::Type::EXTENDED_DATE: pServices[2] = "com.sun.star.presentation.TextField.DateTime"; pServices[3] = "com.sun.star.presentation.textfield.DateTime"; break; + case text::textfield::Type::EXTENDED_DATE: + pServices[2] = "com.sun.star.text.TextField.DateTime"; + pServices[3] = "com.sun.star.text.textfield.DateTime"; + break; default: aSeq.realloc(0); } -- cgit