LibreOffice Module linguistic (master) 1
Classes | Typedefs | Enumerations | Functions | Variables
linguistic Namespace Reference

Classes

class  AppExitListener
 
class  FlushListener
 
class  HyphenatedWord
 
class  Meaning
 
class  PossibleHyphens
 
class  PropertyHelper_Hyphen
 
class  PropertyHelper_Thes
 
class  SpellAlternatives
 
class  SpellCache
 

Typedefs

typedef cppu::WeakImplHelper< css::beans::XPropertyChangeListener, css::linguistic2::XLinguServiceEventBroadcaster > PropertyChgHelperBase
 

Enumerations

enum class  DictionaryError {
  NONE ,
  FULL ,
  READONLY ,
  UNKNOWN ,
  NOT_EXISTS
}
 
enum class  CapType {
  UNKNOWN ,
  NOCAP ,
  INITCAP ,
  ALLCAP ,
  MIXED
}
 

Functions

sal_Int32 GetNumControlChars (std::u16string_view rTxt)
 
bool RemoveHyphens (OUString &rTxt)
 
bool RemoveControlChars (OUString &rTxt)
 
bool ReplaceControlChars (OUString &rTxt)
 
OUString GetThesaurusReplaceText (const OUString &rText)
 
bool IsHyphen (sal_Unicode cChar)
 
bool IsControlChar (sal_Unicode cChar)
 
static void lcl_AddAsPropertyChangeListener (const Reference< XPropertyChangeListener > &xListener, Reference< XLinguProperties > const &rPropSet)
 
static void lcl_RemoveAsPropertyChangeListener (const Reference< XPropertyChangeListener > &xListener, Reference< XLinguProperties > const &rPropSet)
 
static bool lcl_IsFlushProperty (sal_Int32 nHandle)
 
osl::Mutex & GetLinguMutex ()
 ! multi-thread safe mutex for all platforms !! More...
 
const LocaleDataWrapperGetLocaleDataWrapper (LanguageType nLang)
 
LanguageType LinguLocaleToLanguage (const css::lang::Locale &rLocale)
 Convert Locale to LanguageType for legacy handling. More...
 
css::lang::Locale LinguLanguageToLocale (LanguageType nLanguage)
 Convert LanguageType to Locale for legacy handling. More...
 
bool LinguIsUnspecified (LanguageType nLanguage)
 Checks if a LanguageType is one of the values that denote absence of language or undetermined language or multiple languages, in short all values used in linguistic context that do not denote a specific language. More...
 
bool LinguIsUnspecified (std::u16string_view rBcp47)
 The same as LinguIsUnspecified(LanguageType) but taking a BCP 47 language tag string instead. More...
 
static sal_Int32 Minimum (sal_Int32 n1, sal_Int32 n2, sal_Int32 n3)
 
sal_Int32 LevDistance (std::u16string_view rTxt1, std::u16string_view rTxt2)
 
bool IsUseDicList (const PropertyValues &rProperties, const uno::Reference< XPropertySet > &rxProp)
 
bool IsIgnoreControlChars (const PropertyValues &rProperties, const uno::Reference< XPropertySet > &rxProp)
 
static bool lcl_HasHyphInfo (const uno::Reference< XDictionaryEntry > &xEntry)
 
uno::Reference< XDictionaryEntry > SearchDicList (const uno::Reference< XSearchableDictionaryList > &xDicList, const OUString &rWord, LanguageType nLanguage, bool bSearchPosDics, bool bSearchSpellEntry)
 
bool SaveDictionaries (const uno::Reference< XSearchableDictionaryList > &xDicList)
 
DictionaryError AddEntryToDic (uno::Reference< XDictionary > const &rxDic, const OUString &rWord, bool bIsNeg, const OUString &rRplcTxt, bool bStripDot)
 
std::vector< LanguageTypeLocaleSeqToLangVec (uno::Sequence< Locale > const &rLocaleSeq)
 
uno::Sequence< sal_Int16 > LocaleSeqToLangSeq (uno::Sequence< Locale > const &rLocaleSeq)
 
