diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-11 13:03:07 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-11 13:04:09 -0400 |
commit | ee5fc5d25fe102c30daf7d181b8181d40b85a4f3 (patch) | |
tree | 630217c52fcbca775e094fa69702e89ef773b414 /editeng | |
parent | include deque (diff) | |
download | core-ee5fc5d25fe102c30daf7d181b8181d40b85a4f3.tar.gz core-ee5fc5d25fe102c30daf7d181b8181d40b85a4f3.zip |
Removing EXTENDED_DATE. There is really no such thing.
This can be safely substituted by the normal DATE.
Change-Id: I I6b4ccfa342a8d7b638b013cdce64a0b7ff477ec0
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/flditem.cxx | 1 | ||||
-rw-r--r-- | editeng/source/uno/unofield.cxx | 10 | ||||
-rw-r--r-- | editeng/source/xml/xmltxtexp.cxx | 2 |
3 files changed, 1 insertions, 12 deletions
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx index d5aec5b8d541..bcc578de3ae0 100644 --- a/editeng/source/items/flditem.cxx +++ b/editeng/source/items/flditem.cxx @@ -63,7 +63,6 @@ SvxFieldData* SvxFieldData::Create(const uno::Reference<text::XTextContent>& xTe case text::textfield::Type::TIME: case text::textfield::Type::EXTENDED_TIME: case text::textfield::Type::DATE: - case text::textfield::Type::EXTENDED_DATE: { sal_Bool bIsDate = false; xPropSet->getPropertyValue(UNO_TC_PROP_IS_DATE) >>= bIsDate; diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx index 83cad2d25de4..a156c89dc85a 100644 --- a/editeng/source/uno/unofield.cxx +++ b/editeng/source/uno/unofield.cxx @@ -146,7 +146,6 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) switch( mnId ) { - case text::textfield::Type::EXTENDED_DATE: case text::textfield::Type::EXTENDED_TIME: case text::textfield::Type::DATE: return &aExDateTimeFieldPropertySet_Impl; @@ -266,7 +265,6 @@ SvxUnoTextField::SvxUnoTextField( sal_Int32 nServiceId ) throw() switch( nServiceId ) { - case text::textfield::Type::EXTENDED_DATE: case text::textfield::Type::DATE: mpImpl->mbBoolean2 = sal_True; mpImpl->mnInt32 = SVXDATEFORMAT_STDSMALL; @@ -329,7 +327,6 @@ SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > xAnchor, co switch( mnServiceId ) { case text::textfield::Type::DATE: - case text::textfield::Type::EXTENDED_DATE: { mpImpl->mbBoolean2 = sal_True; // #i35416# for variable date field, don't use invalid "0000-00-00" date, @@ -403,7 +400,6 @@ SvxFieldData* SvxUnoTextField::CreateFieldData() const throw() case text::textfield::Type::TIME: case text::textfield::Type::EXTENDED_TIME: case text::textfield::Type::DATE: - case text::textfield::Type::EXTENDED_DATE: { if( mpImpl->mbBoolean2 ) // IsDate? { @@ -630,8 +626,6 @@ OUString SAL_CALL SvxUnoTextField::getPresentation( sal_Bool bShowCommand ) return OUString("Footer"); case text::textfield::Type::PRESENTATION_DATE_TIME: return OUString("DateTime"); - case text::textfield::Type::EXTENDED_DATE: - return OUString("ExtDate"); default: return OUString("Unknown"); } @@ -879,10 +873,6 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextField::getSupportedServiceNames() 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); } diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx index 15ea26436e19..a0455ff299df 100644 --- a/editeng/source/xml/xmltxtexp.cxx +++ b/editeng/source/xml/xmltxtexp.cxx @@ -245,7 +245,7 @@ uno::Reference< uno::XInterface > SAL_CALL SvxSimpleUnoModel::createInstance( co RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.TextField.DateTime"))) ) { - return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::EXTENDED_DATE ); + return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::DATE ); } return SvxUnoTextCreateTextField( aServiceSpecifier ); |