LibreOffice Module linguistic (master) 1
|
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 LocaleDataWrapper & | GetLocaleDataWrapper (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< LanguageType > | LocaleSeqToLangVec (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< LanguageType > | LocaleSeqToLangVec (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 cppu::WeakImplHelper< css::beans::XPropertyChangeListener, css::linguistic2::XLinguServiceEventBroadcaster> linguistic::PropertyChgHelperBase |
Definition at line 53 of file lngprophelp.hxx.
|
strong |
|
strong |
LNG_DLLPUBLIC DictionaryError linguistic::AddEntryToDic | ( | css::uno::Reference< css::linguistic2::XDictionary > const & | rxDic, |
const OUString & | rWord, | ||
bool | bIsNeg, | ||
const OUString & | rRplcTxt, | ||
bool | bStripDot = true |
||
) |
DictionaryError linguistic::AddEntryToDic | ( | uno::Reference< XDictionary > const & | rxDic, |
const OUString & | rWord, | ||
bool | bIsNeg, | ||
const OUString & | rRplcTxt, | ||
bool | bStripDot | ||
) |
LNG_DLLPUBLIC CapType linguistic::capitalType | ( | const OUString & | aTerm, |
CharClass const * | pCC | ||
) |
Definition at line 564 of file misc.cxx.
References ALLCAP, CharClass::getCharacterType(), INITCAP, MIXED, NOCAP, and UNKNOWN.
Referenced by SpellCheckerDispatcher::isValid_Impl(), and SpellCheckerDispatcher::spell_Impl().
bool linguistic::FileExists | ( | const OUString & | rMainURL | ) |
Definition at line 60 of file misc2.cxx.
References comphelper::getProcessComponentContext(), and ucbhelper::Content::isDocument().
|
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().
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > linguistic::GetDictionaryList | ( | ) |
Definition at line 671 of file misc.cxx.
References comphelper::getProcessComponentContext(), and SAL_WARN.
Referenced by HyphenatorDispatcher::GetDicList(), SpellCheckerDispatcher::GetDicList(), GetIgnoreAllList(), LngSvcMgr::GetListenerHelper_Impl(), lcl_GetRulingDictionaryEntry(), and linguistic::SpellCache::SpellCache().
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().
OUString linguistic::GetDictionaryWriteablePath | ( | ) |
Definition at line 131 of file misc2.cxx.
References DBG_ASSERT, GetMultiPaths_Impl(), and u.
Referenced by ConvDicList::addNewDictionary(), DicList::CreateDicList(), DicList::createDictionary(), ConvDicList::GetNameContainer(), GetWritableDictionaryURL(), and ConvDicNameContainer::removeByName().
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().
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().
LNG_DLLPUBLIC css::uno::Reference< css::linguistic2::XLinguProperties > linguistic::GetLinguProperties | ( | ) |
Definition at line 666 of file misc.cxx.
References comphelper::getProcessComponentContext().
Referenced by GetAvailLocales(), HyphenatorDispatcher::GetPropSet(), SpellCheckerDispatcher::GetPropSet(), ThesaurusDispatcher::GetPropSet(), and linguistic::SpellCache::SpellCache().
const LocaleDataWrapper & linguistic::GetLocaleDataWrapper | ( | LanguageType | nLang | ) |
Definition at line 66 of file misc.cxx.
Referenced by HyphenatorDispatcher::createPossibleHyphens(), HyphenatorDispatcher::hyphenate(), linguistic::HyphenatedWord::HyphenatedWord(), SpellCheckerDispatcher::isValid_Impl(), HyphenatorDispatcher::queryAlternativeSpelling(), and SpellCheckerDispatcher::spell_Impl().
|
static |
Definition at line 79 of file misc2.cxx.
References comphelper::getProcessComponentContext().
Referenced by GetDictionaryPaths(), and GetDictionaryWriteablePath().
|
static |
Definition at line 467 of file misc.cxx.
References i, IsControlChar(), IsHyphen(), and nPos.
Referenced by RebuildHyphensAndControlChars().
LNG_DLLPUBLIC sal_Int32 linguistic::GetPosInWordToCheck | ( | std::u16string_view | rTxt, |
sal_Int32 | nPos | ||
) |
Definition at line 481 of file misc.cxx.
References i, IsControlChar(), IsHyphen(), and nPos.
Referenced by HyphenatorDispatcher::hyphenate(), and HyphenatorDispatcher::queryAlternativeSpelling().
LNG_DLLPUBLIC OUString linguistic::GetWritableDictionaryURL | ( | std::u16string_view | rDicName | ) |
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().
LNG_DLLPUBLIC bool linguistic::HasDigits | ( | const OUString & | rText | ) |
Definition at line 627 of file misc.cxx.
References i, and the_aDigitZeroes.
bool linguistic::IsIgnoreControlChars | ( | const css::beans::PropertyValues & | rProperties, |
const css::uno::Reference< css::beans::XPropertySet > & | rxPropSet | ||
) |
bool linguistic::IsIgnoreControlChars | ( | const PropertyValues & | rProperties, |
const uno::Reference< XPropertySet > & | rxProp | ||
) |
Definition at line 211 of file misc.cxx.
References UPH_IS_IGNORE_CONTROL_CHARACTERS.
Referenced by HyphenatorDispatcher::createPossibleHyphens(), HyphenatorDispatcher::hyphenate(), SpellCheckerDispatcher::isValid_Impl(), HyphenatorDispatcher::queryAlternativeSpelling(), ThesaurusDispatcher::queryMeanings(), and SpellCheckerDispatcher::spell_Impl().
LNG_DLLPUBLIC bool linguistic::IsNumeric | ( | std::u16string_view | rText | ) |
bool linguistic::IsReadOnly | ( | const OUString & | rURL, |
bool * | pbExist | ||
) |
Definition at line 385 of file misc.cxx.
References Any, Exception, comphelper::getProcessComponentContext(), ucbhelper::Content::getPropertyValue(), and ucbhelper::Content::isDocument().
Referenced by ConvDic::ConvDic(), and DictionaryNeo::storeAsURL().
|
inline |
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().
bool linguistic::IsUseDicList | ( | const css::beans::PropertyValues & | rProperties, |
const css::uno::Reference< css::beans::XPropertySet > & | rxPropSet | ||
) |
bool linguistic::IsUseDicList | ( | const PropertyValues & | rProperties, |
const uno::Reference< XPropertySet > & | rxProp | ||
) |
Definition at line 189 of file misc.cxx.
References UPH_IS_USE_DICTIONARY_LIST.
Referenced by HyphenatorDispatcher::createPossibleHyphens(), HyphenatorDispatcher::hyphenate(), SpellCheckerDispatcher::isValid_Impl(), HyphenatorDispatcher::queryAlternativeSpelling(), and SpellCheckerDispatcher::spell_Impl().
|
static |
Definition at line 58 of file iprcache.cxx.
References aFlushProperties.
Referenced by linguistic::FlushListener::SetPropSet().
|
static |
Definition at line 233 of file misc.cxx.
Referenced by SearchDicList().
|
static |
Definition at line 88 of file iprcache.cxx.
References aFlushProperties, i, nHandle, nPropHdl, and NUM_FLUSH_PROPS.
Referenced by linguistic::FlushListener::propertyChange().
|
static |
Definition at line 73 of file iprcache.cxx.
References aFlushProperties.
Referenced by linguistic::FlushListener::disposing(), and linguistic::FlushListener::SetPropSet().
sal_Int32 linguistic::LevDistance | ( | std::u16string_view | rTxt1, |
std::u16string_view | rTxt2 | ||
) |
LNG_DLLPUBLIC bool linguistic::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.
Definition at line 88 of file misc.cxx.
References o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), LANGUAGE_MULTIPLE, LANGUAGE_NONE, and LANGUAGE_UNDETERMINED.
Referenced by HyphenatorDispatcher::createPossibleHyphens(), LngSvcMgr::getAvailableServices(), HyphenatorDispatcher::hyphenate(), IsConvDic(), SpellCheckerDispatcher::isValid_Impl(), HyphenatorDispatcher::queryAlternativeSpelling(), ThesaurusDispatcher::queryMeanings(), DictionaryNeo::saveEntries(), SearchDicList(), SearchSimilarText(), LngSvcMgr::setConfiguredServices(), GrammarCheckingIterator::SetServiceList(), and SpellCheckerDispatcher::spell_Impl().
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.
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().
LNG_DLLPUBLIC LanguageType linguistic::LinguLocaleToLanguage | ( | const css::lang::Locale & | rLocale | ) |
Convert Locale to LanguageType for legacy handling.
Linguistic specific handling of an empty locale denoting LANGUAGE_NONE. Does not resolve empty locale as system locale.
Definition at line 74 of file misc.cxx.
References LanguageTag::convertToLanguageType(), and LANGUAGE_NONE.
Referenced by ConvDicList::addNewDictionary(), DicList::createDictionary(), HyphenatorDispatcher::createPossibleHyphens(), LngSvcMgr::getAvailableServices(), GetAvailLocales(), HyphenatorDispatcher::GetServiceList(), SpellCheckerDispatcher::GetServiceList(), ThesaurusDispatcher::GetServiceList(), HyphenatorDispatcher::hasLocale(), SpellCheckerDispatcher::hasLocale(), ThesaurusDispatcher::hasLocale(), HyphenatorDispatcher::hyphenate(), HyphenatorDispatcher::queryAlternativeSpelling(), DicList::queryDictionaryEntry(), ThesaurusDispatcher::queryMeanings(), RebuildHyphensAndControlChars(), SearchDicList(), SearchSimilarText(), LngSvcMgr::setConfiguredServices(), DictionaryNeo::setLocale(), HyphenatorDispatcher::SetServiceList(), SpellCheckerDispatcher::SetServiceList(), and ThesaurusDispatcher::SetServiceList().
css::uno::Sequence< sal_Int16 > linguistic::LocaleSeqToLangSeq | ( | css::uno::Sequence< css::lang::Locale > const & | rLocaleSeq | ) |
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().
std::vector< LanguageType > linguistic::LocaleSeqToLangVec | ( | css::uno::Sequence< css::lang::Locale > const & | rLocaleSeq | ) |
std::vector< LanguageType > linguistic::LocaleSeqToLangVec | ( | uno::Sequence< Locale > const & | rLocaleSeq | ) |
Definition at line 363 of file misc.cxx.
References Locale.
Referenced by LngSvcMgr::GetAvailableGrammarSvcs_Impl(), LngSvcMgr::GetAvailableHyphSvcs_Impl(), LngSvcMgr::GetAvailableSpellSvcs_Impl(), and LngSvcMgr::GetAvailableThesSvcs_Impl().
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().
|
static |
css::uno::Reference< css::linguistic2::XHyphenatedWord > linguistic::RebuildHyphensAndControlChars | ( | const OUString & | rOrigWord, |
css::uno::Reference< css::linguistic2::XHyphenatedWord > const & | rxHyphWord | ||
) |
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().
LNG_DLLPUBLIC bool linguistic::SaveDictionaries | ( | const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > & | xDicList | ) |
bool linguistic::SaveDictionaries | ( | const uno::Reference< XSearchableDictionaryList > & | xDicList | ) |
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 | ||
) |
uno::Reference< XDictionaryEntry > linguistic::SearchDicList | ( | const uno::Reference< XSearchableDictionaryList > & | xDicList, |
const OUString & | rWord, | ||
LanguageType | nLanguage, | ||
bool | bSearchPosDics, | ||
bool | bSearchSpellEntry | ||
) |
Definition at line 248 of file misc.cxx.
References eType, GetLinguMutex(), i, lcl_HasHyphInfo(), LinguIsUnspecified(), LinguLocaleToLanguage(), and SAL_WARN_IF.
Referenced by lcl_GetRulingDictionaryEntry(), DicList::queryDictionaryEntry(), SeqRemoveNegEntries(), and SpellCheckerDispatcher::spell_Impl().
void linguistic::SearchSimilarText | ( | const OUString & | rText, |
LanguageType | nLanguage, | ||
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const & | xDicList, | ||
std::vector< OUString > & | rDicListProps | ||
) |
void linguistic::SearchSimilarText | ( | const OUString & | rText, |
LanguageType | nLanguage, | ||
Reference< XSearchableDictionaryList > const & | xDicList, | ||
std::vector< OUString > & | rDicListProps | ||
) |
Definition at line 63 of file spelldta.cxx.
References aEntries, eType, i, LevDistance(), LinguIsUnspecified(), and LinguLocaleToLanguage().
Referenced by SpellCheckerDispatcher::spell_Impl().
|
static |
void linguistic::SeqRemoveNegEntries | ( | std::vector< OUString > & | rSeq, |
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const & | rxDicList, | ||
LanguageType | nLanguage | ||
) |
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().
LNG_DLLPUBLIC OString linguistic::Translate | ( | const OString & | rTargetLang, |
const OString & | rAPIUrl, | ||
const OString & | rAuthKey, | ||
const OString & | rData | ||
) |
|
final |
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.
const struct { ... } linguistic::aFlushProperties[ NUM_FLUSH_PROPS ] |
Referenced by lcl_AddAsPropertyChangeListener(), lcl_IsFlushProperty(), and lcl_RemoveAsPropertyChangeListener().
OUString linguistic::aPropName |
Definition at line 44 of file iprcache.cxx.
sal_Int32 linguistic::nPropHdl |
Definition at line 45 of file iprcache.cxx.
Referenced by lcl_IsFlushProperty().
const sal_uInt32 linguistic::the_aDigitZeroes[] |
Definition at line 590 of file misc.cxx.
Referenced by HasDigits().