Extend ToolBarManager to build weld::Toolbar

Desktop / LibreOffice - Szymon Kłos [collabora.com] - 6 April 2021 09:58 UTC

- used for SubToolBarController eg. framework shape toolbar popup present in the sidebar fontwork panel- add separate implementation for vcl and weld based ToolBarManager- provide basic functionality for weld based (just inserting standard items with icons and controllers)
- not implemented: addons items merging etc.

Change-Id: I8e460f34abd512d70e95a1d484d728b7d809ce9d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113387

ac1aefd51742 Extend ToolBarManager to build weld::Toolbar
framework/UIConfig_startmodule.mk | 1 +
framework/inc/uielement/toolbarmanager.hxx | 76 ++-
framework/inc/uielement/toolbarwrapper.hxx | 11 +
.../source/fwe/classes/sfxhelperfunctions.cxx | 23 +
.../source/uielement/subtoolbarcontroller.cxx | 14 +-
framework/source/uielement/toolbarmanager.cxx | 713 ++++++++++++++++-----
framework/source/uielement/toolbarwrapper.cxx | 30 +-
.../uiconfig/startmodule/ui/managedtoolbar.ui | 21 +
include/framework/sfxhelperfunctions.hxx | 19 +-
include/sfx2/tbxctrl.hxx | 1 +
include/vcl/weld.hxx | 1 +
sfx2/source/appl/app.cxx | 12 +
sfx2/source/toolbox/tbxitem.cxx | 1 +
svtools/source/control/toolbarmenu.cxx | 2 +-
vcl/inc/salvtables.hxx | 2 +
vcl/source/app/salvtables.cxx | 9 +
vcl/unx/gtk3/gtk3gtkinst.cxx | 14 +-
17 files changed, 780 insertions(+), 170 deletions(-)

Upstream: cgit.freedesktop.org


  • Share