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 (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)
 
bool 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
 
ScDocumentmrDoc
 
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 )
delete
ScChartListener::~ScChartListener ( )
overridevirtual

Member Function Documentation

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().

void ScChartListener::EndListeningTo ( )

Definition at line 273 of file chartlis.cxx.

References mpTokens, and mrDoc.

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

ScChartListener::ExternalRefListener * ScChartListener::GetExtRefListener ( )

Definition at line 304 of file chartlis.cxx.

References mpExtRefListener, and mrDoc.

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

Definition at line 140 of file chartlis.cxx.

References pUnoData.

Referenced by ScChartListenerCollection::FreeUno().

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

Definition at line 100 of file chartlis.hxx.

Referenced by ScChartListenerCollection::FreeUnused().

void ScChartListener::Notify ( const SfxHint rHint)
overridevirtual

Reimplemented from SvtListener.

Definition at line 154 of file chartlis.cxx.

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

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

Definition at line 334 of file chartlis.cxx.

References operator==().

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

Definition at line 318 of file chartlis.cxx.

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

Referenced by operator!=().

void ScChartListener::SetDirty ( bool  bFlg)
inline
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 133 of file chartlis.cxx.

References pUnoData.

Referenced by ScCellRangesBase::addChartDataChangeEventListener().

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

Member Data Documentation

bool ScChartListener::bDirty
private

Definition at line 71 of file chartlis.hxx.

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

bool ScChartListener::bUsed
private

Definition at line 70 of file chartlis.hxx.

Referenced by operator==().

OUString ScChartListener::maName
private

Definition at line 67 of file chartlis.hxx.

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

Definition at line 64 of file chartlis.hxx.

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

std::unique_ptr<std::vector<ScTokenRef> > ScChartListener::mpTokens
private
ScDocument& ScChartListener::mrDoc
private
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: