From 204c898d7b69731a6a013bb02842400d4a828783 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 4 May 2012 21:58:22 -0400 Subject: Use the UNO field type values instead of the internal ones. Change-Id: I43c374f549bbcddaa1a1bd63c1eb346130208b60 --- sd/source/ui/unoidl/unomodel.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index f031a5b65f11..6796fe7476bf 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -907,25 +907,25 @@ 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( ID_EXT_DATEFIELD ); + return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::EXTENDED_DATE ); } if( (0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.TextField.Header"))) || (0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.textfield.Header"))) ) { - return (::cppu::OWeakObject * )new SvxUnoTextField( ID_HEADERFIELD ); + return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::HEADER ); } if( (0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.TextField.Footer"))) || (0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.textfield.Footer"))) ) { - return (::cppu::OWeakObject * )new SvxUnoTextField( ID_FOOTERFIELD ); + return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::FOOTER ); } if( (0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.TextField.DateTime"))) || (0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.textfield.DateTime"))) ) { - return (::cppu::OWeakObject * )new SvxUnoTextField( ID_DATETIMEFIELD ); + return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::DATE_TIME ); } if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.xml.NamespaceMap") ) ) -- cgit v1.2.3