From 28a278e8029ed5d589a948f68abc2ba29c616c1f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 29 Jul 2020 15:56:37 +0100 Subject: move SetReadOnly into ControlBase as SetEditableReadOnly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cast to that instead of "Edit" and override the Editable controls impls to do something suitable when called Change-Id: I24cc02b603e9551df4e3eb39f6cb4839883db777 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99709 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- svtools/source/brwbox/ebbcontrols.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'svtools/source/brwbox') diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx index 96b802bcf2e4..6958a1f63fab 100644 --- a/svtools/source/brwbox/ebbcontrols.cxx +++ b/svtools/source/brwbox/ebbcontrols.cxx @@ -303,6 +303,11 @@ namespace svt { } + void ControlBase::SetEditableReadOnly(bool /*bReadOnly*/) + { + // expected to be overridden for Entry, TextView or the editable entry part of a ComboBox + } + EditControlBase::EditControlBase(BrowserDataWin* pParent) : ControlBase(pParent, "svt/ui/thineditcontrol.ui", "EditControl") // *thin*editcontrol has no frame/border , m_pEntry(nullptr) // inheritors are expected to call InitEditControlBase -- cgit