LibreOffice Module sc (master) 1
grouparealistener.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 "address.hxx"
13
14#include <svl/listener.hxx>
15
16#include <vector>
17
18class ScFormulaCell;
19class ScDocument;
20class ScColumn;
21
22namespace sc {
23
24class BulkDataHint;
25
27{
35
36public:
37
39 FormulaGroupAreaListener( const ScRange& rRange, const ScDocument& rDocument,
40 const ScAddress& rTopCellPos, SCROW nGroupLen, bool bStartFixed, bool bEndFixed );
41
42 virtual ~FormulaGroupAreaListener() override;
43
45
46 virtual void Notify( const SfxHint& rHint ) override;
47 virtual void Query( QueryBase& rQuery ) const override;
48
60 void collectFormulaCells( SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2, std::vector<ScFormulaCell*>& rCells ) const;
61 void collectFormulaCells( SCROW nRow1, SCROW nRow2, std::vector<ScFormulaCell*>& rCells ) const;
62
63private:
64 void notifyCellChange( const SfxHint& rHint, const ScAddress& rPos, SCROW nNumRows );
65 void notifyBulkChange( const BulkDataHint& rHint );
66 const ScFormulaCell* getTopCell() const;
67};
68
69}
70
71/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void notifyCellChange(const SfxHint &rHint, const ScAddress &rPos, SCROW nNumRows)
const ScFormulaCell * getTopCell() const
virtual void Notify(const SfxHint &rHint) override
void collectFormulaCells(SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2, std::vector< ScFormulaCell * > &rCells) const
Given the row span of changed cells within a single column, collect all formula cells that need to be...
virtual void Query(QueryBase &rQuery) const override
virtual ~FormulaGroupAreaListener() override
void notifyBulkChange(const BulkDataHint &rHint)
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