diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-09 15:32:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-01-28 08:22:53 +0200 |
commit | 49cf14a3ca8dceed39baead918b1ddaaab5f4ab3 (patch) | |
tree | ee1ea9363933db10c96e373b091ac7952ae9dfc0 /basic | |
parent | fdo#46808, Adapt setup::UpdateCheckConfig UNO services to new style (diff) | |
download | core-49cf14a3ca8dceed39baead918b1ddaaab5f4ab3.tar.gz core-49cf14a3ca8dceed39baead918b1ddaaab5f4ab3.zip |
fdo#46808, Adapt document::GraphicObjectResolver UNO service to new style
The services already existed, it just did not have an IDL file
Change-Id: I245f78c165dbfde11a981efd7033c5c282f4e8ad
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index d5bcedc85a64..2c0054da5df0 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -28,9 +28,9 @@ #include <com/sun/star/io/XActiveDataSource.hpp> #include <com/sun/star/xml/sax/XDocumentHandler.hpp> #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp> -#include "com/sun/star/resource/XStringResourceWithStorage.hpp" -#include "com/sun/star/resource/XStringResourceWithLocation.hpp" -#include "com/sun/star/document/XGraphicObjectResolver.hpp" +#include <com/sun/star/resource/XStringResourceWithStorage.hpp> +#include <com/sun/star/resource/XStringResourceWithLocation.hpp> +#include <com/sun/star/document/GraphicObjectResolver.hpp> #include "dlgcont.hxx" #include "sbmodule.hxx" #include <comphelper/componentcontext.hxx> @@ -238,17 +238,15 @@ void SfxDialogLibraryContainer::storeLibrariesToStorage( const uno::Reference< e Reference< io::XInputStream > xInput( xISP->createInputStream() ); Reference< XNameContainer > xDialogModel( mxMSF->createInstance ( OUString( "com.sun.star.awt.UnoControlDialogModel" ) ) , UNO_QUERY ); - Reference< XComponentContext > xContext( - comphelper::getComponentContext( mxMSF ) ); + Reference< XComponentContext > xContext( comphelper::getComponentContext( mxMSF ) ); ::xmlscript::importDialogModel( xInput, xDialogModel, xContext, mxOwnerDocument ); std::vector< OUString > vEmbeddedImageURLs; GraphicObject::InspectForGraphicObjectImageURL( Reference< XInterface >( xDialogModel, UNO_QUERY ), vEmbeddedImageURLs ); if ( !vEmbeddedImageURLs.empty() ) { // Export the images to the storage - Sequence< Any > aArgs( 1 ); - aArgs[ 0 ] <<= xStorage; - Reference< document::XGraphicObjectResolver > xGraphicResolver( mxMSF->createInstanceWithArguments( OUString("com.sun.star.comp.Svx.GraphicExportHelper" ), aArgs ), UNO_QUERY ); + Reference< document::XGraphicObjectResolver > xGraphicResolver = + document::GraphicObjectResolver::createWithStorage( xContext, xStorage ); std::vector< OUString >::iterator it = vEmbeddedImageURLs.begin(); std::vector< OUString >::iterator it_end = vEmbeddedImageURLs.end(); if ( xGraphicResolver.is() ) |