summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unofield.cxx12
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);
}