1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
13 #include <formulalogger.hxx>
18 namespace sc
{ struct FormulaGroupContext
; }
20 class ScGroupTokenConverter
22 ScTokenArray
& mrGroupTokens
;
24 std::shared_ptr
<sc::FormulaGroupContext
> mxFormulaGroupContext
;
25 const ScFormulaCell
& mrCell
;
26 const ScAddress
& mrPos
;
28 bool isSelfReferenceRelative(const ScAddress
& rRefPos
, SCROW nRelRow
);
29 bool isSelfReferenceAbsolute(const ScAddress
& rRefPos
);
30 SCROW
trimLength(SCTAB nTab
, SCCOL nCol1
, SCCOL nCol2
, SCROW nRow
, SCROW nRowLen
);
33 ScGroupTokenConverter(ScTokenArray
& rGroupTokens
, ScDocument
& rDoc
, const ScFormulaCell
& rCell
, const ScAddress
& rPos
);
35 bool convert( const ScTokenArray
& rCode
, sc::FormulaLogger::GroupScope
& rScope
);
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */