summaryrefslogtreecommitdiff
path: root/sc/inc/charthelper.hxx
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2010-08-03 20:18:36 +0200
committerThomas Benisch <tbe@openoffice.org>2010-08-03 20:18:36 +0200
commitd39b710e4f69940c68a6c3d24af00211f8f03aea (patch)
treeadf479bbdc4aa1a6e4f47ebf284937b6c5cf9159 /sc/inc/charthelper.hxx
parent686b7955271806e65222a3a4bfe97365cab33a06 (diff)
chartextensibility: #i113619# Pasting a chart into a spreadsheet is not notified
Diffstat (limited to 'sc/inc/charthelper.hxx')
-rw-r--r--sc/inc/charthelper.hxx11
1 files changed, 11 insertions, 0 deletions
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 <tools/solar.h>
#include "address.hxx"
#include "global.hxx"
+#include "rangelst.hxx"
#include <com/sun/star/chart2/XChartDocument.hpp>
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