diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-24 11:11:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-24 15:56:59 +0100 |
commit | e2ff4206d60df486bf02931ce69c47857de6b04e (patch) | |
tree | 390da9ab99357d02d388952ad5feb91db731af51 /include/vcl | |
parent | f3d8750b07ff3ab89b27f0b1274b71de4924def6 (diff) |
gtk4: adapt to window_[g|s]et_default_widget
Change-Id: I916e5db05f8ea10ecc8b319cc77a671ca7cbcb93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128859
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/weld.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 40c2fbd86b49..af92c7640004 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -136,9 +136,6 @@ public: // TODO: review if this has any practical difference from has_focus() virtual bool is_active() const = 0; - virtual void set_has_default(bool has_default) = 0; - virtual bool get_has_default() const = 0; - /* size */ virtual void set_size_request(int nWidth, int nHeight) = 0; virtual Size get_size_request() const = 0; @@ -356,8 +353,6 @@ protected: public: // remove and add in one go virtual void move(weld::Widget* pWidget, weld::Container* pNewParent) = 0; - // recursively unset has-default on any buttons in the widget hierarchy - virtual void recursively_unset_default_buttons() = 0; // create an XWindow as a child of this container. The XWindow is // suitable to contain css::awt::XControl items virtual css::uno::Reference<css::awt::XWindow> CreateChildFrame() = 0; @@ -535,6 +530,12 @@ public: // desirable) virtual bool has_toplevel_focus() const = 0; virtual void present() = 0; + + // with pOld of null, automatically find the old default widget and unset + // it, otherwise use as hint to the old default + virtual void change_default_widget(weld::Widget* pOld, weld::Widget* pNew) = 0; + virtual bool is_default_widget(const weld::Widget* pCandidate) const = 0; + virtual void set_window_state(const OString& rStr) = 0; virtual OString get_window_state(WindowStateMask nMask) const = 0; |