diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-04 21:58:22 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-05 11:10:18 -0400 |
commit | 204c898d7b69731a6a013bb02842400d4a828783 (patch) | |
tree | 08ebee26aec3d3c5de4091a4e43f3f3ddbf318ed /sd/source | |
parent | 194785f8b06182ba8caed8448fc61dd82a24dbcb (diff) |
Use the UNO field type values instead of the internal ones.
Change-Id: I43c374f549bbcddaa1a1bd63c1eb346130208b60
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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") ) ) |