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

Classes

class  AppExitListener
 
class  FlushListener
 
class  HyphenatedWord
 
class  IntArray2D
 
struct  LinguMutex
 
class  Meaning
 
class  PossibleHyphens
 
class  PropertyChgHelper
 
class  PropertyHelper_Hyphen
 
class  PropertyHelper_Hyphenation
 
class  PropertyHelper_Spell
 
class  PropertyHelper_Spelling
 
class  PropertyHelper_Thes
 
class  PropertyHelper_Thesaurus
 
class  SpellAlternatives
 
class  SpellCache
 

Typedefs

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

Enumerations

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

Functions

sal_Int32 GetNumControlChars (const OUString &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 ()
 
const LocaleDataWrapperGetLocaleDataWrapper (LanguageType nLang)
 
LanguageType LinguLocaleToLanguage (const css::lang::Locale &rLocale)
 
css::lang::Locale LinguLanguageToLocale (LanguageType nLanguage)
 
bool LinguIsUnspecified (LanguageType nLanguage)
 
bool LinguIsUnspecified (const OUString &rBcp47)
 
static sal_Int32 Minimum (sal_Int32 n1, sal_Int32 n2, sal_Int32 n3)
 
sal_Int32 LevDistance (const OUString &rTxt1, const OUString &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 (const OUString &rOrigWord, sal_Int16 nPos)
 
sal_Int32 GetPosInWordToCheck (const OUString &rTxt, sal_Int32 nPos)
 
uno::Reference< XHyphenatedWord > RebuildHyphensAndControlChars (const OUString &rOrigWord, uno::Reference< XHyphenatedWord > const &rxHyphWord)
 
static CharClasslcl_GetCharClass ()
 
static osl::Mutex & lcl_GetCharClassMutex ()
 
bool IsUpper (const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, LanguageType nLanguage)
 
CapType capitalType (const OUString &aTerm, CharClass const *pCC)
 
OUString ToLower (const OUString &rText, LanguageType nLanguage)
 
bool HasDigits (const OUString &rText)
 
bool IsNumeric (const OUString &rText)
 
uno::Reference< XLinguProperties > GetLinguProperties ()
 
uno::Reference< XSearchableDictionaryList > GetDictionaryList ()
 
uno::Reference< XDictionary > GetIgnoreAllList ()
 
bool FileExists (const OUString &rMainURL)
 
static std::vector< OUString > GetMultiPaths_Impl (const OUString &rPathPrefix, DictionaryPathFlags nPathFlags)
 
OUString GetDictionaryWriteablePath ()
 
std::vector< OUString > GetDictionaryPaths ()
 
OUString GetWritableDictionaryURL (const OUString &rDicName)
 
static bool SeqHasEntry (const std::vector< OUString > &rSeq, const OUString &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)
 
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

const char * pPropName
 
sal_Int32 nPropHdl
 
static const struct linguistic:: { ... }  aFlushProperties [NUM_FLUSH_PROPS]
 
static const char * aCH []
 
static const int nCHCount
 
static const char * aSP []
 
static const char * aHP []
 
static const sal_uInt32 the_aDigitZeroes []