From 1a490b71feb2340ac4f58ff1bef983ef1115e2f3 Mon Sep 17 00:00:00 2001
From: Caolán McNamara <caolanm@redhat.com>
Date: Thu, 11 Feb 2021 20:57:25 +0000
Subject: allow using css::graphic::XGraphic to set menu image
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Change-Id: Ice5062f26ea300aec73d5fd849484c8bc4fc43bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110793
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
---
 include/vcl/weld.hxx | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'include')

diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 7921948027a3..c33bd97a098a 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -2220,6 +2220,7 @@ public:
 
     virtual void insert(int pos, const OUString& rId, const OUString& rStr,
                         const OUString* pIconName, VirtualDevice* pImageSurface,
+                        const css::uno::Reference<css::graphic::XGraphic>* pImage,
                         TriState eCheckRadioFalse)
         = 0;
 
@@ -2232,23 +2233,23 @@ public:
 
     void append(const OUString& rId, const OUString& rStr)
     {
-        insert(-1, rId, rStr, nullptr, nullptr, TRISTATE_INDET);
+        insert(-1, rId, rStr, nullptr, nullptr, nullptr, TRISTATE_INDET);
     }
     void append_check(const OUString& rId, const OUString& rStr)
     {
-        insert(-1, rId, rStr, nullptr, nullptr, TRISTATE_TRUE);
+        insert(-1, rId, rStr, nullptr, nullptr, nullptr, TRISTATE_TRUE);
     }
     void append_radio(const OUString& rId, const OUString& rStr)
     {
-        insert(-1, rId, rStr, nullptr, nullptr, TRISTATE_FALSE);
+        insert(-1, rId, rStr, nullptr, nullptr, nullptr, TRISTATE_FALSE);
     }
     void append(const OUString& rId, const OUString& rStr, const OUString& rImage)
     {
-        insert(-1, rId, rStr, &rImage, nullptr, TRISTATE_INDET);
+        insert(-1, rId, rStr, &rImage, nullptr, nullptr, TRISTATE_INDET);
     }
     void append(const OUString& rId, const OUString& rStr, VirtualDevice& rImage)
     {
-        insert(-1, rId, rStr, nullptr, &rImage, TRISTATE_INDET);
+        insert(-1, rId, rStr, nullptr, &rImage, nullptr, TRISTATE_INDET);
     }
 
     // return the number of toplevel nodes
-- 
cgit