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

◆ SpellCheckContext()

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

◆ ~SpellCheckContext()

sc::SpellCheckContext::~SpellCheckContext ( )

Member Function Documentation

◆ dispose()

void sc::SpellCheckContext::dispose ( )

◆ ensureResults()

void sc::SpellCheckContext::ensureResults ( SCCOL  nCol,
SCROW  nRow 
)
private

◆ getMisspellRanges()

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

Referenced by ScOutputData::DrawEdit().

◆ isMisspelled()

bool sc::SpellCheckContext::isMisspelled ( SCCOL  nCol,
SCROW  nRow 
) const

◆ reset()

void sc::SpellCheckContext::reset ( )

◆ resetCache()

void sc::SpellCheckContext::resetCache ( bool  bContentChangeOnly = false)
private

◆ resetForContentChange()

void sc::SpellCheckContext::resetForContentChange ( )

◆ setMisspellRanges()

void sc::SpellCheckContext::setMisspellRanges ( SCCOL  nCol,
SCROW  nRow,
const std::vector< editeng::MisspellRanges > *  pRanges 
)

◆ setTabNo()

void sc::SpellCheckContext::setTabNo ( SCTAB  nTab)

◆ setup()

void sc::SpellCheckContext::setup ( )
private

Member Data Documentation

◆ meLanguage

LanguageType sc::SpellCheckContext::meLanguage
private

Definition at line 40 of file spellcheckcontext.hxx.

◆ mnTab

SCTAB sc::SpellCheckContext::mnTab
private

Definition at line 39 of file spellcheckcontext.hxx.

◆ mpCache

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

Definition at line 34 of file spellcheckcontext.hxx.

◆ mpEngine

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

Definition at line 37 of file spellcheckcontext.hxx.

◆ mpResult

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

Definition at line 35 of file spellcheckcontext.hxx.

◆ mpStatus

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

Definition at line 38 of file spellcheckcontext.hxx.

◆ pDoc

ScDocument* sc::SpellCheckContext::pDoc
private

Definition at line 36 of file spellcheckcontext.hxx.


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