summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2022-05-20 10:35:08 +0200
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2022-06-07 11:11:19 +0200
commit196d9e16b7017db2225531cd240e7b6e8f7c1d66 (patch)
tree9c4faeffda5759bae13523e6e053dec30fc6ce0c /include/svx
parent410a64b472ae9de0bb06ddd8f4b55fd16686c860 (diff)
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 <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/langbox.hxx5
1 files changed, 4 insertions, 1 deletions
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(); }