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

#include <conditio.hxx>

Inheritance diagram for ScFormulaListener:
Collaboration diagram for ScFormulaListener:

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
std::function< void()> maCallbackFunction

Detailed Description

Definition at line 181 of file conditio.hxx.

Constructor & Destructor Documentation

◆ ScFormulaListener() [1/3]

ScFormulaListener::ScFormulaListener ( ScFormulaCell pCell)

Definition at line 28 of file colorscale.cxx.

References ScFormulaCell::aPos, ScFormulaCell::GetCode(), and startListening().

◆ ScFormulaListener() [2/3]

ScFormulaListener::ScFormulaListener ( ScDocument rDoc)

Definition at line 35 of file colorscale.cxx.

◆ ScFormulaListener() [3/3]

ScFormulaListener::ScFormulaListener ( ScDocument rDoc,
const ScRangeList rRange 

Definition at line 41 of file colorscale.cxx.

References startListening().

◆ ~ScFormulaListener()

ScFormulaListener::~ScFormulaListener ( )

Definition at line 131 of file colorscale.cxx.

References stopListening().

Member Function Documentation

◆ addTokenArray()

void ScFormulaListener::addTokenArray ( const ScTokenArray pTokens,
const ScRange rRange 

Definition at line 113 of file colorscale.cxx.

References startListening().

◆ NeedsRepaint()

bool ScFormulaListener::NeedsRepaint ( ) const

Definition at line 147 of file colorscale.cxx.

References mbDirty.

◆ Notify()

void ScFormulaListener::Notify ( const SfxHint rHint)

Reimplemented from SvtListener.

Definition at line 136 of file colorscale.cxx.

References SfxHint::GetId(), maCallbackFunction, and mbDirty.

◆ setCallback()

void ScFormulaListener::setCallback ( const std::function< void()> &  aCallbackFunction)

Definition at line 118 of file colorscale.cxx.

References maCallbackFunction.

◆ startListening() [1/2]

void ScFormulaListener::startListening ( const ScRangeList rPos)

◆ startListening() [2/2]

void ScFormulaListener::startListening ( const ScTokenArray pTokens,
const ScRange rPos 

◆ stopListening()

void ScFormulaListener::stopListening ( )

Definition at line 123 of file colorscale.cxx.

References SvtListener::EndListeningAll(), ScDocument::IsClipOrUndo(), and mrDoc.

Referenced by ~ScFormulaListener().

Member Data Documentation

◆ maCallbackFunction

std::function<void()> ScFormulaListener::maCallbackFunction

Definition at line 186 of file conditio.hxx.

Referenced by Notify(), and setCallback().

◆ mbDirty

bool ScFormulaListener::mbDirty

Definition at line 184 of file conditio.hxx.

Referenced by NeedsRepaint(), and Notify().

◆ mrDoc

ScDocument& ScFormulaListener::mrDoc

Definition at line 185 of file conditio.hxx.

Referenced by startListening(), and stopListening().

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