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

Definition at line 62 of file spellcheckcontext.cxx.

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

Definition at line 60 of file spellcheckcontext.cxx.

Definition at line 59 of file spellcheckcontext.cxx.

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

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

Definition at line 71 of file spellcheckcontext.cxx.

Member Function Documentation

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

Definition at line 128 of file spellcheckcontext.cxx.

void SpellCheckContext::SpellCheckCache::clearEditTextMap ( )
inline

Definition at line 136 of file spellcheckcontext.cxx.

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

Definition at line 111 of file spellcheckcontext.cxx.

bool SpellCheckContext::SpellCheckCache::query ( SCCOL  nCol,
SCROW  nRow,
const ScRefCellValue rCell,
MisspellType *&  rpRanges 
) const
inline
void SpellCheckContext::SpellCheckCache::set ( SCCOL  nCol,
SCROW  nRow,
const ScRefCellValue rCell,
std::unique_ptr< MisspellType pRanges 
)
inline
void SpellCheckContext::SpellCheckCache::setLanguage ( LanguageType  eCellLang,
SCCOL  nCol,
SCROW  nRow 
)
inline

Definition at line 120 of file spellcheckcontext.cxx.

Member Data Documentation

CellLangMapType SpellCheckContext::SpellCheckCache::maCellLanguages
private

Definition at line 66 of file spellcheckcontext.cxx.

CellMapType SpellCheckContext::SpellCheckCache::maEditTextMisspells
private

Definition at line 65 of file spellcheckcontext.cxx.

SharedStringMapType SpellCheckContext::SpellCheckCache::maStringMisspells
private

Definition at line 64 of file spellcheckcontext.cxx.

LanguageType SpellCheckContext::SpellCheckCache::meDefCellLanguage
private

Definition at line 67 of file spellcheckcontext.cxx.


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