LibreOffice Module sc (master) 1
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
sc::BroadcasterState Struct Reference

#include <broadcast.hxx>

Classes

struct  AreaListener
 
struct  CellListener
 

Public Types

enum class  CellListenerType {
  FormulaCell ,
  Generic
}
 
enum class  AreaListenerType {
  FormulaCell ,
  FormulaGroup ,
  Generic
}
 

Public Member Functions

bool hasFormulaCellListener (const ScAddress &rBroadcasterPos, const ScAddress &rFormulaPos) const
 Check if a formula cell listens on a single cell. More...
 
bool hasFormulaCellListener (const ScRange &rBroadcasterRange, const ScAddress &rFormulaPos) const
 Check if a formula cell listens on a single range. More...
 
void dump (std::ostream &rStrm, const ScDocument *pDoc=nullptr) const
 Dump all broadcaster state in YAML format. More...
 

Public Attributes

std::map< ScAddress, std::vector< CellListener > > aCellListenerStore
 
std::map< ScRange, std::vector< AreaListener > > aAreaListenerStore
 

Detailed Description

Definition at line 25 of file broadcast.hxx.

Member Enumeration Documentation

◆ AreaListenerType

Enumerator
FormulaCell 
FormulaGroup 
Generic 

Definition at line 33 of file broadcast.hxx.

◆ CellListenerType

Enumerator
FormulaCell 
Generic 

Definition at line 27 of file broadcast.hxx.

Member Function Documentation

◆ dump()

void sc::BroadcasterState::dump ( std::ostream &  rStrm,
const ScDocument pDoc = nullptr 
) const

Dump all broadcaster state in YAML format.

Definition at line 86 of file broadcast.cxx.

References aAreaListenerStore, aCellListenerStore, ScRange::aEnd, ScRange::Format(), FormulaCell, FormulaGroup, Generic, ScAddress::IncRow(), rStrm, TAB_3D, and VALID.

◆ hasFormulaCellListener() [1/2]

bool sc::BroadcasterState::hasFormulaCellListener ( const ScAddress rBroadcasterPos,
const ScAddress rFormulaPos 
) const

Check if a formula cell listens on a single cell.

Definition at line 46 of file broadcast.cxx.

References aCellListenerStore, and FormulaCell.

◆ hasFormulaCellListener() [2/2]

bool sc::BroadcasterState::hasFormulaCellListener ( const ScRange rBroadcasterRange,
const ScAddress rFormulaPos 
) const

Check if a formula cell listens on a single range.

Definition at line 66 of file broadcast.cxx.

References aAreaListenerStore, and FormulaCell.

Member Data Documentation

◆ aAreaListenerStore

std::map<ScRange, std::vector<AreaListener> > sc::BroadcasterState::aAreaListenerStore

◆ aCellListenerStore

std::map<ScAddress, std::vector<CellListener> > sc::BroadcasterState::aCellListenerStore

Definition at line 64 of file broadcast.hxx.

Referenced by ScColumn::CollectBroadcasterState(), dump(), and hasFormulaCellListener().


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