LibreOffice Module sc (master) 1
tokenstringcontext.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include "compiler.hxx"
13
14#include <unordered_map>
15
16class ScDocument;
17
18namespace sc
19{
27{
28 typedef std::unordered_map<sal_uInt16, OUString> IndexNameMapType;
29 typedef std::unordered_map<size_t, std::vector<OUString>> IndexNamesMapType;
30 typedef std::unordered_map<SCTAB, IndexNameMapType> TabIndexMapType;
31
35 OUString maErrRef;
36
37 std::vector<OUString> maTabNames;
41
42 std::vector<OUString> maExternalFileNames;
44
46};
47
49{
52 std::vector<OUString> maTabNames;
53
54 void updateTabNames();
55
56public:
59
61 void setGrammar(formula::FormulaGrammar::Grammar eGram);
62
63 const std::vector<OUString>& getTabNames() const { return maTabNames; }
64
65 ScDocument& getDoc() { return mrDoc; }
66};
67}
68
69/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::shared_ptr< const OpCodeMap > OpCodeMapPtr
formula::FormulaGrammar::Grammar meGram
std::vector< OUString > maTabNames
const std::vector< OUString > & getTabNames() const
formula::FormulaGrammar::Grammar getGrammar() const
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
Context for creating string from an array of formula tokens, used in ScTokenArray::CreateString().
formula::FormulaCompiler::OpCodeMapPtr mxOpCodeMap
std::vector< OUString > maExternalFileNames
IndexNamesMapType maExternalCachedTabNames
TabIndexMapType maSheetRangeNames
const ScCompiler::Convention * mpRefConv
formula::FormulaGrammar::Grammar meGram
std::vector< OUString > maTabNames
std::unordered_map< SCTAB, IndexNameMapType > TabIndexMapType
IndexNameMapType maGlobalRangeNames
std::unordered_map< sal_uInt16, OUString > IndexNameMapType
std::unordered_map< size_t, std::vector< OUString > > IndexNamesMapType