From 196d9e16b7017db2225531cd240e7b6e8f7c1d66 Mon Sep 17 00:00:00 2001 From: Heiko Tietze Date: Fri, 20 May 2022 10:35:08 +0200 Subject: Resolves tdf#146928 - Redesign charnamedialog Dialog was changed in d73602dc51aa8829fc88e5e67e2b0c4da6b8f715 to fit vertical size on small screens by placing Western/CJK/CTL into a notebook. But for CJK and CTL it's required to have Western fonts visible in parallel. * dual solution for western with nocjk and cjk dropped western scales to the dialog width if no CJK nor CTL is enabled * CJK and CTL placed in a notebook, Western as well for proper alignment * font names are presented in lists but size and style per simple dropdowns * info text sized at 80% * variables renamed to keep track of controls (old names kept in l10n descriotion) * UITests adjusted for variable names and tab positioning Change-Id: I45b40e9bc37565f6364f1dfc1b5d837270fe4644 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134666 Tested-by: Jenkins Reviewed-by: Heiko Tietze --- include/svx/langbox.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/svx') diff --git a/include/svx/langbox.hxx b/include/svx/langbox.hxx index e3de9a1ad217..a3d74adba703 100644 --- a/include/svx/langbox.hxx +++ b/include/svx/langbox.hxx @@ -45,7 +45,8 @@ namespace o3tl // load language strings from resource SVXCORE_DLLPUBLIC OUString GetDicInfoStr( std::u16string_view rName, const LanguageType nLang, bool bNeg ); -class SVXCORE_DLLPUBLIC SvxLanguageBox +class SVXCORE_DLLPUBLIC +SvxLanguageBox { public: enum class EditedAndValid @@ -93,6 +94,8 @@ public: bool get_active_id_changed_from_saved() const { return m_eSavedLanguage != get_active_id(); } void hide() { m_xControl->hide(); } void set_visible(bool bShow) { m_xControl->set_visible(bShow); } + void set_size_request(int nWidth, int nHeight) { m_xControl->set_size_request(nWidth, nHeight); } + void set_width_chars(int nChars) { m_xControl->set_entry_width_chars(nChars); } void set_sensitive(bool bSensitive) { m_xControl->set_sensitive(bSensitive); } void set_active(int nPos) { m_xControl->set_active(nPos); } int get_active() const { return m_xControl->get_active(); } -- cgit