diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-10-04 10:35:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-10-04 12:42:27 +0200 |
commit | 952a678634461f741ee4ef2082d591a162a7f71c (patch) | |
tree | 2f00c8dea15320a2800351ed9b91a91341e70e36 /include | |
parent | 93d2d55b1df6bc850d6beecbabf1fb602abe9809 (diff) |
Related: tdf#141633 similiarly support match combo/listbox font sizes
to the desired zoomed font size in the table control
Change-Id: Iaf3b004544fdb0311b6c67baad612ba648e8c546
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123043
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/editbrowsebox.hxx | 8 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index 9ebbb3a2696b..199173a390cf 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -172,7 +172,7 @@ namespace svt virtual bool ProcessKey(const KeyEvent& rKEvt); - virtual void SetPointFont(const vcl::Font& rFont); + virtual void SetPointFont(const vcl::Font& rFont) = 0; // chain after the FocusInHdl void SetFocusInHdl(const Link<LinkParamNone*,void>& rHdl) @@ -564,6 +564,8 @@ namespace svt virtual ~CheckBoxControl() override; virtual void dispose() override; + virtual void SetPointFont(const vcl::Font& rFont) override; + void SetToggleHdl(const Link<weld::CheckButton&,void>& rHdl) {m_aToggleLink = rHdl;} // sets a link to call when the text is changed by the user @@ -629,6 +631,8 @@ namespace svt public: ComboBoxControl(BrowserDataWin* pParent); + virtual void SetPointFont(const vcl::Font& rFont) override; + virtual void SetEditableReadOnly(bool bReadOnly) override { m_xWidget->set_entry_editable(!bReadOnly); @@ -695,6 +699,8 @@ namespace svt public: ListBoxControl(BrowserDataWin* pParent); + virtual void SetPointFont(const vcl::Font& rFont) override; + weld::ComboBox& get_widget() { return *m_xWidget; } // sets a link to call when the selection is changed by the user diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 5ca6a468e33c..df036c8fde1a 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -787,6 +787,9 @@ public: virtual void paste_entry_clipboard() = 0; // font size is in points, not pixels, e.g. see Window::[G]etPointFont + virtual void set_font(const vcl::Font& rFont) = 0; + + // font size is in points, not pixels, e.g. see Window::[G]etPointFont virtual void set_entry_font(const vcl::Font& rFont) = 0; virtual vcl::Font get_entry_font() = 0; |