LibreOffice Module sc (master)  1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
sc::SpellCheckContext Class Reference

Class shared between grid windows to cache spelling results. More...

#include <spellcheckcontext.hxx>

Collaboration diagram for sc::SpellCheckContext:
[legend]

Classes

class  SpellCheckCache
 
struct  SpellCheckResult
 
struct  SpellCheckStatus
 

Public Member Functions

 SpellCheckContext (ScDocument *pDocument, SCTAB nTab)
 
 ~SpellCheckContext ()
 
void dispose ()
 
bool isMisspelled (SCCOL nCol, SCROW nRow) const
 
const std::vector< editeng::MisspellRanges > * getMisspellRanges (SCCOL nCol, SCROW nRow) const
 
void setMisspellRanges (SCCOL nCol, SCROW nRow, const std::vector< editeng::MisspellRanges > *pRanges)
 
void reset ()
 
void resetForContentChange ()
 
void setTabNo (SCTAB nTab)
 

Private Member Functions

void ensureResults (SCCOL nCol, SCROW nRow)
 
void resetCache (bool bContentChangeOnly=false)
 
void setup ()
 

Private Attributes

std::unique_ptr< SpellCheckCache > mpCache
 
std::unique_ptr< SpellCheckResultmpResult
 
ScDocumentpDoc
 
std::unique_ptr< ScTabEditEnginempEngine
 
std::unique_ptr< SpellCheckStatusmpStatus
 
SCTAB mnTab
 
LanguageType meLanguage
 

Detailed Description

Class shared between grid windows to cache spelling results.

Definition at line 28 of file spellcheckcontext.hxx.

Constructor & Destructor Documentation

sc::SpellCheckContext::SpellCheckContext ( ScDocument pDocument,
SCTAB  nTab 
)
sc::SpellCheckContext::~SpellCheckContext ( )

Member Function Documentation

void sc::SpellCheckContext::dispose ( )
void sc::SpellCheckContext::ensureResults ( SCCOL  nCol,
SCROW  nRow 
)
private
const std::vector<editeng::MisspellRanges>* sc::SpellCheckContext::getMisspellRanges ( SCCOL  nCol,
SCROW  nRow 
) const

Referenced by ScOutputData::DrawEdit().

bool sc::SpellCheckContext::isMisspelled ( SCCOL  nCol,
SCROW  nRow 
) const
void sc::SpellCheckContext::reset ( )
void sc::SpellCheckContext::resetCache ( bool  bContentChangeOnly = false)
private
void sc::SpellCheckContext::resetForContentChange ( )
void sc::SpellCheckContext::setMisspellRanges ( SCCOL  nCol,
SCROW  nRow,
const std::vector< editeng::MisspellRanges > *  pRanges 
)
void sc::SpellCheckContext::setTabNo ( SCTAB  nTab)
void sc::SpellCheckContext::setup ( )
private

Member Data Documentation

LanguageType sc::SpellCheckContext::meLanguage
private

Definition at line 40 of file spellcheckcontext.hxx.

SCTAB sc::SpellCheckContext::mnTab
private

Definition at line 39 of file spellcheckcontext.hxx.

std::unique_ptr<SpellCheckCache> sc::SpellCheckContext::mpCache
private

Definition at line 32 of file spellcheckcontext.hxx.

std::unique_ptr<ScTabEditEngine> sc::SpellCheckContext::mpEngine
private

Definition at line 37 of file spellcheckcontext.hxx.

std::unique_ptr<SpellCheckResult> sc::SpellCheckContext::mpResult
private

Definition at line 35 of file spellcheckcontext.hxx.

std::unique_ptr<SpellCheckStatus> sc::SpellCheckContext::mpStatus
private

Definition at line 38 of file spellcheckcontext.hxx.

ScDocument* sc::SpellCheckContext::pDoc
private

Definition at line 36 of file spellcheckcontext.hxx.


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