From 45f20a893a457a40604207382611afd2f8e4b635 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 23 Apr 2018 12:43:54 +0900 Subject: [API CHANGE] deprecate XGraphicObjectResolver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit XGraphicObjectResolver was used to get the GraphicObject URL from an storage (package) URL. This isn't possible anymore in LO 6.1 since creating GraphicObject from uniqueID was removed for its lifecycle issues. XGraphicObjectResolver is now deprecated and when the "resolveGraphicObjectURL" is called, it throws a RuntimeExeption. In places where XGraphicObjectResolver was used, we now use the XGraphicStorageHandler as the alternative. Both share a common implementation so previously we could cast one to the other at any time. Now only XGraphicStorageHandler is used. GraphicObjectResolver was removed and replaced by the alternative GraphicStorageHandler for instance creation - where needed. Change-Id: I5d3f759c6f95b7dbe2d93688d99c8aa4899ffa84 Reviewed-on: https://gerrit.libreoffice.org/53279 Reviewed-by: Tomaž Vajngerl Tested-by: Tomaž Vajngerl --- dbaccess/source/core/dataaccess/databasedocument.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index 43b3c4d41d3f..eee5e8465031 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -32,7 +32,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -60,8 +61,6 @@ #include #include #include -#include -#include #include #include @@ -383,10 +382,8 @@ void lcl_uglyHackToStoreDialogeEmbedImages( const Reference< XStorageBasedLibrar if (!vxGraphicList.empty()) { // Export the images to the storage - uno::Reference xGraphicResolver; - xGraphicResolver.set(GraphicObjectResolver::createWithStorage(rxContext, xTmpPic)); uno::Reference xGraphicStorageHandler; - xGraphicStorageHandler.set(xGraphicResolver, uno::UNO_QUERY); + xGraphicStorageHandler.set(GraphicStorageHandler::createWithStorage(rxContext, xTmpPic)); if (xGraphicStorageHandler.is()) { for (uno::Reference const & rxGraphic : vxGraphicList) -- cgit v1.2.3