diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-04-21 09:53:54 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2021-06-28 09:51:16 +0200 |
commit | 8b5fe4be2a5293af34c27fe21c68be198a82b154 (patch) | |
tree | ef4f4dc2cea9013225a59d35c997be09fc0ec1e0 /include | |
parent | a129def3932c8d0593c050268a839fc6a3ef8a2b (diff) |
tdf#76258 Filter by colors
UI/Logic implementation
Change-Id: If7b48219caa466d8a3341bdc4e104d696e8988c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114385
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
(cherry picked from commit 5a4bd9bfbdb881368c202bc766f893a5c672621e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115869
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/menu.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index 76a39c813eef..b787b43b31b7 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -22,6 +22,7 @@ #include <memory> #include <vcl/vclenum.hxx> +#include <tools/color.hxx> #include <tools/link.hxx> #include <vcl/dllapi.h> #include <vcl/keycod.hxx> @@ -306,6 +307,9 @@ public: void SetItemImage( sal_uInt16 nItemId, const Image& rImage ); Image GetItemImage( sal_uInt16 nItemId ) const; + // Instead of an image, draw a color + void SetItemColor( sal_uInt16 nItemId, const Color& rColor ); + void SetItemCommand( sal_uInt16 nItemId, const OUString& rCommand ); OUString GetItemCommand( sal_uInt16 nItemId ) const; |