LibreOffice Module sc (master) 1
|
#include <interpretercontext.hxx>
Public Member Functions | |
ScInterpreterContext (const ScDocument &rDoc, SvNumberFormatter *pFormatter) | |
ScInterpreterContext ()=delete | |
~ScInterpreterContext () | |
SvNumberFormatter * | GetFormatTable () const |
SvNumFormatType | GetNumberFormatType (sal_uInt32 nFIndex) const |
Public Attributes | |
const ScDocument * | mpDoc |
size_t | mnTokenCachePos |
std::vector< formula::FormulaToken * > | maTokens |
std::vector< DelayedSetNumberFormat > | maDelayedSetNumberFormat |
std::unique_ptr< ScLookupCacheMap > | mxScLookupCache |
std::vector< sal_uInt8 > | maConditions |
ScInterpreter * | pInterpreter |
Private Member Functions | |
void | ResetTokens () |
void | SetDocAndFormatter (const ScDocument &rDoc, SvNumberFormatter *pFormatter) |
void | Cleanup () |
void | ClearLookupCache (const ScDocument *pDoc) |
void | initFormatTable () |
Private Attributes | |
SvNumberFormatter * | mpFormatter |
NFIndexAndFmtType | maNFTypeCache |
Friends | |
class | ScInterpreterContextPool |
Definition at line 53 of file interpretercontext.hxx.
ScInterpreterContext::ScInterpreterContext | ( | const ScDocument & | rDoc, |
SvNumberFormatter * | pFormatter | ||
) |
Definition at line 33 of file interpretercontext.cxx.
|
delete |
ScInterpreterContext::~ScInterpreterContext | ( | ) |
Definition at line 42 of file interpretercontext.cxx.
References ResetTokens().
|
private |
Definition at line 69 of file interpretercontext.cxx.
References maConditions, maDelayedSetNumberFormat, and ResetTokens().
|
private |
Definition at line 77 of file interpretercontext.cxx.
References mpDoc, and mxScLookupCache.
|
inline |
Definition at line 71 of file interpretercontext.hxx.
References initFormatTable(), and mpFormatter.
Referenced by ScQueryEvaluator::compareByValue(), ScTable::CopyStaticToDocument(), ScQueryEvaluator::getCellString(), ScModelObj::GetFormatter(), ScColumnData::GetNumberFormat(), ScColumn::GetString(), ScFormulaCell::InterpretFormulaGroupThreading(), ScFormulaCell::InterpretTail(), ScDocument::RoundValueAsShown(), and ScSortedRangeCache::ScSortedRangeCache().
SvNumFormatType ScInterpreterContext::GetNumberFormatType | ( | sal_uInt32 | nFIndex | ) | const |
Definition at line 83 of file interpretercontext.cxx.
References NFIndexAndFmtType::bIsValid, NFIndexAndFmtType::eType, SvNumberFormatter::GetType(), ScDocument::IsThreadedGroupCalcInProgress(), maNFTypeCache, mpDoc, mpFormatter, and NFIndexAndFmtType::nIndex.
Referenced by ScInterpreter::GetCellValueOrZero(), ScValueIterator::GetCurNumFmtInfo(), ScDocument::GetNumberFormatInfo(), and ScInterpreter::IterateParameters().
|
private |
Definition at line 64 of file interpretercontext.cxx.
References ScDocument::GetFormatTable(), mpDoc, and mpFormatter.
Referenced by GetFormatTable().
|
private |
Definition at line 44 of file interpretercontext.cxx.
References maTokens, mnTokenCachePos, and p.
Referenced by Cleanup(), and ~ScInterpreterContext().
|
private |
Definition at line 54 of file interpretercontext.cxx.
References mpDoc, mpFormatter, and mxScLookupCache.
|
friend |
Definition at line 81 of file interpretercontext.hxx.
std::vector<sal_uInt8> ScInterpreterContext::maConditions |
Definition at line 62 of file interpretercontext.hxx.
Referenced by Cleanup(), and ScInterpreter::IterateParametersIfs().
std::vector<DelayedSetNumberFormat> ScInterpreterContext::maDelayedSetNumberFormat |
Definition at line 58 of file interpretercontext.hxx.
Referenced by Cleanup(), ScDocument::HandleStuffAfterParallelCalculation(), ScFormulaCell::InterpretTail(), and ScDocument::MergeContextBackIntoNonThreadedContext().
|
mutableprivate |
Definition at line 88 of file interpretercontext.hxx.
Referenced by GetNumberFormatType().
std::vector<formula::FormulaToken*> ScInterpreterContext::maTokens |
Definition at line 57 of file interpretercontext.hxx.
Referenced by ScInterpreter::CreateFormulaDoubleToken(), and ResetTokens().
size_t ScInterpreterContext::mnTokenCachePos |
Definition at line 56 of file interpretercontext.hxx.
Referenced by ScInterpreter::CreateFormulaDoubleToken(), and ResetTokens().
const ScDocument* ScInterpreterContext::mpDoc |
Definition at line 55 of file interpretercontext.hxx.
Referenced by ClearLookupCache(), GetNumberFormatType(), initFormatTable(), and SetDocAndFormatter().
|
private |
Definition at line 87 of file interpretercontext.hxx.
Referenced by GetFormatTable(), GetNumberFormatType(), initFormatTable(), and SetDocAndFormatter().
std::unique_ptr<ScLookupCacheMap> ScInterpreterContext::mxScLookupCache |
Definition at line 59 of file interpretercontext.hxx.
Referenced by ClearLookupCache(), ScDocument::ClearLookupCaches(), ScDocument::GetLookupCache(), and SetDocAndFormatter().
ScInterpreter* ScInterpreterContext::pInterpreter |
Definition at line 63 of file interpretercontext.hxx.
Referenced by ScFormulaCell::InterpretFormulaGroupThreading(), and ScFormulaCell::InterpretTail().