LibreOffice Module sc (master) 1
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
SpellCheckContext::SpellCheckCache Class Reference
Collaboration diagram for SpellCheckContext::SpellCheckCache:
[legend]

Classes

struct  CellPos
 

Public Member Functions

 SpellCheckCache (LanguageType eDefaultCellLanguage)
 
bool query (SCCOL nCol, SCROW nRow, const ScRefCellValue &rCell, MisspellType *&rpRanges) const
 
void set (SCCOL nCol, SCROW nRow, const ScRefCellValue &rCell, std::unique_ptr< MisspellType > pRanges)
 
LanguageType getLanguage (SCCOL nCol, SCROW nRow) const
 
void setLanguage (LanguageType eCellLang, SCCOL nCol, SCROW nRow)
 
void clear (LanguageType eDefaultCellLanguage)
 
void clearEditTextMap ()
 

Private Types

typedef std::vector< editeng::MisspellRangesMisspellType
 
typedef std::unordered_map< CellPos, std::unique_ptr< MisspellType >, CellPos::HashCellMapType
 
typedef std::unordered_map< const rtl_uString *, std::unique_ptr< MisspellType > > SharedStringMapType
 
typedef std::unordered_map< CellPos, LanguageType, CellPos::HashCellLangMapType
 

Private Attributes

SharedStringMapType maStringMisspells
 
CellMapType maEditTextMisspells
 
CellLangMapType maCellLanguages
 
LanguageType meDefCellLanguage
 

Detailed Description

Definition at line 32 of file spellcheckcontext.cxx.

Member Typedef Documentation

◆ CellLangMapType

Definition at line 62 of file spellcheckcontext.cxx.

◆ CellMapType

typedef std::unordered_map<CellPos, std::unique_ptr<MisspellType>, CellPos::Hash> SpellCheckContext::SpellCheckCache::CellMapType
private

Definition at line 60 of file spellcheckcontext.cxx.

◆ MisspellType

Definition at line 59 of file spellcheckcontext.cxx.

◆ SharedStringMapType

typedef std::unordered_map<const rtl_uString*, std::unique_ptr<MisspellType> > SpellCheckContext::SpellCheckCache::SharedStringMapType
private

Definition at line 61 of file spellcheckcontext.cxx.

Constructor & Destructor Documentation

◆ SpellCheckCache()

SpellCheckContext::SpellCheckCache::SpellCheckCache ( LanguageType  eDefaultCellLanguage)
inline

Definition at line 71 of file spellcheckcontext.cxx.

Member Function Documentation

◆ clear()

void SpellCheckContext::SpellCheckCache::clear ( LanguageType  eDefaultCellLanguage)
inline

◆ clearEditTextMap()

void SpellCheckContext::SpellCheckCache::clearEditTextMap ( )
inline

Definition at line 136 of file spellcheckcontext.cxx.

References maEditTextMisspells.

◆ getLanguage()

LanguageType SpellCheckContext::SpellCheckCache::getLanguage ( SCCOL  nCol,
SCROW  nRow 
) const
inline

Definition at line 111 of file spellcheckcontext.cxx.

References maCellLanguages, and meDefCellLanguage.

◆ query()

bool SpellCheckContext::SpellCheckCache::query ( SCCOL  nCol,
SCROW  nRow,
const ScRefCellValue rCell,
MisspellType *&  rpRanges 
) const
inline

◆ set()

void SpellCheckContext::SpellCheckCache::set ( SCCOL  nCol,
SCROW  nRow,
const ScRefCellValue rCell,
std::unique_ptr< MisspellType pRanges 
)
inline

◆ setLanguage()

void SpellCheckContext::SpellCheckCache::setLanguage ( LanguageType  eCellLang,
SCCOL  nCol,
SCROW  nRow 
)
inline

Definition at line 120 of file spellcheckcontext.cxx.

References maCellLanguages, and meDefCellLanguage.

Member Data Documentation

◆ maCellLanguages

CellLangMapType SpellCheckContext::SpellCheckCache::maCellLanguages
private

Definition at line 66 of file spellcheckcontext.cxx.

Referenced by clear(), getLanguage(), and setLanguage().

◆ maEditTextMisspells

CellMapType SpellCheckContext::SpellCheckCache::maEditTextMisspells
private

Definition at line 65 of file spellcheckcontext.cxx.

Referenced by clear(), clearEditTextMap(), query(), and set().

◆ maStringMisspells

SharedStringMapType SpellCheckContext::SpellCheckCache::maStringMisspells
private

Definition at line 64 of file spellcheckcontext.cxx.

Referenced by clear(), query(), and set().

◆ meDefCellLanguage

LanguageType SpellCheckContext::SpellCheckCache::meDefCellLanguage
private

Definition at line 67 of file spellcheckcontext.cxx.

Referenced by clear(), getLanguage(), and setLanguage().


The documentation for this class was generated from the following file: