summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-04 18:00:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-04 19:55:29 +0200
commitf9d86399e92d9c734fdffc6a7c83a2007877ba93 (patch)
treea3f511ff9734e2c9e688bfa74d64f609e3aedd52 /include/svtools
parentd70da0b9e24991f8d58e83f53dbbf5b58c721f43 (diff)
tdf#134479 allow disable font preview to work on existing font comboboxes
not just newly created one. you can only restore back to a text-only view, not a text+(icon/whatever) view Change-Id: Ic3becd7a942ee6b1dbabb57eebf1e25d1b626fdb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97972 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/ctrlbox.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index 4b5035fbdec4..367b3ff42872 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -353,7 +353,8 @@ public:
void Fill( const FontList* pList );
- void EnableWYSIWYG();
+ void EnableWYSIWYG(bool bEnable);
+ bool IsWYSIWYGEnabled() const { return mbWYSIWYG; }
void connect_changed(const Link<weld::ComboBox&, void>& rLink) { m_xComboBox->connect_changed(rLink); }
void connect_focus_in(const Link<weld::Widget&, void>& rLink) { m_xComboBox->connect_focus_in(rLink); }