diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-09-02 10:55:15 -0300 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-09-03 09:16:14 +0000 |
commit | b62826ad3887305a76ee1ceabe2060f9d6e8723f (patch) | |
tree | 554edd25a04e870c00799bb8d103ddfa3baf8de2 /sd/source/ui/dlg | |
parent | ea7ce8cf08521a7609d2ffc0969b1541fbbb9d0c (diff) |
Remove more unused methods
Change-Id: I79548f9dd1b83ef940e7a1302cf7b728610fed4a
Reviewed-on: https://gerrit.libreoffice.org/5757
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r-- | sd/source/ui/dlg/PhotoAlbumDialog.cxx | 22 | ||||
-rw-r--r-- | sd/source/ui/dlg/PhotoAlbumDialog.hxx | 4 |
2 files changed, 0 insertions, 26 deletions
diff --git a/sd/source/ui/dlg/PhotoAlbumDialog.cxx b/sd/source/ui/dlg/PhotoAlbumDialog.cxx index c321325ae78b..8820b5e7dce3 100644 --- a/sd/source/ui/dlg/PhotoAlbumDialog.cxx +++ b/sd/source/ui/dlg/PhotoAlbumDialog.cxx @@ -652,28 +652,6 @@ awt::Size SdPhotoAlbumDialog::createASRSize(const awt::Size& aPicSize, const awt return awt::Size(resizeWidth, resizeHeight); } -Reference< drawing::XShape > SdPhotoAlbumDialog::createXShapeFromUrl(const OUString& sUrl, - Reference< lang::XMultiServiceFactory > xShapeFactory, - Reference< graphic::XGraphicProvider> xProvider -) -{ - //First, we create an XGraphic - ::comphelper::NamedValueCollection aMediaProperties; - aMediaProperties.put( "URL", OUString( sUrl ) ); - Reference< graphic::XGraphic> xGraphic = - xProvider->queryGraphic( aMediaProperties.getPropertyValues() ); - //And then, we can create the XShape from the XGraphic - Reference< drawing::XShape > xShape( - xShapeFactory->createInstance("com.sun.star.drawing.GraphicObjectShape"), - uno::UNO_QUERY - ); - - Reference< beans::XPropertySet > xProps( xShape, uno::UNO_QUERY ); - xProps->setPropertyValue("Graphic", ::uno::Any(xGraphic)); - - return xShape; // Image loaded into XShape -} - Reference< graphic::XGraphic> SdPhotoAlbumDialog::createXGraphicFromUrl(const OUString& sUrl, Reference< graphic::XGraphicProvider> xProvider ) diff --git a/sd/source/ui/dlg/PhotoAlbumDialog.hxx b/sd/source/ui/dlg/PhotoAlbumDialog.hxx index 302a00792cbe..99b93dd35e99 100644 --- a/sd/source/ui/dlg/PhotoAlbumDialog.hxx +++ b/sd/source/ui/dlg/PhotoAlbumDialog.hxx @@ -84,10 +84,6 @@ private: awt::Size createASRSize(const awt::Size& aPicSize, const awt::Size& aMaxSize); - Reference< drawing::XShape > createXShapeFromUrl(const OUString& sUrl, - Reference< lang::XMultiServiceFactory > xShapeFactory, - Reference< graphic::XGraphicProvider> xProvider); - Reference< graphic::XGraphic> createXGraphicFromUrl(const OUString& sUrl, Reference< graphic::XGraphicProvider> xProvider); |