diff options
author | Noel Grandin <noel@peralex.com> | 2012-11-02 15:13:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-05 18:05:00 +0100 |
commit | 0666e43c45876199ddc71e378554878cca6f0539 (patch) | |
tree | 39fd44bd26cceaa71a86a06c480d80c8351b5e0f /sdext | |
parent | ebc61e11cdb02f5cc33aeabead3d191eaf0d23d3 (diff) |
fdo#46808, use service constructor for i18n::CharacterClassification
Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/tree/drawtreevisiting.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx index 4333dabab350..4a8e6a9d985f 100644 --- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx +++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx @@ -30,6 +30,7 @@ #include "basegfx/range/b2drange.hxx" #include "com/sun/star/i18n/BreakIterator.hpp" +#include "com/sun/star/i18n/CharacterClassification.hpp" #include "com/sun/star/lang/XMultiServiceFactory.hpp" #include "comphelper/processfactory.hxx" #include "com/sun/star/i18n/ScriptType.hpp" @@ -56,14 +57,12 @@ const Reference< XBreakIterator >& DrawXmlOptimizer::GetBreakIterator() return mxBreakIter; } -const ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCharacterClassification >& DrawXmlEmitter::GetCharacterClassification() +const Reference< XCharacterClassification >& DrawXmlEmitter::GetCharacterClassification() { if ( !mxCharClass.is() ) { Reference< XComponentContext > xContext( m_rEmitContext.m_xContext, uno::UNO_SET_THROW ); - Reference< XMultiComponentFactory > xMSF( xContext->getServiceManager(), uno::UNO_SET_THROW ); - Reference < XInterface > xInterface = xMSF->createInstanceWithContext(::rtl::OUString("com.sun.star.i18n.CharacterClassification"), xContext); - mxCharClass = uno::Reference< i18n::XCharacterClassification >( xInterface, uno::UNO_QUERY ); + mxCharClass = CharacterClassification::create(xContext); } return mxCharClass; } |