LibreOffice Module sc (master) 1
|
Use this to handle charts in a calc document. More...
#include <charthelper.hxx>
Static Public Member Functions | |
static sal_uInt16 | DoUpdateAllCharts (ScDocument &rDoc) |
static void | AdjustRangesOfChartsOnDestinationPage (const ScDocument &rSrcDoc, ScDocument &rDestDoc, const SCTAB nSrcTab, const SCTAB nDestTab) |
static void | UpdateChartsOnDestinationPage (ScDocument &rDestDoc, const SCTAB nDestTab) |
static css::uno::Reference< css::chart2::XChartDocument > | GetChartFromSdrObject (const SdrObject *pObject) |
static void | GetChartRanges (const css::uno::Reference< css::chart2::XChartDocument > &xChartDoc, std::vector< OUString > &rRanges) |
static void | SetChartRanges (const css::uno::Reference< css::chart2::XChartDocument > &xChartDoc, const css::uno::Sequence< OUString > &rRanges) |
static void | AddRangesIfProtectedChart (ScRangeListVector &rRangesVector, const ScDocument &rDocument, SdrObject *pObject) |
static void | FillProtectedChartRangesVector (ScRangeListVector &rRangesVector, const ScDocument &rDocument, const SdrPage *pPage) |
static void | GetChartNames (::std::vector< OUString > &rChartNames, const SdrPage *pPage) |
static void | CreateProtectedChartListenersAndNotify (ScDocument &rDoc, const SdrPage *pPage, ScModelObj *pModelObj, SCTAB nTab, const ScRangeListVector &rRangesVector, const ::std::vector< OUString > &rExcludedChartNames, bool bSameDoc=true) |
Use this to handle charts in a calc document.
Definition at line 35 of file charthelper.hxx.
|
static |
Definition at line 282 of file charthelper.cxx.
References ScChartListenerCollection::findByName(), ScDocument::GetChartListenerCollection(), SdrOle2Obj::GetObjRef(), SdrOle2Obj::GetPersistName(), ScChartListener::GetRangeList(), tools::SvRef< typename T >::is(), SdrOle2Obj::IsChart(), pObject, and svt::EmbeddedObjectRef::TryRunningState().
Referenced by FillProtectedChartRangesVector(), and FuSelection::MouseButtonUp().
|
static |
Definition at line 114 of file charthelper.cxx.
References ScDocument::GetChartByName(), ScDocument::GetChartRanges(), ScDocument::GetDrawLayer(), SdrModel::GetPage(), ScDocument::GetTableCount(), SdrOle2Obj::IsChart(), SdrObjListIter::Next(), pObject, and ScDocument::SetChartRanges().
Referenced by ScViewFunc::MoveTable(), and ScDocument::TransferDrawPage().
|
static |
Definition at line 359 of file charthelper.cxx.
References aProperties, ScChartListenerCollection::findByName(), ScDocument::GetChartListenerCollection(), SdrOle2Obj::GetObjRef(), SdrOle2Obj::GetPersistName(), ScDocument::GetRange(), SdrAttrObj::GetSnapRect(), ScModelObj::HasChangesListeners(), ScChartListenerCollection::insert(), SdrOle2Obj::IsChart(), comphelper::makePropertyValue(), SdrObjListIter::Next(), ScModelObj::NotifyChanges(), pObject, ScChartListener::StartListeningTo(), and svt::EmbeddedObjectRef::TryRunningState().
Referenced by FuSelection::MouseButtonUp(), ScViewFunc::PasteDraw(), and ScViewFunc::PasteFromClip().
|
static |
Definition at line 109 of file charthelper.cxx.
Referenced by ScDocument::ModifyStyleSheet().
|
static |
Definition at line 324 of file charthelper.cxx.
References AddRangesIfProtectedChart(), SdrObjListIter::Next(), and pObject.
Referenced by ScViewFunc::CopyToClipSingleRange(), and ScDrawTransferObj::ScDrawTransferObj().
|
static |
Definition at line 175 of file charthelper.cxx.
References SdrOle2Obj::IsChart(), pObject, and svt::EmbeddedObjectRef::TryRunningState().
Referenced by ScDrawLayer::CopyFromClip(), ScDrawLayer::CopyToClip(), ScDocument::GetChartByName(), ScDocument::GetOldChartParameters(), ScDocument::SetChartRangeList(), and ScDocument::UpdateChartArea().
|
static |
Definition at line 338 of file charthelper.cxx.
References SdrOle2Obj::GetPersistName(), SdrOle2Obj::IsChart(), SdrObjListIter::Next(), and pObject.
Referenced by FuSelection::MouseButtonUp(), ScViewFunc::PasteDraw(), and ScViewFunc::PasteFromClip().
|
static |
Definition at line 194 of file charthelper.cxx.
Referenced by ScDocument::GetChartRanges().
|
static |
Definition at line 218 of file charthelper.cxx.
References TOOLS_WARN_EXCEPTION.
Referenced by ScDocument::SetChartRanges().
|
static |
Definition at line 150 of file charthelper.cxx.
References ScDocument::GetChartByName(), ScDocument::GetDrawLayer(), SdrModel::GetPage(), SdrOle2Obj::IsChart(), SdrObjListIter::Next(), and pObject.
Referenced by ScDocument::TransferDrawPage().