LibreOffice Module sc (master) 1
|
#include <conditio.hxx>
Public Member Functions | |
ScFormulaListener (ScFormulaCell *pCell) | |
ScFormulaListener (ScDocument &rDoc) | |
ScFormulaListener (ScDocument &rDoc, const ScRangeList &rRange) | |
virtual | ~ScFormulaListener () override |
void | Notify (const SfxHint &rHint) override |
bool | NeedsRepaint () const |
void | addTokenArray (const ScTokenArray *pTokens, const ScRange &rRange) |
void | stopListening () |
void | setCallback (const std::function< void()> &aCallbackFunction) |
Public Member Functions inherited from SvtListener | |
SvtListener ()=default | |
SvtListener (const SvtListener &r)=default | |
virtual | ~SvtListener () COVERITY_NOEXCEPT_FALSE |
bool | StartListening (SvtBroadcaster &rBroadcaster) |
void | EndListening (SvtBroadcaster &rBroadcaster) |
void | EndListeningAll () |
void | CopyAllBroadcasters (const SvtListener &r) |
bool | HasBroadcaster () const |
virtual void | Notify (const SfxHint &rHint) |
virtual void | Query (QueryBase &rQuery) const |
Private Member Functions | |
void | startListening (const ScTokenArray *pTokens, const ScRange &rPos) |
void | startListening (const ScRangeList &rPos) |
Private Attributes | |
bool | mbDirty |
ScDocument & | mrDoc |
std::function< void()> | maCallbackFunction |
Definition at line 181 of file conditio.hxx.
|
explicit |
Definition at line 28 of file colorscale.cxx.
References ScFormulaCell::aPos, ScFormulaCell::GetCode(), and startListening().
|
explicit |
Definition at line 35 of file colorscale.cxx.
|
explicit |
Definition at line 41 of file colorscale.cxx.
References startListening().
|
overridevirtual |
Definition at line 131 of file colorscale.cxx.
References stopListening().
void ScFormulaListener::addTokenArray | ( | const ScTokenArray * | pTokens, |
const ScRange & | rRange | ||
) |
Definition at line 113 of file colorscale.cxx.
References startListening().
bool ScFormulaListener::NeedsRepaint | ( | ) | const |
Definition at line 147 of file colorscale.cxx.
References mbDirty.
|
overridevirtual |
Reimplemented from SvtListener.
Definition at line 136 of file colorscale.cxx.
References SfxHint::GetId(), maCallbackFunction, and mbDirty.
void ScFormulaListener::setCallback | ( | const std::function< void()> & | aCallbackFunction | ) |
Definition at line 118 of file colorscale.cxx.
References maCallbackFunction.
|
private |
Definition at line 100 of file colorscale.cxx.
References i, ScDocument::IsClipOrUndo(), mrDoc, nLength, ScRangeList::size(), and ScDocument::StartListeningArea().
|
private |
Definition at line 48 of file colorscale.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::ExtendTo(), ScDocument::IsClipOrUndo(), ScSingleRefData::IsColRel(), ScRange::IsValid(), ScDocument::MaxCol(), ScDocument::MaxRow(), mrDoc, ocColRowNameAuto, formula::FormulaTokenArray::References(), ScAddress::SetCol(), ScAddress::SetRow(), ScDocument::StartListeningArea(), formula::svDoubleRef, formula::svSingleRef, t, and ScSingleRefData::toAbs().
Referenced by addTokenArray(), and ScFormulaListener().
void ScFormulaListener::stopListening | ( | ) |
Definition at line 123 of file colorscale.cxx.
References SvtListener::EndListeningAll(), ScDocument::IsClipOrUndo(), and mrDoc.
Referenced by ~ScFormulaListener().
|
private |
Definition at line 186 of file conditio.hxx.
Referenced by Notify(), and setCallback().
|
mutableprivate |
Definition at line 184 of file conditio.hxx.
Referenced by NeedsRepaint(), and Notify().
|
private |
Definition at line 185 of file conditio.hxx.
Referenced by startListening(), and stopListening().