cui/source/inc/AdditionsDialog.hxx | 1 cui/source/inc/SpellDialog.hxx | 1 cui/source/inc/cfg.hxx | 1 cui/source/inc/cuitabline.hxx | 1 cui/source/inc/numpages.hxx | 1 dbaccess/source/ui/app/AppDetailPageHelper.hxx | 1 extensions/source/propctrlr/standardcontrol.hxx | 1 fpicker/source/office/RemoteFilesDialog.cxx | 1 include/sfx2/sidebar/TabBar.hxx | 1 include/sfx2/templatedlg.hxx | 1 include/svtools/ctrlbox.hxx | 1 include/svtools/editbrowsebox.hxx | 1 include/svx/colorbox.hxx | 1 include/vcl/jsdialog/executor.hxx | 1 include/vcl/weld/MenuButton.hxx | 67 ++++++++++++++++++++++ include/vcl/weld/weld.hxx | 49 ---------------- sc/source/ui/inc/scuitphfedit.hxx | 1 sd/source/ui/animations/CustomAnimationDialog.cxx | 1 sd/source/ui/annotations/annotationwindow.hxx | 1 sd/source/ui/inc/BulletAndPositionDlg.hxx | 1 sfx2/source/dialog/backingwindow.hxx | 1 starmath/inc/dialog.hxx | 1 svx/source/inc/datanavi.hxx | 1 sw/inc/AnnotationWin.hxx | 1 sw/source/ui/envelp/envfmt.hxx | 1 sw/source/uibase/docvw/HeaderFooterWin.cxx | 1 sw/source/uibase/docvw/PageBreakWin.cxx | 1 sw/source/uibase/inc/HeaderFooterWin.hxx | 5 + sw/source/uibase/inc/PageBreakWin.hxx | 5 + sw/source/uibase/inc/glossary.hxx | 1 sw/source/uibase/inc/outline.hxx | 1 sw/source/uibase/inc/swuicnttab.hxx | 1 vcl/inc/qt5/QtInstanceBuilder.hxx | 1 vcl/inc/qt5/QtInstanceMenuButton.hxx | 2 vcl/inc/salvtables.hxx | 1 vcl/unx/gtk3/gtkinst.cxx | 1 36 files changed, 110 insertions(+), 49 deletions(-)
New commits: commit 619b5f60bb4e47a7ee80c9750914bd0f9f441d82 Author: Michael Weghorn <[email protected]> AuthorDate: Tue Feb 10 11:13:58 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Tue Feb 10 23:51:22 2026 +0100 weld: Move weld::MenuButton to own header Move the class out of weld.hxx into its own header, in order to make it easier to keep an overview and to avoid having to recompile ~all UI code when the class is modified. Change-Id: I47ea75ca8aedc7409a262fc72afcfbc0accef4ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199050 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/cui/source/inc/AdditionsDialog.hxx b/cui/source/inc/AdditionsDialog.hxx index 68ce492f11cc..5ea7cfc4b450 100644 --- a/cui/source/inc/AdditionsDialog.hxx +++ b/cui/source/inc/AdditionsDialog.hxx @@ -15,6 +15,7 @@ #include <vcl/weld/Builder.hxx> #include <vcl/weld/Entry.hxx> #include <vcl/weld/DialogController.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/ScrolledWindow.hxx> #include <vcl/weld/weld.hxx> diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx index 156b8ae8f24d..430b36c77c34 100644 --- a/cui/source/inc/SpellDialog.hxx +++ b/cui/source/inc/SpellDialog.hxx @@ -30,6 +30,7 @@ #include <editeng/SpellPortions.hxx> #include <vcl/weld/ComboBox.hxx> #include <vcl/weld/DrawingArea.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/ScrolledWindow.hxx> #include <vcl/weld/Toolbar.hxx> #include <vcl/weld/TreeView.hxx> diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx index 1346804aadf5..0123f06f791f 100644 --- a/cui/source/inc/cfg.hxx +++ b/cui/source/inc/cfg.hxx @@ -23,6 +23,7 @@ #include <vcl/weld/ComboBox.hxx> #include <vcl/weld/DialogController.hxx> #include <vcl/weld/Entry.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/TextView.hxx> #include <vcl/weld/TreeView.hxx> #include <vcl/weld/weld.hxx> diff --git a/cui/source/inc/cuitabline.hxx b/cui/source/inc/cuitabline.hxx index e81b7f36093e..310f2bfab26a 100644 --- a/cui/source/inc/cuitabline.hxx +++ b/cui/source/inc/cuitabline.hxx @@ -31,6 +31,7 @@ #include <tools/fldunit.hxx> #include <vcl/weld/Entry.hxx> #include <vcl/weld/Menu.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/SpinButton.hxx> #include <vcl/weld/customweld.hxx> diff --git a/cui/source/inc/numpages.hxx b/cui/source/inc/numpages.hxx index 12afc45e5655..98031f7ac877 100644 --- a/cui/source/inc/numpages.hxx +++ b/cui/source/inc/numpages.hxx @@ -28,6 +28,7 @@ #include <svx/numberingpreview.hxx> #include <vcl/weld/Entry.hxx> #include <vcl/weld/Menu.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/MetricSpinButton.hxx> #include <vcl/weld/SpinButton.hxx> #include <vcl/weld/TreeView.hxx> diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.hxx b/dbaccess/source/ui/app/AppDetailPageHelper.hxx index bb6d00bdde15..ff6e5f622393 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.hxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.hxx @@ -27,6 +27,7 @@ #include <com/sun/star/container/XNameAccess.hpp> #include <vcl/graph.hxx> #include <vcl/GraphicObject.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/TreeView.hxx> #include <vcl/weld/customweld.hxx> #include <vcl/weld/weld.hxx> diff --git a/extensions/source/propctrlr/standardcontrol.hxx b/extensions/source/propctrlr/standardcontrol.hxx index 63e342ee7d5e..fcf996bcbb54 100644 --- a/extensions/source/propctrlr/standardcontrol.hxx +++ b/extensions/source/propctrlr/standardcontrol.hxx @@ -30,6 +30,7 @@ #include <svx/colorbox.hxx> #include <vcl/weld/Entry.hxx> #include <vcl/weld/FormattedSpinButton.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/MetricSpinButton.hxx> #include <vcl/weld/TextView.hxx> diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index 7ecc914f8f58..87eab664582a 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -24,6 +24,7 @@ #include <vcl/errinf.hxx> #include <vcl/windowstate.hxx> #include <vcl/vclenum.hxx> +#include <vcl/weld/MenuButton.hxx> #include <officecfg/Office/Common.hxx> using namespace ::svt; diff --git a/include/sfx2/sidebar/TabBar.hxx b/include/sfx2/sidebar/TabBar.hxx index fe0c45fe00fc..7b8d4e83a73a 100644 --- a/include/sfx2/sidebar/TabBar.hxx +++ b/include/sfx2/sidebar/TabBar.hxx @@ -22,6 +22,7 @@ #include <vcl/InterimItemWindow.hxx> #include <vcl/weld/Builder.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/Toolbar.hxx> #include <com/sun/star/graphic/XGraphic.hpp> diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx index a1e0bcc799b4..f53ccc8cbf1b 100644 --- a/include/sfx2/templatedlg.hxx +++ b/include/sfx2/templatedlg.hxx @@ -21,6 +21,7 @@ #include <vcl/weld/ComboBox.hxx> #include <vcl/weld/DialogController.hxx> #include <vcl/weld/Entry.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/TreeView.hxx> #include <vcl/weld/weld.hxx> diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index 983276646066..323a297c42bc 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -27,6 +27,7 @@ #include <vcl/metric.hxx> #include <vcl/weld/Builder.hxx> #include <vcl/weld/ComboBox.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/weld.hxx> #include <memory> diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index 2d824c72b3ae..3cdb5896c154 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -30,6 +30,7 @@ #include <vcl/weld/ComboBox.hxx> #include <vcl/weld/Entry.hxx> #include <vcl/weld/FormattedSpinButton.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/TextView.hxx> #include <vcl/weld/weldutils.hxx> #include <o3tl/typed_flags_set.hxx> diff --git a/include/svx/colorbox.hxx b/include/svx/colorbox.hxx index f4efe3a50936..3bec63464404 100644 --- a/include/svx/colorbox.hxx +++ b/include/svx/colorbox.hxx @@ -11,6 +11,7 @@ #define INCLUDED_SVX_COLORBOX_HXX #include <memory> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/weld.hxx> #include <svx/colorwindow.hxx> diff --git a/include/vcl/jsdialog/executor.hxx b/include/vcl/jsdialog/executor.hxx index 3de4b6472c5e..9b3561c56679 100644 --- a/include/vcl/jsdialog/executor.hxx +++ b/include/vcl/jsdialog/executor.hxx @@ -17,6 +17,7 @@ #include <vcl/weld/FormattedSpinButton.hxx> #include <vcl/weld/IconView.hxx> #include <vcl/weld/Menu.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/Notebook.hxx> #include <vcl/weld/ScrolledWindow.hxx> #include <vcl/weld/SpinButton.hxx> diff --git a/include/vcl/weld/MenuButton.hxx b/include/vcl/weld/MenuButton.hxx new file mode 100644 index 000000000000..137f9469658a --- /dev/null +++ b/include/vcl/weld/MenuButton.hxx @@ -0,0 +1,67 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include <vcl/dllapi.h> +#include <vcl/weld/weld.hxx> + +namespace weld +{ +class VCL_DLLPUBLIC MenuButton : virtual public ToggleButton +{ + friend class ::LOKTrigger; + + Link<const OUString&, void> m_aSelectHdl; + +protected: + void signal_selected(const OUString& rIdent) { m_aSelectHdl.Call(rIdent); } + +public: + void connect_selected(const Link<const OUString&, void>& rLink) { m_aSelectHdl = rLink; } + + virtual void insert_item(int pos, const OUString& rId, const OUString& rStr, + const OUString* pIconName, VirtualDevice* pImageSurface, + TriState eCheckRadioFalse) + = 0; + void append_item(const OUString& rId, const OUString& rStr) + { + insert_item(-1, rId, rStr, nullptr, nullptr, TRISTATE_INDET); + } + void append_item_check(const OUString& rId, const OUString& rStr) + { + insert_item(-1, rId, rStr, nullptr, nullptr, TRISTATE_TRUE); + } + void append_item_radio(const OUString& rId, const OUString& rStr) + { + insert_item(-1, rId, rStr, nullptr, nullptr, TRISTATE_FALSE); + } + void append_item(const OUString& rId, const OUString& rStr, const OUString& rImage) + { + insert_item(-1, rId, rStr, &rImage, nullptr, TRISTATE_INDET); + } + void append_item(const OUString& rId, const OUString& rStr, VirtualDevice& rImage) + { + insert_item(-1, rId, rStr, nullptr, &rImage, TRISTATE_INDET); + } + virtual void insert_separator(int pos, const OUString& rId) = 0; + void append_separator(const OUString& rId) { insert_separator(-1, rId); } + virtual void remove_item(const OUString& rId) = 0; + virtual void clear() = 0; + virtual void set_item_sensitive(const OUString& rIdent, bool bSensitive) = 0; + virtual void set_item_active(const OUString& rIdent, bool bActive) = 0; + virtual void set_item_label(const OUString& rIdent, const OUString& rLabel) = 0; + virtual OUString get_item_label(const OUString& rIdent) const = 0; + virtual void set_item_visible(const OUString& rIdent, bool bVisible) = 0; + + virtual void set_popover(weld::Widget* pPopover) = 0; +}; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/vcl/weld/weld.hxx b/include/vcl/weld/weld.hxx index f07dd479c54a..59cb2c3b48a5 100644 --- a/include/vcl/weld/weld.hxx +++ b/include/vcl/weld/weld.hxx @@ -699,55 +699,6 @@ class VCL_DLLPUBLIC ToggleButton : virtual public Button, virtual public Togglea friend class ::LOKTrigger; }; -class VCL_DLLPUBLIC MenuButton : virtual public ToggleButton -{ - friend class ::LOKTrigger; - - Link<const OUString&, void> m_aSelectHdl; - -protected: - void signal_selected(const OUString& rIdent) { m_aSelectHdl.Call(rIdent); } - -public: - void connect_selected(const Link<const OUString&, void>& rLink) { m_aSelectHdl = rLink; } - - virtual void insert_item(int pos, const OUString& rId, const OUString& rStr, - const OUString* pIconName, VirtualDevice* pImageSurface, - TriState eCheckRadioFalse) - = 0; - void append_item(const OUString& rId, const OUString& rStr) - { - insert_item(-1, rId, rStr, nullptr, nullptr, TRISTATE_INDET); - } - void append_item_check(const OUString& rId, const OUString& rStr) - { - insert_item(-1, rId, rStr, nullptr, nullptr, TRISTATE_TRUE); - } - void append_item_radio(const OUString& rId, const OUString& rStr) - { - insert_item(-1, rId, rStr, nullptr, nullptr, TRISTATE_FALSE); - } - void append_item(const OUString& rId, const OUString& rStr, const OUString& rImage) - { - insert_item(-1, rId, rStr, &rImage, nullptr, TRISTATE_INDET); - } - void append_item(const OUString& rId, const OUString& rStr, VirtualDevice& rImage) - { - insert_item(-1, rId, rStr, nullptr, &rImage, TRISTATE_INDET); - } - virtual void insert_separator(int pos, const OUString& rId) = 0; - void append_separator(const OUString& rId) { insert_separator(-1, rId); } - virtual void remove_item(const OUString& rId) = 0; - virtual void clear() = 0; - virtual void set_item_sensitive(const OUString& rIdent, bool bSensitive) = 0; - virtual void set_item_active(const OUString& rIdent, bool bActive) = 0; - virtual void set_item_label(const OUString& rIdent, const OUString& rLabel) = 0; - virtual OUString get_item_label(const OUString& rIdent) const = 0; - virtual void set_item_visible(const OUString& rIdent, bool bVisible) = 0; - - virtual void set_popover(weld::Widget* pPopover) = 0; -}; - class VCL_DLLPUBLIC CheckButton : virtual public Toggleable { protected: diff --git a/sc/source/ui/inc/scuitphfedit.hxx b/sc/source/ui/inc/scuitphfedit.hxx index c398f43a970a..020942044df5 100644 --- a/sc/source/ui/inc/scuitphfedit.hxx +++ b/sc/source/ui/inc/scuitphfedit.hxx @@ -25,6 +25,7 @@ #include <sfx2/tabdlg.hxx> #include <vcl/weld/ComboBox.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/customweld.hxx> #include <vcl/weld/weld.hxx> diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index 7c73e36b0db9..e97720030022 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -40,6 +40,7 @@ #include <vcl/svapp.hxx> #include <vcl/stdtext.hxx> #include <vcl/weld/ComboBox.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/weld.hxx> #include <vcl/settings.hxx> diff --git a/sd/source/ui/annotations/annotationwindow.hxx b/sd/source/ui/annotations/annotationwindow.hxx index 00c4da3fcfed..6bc031f7f64f 100644 --- a/sd/source/ui/annotations/annotationwindow.hxx +++ b/sd/source/ui/annotations/annotationwindow.hxx @@ -20,6 +20,7 @@ #pragma once #include <vcl/weld/Builder.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/ScrolledWindow.hxx> #include <vcl/weld/weld.hxx> #include <tools/long.hxx> diff --git a/sd/source/ui/inc/BulletAndPositionDlg.hxx b/sd/source/ui/inc/BulletAndPositionDlg.hxx index a08a688ae72e..22ab57d9e169 100644 --- a/sd/source/ui/inc/BulletAndPositionDlg.hxx +++ b/sd/source/ui/inc/BulletAndPositionDlg.hxx @@ -27,6 +27,7 @@ #include <vcl/weld/ComboBox.hxx> #include <vcl/weld/DialogController.hxx> #include <vcl/weld/Entry.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/MetricSpinButton.hxx> #include <vcl/weld/SpinButton.hxx> #include <vcl/weld/TreeView.hxx> diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx index 082fe7cc2167..d25f86edfe3a 100644 --- a/sfx2/source/dialog/backingwindow.hxx +++ b/sfx2/source/dialog/backingwindow.hxx @@ -24,6 +24,7 @@ #include <vcl/InterimItemWindow.hxx> #include <vcl/weld/ComboBox.hxx> +#include <vcl/weld/MenuButton.hxx> #include <recentdocsview.hxx> #include <templatedefaultview.hxx> diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index ceacabc88ff4..3145b46ed204 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -25,6 +25,7 @@ #include <vcl/weld/ComboBox.hxx> #include <vcl/weld/DialogController.hxx> #include <vcl/weld/EntryTreeView.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/MetricSpinButton.hxx> #include <vcl/weld/ScrolledWindow.hxx> #include <vcl/weld/customweld.hxx> diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx index 56b328aa0e87..34b00a966b67 100644 --- a/svx/source/inc/datanavi.hxx +++ b/svx/source/inc/datanavi.hxx @@ -27,6 +27,7 @@ #include <vcl/weld/ComboBox.hxx> #include <vcl/weld/DialogController.hxx> #include <vcl/weld/Entry.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/Notebook.hxx> #include <vcl/weld/TextView.hxx> #include <vcl/weld/Toolbar.hxx> diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index f82984b3c9d5..70ba4fa42d0c 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -24,6 +24,7 @@ #include <tools/date.hxx> #include <tools/time.hxx> #include <vcl/InterimItemWindow.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/ScrolledWindow.hxx> #include <vcl/weld/customweld.hxx> diff --git a/sw/source/ui/envelp/envfmt.hxx b/sw/source/ui/envelp/envfmt.hxx index a55929d83222..a6daec7bbad1 100644 --- a/sw/source/ui/envelp/envfmt.hxx +++ b/sw/source/ui/envelp/envfmt.hxx @@ -23,6 +23,7 @@ #include <string_view> #include <vcl/weld/ComboBox.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/weld.hxx> #include <envlop.hxx> diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index 8ec5f79f7320..57e5f42c43c9 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -50,6 +50,7 @@ #include <vcl/settings.hxx> #include <vcl/virdev.hxx> #include <vcl/weld/Builder.hxx> +#include <vcl/weld/MenuButton.hxx> #include <memory> #define TEXT_PADDING 5 diff --git a/sw/source/uibase/docvw/PageBreakWin.cxx b/sw/source/uibase/docvw/PageBreakWin.cxx index cb27777ce174..73cf61acf023 100644 --- a/sw/source/uibase/docvw/PageBreakWin.cxx +++ b/sw/source/uibase/docvw/PageBreakWin.cxx @@ -51,6 +51,7 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> #include <vcl/weld/Builder.hxx> +#include <vcl/weld/MenuButton.hxx> #include <memory> #define BUTTON_WIDTH 30 diff --git a/sw/source/uibase/inc/HeaderFooterWin.hxx b/sw/source/uibase/inc/HeaderFooterWin.hxx index 859745292437..63de3e9d2cce 100644 --- a/sw/source/uibase/inc/HeaderFooterWin.hxx +++ b/sw/source/uibase/inc/HeaderFooterWin.hxx @@ -15,6 +15,11 @@ #include <vcl/timer.hxx> #include <drawinglayer/primitive2d/Primitive2DContainer.hxx> +namespace weld +{ +class MenuButton; +} + /** * Button painter helper class used to paint a runtime button positioned to a writer frame. * See header/footer button. diff --git a/sw/source/uibase/inc/PageBreakWin.hxx b/sw/source/uibase/inc/PageBreakWin.hxx index b4d559db38a1..0112640caaf5 100644 --- a/sw/source/uibase/inc/PageBreakWin.hxx +++ b/sw/source/uibase/inc/PageBreakWin.hxx @@ -15,6 +15,11 @@ #include <vcl/timer.hxx> #include <optional> +namespace weld +{ +class MenuButton; +} + class SwPageBreakWin; /** Class for the page break control window. diff --git a/sw/source/uibase/inc/glossary.hxx b/sw/source/uibase/inc/glossary.hxx index e09cfe7a7418..4252d1599de1 100644 --- a/sw/source/uibase/inc/glossary.hxx +++ b/sw/source/uibase/inc/glossary.hxx @@ -23,6 +23,7 @@ #include <vcl/weld/Entry.hxx> #include <vcl/weld/TreeView.hxx> #include <vcl/weld/customweld.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/weld.hxx> #include <com/sun/star/text/XAutoTextContainer2.hpp> diff --git a/sw/source/uibase/inc/outline.hxx b/sw/source/uibase/inc/outline.hxx index 9034b982caaf..0eef8978e53c 100644 --- a/sw/source/uibase/inc/outline.hxx +++ b/sw/source/uibase/inc/outline.hxx @@ -22,6 +22,7 @@ #include <memory> #include <sfx2/tabdlg.hxx> #include <vcl/weld/Entry.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/SpinButton.hxx> #include <swtypes.hxx> #include "numprevw.hxx" diff --git a/sw/source/uibase/inc/swuicnttab.hxx b/sw/source/uibase/inc/swuicnttab.hxx index ff0db9d5f8a1..fb2c0d39ce8f 100644 --- a/sw/source/uibase/inc/swuicnttab.hxx +++ b/sw/source/uibase/inc/swuicnttab.hxx @@ -25,6 +25,7 @@ #include <vcl/weld/Builder.hxx> #include <vcl/weld/ComboBox.hxx> #include <vcl/weld/Entry.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/MetricSpinButton.hxx> #include <vcl/weld/ScrolledWindow.hxx> #include <vcl/weld/SpinButton.hxx> diff --git a/vcl/inc/qt5/QtInstanceBuilder.hxx b/vcl/inc/qt5/QtInstanceBuilder.hxx index ad49cdd3a15b..d3497ba7a893 100644 --- a/vcl/inc/qt5/QtInstanceBuilder.hxx +++ b/vcl/inc/qt5/QtInstanceBuilder.hxx @@ -24,6 +24,7 @@ #include <vcl/weld/EntryTreeView.hxx> #include <vcl/weld/FormattedSpinButton.hxx> #include <vcl/weld/Menu.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/MetricSpinButton.hxx> #include <vcl/weld/Notebook.hxx> #include <vcl/weld/Paned.hxx> diff --git a/vcl/inc/qt5/QtInstanceMenuButton.hxx b/vcl/inc/qt5/QtInstanceMenuButton.hxx index 1e6d14cce6be..4704196c92ec 100644 --- a/vcl/inc/qt5/QtInstanceMenuButton.hxx +++ b/vcl/inc/qt5/QtInstanceMenuButton.hxx @@ -11,6 +11,8 @@ #include "QtInstanceToggleButton.hxx" +#include <vcl/weld/MenuButton.hxx> + #include <QtWidgets/QToolButton> class QtInstanceMenuButton : public QtInstanceToggleButton, public virtual weld::MenuButton diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index 08d64df6c2d7..65924a2cfae3 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -18,6 +18,7 @@ #include <vcl/weld/EntryTreeView.hxx> #include <vcl/weld/FormattedSpinButton.hxx> #include <vcl/weld/Menu.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/MetricSpinButton.hxx> #include <vcl/weld/Notebook.hxx> #include <vcl/weld/Scrollbar.hxx> diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index ecb4e3f714a3..4e0e51d9707f 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -42,6 +42,7 @@ #include <vcl/weld/Builder.hxx> #include <vcl/weld/FormattedSpinButton.hxx> #include <vcl/weld/Menu.hxx> +#include <vcl/weld/MenuButton.hxx> #include <vcl/weld/MetricSpinButton.hxx> #include <vcl/weld/Notebook.hxx> #include <vcl/weld/Paned.hxx>
