summaryrefslogtreecommitdiff
path: root/chart2/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-12-30 06:22:04 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-29 08:09:28 +0100
commit91e1d305a14a17e7d728b3b5055c65a67582715d (patch)
tree92d34b68f66c7e6996c2b8b86cf36a8c34eea714 /chart2/inc
parentf47d81a059ba69f00e51b3a1a11ec7d4c17c01ad (diff)
implement time based charting based on new approach
The old approach does not work with the current implementation of the OpenGL backend. We now need to repaing every time the whole chart. Change-Id: I2151a3f016c6ceecaec2d45db0cb967cfee59af6
Diffstat (limited to 'chart2/inc')
-rw-r--r--chart2/inc/ChartModel.hxx5
-rw-r--r--chart2/inc/ChartView.hxx17
2 files changed, 22 insertions, 0 deletions
diff --git a/chart2/inc/ChartModel.hxx b/chart2/inc/ChartModel.hxx
index 4a7031bbc100..af0d6988f15d 100644
--- a/chart2/inc/ChartModel.hxx
+++ b/chart2/inc/ChartModel.hxx
@@ -120,6 +120,8 @@ private:
sal_Int32 m_nInLoad;
sal_Bool volatile m_bUpdateNotificationsPending;
+ bool mbTimeBased;
+
com::sun::star::uno::Reference< com::sun::star::uno::XInterface > xChartView; // for the ref count
ChartView* mpChartView;
@@ -579,6 +581,9 @@ public:
// normal methods
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >
getNumberFormatsSupplier();
+
+ bool isTimeBased() const;
+ void setTimeBased(bool bTimeBased);
};
} // namespace chart
diff --git a/chart2/inc/ChartView.hxx b/chart2/inc/ChartView.hxx
index 80ef459e09fb..80f0d27c571b 100644
--- a/chart2/inc/ChartView.hxx
+++ b/chart2/inc/ChartView.hxx
@@ -51,6 +51,21 @@ namespace chart {
class VCoordinateSystem;
class DrawModelWrapper;
class SeriesPlotterContainer;
+class VDataSeriesGroup;
+
+struct TimeBasedInfo
+{
+ TimeBasedInfo():
+ bTimeBased(false),
+ nFrame(0),
+ m_pZSlots(NULL) {}
+
+ bool bTimeBased;
+ size_t nFrame;
+
+ // only valid when we are in the time based mode
+ ::std::vector< ::std::vector< VDataSeriesGroup > >* m_pZSlots;
+};
/**
* The ChartView is responsible to manage the generation of Drawing Objects
@@ -237,6 +252,8 @@ private: //member
sal_Bool m_bSdrViewIsInEditMode;
::com::sun::star::awt::Rectangle m_aResultingDiagramRectangleExcludingAxes;
+
+ TimeBasedInfo maTimeBased;
};
}