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 #ifndef INCLUDED_SC_INC_TOKENSTRINGCONTEXT_HXX
11 #define INCLUDED_SC_INC_TOKENSTRINGCONTEXT_HXX
12 
13 #include "compiler.hxx"
14 
15 #include <unordered_map>
16 
17 class ScDocument;
18 
19 namespace sc {
20 
28 {
29  typedef std::unordered_map<sal_uInt16, OUString> IndexNameMapType;
30  typedef std::unordered_map<size_t, std::vector<OUString> > IndexNamesMapType;
31  typedef std::unordered_map<SCTAB, IndexNameMapType> TabIndexMapType;
32 
36  OUString maErrRef;
37 
38  std::vector<OUString> maTabNames;
39  IndexNameMapType maGlobalRangeNames;
40  TabIndexMapType maSheetRangeNames;
41  IndexNameMapType maNamedDBs;
42 
43  std::vector<OUString> maExternalFileNames;
44  IndexNamesMapType maExternalCachedTabNames;
45 
47 };
48 
50 {
53  std::vector<OUString> maTabNames;
54 
55  void updateTabNames();
56 
57 public:
60 
61  formula::FormulaGrammar::Grammar getGrammar() const { return meGram;}
62  void setGrammar( formula::FormulaGrammar::Grammar eGram );
63 
64  const std::vector<OUString>& getTabNames() const { return maTabNames;}
65 
66  ScDocument* getDoc() { return mpDoc;}
67 };
68 
69 }
70 
71 #endif
72 
73 /* 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:28
std::unordered_map< size_t, std::vector< OUString > > IndexNamesMapType