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:
Collaboration diagram for ScChartListener:


class  ExternalRefListener

Public Member Functions

 ScChartListener (const OUString &rName, ScDocument &rDoc, const ScRangeListRef &rRangeListRef)
 ScChartListener (const OUString &rName, ScDocument &rDoc, std::unique_ptr<::std::vector< ScTokenRef >> pTokens)
 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 ()
 SvtListener (const SvtListener &r)
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 Query (QueryBase &rQuery) const

Private Member Functions

ScChartListeneroperator= (const ScChartListener &)=delete

Private Attributes

std::unique_ptr< ExternalRefListenermpExtRefListener
std::unique_ptr< std::vector< ScTokenRef > > mpTokens
OUString maName
std::unique_ptr< ScChartUnoDatapUnoData
bool bUsed:1
bool bDirty:1

Detailed Description

Definition at line 41 of file chartlis.hxx.

Constructor & Destructor Documentation

ScChartListener::ScChartListener ( const OUString &  rName,
ScDocument rDoc,
const ScRangeListRef rRangeListRef 

Definition at line 95 of file chartlis.cxx.

References ScRefTokenHelper::getTokensFromRangeList(), and mpTokens.

ScChartListener::ScChartListener ( const OUString &  rName,
ScDocument rDoc,
std::unique_ptr<::std::vector< ScTokenRef >>  pTokens 
ScChartListener::ScChartListener ( const ScChartListener )
ScChartListener::~ScChartListener ( )

Member Function Documentation

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

Definition at line 280 of file chartlis.cxx.

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

Referenced by ScDocument::UpdateChartRef().

void ScChartListener::EndListeningTo ( )

Definition at line 271 of file chartlis.cxx.

References mpTokens, and mrDoc.

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

ScChartListener::ExternalRefListener * ScChartListener::GetExtRefListener ( )

Definition at line 302 of file chartlis.cxx.

References mpExtRefListener, and mrDoc.

const OUString& ScChartListener::GetName ( ) const
ScRangeListRef ScChartListener::GetRangeList ( ) const
uno::Reference< chart::XChartDataChangeEventListener > ScChartListener::GetUnoListener ( ) const

Definition at line 138 of file chartlis.cxx.

References pUnoData.

Referenced by ScChartListenerCollection::FreeUno().

uno::Reference< chart::XChartData > ScChartListener::GetUnoSource ( ) const
bool ScChartListener::IsDirty ( ) const
bool ScChartListener::IsUno ( ) const
bool ScChartListener::IsUsed ( ) const

Definition at line 100 of file chartlis.hxx.

Referenced by ScChartListenerCollection::FreeUnused().

void ScChartListener::Notify ( const SfxHint rHint)

Reimplemented from SvtListener.

Definition at line 152 of file chartlis.cxx.

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

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

Definition at line 332 of file chartlis.cxx.

References operator==().

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

Definition at line 316 of file chartlis.cxx.

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

Referenced by operator!=().

void ScChartListener::SetDirty ( bool  bFlg)
void ScChartListener::SetRangeList ( const ScRangeListRef rNew)
void ScChartListener::SetUno ( const css::uno::Reference< css::chart::XChartDataChangeEventListener > &  rListener,
const css::uno::Reference< css::chart::XChartData > &  rSource 

Definition at line 131 of file chartlis.cxx.

References pUnoData.

Referenced by ScCellRangesBase::addChartDataChangeEventListener().

void ScChartListener::SetUpdateQueue ( )
void ScChartListener::SetUsed ( bool  bFlg)
void ScChartListener::StartListeningTo ( )
void ScChartListener::Update ( )
void ScChartListener::UpdateChartIntersecting ( const ScRange rRange)

Member Data Documentation

bool ScChartListener::bDirty

Definition at line 71 of file chartlis.hxx.

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

bool ScChartListener::bUsed

Definition at line 70 of file chartlis.hxx.

Referenced by operator==().

OUString ScChartListener::maName

Definition at line 67 of file chartlis.hxx.

std::unique_ptr<ExternalRefListener> ScChartListener::mpExtRefListener

Definition at line 64 of file chartlis.hxx.

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

std::unique_ptr<std::vector<ScTokenRef> > ScChartListener::mpTokens
ScDocument& ScChartListener::mrDoc
std::unique_ptr<ScChartUnoData> ScChartListener::pUnoData

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: