LibreOffice Module svx (master) 1
Functions
langbox.cxx File Reference
#include <com/sun/star/linguistic2/XAvailableLocales.hpp>
#include <com/sun/star/linguistic2/XLinguServiceManager2.hpp>
#include <com/sun/star/linguistic2/XSpellChecker1.hpp>
#include <linguistic/misc.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <unotools/localedatawrapper.hxx>
#include <tools/urlobj.hxx>
#include <svtools/langtab.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/lang.h>
#include <editeng/unolingu.hxx>
#include <svl/languageoptions.hxx>
#include <svx/langbox.hxx>
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <bitmaps.hlst>
#include <comphelper/string.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/scopeguard.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
Include dependency graph for langbox.cxx:

Go to the source code of this file.

Functions

OUString GetDicInfoStr (std::u16string_view rName, const LanguageType nLang, bool bNeg)
 
static void appendLocaleSeqToLangs (Sequence< css::lang::Locale > const &rSeq, std::vector< LanguageType > &aLangs)
 
static bool lcl_SeqHasLang (const Sequence< sal_Int16 > &rLangSeq, sal_Int16 nLang)
 
static void SortLanguages (std::vector< weld::ComboBoxEntry > &rEntries)
 
 IMPL_LINK (SvxLanguageBox, ChangeHdl, weld::ComboBox &, rControl, void)
 

Function Documentation

◆ appendLocaleSeqToLangs()

static void appendLocaleSeqToLangs ( Sequence< css::lang::Locale > const &  rSeq,
std::vector< LanguageType > &  aLangs 
)
static

Definition at line 71 of file langbox.cxx.

References nCount.

Referenced by SvxLanguageBox::SetLanguageList().

◆ GetDicInfoStr()

OUString GetDicInfoStr ( std::u16string_view  rName,
const LanguageType  nLang,
bool  bNeg 
)

◆ IMPL_LINK()

IMPL_LINK ( SvxLanguageBox  ,
ChangeHdl  ,
weld::ComboBox ,
rControl  ,
void   
)

Definition at line 400 of file langbox.cxx.

References aStr, weld::Error, LanguageTag::isValidBcp47(), m_xControl, weld::Normal, and nPos.

◆ lcl_SeqHasLang()

static bool lcl_SeqHasLang ( const Sequence< sal_Int16 > &  rLangSeq,
sal_Int16  nLang 
)
static

Definition at line 83 of file langbox.cxx.

Referenced by SvxLanguageBox::BuildEntry(), and SvxLanguageBox::SetLanguageList().

◆ SortLanguages()

static void SortLanguages ( std::vector< weld::ComboBoxEntry > &  rEntries)
static