From d39b710e4f69940c68a6c3d24af00211f8f03aea Mon Sep 17 00:00:00 2001 From: Thomas Benisch Date: Tue, 3 Aug 2010 20:18:36 +0200 Subject: chartextensibility: #i113619# Pasting a chart into a spreadsheet is not notified --- sc/inc/charthelper.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sc/inc/charthelper.hxx') diff --git a/sc/inc/charthelper.hxx b/sc/inc/charthelper.hxx index 50b8586bdace..b184a749f973 100644 --- a/sc/inc/charthelper.hxx +++ b/sc/inc/charthelper.hxx @@ -31,10 +31,15 @@ #include #include "address.hxx" #include "global.hxx" +#include "rangelst.hxx" #include class SdrObject; +class SdrPage; +class ScModelObj; + +typedef ::std::vector< ScRangeList > ScRangeListVector; /** Use this to handle charts in a calc document */ @@ -49,6 +54,12 @@ public: ::com::sun::star::uno::Sequence< rtl::OUString >& rRanges ); static void SetChartRanges( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument >& xChartDoc, const ::com::sun::star::uno::Sequence< rtl::OUString >& rRanges ); + + static void AddRangesIfProtectedChart( ScRangeListVector& rRangesVector, ScDocument* pDocument, SdrObject* pObject ); + static void FillProtectedChartRangesVector( ScRangeListVector& rRangesVector, ScDocument* pDocument, SdrPage* pPage ); + static void GetChartNames( ::std::vector< ::rtl::OUString >& rChartNames, SdrPage* pPage ); + static void CreateProtectedChartListenersAndNotify( ScDocument* pDoc, SdrPage* pPage, ScModelObj* pModelObj, SCTAB nTab, + const ScRangeListVector& rRangesVector, const ::std::vector< ::rtl::OUString >& rExcludedChartNames ); }; #endif -- cgit