diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-03 21:43:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-05 17:34:34 +0100 |
commit | 8ee19e3b6d8c1642da8377583482ca0fd4d30139 (patch) | |
tree | 1bad6d1ab971cd6b71f63af4076cab73e34e2ba7 /include | |
parent | db8b4d8c58e808f645a5d854b73c8a8132e2d898 (diff) |
weld SfxAcceleratorConfigPage
fixes a leak in the KeyList too
Change-Id: I603218ff99481bc006df329c770ea6fe6f147483
Reviewed-on: https://gerrit.libreoffice.org/68694
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/treelistbox.hxx | 4 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx index adf35cb63a85..c03f300d84a1 100644 --- a/include/vcl/treelistbox.hxx +++ b/include/vcl/treelistbox.hxx @@ -133,12 +133,16 @@ public: class VCL_DLLPUBLIC SvLBoxItem { +protected: + bool mbDisabled; + public: SvLBoxItem(); virtual ~SvLBoxItem(); virtual SvLBoxItemType GetType() const = 0; const Size& GetSize(const SvTreeListBox* pView, const SvTreeListEntry* pEntry) const; static const Size& GetSize(const SvViewDataEntry* pData, sal_uInt16 nItemPos); + void Enable(bool bEnabled) { mbDisabled = !bEnabled; } virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext, const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) = 0; diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 5511879ed188..e25911f940da 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -576,6 +576,7 @@ public: virtual void remove(int pos) = 0; virtual OUString get_text(int row, int col = -1) const = 0; virtual void set_text(int row, const OUString& rText, int col = -1) = 0; + virtual void set_sensitive(int row, bool bSensitive, int col = -1) = 0; virtual void set_id(int row, const OUString& rId) = 0; virtual void set_toggle(int row, bool bOn, int col) = 0; virtual bool get_toggle(int row, int col) const = 0; @@ -692,6 +693,8 @@ public: virtual int count_selected_rows() const = 0; void set_toggle_columns_as_radio(const std::vector<int>& rCols) { m_aRadioIndexes = rCols; } + + using Widget::set_sensitive; }; class VCL_DLLPUBLIC Button : virtual public Container |