diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-12 10:49:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-12 11:47:52 +0200 |
commit | 5f3d9ba0cdd82ef1e8be9b80ae8054c24653e058 (patch) | |
tree | c3af108b6c756eaa13101b67027a17e284689b21 /framework/source/fwe | |
parent | fd2eb598a5eddb54ad819d9e69f9f16c5e8ea9e9 (diff) |
GetImageFromURL/SetImageProducer unused
looks like these have been abandoned recently in the toolbar manager
update
Change-Id: I5556833dfef0db5958a5779bdb32482c18a46a5f
Diffstat (limited to 'framework/source/fwe')
-rw-r--r-- | framework/source/fwe/classes/addonmenu.cxx | 1 | ||||
-rw-r--r-- | framework/source/fwe/classes/bmkmenu.cxx | 1 | ||||
-rw-r--r-- | framework/source/fwe/helper/imageproducer.cxx | 49 |
3 files changed, 0 insertions, 51 deletions
diff --git a/framework/source/fwe/classes/addonmenu.cxx b/framework/source/fwe/classes/addonmenu.cxx index c65da97c56d1..f69ae27ee94b 100644 --- a/framework/source/fwe/classes/addonmenu.cxx +++ b/framework/source/fwe/classes/addonmenu.cxx @@ -20,7 +20,6 @@ #include <framework/addonmenu.hxx> #include <framework/addonsoptions.hxx> #include <general.h> -#include <framework/imageproducer.hxx> #include <framework/menuconfiguration.hxx> #include <services.h> diff --git a/framework/source/fwe/classes/bmkmenu.cxx b/framework/source/fwe/classes/bmkmenu.cxx index 07f91f7441c3..4b316a73c325 100644 --- a/framework/source/fwe/classes/bmkmenu.cxx +++ b/framework/source/fwe/classes/bmkmenu.cxx @@ -21,7 +21,6 @@ #include <framework/bmkmenu.hxx> #include <general.h> -#include <framework/imageproducer.hxx> #include <framework/menuconfiguration.hxx> #include <com/sun/star/uno/Reference.h> diff --git a/framework/source/fwe/helper/imageproducer.cxx b/framework/source/fwe/helper/imageproducer.cxx deleted file mode 100644 index 3c70b2256258..000000000000 --- a/framework/source/fwe/helper/imageproducer.cxx +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include <framework/imageproducer.hxx> - -namespace framework -{ - -static pfunc_getImage _pGetImageFunc = nullptr; - -pfunc_getImage SAL_CALL SetImageProducer( pfunc_getImage pNewGetImageFunc ) -{ - pfunc_getImage pOldFunc = _pGetImageFunc; - _pGetImageFunc = pNewGetImageFunc; - - return pOldFunc; -} - -Image SAL_CALL GetImageFromURL( - const css::uno::Reference< css::frame::XFrame >& rFrame, - const OUString& aURL, - bool bBig -) -{ - if ( _pGetImageFunc ) - return _pGetImageFunc( rFrame, aURL, bBig ); - else - return Image(); -} - -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |