LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Public Attributes | List of all members
sc::TokenStringContext Struct Reference

Context for creating string from an array of formula tokens, used in ScTokenArray::CreateString(). More...

#include <tokenstringcontext.hxx>

Collaboration diagram for sc::TokenStringContext:
[legend]

Public Types

typedef std::unordered_map< sal_uInt16, OUString > IndexNameMapType
 
typedef std::unordered_map< size_t, std::vector< OUString > > IndexNamesMapType
 
typedef std::unordered_map< SCTAB, IndexNameMapTypeTabIndexMapType
 

Public Member Functions

 TokenStringContext (const ScDocument &rDoc, formula::FormulaGrammar::Grammar eGram)
 

Public Attributes

formula::FormulaGrammar::Grammar meGram
 
formula::FormulaCompiler::OpCodeMapPtr mxOpCodeMap
 
const ScCompiler::ConventionmpRefConv
 
OUString maErrRef
 
std::vector< OUString > maTabNames
 
IndexNameMapType maGlobalRangeNames
 
TabIndexMapType maSheetRangeNames
 
IndexNameMapType maNamedDBs
 
std::vector< OUString > maExternalFileNames
 
IndexNamesMapType maExternalCachedTabNames
 

Detailed Description

Context for creating string from an array of formula tokens, used in ScTokenArray::CreateString().

You can re-use the same string context between multiple CreateString() calls as long as the document content is unmodified.

Definition at line 26 of file tokenstringcontext.hxx.

Member Typedef Documentation

◆ IndexNameMapType

typedef std::unordered_map<sal_uInt16, OUString> sc::TokenStringContext::IndexNameMapType

Definition at line 28 of file tokenstringcontext.hxx.

◆ IndexNamesMapType

typedef std::unordered_map<size_t, std::vector<OUString> > sc::TokenStringContext::IndexNamesMapType

Definition at line 29 of file tokenstringcontext.hxx.

◆ TabIndexMapType

Definition at line 30 of file tokenstringcontext.hxx.

Constructor & Destructor Documentation

◆ TokenStringContext()

sc::TokenStringContext::TokenStringContext ( const ScDocument rDoc,
formula::FormulaGrammar::Grammar  eGram 
)

Member Data Documentation

◆ maErrRef

OUString sc::TokenStringContext::maErrRef

Definition at line 35 of file tokenstringcontext.hxx.

Referenced by TokenStringContext().

◆ maExternalCachedTabNames

IndexNamesMapType sc::TokenStringContext::maExternalCachedTabNames

Definition at line 43 of file tokenstringcontext.hxx.

Referenced by TokenStringContext().

◆ maExternalFileNames

std::vector<OUString> sc::TokenStringContext::maExternalFileNames

Definition at line 42 of file tokenstringcontext.hxx.

Referenced by TokenStringContext().

◆ maGlobalRangeNames

IndexNameMapType sc::TokenStringContext::maGlobalRangeNames

Definition at line 38 of file tokenstringcontext.hxx.

Referenced by TokenStringContext().

◆ maNamedDBs

IndexNameMapType sc::TokenStringContext::maNamedDBs

Definition at line 40 of file tokenstringcontext.hxx.

Referenced by TokenStringContext().

◆ maSheetRangeNames

TabIndexMapType sc::TokenStringContext::maSheetRangeNames

Definition at line 39 of file tokenstringcontext.hxx.

Referenced by TokenStringContext().

◆ maTabNames

std::vector<OUString> sc::TokenStringContext::maTabNames

Definition at line 37 of file tokenstringcontext.hxx.

Referenced by TokenStringContext().

◆ meGram

formula::FormulaGrammar::Grammar sc::TokenStringContext::meGram

Definition at line 32 of file tokenstringcontext.hxx.

◆ mpRefConv

const ScCompiler::Convention* sc::TokenStringContext::mpRefConv

Definition at line 34 of file tokenstringcontext.hxx.

◆ mxOpCodeMap

formula::FormulaCompiler::OpCodeMapPtr sc::TokenStringContext::mxOpCodeMap

Definition at line 33 of file tokenstringcontext.hxx.

Referenced by ScTokenArray::CreateString(), and TokenStringContext().


The documentation for this struct was generated from the following files: