diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-09-12 12:54:11 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-09-12 13:03:52 +0200 |
commit | aa325833295e3983d93758b0e1194d7fb9365ee7 (patch) | |
tree | 03a8d73b46512209abb78aeca541cd1315c2fac8 /include/svx | |
parent | d41747cb4232e1feec8f41874cb53c4dacce51d9 (diff) |
3D charts: Update the 3D charts when a value changes.
Change-Id: I9c4052108446959ff6f5215d704b496e7a8e6aee
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/charthelper.hxx | 7 | ||||
-rw-r--r-- | include/svx/svdoole2.hxx | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/svx/charthelper.hxx b/include/svx/charthelper.hxx index bfa1bf783650..f88b8c4e370d 100644 --- a/include/svx/charthelper.hxx +++ b/include/svx/charthelper.hxx @@ -25,11 +25,18 @@ #include <basegfx/range/b2drange.hxx> #include <svx/svxdllapi.h> #include <drawinglayer/primitive2d/baseprimitive2d.hxx> +#include <com/sun/star/chart2/XDiagram.hpp> #include <com/sun/star/embed/XEmbeddedObject.hpp> class SVX_DLLPUBLIC ChartHelper { public: + /// Check that the XDiagram is a real 3D chart. + static bool isGL3DDiagram(const css::uno::Reference<css::chart2::XDiagram>& xDiagram); + + /// Use chart's XUpdatable::update() to update values. + static void updateChart(const css::uno::Reference< css::frame::XModel >& rXModel); + // try to access rXModel in case of a chart to to get the chart content // as sequence of primitives. Return range of primitives (chart size) in rRange; // it will be used to embed the chart to the SdrObject transformation. This diff --git a/include/svx/svdoole2.hxx b/include/svx/svdoole2.hxx index fe41d2f64d9a..f14646b20428 100644 --- a/include/svx/svdoole2.hxx +++ b/include/svx/svdoole2.hxx @@ -153,6 +153,7 @@ public: // #109985# bool IsChart() const; + bool IsReal3DChart() const; bool IsCalc() const; bool UpdateLinkURL_Impl(); |