diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-07 17:46:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-01-15 09:56:00 +0200 |
commit | 92f14ced5e6f613772792d863a8c2cfeddfdae04 (patch) | |
tree | 320db909a032db6c3527eab2cce56ea5f84f6028 /embeddedobj/source | |
parent | e7018375cdf0e5e542631df9dee6023ff80b7840 (diff) |
fdo#46808, Adapt frame::TaskCreator UNO service to new style
The service already existed, it just did not have an IDL file.
Change-Id: I157c53d09b612da0178432100b8928013f811706
Diffstat (limited to 'embeddedobj/source')
-rw-r--r-- | embeddedobj/source/general/docholder.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx index 76bb6499f471..6a812908f917 100644 --- a/embeddedobj/source/general/docholder.cxx +++ b/embeddedobj/source/general/docholder.cxx @@ -18,6 +18,7 @@ */ #include <com/sun/star/embed/Aspects.hpp> +#include <com/sun/star/frame/TaskCreator.hpp> #include <com/sun/star/frame/XComponentLoader.hpp> #include <com/sun/star/frame/XSynchronousFrameLoader.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> @@ -449,9 +450,7 @@ sal_Bool DocumentHolder::ShowInplace( const uno::Reference< awt::XWindowPeer >& throw uno::RuntimeException(); // TODO: can not create own window // create a frame based on the specified window - uno::Reference< lang::XSingleServiceFactory > xFrameFact( - m_xContext->getServiceManager()->createInstanceWithContext( "com.sun.star.frame.TaskCreator", m_xContext ), - uno::UNO_QUERY_THROW ); + uno::Reference< lang::XSingleServiceFactory > xFrameFact = frame::TaskCreator::create(m_xContext); uno::Sequence< uno::Any > aArgs( 2 ); beans::NamedValue aArg; @@ -829,9 +828,7 @@ uno::Reference< frame::XFrame > DocumentHolder::GetDocFrame() // the frame for outplace activation if ( !m_xFrame.is() ) { - uno::Reference< lang::XSingleServiceFactory > xFrameFact( - m_xContext->getServiceManager()->createInstanceWithContext( "com.sun.star.frame.TaskCreator", m_xContext ), - uno::UNO_QUERY_THROW ); + uno::Reference< lang::XSingleServiceFactory > xFrameFact = frame::TaskCreator::create(m_xContext); m_xFrame.set(xFrameFact->createInstanceWithArguments( m_aOutplaceFrameProps ), uno::UNO_QUERY_THROW); |