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 *pDoc)
 
 ScFormulaListener (ScDocument *pDoc, 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 ()
 
 SvtListener (const SvtListener &r)
 
virtual ~SvtListener () COVERITY_NOEXCEPT_FALSE
 
bool StartListening (SvtBroadcaster &rBroadcaster)
 
bool EndListening (SvtBroadcaster &rBroadcaster)
 
void EndListeningAll ()
 
void CopyAllBroadcasters (const SvtListener &r)
 
bool HasBroadcaster () const
 
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
 
ScDocumentmpDoc
 
std::function< void()> maCallbackFunction
 

Detailed Description

Definition at line 183 of file conditio.hxx.

Constructor & Destructor Documentation

ScFormulaListener::ScFormulaListener ( ScFormulaCell pCell)
explicit

Definition at line 26 of file colorscale.cxx.

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

ScFormulaListener::ScFormulaListener ( ScDocument pDoc)
explicit

Definition at line 33 of file colorscale.cxx.

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

Definition at line 39 of file colorscale.cxx.

References startListening().

ScFormulaListener::~ScFormulaListener ( )
overridevirtual

Definition at line 129 of file colorscale.cxx.

References stopListening().

Member Function Documentation

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

Definition at line 111 of file colorscale.cxx.

References startListening().

bool ScFormulaListener::NeedsRepaint ( ) const

Definition at line 145 of file colorscale.cxx.

References mbDirty.

void ScFormulaListener::Notify ( const SfxHint rHint)
overridevirtual

Reimplemented from SvtListener.

Definition at line 134 of file colorscale.cxx.

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

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

Definition at line 116 of file colorscale.cxx.

References maCallbackFunction.

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

Definition at line 121 of file colorscale.cxx.

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

Referenced by ~ScFormulaListener().

Member Data Documentation

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

Definition at line 188 of file conditio.hxx.

Referenced by Notify(), and setCallback().

bool ScFormulaListener::mbDirty
mutableprivate

Definition at line 186 of file conditio.hxx.

Referenced by NeedsRepaint(), and Notify().

ScDocument* ScFormulaListener::mpDoc
private

Definition at line 187 of file conditio.hxx.

Referenced by startListening(), and stopListening().


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