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 | |
parent | 02a89fdb0e54c31e510682f9b70f9fd33fe88efa (diff) |
Removing EXTENDED_DATE. There is really no such thing.
This can be safely substituted by the normal DATE.
Change-Id: I I6b4ccfa342a8d7b638b013cdce64a0b7ff477ec0
-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 | ||||
-rw-r--r-- | offapi/com/sun/star/text/textfield/Type.idl | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/fielduno.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/unomod.cxx | 2 |
7 files changed, 4 insertions, 20 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 ); diff --git a/offapi/com/sun/star/text/textfield/Type.idl b/offapi/com/sun/star/text/textfield/Type.idl index a9a2653a253e..cfa864ac65a6 100644 --- a/offapi/com/sun/star/text/textfield/Type.idl +++ b/offapi/com/sun/star/text/textfield/Type.idl @@ -60,8 +60,6 @@ constants Type const long PRESENTATION_HEADER = 11; const long PRESENTATION_FOOTER = 12; const long PRESENTATION_DATE_TIME = 13; - - const long EXTENDED_DATE = 14; }; }; }; }; }; }; diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index 7f36dfb1b71a..9699945a20f2 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -1166,7 +1166,6 @@ ScEditFieldObj::ScEditFieldObj( pPropSet = lcl_GetURLPropertySet(); break; case text::textfield::Type::DATE: - case text::textfield::Type::EXTENDED_DATE: case text::textfield::Type::TIME: case text::textfield::Type::EXTENDED_TIME: pPropSet = getDateTimePropertySet(); @@ -1175,7 +1174,7 @@ ScEditFieldObj::ScEditFieldObj( pPropSet = lcl_GetHeaderFieldPropertySet(); } - if (meType == text::textfield::Type::DATE || meType == text::textfield::Type::EXTENDED_DATE) + if (meType == text::textfield::Type::DATE) mbIsDate = true; } @@ -1343,7 +1342,6 @@ void SAL_CALL ScEditFieldObj::setPropertyValue( setPropertyValueFile(aPropertyName, aValue); break; case text::textfield::Type::DATE: - case text::textfield::Type::EXTENDED_DATE: case text::textfield::Type::TIME: case text::textfield::Type::EXTENDED_TIME: setPropertyValueDateTime(aPropertyName, aValue); @@ -1397,7 +1395,6 @@ uno::Any SAL_CALL ScEditFieldObj::getPropertyValue( const rtl::OUString& aProper return getPropertyValueFile(aPropertyName); case text::textfield::Type::DATE: case text::textfield::Type::TIME: - case text::textfield::Type::EXTENDED_DATE: case text::textfield::Type::EXTENDED_TIME: return getPropertyValueDateTime(aPropertyName); case text::textfield::Type::FILE: diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index afdbbb08e09d..1ddca549e0d7 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -907,7 +907,7 @@ uno::Reference< uno::XInterface > SAL_CALL SdXImpressDocument::createInstance( c if( ( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.TextField.DateTime") ) ) || ( 0 == aServiceSpecifier.reverseCompareToAsciiL( 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 ); } if( (0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.TextField.Header"))) || diff --git a/svx/source/unodraw/unomod.cxx b/svx/source/unodraw/unomod.cxx index 8292c13b43b0..736038ea6441 100644 --- a/svx/source/unodraw/unomod.cxx +++ b/svx/source/unodraw/unomod.cxx @@ -413,7 +413,7 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoDrawingModel::createInstance( c if( 0 == aServiceSpecifier.reverseCompareToAsciiL( 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); } uno::Reference< uno::XInterface > xRet; |