LibreOffice Module sc (master) 1
|
Used to collect positions of formula cells that belong to a formula group. More...
#include <listenerquery.hxx>
Public Types | |
typedef std::vector< SCROW > | ColType |
typedef std::unordered_map< SCCOL, ColType > | ColsType |
typedef std::unordered_map< SCTAB, ColsType > | TabsType |
Public Member Functions | |
RefQueryFormulaGroup () | |
virtual | ~RefQueryFormulaGroup () override |
void | setSkipRange (const ScRange &rRange) |
void | add (const ScAddress &rPos) |
const TabsType & | getAllPositions () const |
Row positions in each column may contain duplicates. More... | |
Public Member Functions inherited from SvtListener::QueryBase | |
QueryBase (sal_uInt16 nId) | |
virtual | ~QueryBase () |
sal_uInt16 | getId () const |
Private Attributes | |
ScRange | maSkipRange |
TabsType | maTabs |
Used to collect positions of formula cells that belong to a formula group.
Definition at line 26 of file listenerquery.hxx.
typedef std::unordered_map<SCCOL, ColType> sc::RefQueryFormulaGroup::ColsType |
Definition at line 30 of file listenerquery.hxx.
typedef std::vector<SCROW> sc::RefQueryFormulaGroup::ColType |
Definition at line 29 of file listenerquery.hxx.
typedef std::unordered_map<SCTAB, ColsType> sc::RefQueryFormulaGroup::TabsType |
Definition at line 31 of file listenerquery.hxx.
sc::RefQueryFormulaGroup::RefQueryFormulaGroup | ( | ) |
Definition at line 16 of file listenerquery.cxx.
|
overridevirtual |
Definition at line 20 of file listenerquery.cxx.
void sc::RefQueryFormulaGroup::add | ( | const ScAddress & | rPos | ) |
Definition at line 27 of file listenerquery.cxx.
References ScAddress::Col(), ScRange::Contains(), ScAddress::IsValid(), ScRange::IsValid(), maSkipRange, maTabs, ScAddress::Row(), and ScAddress::Tab().
Referenced by ScFormulaCell::Query().
const RefQueryFormulaGroup::TabsType & sc::RefQueryFormulaGroup::getAllPositions | ( | ) | const |
Row positions in each column may contain duplicates.
Caller must remove duplicates if necessary.
Definition at line 65 of file listenerquery.cxx.
References maTabs.
Referenced by ScTable::SortReorderByRowRefUpdate().
void sc::RefQueryFormulaGroup::setSkipRange | ( | const ScRange & | rRange | ) |
Definition at line 22 of file listenerquery.cxx.
References maSkipRange.
Referenced by ScTable::SortReorderByRowRefUpdate().
|
private |
Definition at line 46 of file listenerquery.hxx.
Referenced by add(), and setSkipRange().
|
private |
Definition at line 47 of file listenerquery.hxx.
Referenced by add(), and getAllPositions().