LibreOffice Module sc (master) 1
|
#include <chartlis.hxx>
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) |
ExternalRefListener * | GetExtRefListener () |
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 | |
ScChartListener & | operator= (const ScChartListener &)=delete |
Private Attributes | |
std::unique_ptr< ExternalRefListener > | mpExtRefListener |
std::vector< ScTokenRef > | maTokens |
OUString | maName |
std::unique_ptr< ScChartUnoData > | pUnoData |
ScDocument & | mrDoc |
bool | bUsed:1 |
bool | bDirty:1 |
Definition at line 41 of file chartlis.hxx.
ScChartListener::ScChartListener | ( | OUString | aName, |
ScDocument & | rDoc, | ||
const ScRangeListRef & | rRangeListRef | ||
) |
Definition at line 99 of file chartlis.cxx.
References aName, ScRefTokenHelper::getTokensFromRangeList(), and maTokens.
ScChartListener::ScChartListener | ( | OUString | aName, |
ScDocument & | rDoc, | ||
::std::vector< ScTokenRef > | aTokens | ||
) |
|
delete |
|
overridevirtual |
Definition at line 118 of file chartlis.cxx.
References EndListeningTo(), ScDocument::GetExternalRefManager(), SvtListener::HasBroadcaster(), mpExtRefListener, mrDoc, pUnoData, and ScExternalRefManager::removeLinkListener().
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 maTokens, and mrDoc.
Referenced by ScChartListenerCollection::ChangeListening(), ChangeListening(), and ~ScChartListener().
ScChartListener::ExternalRefListener * ScChartListener::GetExtRefListener | ( | ) |
Definition at line 304 of file chartlis.cxx.
References mpExtRefListener, and mrDoc.
|
inline |
Definition at line 83 of file chartlis.hxx.
References maName.
Referenced by ScChartListenerCollection::insert(), operator==(), ScChartListenerCollection::SetDiffDirty(), Update(), UpdateChartIntersecting(), and ScDocument::UpdateChartRef().
ScRangeListRef ScChartListener::GetRangeList | ( | ) | const |
Definition at line 186 of file chartlis.cxx.
References ScRefTokenHelper::getRangeListFromTokens(), maTokens, and mrDoc.
Referenced by ScChartHelper::AddRangesIfProtectedChart(), ScMyOLEFixer::CreateChartListener(), ScXMLExport::ExportShape(), ScChartObj::getFastPropertyValue(), ScChartListenerCollection::SetDiffDirty(), ScChartListenerCollection::SetRangeDirty(), and ScDocument::UpdateChartRef().
uno::Reference< chart::XChartDataChangeEventListener > ScChartListener::GetUnoListener | ( | ) | const |
Definition at line 141 of file chartlis.cxx.
References pUnoData.
uno::Reference< chart::XChartData > ScChartListener::GetUnoSource | ( | ) | const |
Definition at line 148 of file chartlis.cxx.
References pUnoData.
|
inline |
Definition at line 102 of file chartlis.hxx.
|
inline |
Definition at line 90 of file chartlis.hxx.
|
inline |
Definition at line 100 of file chartlis.hxx.
|
overridevirtual |
Reimplemented from SvtListener.
Definition at line 155 of file chartlis.cxx.
References SfxHint::GetId(), and SetUpdateQueue().
bool ScChartListener::operator!= | ( | const ScChartListener & | r | ) | const |
Definition at line 334 of file chartlis.cxx.
References operator==().
|
privatedelete |
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!=().
|
inline |
Definition at line 103 of file chartlis.hxx.
Referenced by ChangeListening(), ScMyOLEFixer::CreateChartListener(), ScChartListenerCollection::SetDiffDirty(), and ScChartListenerCollection::SetRangeDirty().
void ScChartListener::SetRangeList | ( | const ScRangeListRef & | rNew | ) |
Definition at line 193 of file chartlis.cxx.
References ScRefTokenHelper::getTokensFromRangeList(), maTokens, and mrDoc.
Referenced by ScChartListenerCollection::ChangeListening(), and ChangeListening().
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.
void ScChartListener::SetUpdateQueue | ( | ) |
Definition at line 312 of file chartlis.cxx.
References bDirty, ScDocument::GetChartListenerCollection(), mrDoc, and ScChartListenerCollection::StartTimer().
Referenced by Notify().
|
inline |
Definition at line 101 of file chartlis.hxx.
Referenced by ScDocument::UpdateChartListenerCollection().
void ScChartListener::StartListeningTo | ( | ) |
Definition at line 264 of file chartlis.cxx.
References maTokens, and mrDoc.
Referenced by ScChartsObj::addNewByName(), ScChartListenerCollection::ChangeListening(), ChangeListening(), ScMyOLEFixer::CreateChartListener(), and ScChartHelper::CreateProtectedChartListenersAndNotify().
void ScChartListener::Update | ( | ) |
Definition at line 161 of file chartlis.cxx.
References aEvent, bDirty, ScDocument::GetAutoCalc(), ScDocument::GetChartListenerCollection(), GetName(), ScDocument::IsInInterpreter(), mrDoc, pUnoData, ScChartListenerCollection::StartTimer(), and ScDocument::UpdateChart().
void ScChartListener::UpdateChartIntersecting | ( | const ScRange & | rRange | ) |
Definition at line 292 of file chartlis.cxx.
References GetName(), ScRefTokenHelper::getTokenFromRange(), ScRefTokenHelper::intersects(), maTokens, mrDoc, and ScDocument::UpdateChart().
|
private |
Definition at line 71 of file chartlis.hxx.
Referenced by operator==(), SetUpdateQueue(), and Update().
|
private |
Definition at line 70 of file chartlis.hxx.
Referenced by operator==().
|
private |
Definition at line 67 of file chartlis.hxx.
|
private |
Definition at line 65 of file chartlis.hxx.
Referenced by EndListeningTo(), GetRangeList(), operator==(), ScChartListener(), SetRangeList(), StartListeningTo(), and UpdateChartIntersecting().
|
private |
Definition at line 64 of file chartlis.hxx.
Referenced by GetExtRefListener(), and ~ScChartListener().
|
private |
Definition at line 69 of file chartlis.hxx.
Referenced by EndListeningTo(), GetExtRefListener(), GetRangeList(), operator==(), SetRangeList(), SetUpdateQueue(), StartListeningTo(), Update(), UpdateChartIntersecting(), and ~ScChartListener().
|
private |
Definition at line 68 of file chartlis.hxx.
Referenced by GetUnoListener(), GetUnoSource(), SetUno(), Update(), and ~ScChartListener().