LibreOffice Module sc (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
#ifndef INCLUDED_SC_GROUPAREALISTENER_HXX
11
#define INCLUDED_SC_GROUPAREALISTENER_HXX
12
13
#include "
address.hxx
"
14
15
#include <
svl/listener.hxx
>
16
17
#include <vector>
18
19
class
ScFormulaCell
;
20
class
ScDocument
;
21
class
ScColumn
;
22
23
namespace
sc
{
24
25
class
BulkDataHint;
26
27
class
FormulaGroupAreaListener
final :
public
SvtListener
28
{
29
ScRange
maRange
;
30
const
ScDocument
&
mrDocument
;
31
const
ScColumn
*
mpColumn
;
32
SCROW
mnTopCellRow
;
33
SCROW
mnGroupLen
;
34
bool
mbStartFixed
;
35
bool
mbEndFixed
;
36
37
public
:
38
39
FormulaGroupAreaListener
() =
delete
;
40
FormulaGroupAreaListener
(
const
ScRange
& rRange,
const
ScDocument
& rDocument,
41
const
ScAddress
& rTopCellPos,
SCROW
nGroupLen,
bool
bStartFixed,
bool
bEndFixed );
42
43
virtual
~FormulaGroupAreaListener
()
override
;
44
45
ScRange
getListeningRange
()
const
;
46
47
virtual
void
Notify
(
const
SfxHint
& rHint )
override
;
48
virtual
void
Query
( QueryBase& rQuery )
const override
;
49
61
void
collectFormulaCells
(
SCTAB
nTab,
SCCOL
nCol,
SCROW
nRow1,
SCROW
nRow2, std::vector<ScFormulaCell*>& rCells )
const
;
62
void
collectFormulaCells
(
SCROW
nRow1,
SCROW
nRow2, std::vector<ScFormulaCell*>& rCells )
const
;
63
64
private
:
65
void
notifyCellChange
(
const
SfxHint
& rHint,
const
ScAddress
& rPos );
66
void
notifyBulkChange
(
const
BulkDataHint
& rHint );
67
const
ScFormulaCell
*
getTopCell
()
const
;
68
};
69
70
}
71
72
#endif
73
74
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc::FormulaGroupAreaListener::mnTopCellRow
SCROW mnTopCellRow
Definition:
grouparealistener.hxx:32
sc::FormulaGroupAreaListener::getTopCell
const ScFormulaCell * getTopCell() const
Definition:
grouparealistener.cxx:329
ScFormulaCell
Definition:
formulacell.hxx:107
sc::FormulaGroupAreaListener::FormulaGroupAreaListener
FormulaGroupAreaListener()=delete
sc::FormulaGroupAreaListener::Notify
virtual void Notify(const SfxHint &rHint) override
Definition:
grouparealistener.cxx:112
ScRange
Definition:
address.hxx:497
sc::FormulaGroupAreaListener::mrDocument
const ScDocument & mrDocument
Definition:
grouparealistener.hxx:30
sc::FormulaGroupAreaListener::mbStartFixed
bool mbStartFixed
Definition:
grouparealistener.hxx:34
sc::FormulaGroupAreaListener::Query
virtual void Query(QueryBase &rQuery) const override
Definition:
grouparealistener.cxx:126
listener.hxx
ScColumn
Definition:
column.hxx:111
sc::FormulaGroupAreaListener::mnGroupLen
SCROW mnGroupLen
Definition:
grouparealistener.hxx:33
address.hxx
SfxHint
SCCOL
sal_Int16 SCCOL
Definition:
types.hxx:22
sc
Definition:
celltextattr.cxx:13
sc::FormulaGroupAreaListener::mbEndFixed
bool mbEndFixed
Definition:
grouparealistener.hxx:35
sc::FormulaGroupAreaListener::getListeningRange
ScRange getListeningRange() const
Definition:
grouparealistener.cxx:104
sc::FormulaGroupAreaListener::maRange
ScRange maRange
Definition:
grouparealistener.hxx:29
sc::FormulaGroupAreaListener
Definition:
grouparealistener.hxx:27
sc::FormulaGroupAreaListener::mpColumn
const ScColumn * mpColumn
Definition:
grouparealistener.hxx:31
sc::FormulaGroupAreaListener::notifyBulkChange
void notifyBulkChange(const BulkDataHint &rHint)
Definition:
grouparealistener.cxx:144
ScAddress
Definition:
address.hxx:194
SCROW
sal_Int32 SCROW
Definition:
types.hxx:18
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:161
sc::FormulaGroupAreaListener::~FormulaGroupAreaListener
virtual ~FormulaGroupAreaListener() override
Definition:
grouparealistener.cxx:98
SvtListener
ScDocument
Definition:
document.hxx:313
sc::FormulaGroupAreaListener::notifyCellChange
void notifyCellChange(const SfxHint &rHint, const ScAddress &rPos)
Definition:
grouparealistener.cxx:337
SCTAB
sal_Int16 SCTAB
Definition:
types.hxx:23
sc::BulkDataHint
Definition:
bulkdatahint.hxx:22
Generated on Sat Feb 27 2021 02:37:36 for LibreOffice Module sc (master) by
1.8.10