diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-11-04 17:20:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-11-05 11:20:00 +0100 |
commit | 663aab4c2dd5d64d49b91a30cfa8f057729eae36 (patch) | |
tree | 78f20506486b2d6b3af9affe9afb7e10a0c70254 /sfx2/inc/sidebar | |
parent | 91c5642bf0ee48ff91181d779c3a84c768f340df (diff) |
use XGraphic instead of Image
we don't appear to use the Icon in our own code, though there may
be a route to set it from an extension or via config
Change-Id: I5e169db6335a8e64aeb3d2e6672f5a4b7c65c57f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105309
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/inc/sidebar')
-rw-r--r-- | sfx2/inc/sidebar/TitleBar.hxx | 2 | ||||
-rw-r--r-- | sfx2/inc/sidebar/Tools.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/inc/sidebar/TitleBar.hxx b/sfx2/inc/sidebar/TitleBar.hxx index 917a09cda416..e1029b54ee30 100644 --- a/sfx2/inc/sidebar/TitleBar.hxx +++ b/sfx2/inc/sidebar/TitleBar.hxx @@ -36,7 +36,7 @@ public: void SetTitle (const OUString& rsTitle); const OUString& GetTitle() const {return msTitle; } - void SetIcon (const Image& rIcon); + void SetIcon(const css::uno::Reference<css::graphic::XGraphic>& rIcon); virtual void ApplySettings(vcl::RenderContext& rRenderContext) override; virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rUpdateArea) override; diff --git a/sfx2/inc/sidebar/Tools.hxx b/sfx2/inc/sidebar/Tools.hxx index 97611a7a6b18..b5c0c693713c 100644 --- a/sfx2/inc/sidebar/Tools.hxx +++ b/sfx2/inc/sidebar/Tools.hxx @@ -36,12 +36,12 @@ namespace sfx2::sidebar { class Tools { public: - static Image GetImage ( + static css::uno::Reference<css::graphic::XGraphic> GetImage( const OUString& rsImageURL, const OUString& rsHighContrastImageURL, const css::uno::Reference<css::frame::XFrame>& rxFrame); - static Image GetImage ( + static css::uno::Reference<css::graphic::XGraphic> GetImage( const OUString& rsURL, const css::uno::Reference<css::frame::XFrame>& rxFrame); |