11#include <compiler.hxx>
12#include <document.hxx>
26 for (
auto const& it : rNames)
29 rMap.emplace(
pData->GetIndex(),
pData->GetName());
37 mpRefConv(
ScCompiler::GetRefConvention(
formula::FormulaGrammar::extractRefConvention(eGram)))
45 assert(!
"TokenStringContext - no OpCodeMap?!?");
65 for (
const auto& [nTab, pSheetNames] : aTabRangeNames)
71 insertAllNames(aNames, *pSheetNames);
81 for (
const auto& rxNamedDB : rNamedDBs)
96 sal_uInt16 nFileId =
static_cast<sal_uInt16
>(
i);
97 std::vector<OUString> aTabNames;
99 if (!aTabNames.empty())
105 mrDoc(rDoc), meGram(rDoc.GetGrammar())
111 mrDoc(rDoc), meGram(eGram)
128 bool bUpdate = (
meGram != eGram);
static void CheckTabQuotes(OUString &aTabName, const formula::FormulaGrammar::AddressConvention eConv=formula::FormulaGrammar::CONV_OOO)
all
Stores global named database ranges.
const OUString & GetName() const
sal_uInt16 GetIndex() const
SC_DLLPUBLIC std::vector< OUString > GetAllTableNames() const
SC_DLLPUBLIC ScExternalRefManager * GetExternalRefManager() const
SC_DLLPUBLIC void GetAllTabRangeNames(ScRangeName::TabNameCopyMap &rRangeNames) const
Get all range names that are local to each table.
SC_DLLPUBLIC ScDBCollection * GetDBCollection() const
SC_DLLPUBLIC ScRangeName * GetRangeName(SCTAB nTab) const
bool HasExternalRefManager() const
void getAllCachedTableNames(sal_uInt16 nFileId, ::std::vector< OUString > &rTabNames) const
Returns a vector containing all (real) table names and cache tables of the specified file.
std::vector< OUString > getAllCachedExternalFileNames() const
Get all cached external file names as an array.
::std::map< SCTAB, const ScRangeName * > TabNameCopyMap
Map that stores non-managed pointers to ScRangeName instances.
CompileFormulaContext(ScDocument &rDoc)
formula::FormulaGrammar::Grammar meGram
std::vector< OUString > maTabNames
void setGrammar(formula::FormulaGrammar::Grammar eGram)
std::unique_ptr< sal_Int32[]> pData
CAUTION! The following defines must be in the same namespace as the respective type.
OUString ScResId(TranslateId aId)
formula::FormulaCompiler::OpCodeMapPtr mxOpCodeMap
std::vector< OUString > maExternalFileNames
TokenStringContext(const ScDocument &rDoc, formula::FormulaGrammar::Grammar eGram)
IndexNamesMapType maExternalCachedTabNames
TabIndexMapType maSheetRangeNames
std::vector< OUString > maTabNames
IndexNameMapType maGlobalRangeNames
IndexNameMapType maNamedDBs
std::unordered_map< sal_uInt16, OUString > IndexNameMapType