diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2018-11-26 16:59:42 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-09-24 14:53:40 +0200 |
commit | ac6fe36ac6ccebf3bf891b891bd47c8e3744a056 (patch) | |
tree | 3676e69f33602592aec30b1998c978cb1b4fd778 /vcl/source/helper/commandinfoprovider.cxx | |
parent | 6b82bbd9e7c3aab343c5e7e9e3fb0bcfc70e2cb7 (diff) |
Use lazy-loading stock Image to simplify framework image lists.
Project stock names through XGraphic via origin URL.
(cherry picked from commit 77b88eebaadebb626108172e4f2de36c60960051)
Change-Id: Ib445694f7c142a163ef7e7bc0beea39b88b99e14
Reviewed-on: https://gerrit.libreoffice.org/79420
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/source/helper/commandinfoprovider.cxx')
-rw-r--r-- | vcl/source/helper/commandinfoprovider.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx index f14ee9dd0efb..d6fdc61715e8 100644 --- a/vcl/source/helper/commandinfoprovider.cxx +++ b/vcl/source/helper/commandinfoprovider.cxx @@ -350,20 +350,11 @@ Reference<graphic::XGraphic> GetXGraphicForCommand(const OUString& rsCommandName return nullptr; } -static BitmapEx GetBitmapForCommand(const OUString& rsCommandName, - const Reference<frame::XFrame>& rxFrame, - vcl::ImageType eImageType) -{ - const Graphic aGraphic(GetXGraphicForCommand(rsCommandName, rxFrame, eImageType)); - BitmapEx aBitmap(aGraphic.GetBitmapEx()); - return aBitmap; -} - Image GetImageForCommand(const OUString& rsCommandName, const Reference<frame::XFrame>& rxFrame, vcl::ImageType eImageType) { - return Image(GetBitmapForCommand(rsCommandName, rxFrame, eImageType)); + return Image(GetXGraphicForCommand(rsCommandName, rxFrame, eImageType)); } sal_Int32 GetPropertiesForCommand ( |