LibreOffice Module svl (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 | DictionaryError { NONE , FULL , READONLY , UNKNOWN , NOT_EXISTS } |
enum | CapType { UNKNOWN , NOCAP , INITCAP , ALLCAP , MIXED } |
Functions | |
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 () |
const LocaleDataWrapper & | GetLocaleDataWrapper (LanguageType nLang) |
LanguageType | LinguLocaleToLanguage (const css::lang::Locale &rLocale) |
css::lang::Locale | LinguLanguageToLocale (LanguageType nLanguage) |
bool | LinguIsUnspecified (LanguageType nLanguage) |
bool | LinguIsUnspecified (std::u16string_view rBcp47) |
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) |
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) |
Variables | |
OUString | aPropName |
sal_Int32 | nPropHdl |
const struct linguistic:: { ... } | aFlushProperties [NUM_FLUSH_PROPS] |
const sal_uInt32 | the_aDigitZeroes [] |
sal_Int32 linguistic::GetNumControlChars | ( | std::u16string_view | rTxt | ) |
Definition at line 29 of file lngmisc.cxx.
References i, and IsControlChar().
Referenced by RemoveControlChars(), and ReplaceControlChars().
SVL_DLLPUBLIC OUString linguistic::GetThesaurusReplaceText | ( | const OUString & | rText | ) |
Definition at line 96 of file lngmisc.cxx.
References nPos, and comphelper::string::strip().
|
inline |
Definition at line 40 of file lngmisc.hxx.
References u.
Referenced by GetNumControlChars(), RemoveControlChars(), and ReplaceControlChars().
|
inline |
Definition at line 35 of file lngmisc.hxx.
References SVT_HARD_HYPHEN, and SVT_SOFT_HYPHEN.
SVL_DLLPUBLIC bool linguistic::RemoveControlChars | ( | OUString & | rTxt | ) |
Definition at line 46 of file lngmisc.cxx.
References aBuf, DBG_ASSERT, GetNumControlChars(), i, and IsControlChar().
SVL_DLLPUBLIC bool linguistic::RemoveHyphens | ( | OUString & | rTxt | ) |
Definition at line 38 of file lngmisc.cxx.
References n, SVT_HARD_HYPHEN, and SVT_SOFT_HYPHEN.
SVL_DLLPUBLIC bool linguistic::ReplaceControlChars | ( | OUString & | rTxt | ) |
Definition at line 64 of file lngmisc.cxx.
References aBuf, CH_TXTATR_INWORD, GetNumControlChars(), i, IsControlChar(), and n.