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

#include <chartlis.hxx>

Inheritance diagram for ScChartListener:
[legend]
Collaboration diagram for ScChartListener:
[legend]

Classes

class  ExternalRefListener
 

Public Member Functions

 ScChartListener (OUString aName, ScDocument &rDoc, const ScRangeListRef &rRangeListRef)
 
 ScChartListener (OUString aName, ScDocument &rDoc, ::std::vector< ScTokenRef > aTokens)
 
 ScChartListener (const ScChartListener &)=delete
 
virtual ~ScChartListener () override
 
const OUString & GetName () const
 
void SetUno (const css::uno::Reference< css::chart::XChartDataChangeEventListener > &rListener, const css::uno::Reference< css::chart::XChartData > &rSource)
 
css::uno::Reference< css::chart::XChartDataChangeEventListener > GetUnoListener () const
 
css::uno::Reference< css::chart::XChartData > GetUnoSource () const
 
bool IsUno () const
 
virtual void Notify (const SfxHint &rHint) override
 
void StartListeningTo ()
 
void EndListeningTo ()
 
void ChangeListening (const ScRangeListRef &rRangeListRef, bool bDirty)
 
void Update ()
 
ScRangeListRef GetRangeList () const
 
void SetRangeList (const ScRangeListRef &rNew)
 
bool IsUsed () const
 
void SetUsed (bool bFlg)
 
bool IsDirty () const
 
void SetDirty (bool bFlg)
 
void UpdateChartIntersecting (const ScRange &rRange)
 
ExternalRefListenerGetExtRefListener ()
 
void SetUpdateQueue ()
 
bool operator== (const ScChartListener &) const
 
bool operator!= (const ScChartListener &r) const
 
- 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

ScChartListeneroperator= (const ScChartListener &)=delete
 

Private Attributes

std::unique_ptr< ExternalRefListenermpExtRefListener
 
std::vector< ScTokenRefmaTokens
 
OUString maName
 
std::unique_ptr< ScChartUnoDatapUnoData
 
ScDocumentmrDoc
 
bool bUsed:1
 
bool bDirty:1
 

Detailed Description

Definition at line 41 of file chartlis.hxx.

Constructor & Destructor Documentation

◆ ScChartListener() [1/3]

ScChartListener::ScChartListener ( OUString  aName,
ScDocument rDoc,
const ScRangeListRef rRangeListRef 
)

Definition at line 99 of file chartlis.cxx.

References aName, ScRefTokenHelper::getTokensFromRangeList(), and maTokens.

◆ ScChartListener() [2/3]

ScChartListener::ScChartListener ( OUString  aName,
ScDocument rDoc,
::std::vector< ScTokenRef aTokens 
)

◆ ScChartListener() [3/3]

ScChartListener::ScChartListener ( const ScChartListener )
delete

◆ ~ScChartListener()

ScChartListener::~ScChartListener ( )
overridevirtual

Member Function Documentation

◆ ChangeListening()

void ScChartListener::ChangeListening ( const ScRangeListRef rRangeListRef,
bool  bDirty 
)

Definition at line 282 of file chartlis.cxx.

References EndListeningTo(), SetDirty(), SetRangeList(), and StartListeningTo().

Referenced by ScDocument::UpdateChartRef().

◆ EndListeningTo()

void ScChartListener::EndListeningTo ( )

Definition at line 273 of file chartlis.cxx.

References maTokens, and mrDoc.

Referenced by ScChartListenerCollection::ChangeListening(), ChangeListening(), and ~ScChartListener().

◆ GetExtRefListener()

ScChartListener::ExternalRefListener * ScChartListener::GetExtRefListener ( )

Definition at line 304 of file chartlis.cxx.

References mpExtRefListener, and mrDoc.

◆ GetName()

const OUString & ScChartListener::GetName ( ) const
inline

◆ GetRangeList()

ScRangeListRef ScChartListener::GetRangeList ( ) const

◆ GetUnoListener()

uno::Reference< chart::XChartDataChangeEventListener > ScChartListener::GetUnoListener ( ) const

Definition at line 141 of file chartlis.cxx.

References pUnoData.

◆ GetUnoSource()

uno::Reference< chart::XChartData > ScChartListener::GetUnoSource ( ) const

Definition at line 148 of file chartlis.cxx.

References pUnoData.

◆ IsDirty()

bool ScChartListener::IsDirty ( ) const
inline

Definition at line 102 of file chartlis.hxx.

◆ IsUno()

bool ScChartListener::IsUno ( ) const
inline

Definition at line 90 of file chartlis.hxx.

◆ IsUsed()

bool ScChartListener::IsUsed ( ) const
inline

Definition at line 100 of file chartlis.hxx.

◆ Notify()

void ScChartListener::Notify ( const SfxHint rHint)
overridevirtual

Reimplemented from SvtListener.

Definition at line 155 of file chartlis.cxx.

References SfxHint::GetId(), and SetUpdateQueue().

◆ operator!=()

bool ScChartListener::operator!= ( const ScChartListener r) const

Definition at line 334 of file chartlis.cxx.

References operator==().

◆ operator=()

ScChartListener & ScChartListener::operator= ( const ScChartListener )
privatedelete

◆ operator==()

bool ScChartListener::operator== ( const ScChartListener r) const

Definition at line 318 of file chartlis.cxx.

References bDirty, bUsed, GetName(), maTokens, and mrDoc.

Referenced by operator!=().

◆ SetDirty()

void ScChartListener::SetDirty ( bool  bFlg)
inline

◆ SetRangeList()

void ScChartListener::SetRangeList ( const ScRangeListRef rNew)

◆ SetUno()

void ScChartListener::SetUno ( const css::uno::Reference< css::chart::XChartDataChangeEventListener > &  rListener,
const css::uno::Reference< css::chart::XChartData > &  rSource 
)

Definition at line 134 of file chartlis.cxx.

References pUnoData.

◆ SetUpdateQueue()

void ScChartListener::SetUpdateQueue ( )

◆ SetUsed()

void ScChartListener::SetUsed ( bool  bFlg)
inline

Definition at line 101 of file chartlis.hxx.

Referenced by ScDocument::UpdateChartListenerCollection().

◆ StartListeningTo()

void ScChartListener::StartListeningTo ( )

◆ Update()

void ScChartListener::Update ( )

◆ UpdateChartIntersecting()

void ScChartListener::UpdateChartIntersecting ( const ScRange rRange)

Member Data Documentation

◆ bDirty

bool ScChartListener::bDirty
private

Definition at line 71 of file chartlis.hxx.

Referenced by operator==(), SetUpdateQueue(), and Update().

◆ bUsed

bool ScChartListener::bUsed
private

Definition at line 70 of file chartlis.hxx.

Referenced by operator==().

◆ maName

OUString ScChartListener::maName
private

Definition at line 67 of file chartlis.hxx.

◆ maTokens

std::vector<ScTokenRef> ScChartListener::maTokens
private

◆ mpExtRefListener

std::unique_ptr<ExternalRefListener> ScChartListener::mpExtRefListener
private

Definition at line 64 of file chartlis.hxx.

Referenced by GetExtRefListener(), and ~ScChartListener().

◆ mrDoc

ScDocument& ScChartListener::mrDoc
private

◆ pUnoData

std::unique_ptr<ScChartUnoData> ScChartListener::pUnoData
private

Definition at line 68 of file chartlis.hxx.

Referenced by GetUnoListener(), GetUnoSource(), SetUno(), Update(), and ~ScChartListener().


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