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/.
10 #ifndef INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
11 #define INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
13 #include "document.hxx"
14 #include "formulacell.hxx"
16 #include "tokenarray.hxx"
19 class SC_DLLPUBLIC ScGroupTokenConverter
21 ScTokenArray
& mrGroupTokens
;
23 ScFormulaCell
& mrCell
;
24 const ScAddress
& mrPos
;
26 bool isSelfReferenceRelative(const ScAddress
& rRefPos
, SCROW nRelRow
);
27 bool isSelfReferenceAbsolute(const ScAddress
& rRefPos
);
28 SCROW
trimLength(SCTAB nTab
, SCCOL nCol1
, SCCOL nCol2
, SCROW nRow
, SCROW nRowLen
);
31 ScGroupTokenConverter(ScTokenArray
& rGroupTokens
, ScDocument
& rDoc
, ScFormulaCell
& rCell
, const ScAddress
& rPos
);
33 bool convert(ScTokenArray
& rCode
, std::vector
<ScTokenArray
*>& rConversionStack
);
36 #endif // INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */