LibreOffice Module sc (master)
1
sc
inc
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
18
class
ScFormulaCell
;
19
class
ScDocument
;
20
class
ScColumn
;
21
22
namespace
sc
{
23
24
class
BulkDataHint;
25
26
class
FormulaGroupAreaListener
final :
public
SvtListener
27
{
28
ScRange
maRange
;
29
const
ScDocument
&
mrDocument
;
30
const
ScColumn
*
mpColumn
;
31
SCROW
mnTopCellRow
;
32
SCROW
mnGroupLen
;
33
bool
mbStartFixed
;
34
bool
mbEndFixed
;
35
36
public
:
37
38
FormulaGroupAreaListener
() =
delete
;
39
FormulaGroupAreaListener
(
const
ScRange
& rRange,
const
ScDocument
& rDocument,
40
const
ScAddress
& rTopCellPos,
SCROW
nGroupLen,
bool
bStartFixed,
bool
bEndFixed );
41
42
virtual
~FormulaGroupAreaListener
()
override
;
43
44
ScRange
getListeningRange
()
const
;
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
63
const
ScFormulaCell
*
getTopCell
()
const
;
64
65
private
:
66
void
notifyCellChange
(
const
SfxHint
& rHint,
const
ScAddress
& rPos,
SCROW
nNumRows );
67
void
notifyBulkChange
(
const
BulkDataHint
& rHint );
68
};
69
70
}
71
72
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
address.hxx
ScAddress
Definition:
address.hxx:207
ScColumn
Definition:
column.hxx:182
ScDocument
Definition:
document.hxx:323
ScFormulaCell
Definition:
formulacell.hxx:121
ScRange
Definition:
address.hxx:495
SfxHint
SvtListener
sc::BulkDataHint
Definition:
bulkdatahint.hxx:21
sc::FormulaGroupAreaListener
Definition:
grouparealistener.hxx:27
sc::FormulaGroupAreaListener::mrDocument
const ScDocument & mrDocument
Definition:
grouparealistener.hxx:29
sc::FormulaGroupAreaListener::mpColumn
const ScColumn * mpColumn
Definition:
grouparealistener.hxx:30
sc::FormulaGroupAreaListener::notifyCellChange
void notifyCellChange(const SfxHint &rHint, const ScAddress &rPos, SCROW nNumRows)
Definition:
grouparealistener.cxx:342
sc::FormulaGroupAreaListener::mbEndFixed
bool mbEndFixed
Definition:
grouparealistener.hxx:34
sc::FormulaGroupAreaListener::getTopCell
const ScFormulaCell * getTopCell() const
Definition:
grouparealistener.cxx:334
sc::FormulaGroupAreaListener::getListeningRange
ScRange getListeningRange() const
Definition:
grouparealistener.cxx:110
sc::FormulaGroupAreaListener::FormulaGroupAreaListener
FormulaGroupAreaListener()=delete
sc::FormulaGroupAreaListener::mnTopCellRow
SCROW mnTopCellRow
Definition:
grouparealistener.hxx:31
sc::FormulaGroupAreaListener::Notify
virtual void Notify(const SfxHint &rHint) override
Definition:
grouparealistener.cxx:118
sc::FormulaGroupAreaListener::collectFormulaCells
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...
Definition:
grouparealistener.cxx:168
sc::FormulaGroupAreaListener::Query
virtual void Query(QueryBase &rQuery) const override
Definition:
grouparealistener.cxx:133
sc::FormulaGroupAreaListener::mnGroupLen
SCROW mnGroupLen
Definition:
grouparealistener.hxx:32
sc::FormulaGroupAreaListener::~FormulaGroupAreaListener
virtual ~FormulaGroupAreaListener() override
Definition:
grouparealistener.cxx:104
sc::FormulaGroupAreaListener::maRange
ScRange maRange
Definition:
grouparealistener.hxx:28
sc::FormulaGroupAreaListener::notifyBulkChange
void notifyBulkChange(const BulkDataHint &rHint)
Definition:
grouparealistener.cxx:151
sc::FormulaGroupAreaListener::mbStartFixed
bool mbStartFixed
Definition:
grouparealistener.hxx:33
listener.hxx
sc
CAUTION! The following defines must be in the same namespace as the respective type.
Definition:
broadcast.cxx:15
SCTAB
sal_Int16 SCTAB
Definition:
types.hxx:22
SCCOL
sal_Int16 SCCOL
Definition:
types.hxx:21
SCROW
sal_Int32 SCROW
Definition:
types.hxx:17
Generated on Sun Jul 30 2023 04:27:46 for LibreOffice Module sc (master) by
1.9.3