LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sc::FormulaGroupAreaListener Class Referencefinal

#include <grouparealistener.hxx>

Inheritance diagram for sc::FormulaGroupAreaListener:
[legend]
Collaboration diagram for sc::FormulaGroupAreaListener:
[legend]

Public Member Functions

 FormulaGroupAreaListener ()=delete
 
 FormulaGroupAreaListener (const ScRange &rRange, const ScDocument &rDocument, const ScAddress &rTopCellPos, SCROW nGroupLen, bool bStartFixed, bool bEndFixed)
 
virtual ~FormulaGroupAreaListener () override
 
ScRange getListeningRange () const
 
virtual void Notify (const SfxHint &rHint) override
 
virtual void Query (QueryBase &rQuery) const 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 notified of the change. More...
 
void collectFormulaCells (SCROW nRow1, SCROW nRow2, std::vector< ScFormulaCell * > &rCells) const
 
- Public Member Functions inherited from SvtListener
 SvtListener ()
 
 SvtListener (const SvtListener &r)
 
virtual ~SvtListener () COVERITY_NOEXCEPT_FALSE
 
bool StartListening (SvtBroadcaster &rBroadcaster)
 
bool EndListening (SvtBroadcaster &rBroadcaster)
 
void EndListeningAll ()
 
void CopyAllBroadcasters (const SvtListener &r)
 
bool HasBroadcaster () const
 

Private Member Functions

void notifyCellChange (const SfxHint &rHint, const ScAddress &rPos)
 
void notifyBulkChange (const BulkDataHint &rHint)
 
const ScFormulaCellgetTopCell () const
 

Private Attributes

ScRange maRange
 
const ScDocumentmrDocument
 
const ScColumnmpColumn
 
SCROW mnTopCellRow
 
SCROW mnGroupLen
 
bool mbStartFixed
 
bool mbEndFixed
 

Detailed Description

Definition at line 27 of file grouparealistener.hxx.

Constructor & Destructor Documentation

sc::FormulaGroupAreaListener::FormulaGroupAreaListener ( )
delete
sc::FormulaGroupAreaListener::FormulaGroupAreaListener ( const ScRange rRange,
const ScDocument rDocument,
const ScAddress rTopCellPos,
SCROW  nGroupLen,
bool  bStartFixed,
bool  bEndFixed 
)
sc::FormulaGroupAreaListener::~FormulaGroupAreaListener ( )
overridevirtual

Definition at line 98 of file grouparealistener.cxx.

References SAL_INFO.

Member Function Documentation

void sc::FormulaGroupAreaListener::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 notified of the change.

Parameters
nTabsheet position of the changed cell span.
nColcolumn position of the changed cell span.
nRow1top row position of the changed cell span.
nRow2bottom row position of the changed cell span.
rCellsall formula cells that need to be notified are put into this container.

Definition at line 161 of file grouparealistener.cxx.

References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), maRange, PutInOrder(), and ScAddress::Tab().

Referenced by notifyCellChange().

void sc::FormulaGroupAreaListener::collectFormulaCells ( SCROW  nRow1,
SCROW  nRow2,
std::vector< ScFormulaCell * > &  rCells 
) const
ScRange sc::FormulaGroupAreaListener::getListeningRange ( ) const
const ScFormulaCell * sc::FormulaGroupAreaListener::getTopCell ( ) const
private

Definition at line 329 of file grouparealistener.cxx.

References ScColumn::GetFormulaCellBlockAddress(), mnTopCellRow, mpColumn, and SAL_WARN_IF.

Referenced by Query().

void sc::FormulaGroupAreaListener::Notify ( const SfxHint rHint)
overridevirtual

Reimplemented from SvtListener.

Definition at line 112 of file grouparealistener.cxx.

References SfxHint::GetId(), notifyBulkChange(), and notifyCellChange().

void sc::FormulaGroupAreaListener::notifyBulkChange ( const BulkDataHint rHint)
private
void sc::FormulaGroupAreaListener::notifyCellChange ( const SfxHint rHint,
const ScAddress rPos 
)
private

Definition at line 337 of file grouparealistener.cxx.

References ScAddress::Col(), collectFormulaCells(), ScAddress::Row(), and ScAddress::Tab().

Referenced by Notify().

void sc::FormulaGroupAreaListener::Query ( QueryBase &  rQuery) const
overridevirtual

Member Data Documentation

ScRange sc::FormulaGroupAreaListener::maRange
private
bool sc::FormulaGroupAreaListener::mbEndFixed
private

Definition at line 35 of file grouparealistener.hxx.

Referenced by collectFormulaCells(), and getListeningRange().

bool sc::FormulaGroupAreaListener::mbStartFixed
private

Definition at line 34 of file grouparealistener.hxx.

Referenced by collectFormulaCells().

SCROW sc::FormulaGroupAreaListener::mnGroupLen
private
SCROW sc::FormulaGroupAreaListener::mnTopCellRow
private

Definition at line 32 of file grouparealistener.hxx.

Referenced by collectFormulaCells(), FormulaGroupAreaListener(), and getTopCell().

const ScColumn* sc::FormulaGroupAreaListener::mpColumn
private

Definition at line 31 of file grouparealistener.hxx.

Referenced by collectFormulaCells(), FormulaGroupAreaListener(), and getTopCell().

const ScDocument& sc::FormulaGroupAreaListener::mrDocument
private

Definition at line 30 of file grouparealistener.hxx.

Referenced by collectFormulaCells(), and FormulaGroupAreaListener().


The documentation for this class was generated from the following files: