summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2022-07-21 23:56:42 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2022-08-10 08:28:18 +0200
commitc76857fe4e725834e6be9bd5b3273df95bf7fafd (patch)
tree42ea625d90263c62e0a00cc1935ca8466853cf08 /include/vcl
parent085abe2b7187f2cfd69a5a1c6e84ef0c9c214f78 (diff)
Make ToolBox::InsertItem take the command name
For the next patch for tdf#149956 I need the command to be already set when the VclEventId::ToolboxItemAdded event is emitted. Change-Id: I3d8ce44b426a3ed5704d4520d6e62bc4efbf8e44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138038 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/toolbox.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index e0f6f085fa66..f89cb335b541 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -313,6 +313,7 @@ public:
ToolBoxItemBits nBits = ToolBoxItemBits::NONE,
ImplToolItems::size_type nPos = APPEND );
void InsertItem( ToolBoxItemId nItemId, const OUString& rText,
+ const OUString& rCommand,
ToolBoxItemBits nBits = ToolBoxItemBits::NONE,
ImplToolItems::size_type nPos = APPEND );
void InsertWindow( ToolBoxItemId nItemId, vcl::Window* pWindow,