LibreOffice Module sc (master)  1
grouptokenconverter.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_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
11 #define INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
12 
13 #include <types.hxx>
14 #include <formulalogger.hxx>
15 
16 class ScDocument;
17 class ScFormulaCell;
18 class ScTokenArray;
19 namespace sc { struct FormulaGroupContext; }
20 
22 {
25  std::shared_ptr<sc::FormulaGroupContext> mxFormulaGroupContext;
27  const ScAddress& mrPos;
28 
29  bool isSelfReferenceRelative(const ScAddress& rRefPos, SCROW nRelRow);
30  bool isSelfReferenceAbsolute(const ScAddress& rRefPos);
31  SCROW trimLength(SCTAB nTab, SCCOL nCol1, SCCOL nCol2, SCROW nRow, SCROW nRowLen);
32 
33 public:
34  ScGroupTokenConverter(ScTokenArray& rGroupTokens, ScDocument& rDoc, const ScFormulaCell& rCell, const ScAddress& rPos);
35 
36  bool convert( const ScTokenArray& rCode, sc::FormulaLogger::GroupScope& rScope );
37 };
38 
39 #endif // INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
40 
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScGroupTokenConverter(ScTokenArray &rGroupTokens, ScDocument &rDoc, const ScFormulaCell &rCell, const ScAddress &rPos)
std::shared_ptr< sc::FormulaGroupContext > mxFormulaGroupContext
bool isSelfReferenceRelative(const ScAddress &rRefPos, SCROW nRelRow)
bool convert(const ScTokenArray &rCode, sc::FormulaLogger::GroupScope &rScope)
sal_Int16 SCCOL
Definition: types.hxx:22
sal_Int32 SCROW
Definition: types.hxx:18
bool isSelfReferenceAbsolute(const ScAddress &rRefPos)
SCROW trimLength(SCTAB nTab, SCCOL nCol1, SCCOL nCol2, SCROW nRow, SCROW nRowLen)
const ScFormulaCell & mrCell
sal_Int16 SCTAB
Definition: types.hxx:23