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#pragma once
11
12#include <types.hxx>
13#include <formulalogger.hxx>
14
15class ScDocument;
16class ScFormulaCell;
17class ScTokenArray;
18namespace sc { struct FormulaGroupContext; }
19
21{
24 std::shared_ptr<sc::FormulaGroupContext> mxFormulaGroupContext;
27
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);
31
32public:
33 ScGroupTokenConverter(ScTokenArray& rGroupTokens, ScDocument& rDoc, const ScFormulaCell& rCell, const ScAddress& rPos);
34
35 bool convert( const ScTokenArray& rCode, sc::FormulaLogger::GroupScope& rScope );
36};
37
38/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SCROW trimLength(SCTAB nTab, SCCOL nCol1, SCCOL nCol2, SCROW nRow, SCROW nRowLen)
bool convert(const ScTokenArray &rCode, sc::FormulaLogger::GroupScope &rScope)
bool isSelfReferenceAbsolute(const ScAddress &rRefPos)
ScGroupTokenConverter(ScTokenArray &rGroupTokens, ScDocument &rDoc, const ScFormulaCell &rCell, const ScAddress &rPos)
bool isSelfReferenceRelative(const ScAddress &rRefPos, SCROW nRelRow)
const ScFormulaCell & mrCell
std::shared_ptr< sc::FormulaGroupContext > mxFormulaGroupContext
CAUTION! The following defines must be in the same namespace as the respective type.
sal_Int16 SCTAB
Definition: types.hxx:22
sal_Int16 SCCOL
Definition: types.hxx:21
sal_Int32 SCROW
Definition: types.hxx:17