diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-11 01:00:59 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-11 01:54:40 -0400 |
commit | e3df55842c4f9e37492a7b653f42b8f2b68305ef (patch) | |
tree | 7aa48a7cf352aeb75040c179841aaa57affad333 /editeng/source/uno | |
parent | 17b900c657cac6a510ed63e0ff8eb74a33dcc8db (diff) |
Fixed a regression on impress/draw file save losing date field format info.
Change-Id: If9e01ab91d52d21cab175bfda925e690625fac3e
Diffstat (limited to 'editeng/source/uno')
-rw-r--r-- | editeng/source/uno/unofield.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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); } |