bool IsReadOnly (const OUString &rURL, bool *pbExist)
 
static bool GetAltSpelling (sal_Int16 &rnChgPos, sal_Int16 &rnChgLen, OUString &rRplc, uno::Reference< XHyphenatedWord > const &rxHyphWord)
 
static sal_Int16 GetOrigWordPos (std::u16string_view rOrigWord, sal_Int16 nPos)
 
sal_Int32 GetPosInWordToCheck (std::u16string_view rTxt, sal_Int32 nPos)
 
uno::Reference< XHyphenatedWord > RebuildHyphensAndControlChars (const OUString &rOrigWord, uno::Reference< XHyphenatedWord > const &rxHyphWord)
 
bool IsUpper (const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, LanguageType nLanguage)
 
CapType capitalType (const OUString &aTerm, CharClass const *pCC)
 
bool HasDigits (const OUString &rText)
 
bool IsNumeric (std::u16string_view rText)
 
uno::Reference< XLinguProperties > GetLinguProperties ()
 
uno::Reference< XSearchableDictionaryList > GetDictionaryList ()
 
uno::Reference< XDictionary > GetIgnoreAllList ()
 
bool FileExists (const OUString &rMainURL)
 
static std::vector< OUString > GetMultiPaths_Impl (std::u16string_view rPathPrefix, DictionaryPathFlags nPathFlags)
 
OUString GetDictionaryWriteablePath ()
 
std::vector< OUString > GetDictionaryPaths ()
 
OUString GetWritableDictionaryURL (std::u16string_view rDicName)
 
static bool SeqHasEntry (const std::vector< OUString > &rSeq, std::u16string_view rTxt)
 
void SearchSimilarText (const OUString &rText, LanguageType nLanguage, Reference< XSearchableDictionaryList > const &xDicList, std::vector< OUString > &rDicListProps)
 
void SeqRemoveNegEntries (std::vector< OUString > &rSeq, Reference< XSearchableDictionaryList > const &rxDicList, LanguageType nLanguage)
 
std::vector< OUString > MergeProposalSeqs (std::vector< OUString > &rAlt1, std::vector< OUString > &rAlt2)
 
OString Translate (const OString &rTargetLang, const OString &rAPIUrl, const OString &rAuthKey, const OString &rData)
 
class UNLESS_MERGELIBS (LNG_DLLPUBLIC) PropertyHelper_Thesaurus
 
std::vector< LanguageTypeLocaleSeqToLangVec (css::uno::Sequence< css::lang::Locale > const &rLocaleSeq)
 
css::uno::Sequence< sal_Int16 > LocaleSeqToLangSeq (css::uno::Sequence< css::lang::Locale > const &rLocaleSeq)
 
css::uno::Reference< css::linguistic2::XHyphenatedWord > RebuildHyphensAndControlChars (const OUString &rOrigWord, css::uno::Reference< css::linguistic2::XHyphenatedWord > const &rxHyphWord)
 
bool IsUpper (const OUString &rText, LanguageType nLanguage)
 
bool IsUseDicList (const css::beans::PropertyValues &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rxPropSet)
 
bool IsIgnoreControlChars (const css::beans::PropertyValues &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rxPropSet)
 
css::uno::Reference< css::linguistic2::XDictionaryEntry > SearchDicList (const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &rDicList, const OUString &rWord, LanguageType nLanguage, bool bSearchPosDics, bool bSearchSpellEntry)
 
LNG_DLLPUBLIC DictionaryError AddEntryToDic (css::uno::Reference< css::linguistic2::XDictionary > const &rxDic, const OUString &rWord, bool bIsNeg, const OUString &rRplcTxt, bool bStripDot=true)
 
LNG_DLLPUBLIC bool SaveDictionaries (const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &xDicList)
 
void SeqRemoveNegEntries (std::vector< OUString > &rSeq, css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const &rxDicList, LanguageType nLanguage)
 
void SearchSimilarText (const OUString &rText, LanguageType nLanguage, css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const &xDicList, std::vector< OUString > &rDicListProps)
 

