Kaydet (Commit) e3df5584 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Fixed a regression on impress/draw file save losing date field format info.

Change-Id: If9e01ab91d52d21cab175bfda925e690625fac3e
üst 17b900c6
...@@ -148,12 +148,11 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) ...@@ -148,12 +148,11 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId )
{ {
case text::textfield::Type::EXTENDED_DATE: case text::textfield::Type::EXTENDED_DATE:
case text::textfield::Type::EXTENDED_TIME: case text::textfield::Type::EXTENDED_TIME:
case text::textfield::Type::DATE:
return &aExDateTimeFieldPropertySet_Impl; return &aExDateTimeFieldPropertySet_Impl;
case text::textfield::Type::URL: case text::textfield::Type::URL:
return &aUrlFieldPropertySet_Impl; return &aUrlFieldPropertySet_Impl;
case text::textfield::Type::DATE:
case text::textfield::Type::TIME: case text::textfield::Type::TIME:
case text::textfield::Type::DATE_TIME:
return &aDateTimeFieldPropertySet_Impl; return &aDateTimeFieldPropertySet_Impl;
case text::textfield::Type::EXTENDED_FILE: case text::textfield::Type::EXTENDED_FILE:
return &aExtFileFieldPropertySet_Impl; return &aExtFileFieldPropertySet_Impl;
...@@ -161,6 +160,7 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) ...@@ -161,6 +160,7 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId )
return &aAuthorFieldPropertySet_Impl; return &aAuthorFieldPropertySet_Impl;
case text::textfield::Type::MEASURE: case text::textfield::Type::MEASURE:
return &aMeasureFieldPropertySet_Impl; return &aMeasureFieldPropertySet_Impl;
case text::textfield::Type::DATE_TIME:
default: default:
return &aEmptyPropertySet_Impl; return &aEmptyPropertySet_Impl;
} }
...@@ -877,13 +877,13 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextField::getSupportedServiceNames() ...@@ -877,13 +877,13 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextField::getSupportedServiceNames()
pServices[3] = "com.sun.star.presentation.textfield.Footer"; pServices[3] = "com.sun.star.presentation.textfield.Footer";
break; break;
case text::textfield::Type::DATE_TIME: 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[2] = "com.sun.star.presentation.TextField.DateTime";
pServices[3] = "com.sun.star.presentation.textfield.DateTime"; pServices[3] = "com.sun.star.presentation.textfield.DateTime";
break; 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: default:
aSeq.realloc(0); aSeq.realloc(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment