diff options
author | Yusuf Keten <ketenyusuf@gmail.com> | 2020-02-04 00:14:17 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-02-11 18:25:37 +0100 |
commit | 5326d238d7f98b11886eb4be01f19db73f8eda39 (patch) | |
tree | acc882aff8e915e1059aa281c391336f4a7248c9 /include | |
parent | 992c2e82e29ed68e40fe61303d16762604003121 (diff) |
tdf#114694: Make default value in language settings the first element
For Languages, to make the default value the first element in the
list, I've added 3 parameters to SvxLanguageBox::SetLanguageList().
With this parameters, function adds default value according to its
existence before other values. For sorting User Interface and
Currency, I removed the make_sorted function. I added std::sort
with lambda expressions for both of them.
Change-Id: Iae37bfe09aaac4d8ecde1caad7a14e11df551eae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87926
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/langbox.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/svx/langbox.hxx b/include/svx/langbox.hxx index 583de15aa5c4..188b2b1223c5 100644 --- a/include/svx/langbox.hxx +++ b/include/svx/langbox.hxx @@ -77,7 +77,9 @@ public: SvxLanguageBox(std::unique_ptr<weld::ComboBox> pControl); void SetLanguageList( SvxLanguageListFlags nLangList, bool bHasLangNone, bool bLangNoneIsLangAll = false, - bool bCheckSpellAvail = false ); + bool bCheckSpellAvail = false, bool bDefaultLangExist = false, + LanguageType eDefaultLangType = LANGUAGE_NONE, + sal_Int16 nDefaultType = 0 ); void InsertLanguage(const LanguageType nLangType); void InsertDefaultLanguage(sal_Int16 nType); |