Variables

struct {
   OUString   linguistic::aPropName
 
   sal_Int32   linguistic::nPropHdl
 
aFlushProperties [NUM_FLUSH_PROPS]
 
const sal_uInt32 the_aDigitZeroes []
 

Typedef Documentation

◆ PropertyChgHelperBase

typedef cppu::WeakImplHelper< css::beans::XPropertyChangeListener, css::linguistic2::XLinguServiceEventBroadcaster> linguistic::PropertyChgHelperBase

Definition at line 53 of file lngprophelp.hxx.

Enumeration Type Documentation

◆ CapType

enum class linguistic::CapType
strong
Enumerator
UNKNOWN 
NOCAP 
INITCAP 
ALLCAP 
MIXED 

Definition at line 66 of file misc.hxx.

◆ DictionaryError

enum class linguistic::DictionaryError
strong
Enumerator
NONE 
FULL 
READONLY 
UNKNOWN 
NOT_EXISTS 

Definition at line 60 of file misc.hxx.

Function Documentation

◆ AddEntryToDic() [1/2]

LNG_DLLPUBLIC DictionaryError linguistic::AddEntryToDic ( css::uno::Reference< css::linguistic2::XDictionary > const &  rxDic,
const OUString &  rWord,
bool  bIsNeg,
const OUString &  rRplcTxt,
bool  bStripDot = true 
)

◆ AddEntryToDic() [2/2]

DictionaryError linguistic::AddEntryToDic ( uno::Reference< XDictionary > const &  rxDic,
const OUString &  rWord,
bool  bIsNeg,
const OUString &  rRplcTxt,
bool  bStripDot 
)

Definition at line 322 of file misc.cxx.

References FULL, NONE, NOT_EXISTS, READONLY, and UNKNOWN.

◆ capitalType()

LNG_DLLPUBLIC CapType linguistic::capitalType ( const OUString &  aTerm,
CharClass const *  pCC 
)

◆ FileExists()

bool linguistic::FileExists ( const OUString &  rMainURL)

◆ GetAltSpelling()

static bool linguistic::GetAltSpelling ( sal_Int16 &  rnChgPos,
sal_Int16 &  rnChgLen,
OUString &  rRplc,
uno::Reference< XHyphenatedWord > const &  rxHyphWord 
)
static

nHyphenationPos and nHyphenPos differ at most by 1 (see above) Beware: eg "Schiffahrt" in German (pre spelling reform) proves to be a bit nasty (nChgPosLeft and nChgPosRight overlap to an extend.)

serves to insert the additional "f" in "Schiffahrt" at position 5 rather than position 6.

Definition at line 415 of file misc.cxx.

References i.

Referenced by RebuildHyphensAndControlChars().

◆ GetDictionaryList()

css::uno::Reference< css::linguistic2::XSearchableDictionaryList > linguistic::GetDictionaryList ( )

◆ GetDictionaryPaths()

std::vector< OUString > linguistic::GetDictionaryPaths ( )

Definition at line 142 of file misc2.cxx.

References GetMultiPaths_Impl(), PATH_FLAG_ALL, and u.

Referenced by DicList::CreateDicList().

◆ GetDictionaryWriteablePath()

OUString linguistic::GetDictionaryWriteablePath ( )

◆ GetIgnoreAllList()

css::uno::Reference< css::linguistic2::XDictionary > linguistic::GetIgnoreAllList ( )

Definition at line 687 of file misc.cxx.

References Translate::Create(), Translate::get(), and GetDictionaryList().

Referenced by lcl_GetRulingDictionaryEntry().

◆ GetLinguMutex()

LNG_DLLPUBLIC::osl::Mutex & linguistic::GetLinguMutex ( )

! multi-thread safe mutex for all platforms !!

Definition at line 60 of file misc.cxx.

Referenced by DictionaryNeo::add(), DicList::addDictionary(), DictionaryNeo::addDictionaryEventListener(), DicList::addDictionaryListEventListener(), DictionaryNeo::addEntry(), ConvDic::addEntry(), HHConvDic::addEntry(), DictionaryNeo::addEntry_Impl(), LinguProps::addEventListener(), ConvDicList::addEventListener(), DicList::addEventListener(), LngSvcMgr::addEventListener(), ConvDic::addFlushListener(), LngSvcMgr::addLinguServiceManagerListener(), ConvDicList::addNewDictionary(), LinguProps::addPropertyChangeListener(), linguistic::SpellCache::AddWord(), DicList::beginCollectEvents(), HyphenatorDispatcher::buildHyphWord(), HyphenatorDispatcher::buildPossHyphens(), linguistic::SpellCache::CheckWord(), ConvDic::clear(), DictionaryNeo::clear(), DicList::createDictionary(), HyphenatorDispatcher::createPossibleHyphens(), ConvDicList::dispose(), DicList::dispose(), LinguProps::dispose(), LngSvcMgr::dispose(), linguistic::FlushListener::disposing(), linguistic::AppExitListener::disposing(), DicEvtListenerHelper::disposing(), LngSvcMgrListenerHelper::disposing(), DicList::endCollectEvents(), linguistic::SpellCache::Flush(), ConvDic::flush(), DicList::flushEvents(), linguistic::SpellAlternatives::getAlternatives(), linguistic::SpellAlternatives::getAlternativesCount(), LngSvcMgr::getAvailableLocales(), LngSvcMgr::getAvailableServices(), ConvDicNameContainer::getByName(), LngSvcMgr::getConfiguredServices(), ConvDic::getConversionEntries(), ConvDic::getConversions(), ConvDic::getConversionType(), DictionaryNeo::getCount(), DicList::getCount(), DicList::GetDicPos(), DicList::getDictionaries(), DicList::getDictionaryByName(), ConvDicList::getDictionaryContainer(), DictionaryNeo::getDictionaryType(), ConvDicNameContainer::getElementNames(), DictionaryNeo::getEntries(), DictionaryNeo::getEntry(), linguistic::SpellAlternatives::getFailureType(), LinguProps::getFastPropertyValue(), LngSvcMgr::getHyphenator(), SpellCheckerDispatcher::getLanguages(), linguistic::SpellAlternatives::getLocale(), ConvDic::getLocale(), DictionaryNeo::getLocale(), HyphenatorDispatcher::getLocales(), SpellCheckerDispatcher::getLocales(), ThesaurusDispatcher::getLocales(), DictionaryNeo::getLocation(), ConvDic::getMaxCharCount(), ConvDic::getName(), DictionaryNeo::getName(), LinguOptions::GetName(), LinguProps::getPropertySetInfo(), LinguProps::getPropertyValue(), LinguProps::getPropertyValues(), HyphenatorDispatcher::GetServiceList(), SpellCheckerDispatcher::GetServiceList(), ThesaurusDispatcher::GetServiceList(), LngSvcMgr::getSpellChecker(), LngSvcMgr::getThesaurus(), linguistic::SpellAlternatives::getWord(), ConvDicNameContainer::hasByName(), ConvDicNameContainer::hasElements(), SpellCheckerDispatcher::hasLanguage(), HyphenatorDispatcher::hasLocale(), SpellCheckerDispatcher::hasLocale(), ThesaurusDispatcher::hasLocale(), DictionaryNeo::hasLocation(), HyphenatorDispatcher::hyphenate(), IMPL_LINK_NOARG(), ConvDicNameContainer::insertByName(), ConvDic::isActive(), DictionaryNeo::isActive(), DictionaryNeo::isFull(), DictionaryNeo::isReadonly(), SpellCheckerDispatcher::isValid_Impl(), DictionaryNeo::launchEvent(), DictionaryNeo::loadEntries(), LngSvcMgr::modified(), LngSvcMgr::Notify(), linguistic::AppExitListener::notifyTermination(), DicEvtListenerHelper::processDictionaryEvent(), linguistic::FlushListener::processDictionaryListEvent(), LngSvcMgrListenerHelper::processDictionaryListEvent(), LngSvcMgrListenerHelper::processLinguServiceEvent(), linguistic::PropertyHelper_Thes::propertyChange(), linguistic::PropertyHelper_Hyphen::propertyChange(), linguistic::FlushListener::propertyChange(), HyphenatorDispatcher::queryAlternativeSpelling(), ConvDicList::queryConversions(), DicList::queryDictionaryEntry(), ConvDicList::queryMaxCharCount(), ThesaurusDispatcher::queryMeanings(), DictionaryNeo::remove(), ConvDicNameContainer::removeByName(), DicList::removeDictionary(), DictionaryNeo::removeDictionaryEventListener(), DicList::removeDictionaryListEventListener(), ConvDic::removeEntry(), ConvDicList::removeEventListener(), DicList::removeEventListener(), LngSvcMgr::removeEventListener(), LinguProps::removeEventListener(), ConvDic::removeFlushListener(), LngSvcMgr::removeLinguServiceManagerListener(), LinguProps::removePropertyChangeListener(), ConvDicNameContainer::replaceByName(), DictionaryNeo::saveEntries(), SearchDicList(), DicList::SearchForDictionaries(), DictionaryNeo::seekEntry(), ConvDic::setActive(), DictionaryNeo::setActive(), linguistic::SpellAlternatives::setAlternatives(), LngSvcMgr::setConfiguredServices(), linguistic::FlushListener::SetDicList(), linguistic::SpellAlternatives::setFailureType(), LinguProps::setFastPropertyValue(), DictionaryNeo::setLocale(), DictionaryNeo::setName(), LinguProps::setPropertyValue(), LinguProps::setPropertyValues(), linguistic::FlushListener::SetPropSet(), HyphenatorDispatcher::SetServiceList(), SpellCheckerDispatcher::SetServiceList(), ThesaurusDispatcher::SetServiceList(), SpellCheckerDispatcher::spell_Impl(), LngSvcMgr::stopListening(), DictionaryNeo::store(), DictionaryNeo::storeAsURL(), DictionaryNeo::storeToURL(), LngSvcMgrListenerHelper::Timeout(), and LinguOptions::~LinguOptions().

◆ GetLinguProperties()

LNG_DLLPUBLIC css::uno::Reference< css::linguistic2::XLinguProperties > linguistic::GetLinguProperties ( )

◆ GetLocaleDataWrapper()

const LocaleDataWrapper & linguistic::GetLocaleDataWrapper ( LanguageType  nLang)

◆ GetMultiPaths_Impl()

static std::vector< OUString > linguistic::GetMultiPaths_Impl ( std::u16string_view  rPathPrefix,
DictionaryPathFlags  nPathFlags 
)
static

Definition at line 79 of file misc2.cxx.

References comphelper::getProcessComponentContext().

Referenced by GetDictionaryPaths(), and GetDictionaryWriteablePath().

◆ GetOrigWordPos()

static sal_Int16 linguistic::GetOrigWordPos ( std::u16string_view  rOrigWord,
sal_Int16  nPos 
)
static

Definition at line 467 of file misc.cxx.

References i, IsControlChar(), IsHyphen(), and nPos.

Referenced by RebuildHyphensAndControlChars().

◆ GetPosInWordToCheck()

LNG_DLLPUBLIC sal_Int32 linguistic::GetPosInWordToCheck ( std::u16string_view  rTxt,
sal_Int32  nPos 
)

◆ GetWritableDictionaryURL()

LNG_DLLPUBLIC OUString linguistic::GetWritableDictionaryURL ( std::u16string_view  rDicName)
Returns
a URL for a new and writable dictionary rDicName. The URL will point to the path given by 'GetDictionaryWriteablePath'

Definition at line 147 of file misc2.cxx.

References INetURLObject::All, INetURLObject::Append(), DBG_ASSERT, GetDictionaryWriteablePath(), INetURLObject::GetMainURL(), INetURLObject::HasError(), INetURLObject::NONE, INetURLObject::SetSmartProtocol(), and INetURLObject::SetSmartURL().

◆ HasDigits()

LNG_DLLPUBLIC bool linguistic::HasDigits ( const OUString &  rText)

Definition at line 627 of file misc.cxx.

References i, and the_aDigitZeroes.

◆ IsIgnoreControlChars() [1/2]

bool linguistic::IsIgnoreControlChars ( const css::beans::PropertyValues rProperties,
const css::uno::Reference< css::beans::XPropertySet > &  rxPropSet 
)

◆ IsIgnoreControlChars() [2/2]

bool linguistic::IsIgnoreControlChars ( const PropertyValues rProperties,
const uno::Reference< XPropertySet > &  rxProp 
)

◆ IsNumeric()

LNG_DLLPUBLIC bool linguistic::IsNumeric ( std::u16string_view  rText)

Definition at line 646 of file misc.cxx.

References i.

Referenced by AddInternal().

◆ IsReadOnly()

bool linguistic::IsReadOnly ( const OUString &  rURL,
bool *  pbExist 
)

◆ IsUpper() [1/2]

bool linguistic::IsUpper ( const OUString &  rText,
LanguageType  nLanguage 
)
inline

Definition at line 133 of file misc.hxx.

References IsUpper().

◆ IsUpper() [2/2]

LNG_DLLPUBLIC bool linguistic::IsUpper ( const OUString &  rText,
sal_Int32  nPos,
sal_Int32  nLen,
LanguageType  nLanguage 
)

Definition at line 558 of file misc.cxx.

References CharClass::isUpper(), and nPos.

Referenced by IsUpper().

◆ IsUseDicList() [1/2]

bool linguistic::IsUseDicList ( const css::beans::PropertyValues rProperties,
const css::uno::Reference< css::beans::XPropertySet > &  rxPropSet 
)

◆ IsUseDicList() [2/2]

bool linguistic::IsUseDicList ( const PropertyValues rProperties,
const uno::Reference< XPropertySet > &  rxProp 
)

◆ lcl_AddAsPropertyChangeListener()

static void linguistic::lcl_AddAsPropertyChangeListener ( const Reference< XPropertyChangeListener > &  xListener,
Reference< XLinguProperties > const &  rPropSet 
)
static

Definition at line 58 of file iprcache.cxx.

References aFlushProperties.

Referenced by linguistic::FlushListener::SetPropSet().

◆ lcl_HasHyphInfo()

static bool linguistic::lcl_HasHyphInfo ( const uno::Reference< XDictionaryEntry > &  xEntry)
static

Definition at line 233 of file misc.cxx.

Referenced by SearchDicList().

◆ lcl_IsFlushProperty()

static bool linguistic::lcl_IsFlushProperty ( sal_Int32  nHandle)
static

Definition at line 88 of file iprcache.cxx.

References aFlushProperties, i, nHandle, nPropHdl, and NUM_FLUSH_PROPS.

Referenced by linguistic::FlushListener::propertyChange().

◆ lcl_RemoveAsPropertyChangeListener()

static void linguistic::lcl_RemoveAsPropertyChangeListener ( const Reference< XPropertyChangeListener > &  xListener,
Reference< XLinguProperties > const &  rPropSet 
)
static

◆ LevDistance()

sal_Int32 linguistic::LevDistance ( std::u16string_view  rTxt1,
std::u16string_view  rTxt2 
)

Definition at line 143 of file misc.cxx.

References aData, i, and Minimum().

Referenced by SearchSimilarText().

◆ LinguIsUnspecified() [1/2]

LNG_DLLPUBLIC bool linguistic::LinguIsUnspecified ( LanguageType  nLanguage)

◆ LinguIsUnspecified() [2/2]

LNG_DLLPUBLIC bool linguistic::LinguIsUnspecified ( std::u16string_view  rBcp47)

The same as LinguIsUnspecified(LanguageType) but taking a BCP 47 language tag string instead.

Definition at line 100 of file misc.cxx.

References u.

◆ LinguLanguageToLocale()

LNG_DLLPUBLIC css::lang::Locale linguistic::LinguLanguageToLocale ( LanguageType  nLanguage)

Convert LanguageType to Locale for legacy handling.

Linguistic specific handling of LANGUAGE_NONE resulting in an empty locale. Avoid use!

Definition at line 81 of file misc.cxx.

References LanguageTag::convertToLocale(), and LANGUAGE_NONE.

Referenced by DicList::CreateDicList().

◆ LinguLocaleToLanguage()

LNG_DLLPUBLIC LanguageType linguistic::LinguLocaleToLanguage ( const css::lang::Locale &  rLocale)

◆ LocaleSeqToLangSeq() [1/2]

css::uno::Sequence< sal_Int16 > linguistic::LocaleSeqToLangSeq ( css::uno::Sequence< css::lang::Locale > const &  rLocaleSeq)

◆ LocaleSeqToLangSeq() [2/2]

uno::Sequence< sal_Int16 > linguistic::LocaleSeqToLangSeq ( uno::Sequence< Locale > const &  rLocaleSeq)

Definition at line 375 of file misc.cxx.

References comphelper::containerToSequence(), and Locale.

Referenced by SpellCheckerDispatcher::getLanguages().

◆ LocaleSeqToLangVec() [1/2]

std::vector< LanguageType > linguistic::LocaleSeqToLangVec ( css::uno::Sequence< css::lang::Locale > const &  rLocaleSeq)

◆ LocaleSeqToLangVec() [2/2]

std::vector< LanguageType > linguistic::LocaleSeqToLangVec ( uno::Sequence< Locale > const &  rLocaleSeq)

◆ MergeProposalSeqs()

std::vector< OUString > linguistic::MergeProposalSeqs ( std::vector< OUString > &  rAlt1,
std::vector< OUString > &  rAlt2 
)

Definition at line 132 of file spelldta.cxx.

References i, MAX_PROPOSALS, nCount, nIndex, and SeqHasEntry().

Referenced by SeqRemoveNegEntries().

◆ Minimum()

static sal_Int32 linguistic::Minimum ( sal_Int32  n1,
sal_Int32  n2,
sal_Int32  n3 
)
static

Definition at line 107 of file misc.cxx.

References n1, n2, and n3.

Referenced by LevDistance().

◆ RebuildHyphensAndControlChars() [1/2]

css::uno::Reference< css::linguistic2::XHyphenatedWord > linguistic::RebuildHyphensAndControlChars ( const OUString &  rOrigWord,
css::uno::Reference< css::linguistic2::XHyphenatedWord > const &  rxHyphWord 
)

◆ RebuildHyphensAndControlChars() [2/2]

uno::Reference< XHyphenatedWord > linguistic::RebuildHyphensAndControlChars ( const OUString &  rOrigWord,
uno::Reference< XHyphenatedWord > const &  rxHyphWord 
)

should at least work with the German words B-"u-c-k-er and Sc-hif-fah-rt

Definition at line 499 of file misc.cxx.

References GetAltSpelling(), GetOrigWordPos(), LinguLocaleToLanguage(), nPos, and SAL_WARN.

Referenced by HyphenatorDispatcher::hyphenate(), and HyphenatorDispatcher::queryAlternativeSpelling().

◆ SaveDictionaries() [1/2]

LNG_DLLPUBLIC bool linguistic::SaveDictionaries ( const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &  xDicList)

◆ SaveDictionaries() [2/2]

bool linguistic::SaveDictionaries ( const uno::Reference< XSearchableDictionaryList > &  xDicList)

Definition at line 294 of file misc.cxx.

◆ SearchDicList() [1/2]

css::uno::Reference< css::linguistic2::XDictionaryEntry > linguistic::SearchDicList ( const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &  rDicList,
const OUString &  rWord,
LanguageType  nLanguage,
bool  bSearchPosDics,
bool  bSearchSpellEntry 
)

◆ SearchDicList() [2/2]

uno::Reference< XDictionaryEntry > linguistic::SearchDicList ( const uno::Reference< XSearchableDictionaryList > &  xDicList,
const OUString &  rWord,
LanguageType  nLanguage,
bool  bSearchPosDics,
bool  bSearchSpellEntry 
)

◆ SearchSimilarText() [1/2]

void linguistic::SearchSimilarText ( const OUString &  rText,
LanguageType  nLanguage,
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const &  xDicList,
std::vector< OUString > &  rDicListProps 
)

◆ SearchSimilarText() [2/2]

void linguistic::SearchSimilarText ( const OUString &  rText,
LanguageType  nLanguage,
Reference< XSearchableDictionaryList > const &  xDicList,
std::vector< OUString > &  rDicListProps 
)

◆ SeqHasEntry()

static bool linguistic::SeqHasEntry ( const std::vector< OUString > &  rSeq,
std::u16string_view  rTxt 
)
static

Definition at line 48 of file spelldta.cxx.

References i.

Referenced by MergeProposalSeqs().

◆ SeqRemoveNegEntries() [1/2]

void linguistic::SeqRemoveNegEntries ( std::vector< OUString > &  rSeq,
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const &  rxDicList,
LanguageType  nLanguage 
)

◆ SeqRemoveNegEntries() [2/2]

void linguistic::SeqRemoveNegEntries ( std::vector< OUString > &  rSeq,
Reference< XSearchableDictionaryList > const &  rxDicList,
LanguageType  nLanguage 
)

Definition at line 107 of file spelldta.cxx.

References i, MergeProposalSeqs(), and SearchDicList().

Referenced by SpellCheckerDispatcher::spell_Impl().

◆ Translate()

LNG_DLLPUBLIC OString linguistic::Translate ( const OString &  rTargetLang,
const OString &  rAPIUrl,
const OString &  rAuthKey,
const OString &  rData 
)

Definition at line 12 of file translate.cxx.

References aData, p, SAL_WARN, size, and text().

◆ UNLESS_MERGELIBS()

class linguistic::UNLESS_MERGELIBS ( LNG_DLLPUBLIC  )
final
Exceptions
css::uno::RuntimeException
css::uno::RuntimeException
css::uno::RuntimeException
css::uno::RuntimeException
css::uno::RuntimeException
css::uno::RuntimeException
css::uno::RuntimeException
css::uno::RuntimeException

Definition at line 126 of file lngprophelp.hxx.

Variable Documentation

◆ 

const struct { ... } linguistic::aFlushProperties[ NUM_FLUSH_PROPS ]
Initial value:
=
{
}
#define UPH_IS_SPELL_WITH_DIGITS
#define UPH_IS_SPELL_CLOSED_COMPOUND
constexpr OUStringLiteral UPN_IS_SPELL_UPPER_CASE
#define UPH_IS_SPELL_HYPHENATED_COMPOUND
constexpr OUStringLiteral UPN_IS_SPELL_CLOSED_COMPOUND
constexpr OUStringLiteral UPN_IS_USE_DICTIONARY_LIST
constexpr OUStringLiteral UPN_IS_SPELL_WITH_DIGITS
constexpr OUStringLiteral UPN_IS_SPELL_HYPHENATED_COMPOUND
#define UPH_IS_SPELL_UPPER_CASE
constexpr OUStringLiteral UPN_IS_IGNORE_CONTROL_CHARACTERS
#define UPH_IS_USE_DICTIONARY_LIST
#define UPH_IS_SPELL_CAPITALIZATION
constexpr OUStringLiteral UPN_IS_SPELL_CAPITALIZATION
#define UPH_IS_IGNORE_CONTROL_CHARACTERS

Referenced by lcl_AddAsPropertyChangeListener(), lcl_IsFlushProperty(), and lcl_RemoveAsPropertyChangeListener().

◆ aPropName

OUString linguistic::aPropName

Definition at line 44 of file iprcache.cxx.

◆ nPropHdl

sal_Int32 linguistic::nPropHdl

Definition at line 45 of file iprcache.cxx.

Referenced by lcl_IsFlushProperty().

◆ the_aDigitZeroes

const sal_uInt32 linguistic::the_aDigitZeroes[]

Definition at line 590 of file misc.cxx.

Referenced by HasDigits().