diff --git a/include/vcl/menubtn.hxx b/include/vcl/menubtn.hxx index ea6916a48629..fef1ad346805 100644 --- a/include/vcl/menubtn.hxx +++ b/include/vcl/menubtn.hxx @@ -99,6 +99,7 @@ public: virtual ~MenuToggleButton() override; void SetActive( bool bSel ); + bool GetActive() const; }; #endif // INCLUDED_VCL_MENUBTN_HXX diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index e463084da93b..d2a49e7ec1d1 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -1396,6 +1396,12 @@ public: virtual void set_popover(weld::Widget* pPopover) = 0; }; +// Similar to a MenuButton except it is split into two parts, a toggle +// button at the start and a menubutton at the end +class VCL_DLLPUBLIC MenuToggleButton : virtual public MenuButton +{ +}; + class VCL_DLLPUBLIC CheckButton : virtual public ToggleButton { }; @@ -2248,6 +2254,7 @@ public: virtual std::unique_ptr weld_paned(const OString& id) = 0; virtual std::unique_ptr