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 
16 class ScDocument;
17 
18 namespace 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;
38  IndexNameMapType maGlobalRangeNames;
39  TabIndexMapType maSheetRangeNames;
40  IndexNameMapType maNamedDBs;
41 
42  std::vector<OUString> maExternalFileNames;
43  IndexNamesMapType maExternalCachedTabNames;
44 
46 };
47 
49 {
52  std::vector<OUString> maTabNames;
53 
54  void updateTabNames();
55 
56 public:
59 
60  formula::FormulaGrammar::Grammar getGrammar() const { return meGram; }
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: */
formula::FormulaGrammar::Grammar meGram
formula::FormulaGrammar::Grammar meGram
std::vector< OUString > maTabNames
formula::FormulaCompiler::OpCodeMapPtr mxOpCodeMap
std::unordered_map< sal_uInt16, OUString > IndexNameMapType
std::vector< OUString > maTabNames
const ScCompiler::Convention * mpRefConv
const std::vector< OUString > & getTabNames() const
Context for creating string from an array of formula tokens, used in ScTokenArray::CreateString().
std::vector< OUString > maExternalFileNames
IndexNameMapType maGlobalRangeNames
std::unordered_map< SCTAB, IndexNameMapType > TabIndexMapType
TabIndexMapType maSheetRangeNames
IndexNamesMapType maExternalCachedTabNames
std::shared_ptr< const OpCodeMap > OpCodeMapPtr
formula::FormulaGrammar::Grammar getGrammar() const
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
std::unordered_map< size_t, std::vector< OUString > > IndexNamesMapType