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:
[legend]
Collaboration diagram for ScFormulaListener:
[legend]

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

Detailed Description

Definition at line 181 of file conditio.hxx.

Constructor & Destructor Documentation

◆ ScFormulaListener() [1/3]

ScFormulaListener::ScFormulaListener ( ScFormulaCell pCell)
explicit

Definition at line 28 of file colorscale.cxx.

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

◆ ScFormulaListener() [2/3]

ScFormulaListener::ScFormulaListener ( ScDocument rDoc)
explicit

Definition at line 35 of file colorscale.cxx.

◆ ScFormulaListener() [3/3]

ScFormulaListener::ScFormulaListener ( ScDocument rDoc,
const ScRangeList rRange 
)
explicit

Definition at line 41 of file colorscale.cxx.

References startListening().

◆ ~ScFormulaListener()

ScFormulaListener::~ScFormulaListener ( )
overridevirtual

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)
overridevirtual

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)
private

◆ startListening() [2/2]

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

◆ 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
private

Definition at line 186 of file conditio.hxx.

Referenced by Notify(), and setCallback().

◆ mbDirty

bool ScFormulaListener::mbDirty
mutableprivate

Definition at line 184 of file conditio.hxx.

Referenced by NeedsRepaint(), and Notify().

◆ mrDoc

ScDocument& ScFormulaListener::mrDoc
private

Definition at line 185 of file conditio.hxx.

Referenced by startListening(), and stopListening().


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