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 /svx/source/sdr | |
parent | d41747cb4232e1feec8f41874cb53c4dacce51d9 (diff) |
3D charts: Update the 3D charts when a value changes.
Change-Id: I9c4052108446959ff6f5215d704b496e7a8e6aee
Diffstat (limited to 'svx/source/sdr')
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontact.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx index 4ab9d0a6b867..91aecee9fa5c 100644 --- a/svx/source/sdr/contact/viewobjectcontact.cxx +++ b/svx/source/sdr/contact/viewobjectcontact.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + +#include <svx/charthelper.hxx> #include <svx/sdr/contact/viewobjectcontact.hxx> #include <svx/sdr/contact/viewcontact.hxx> #include <svx/sdr/contact/objectcontact.hxx> @@ -32,13 +35,12 @@ #include <drawinglayer/primitive2d/animatedprimitive2d.hxx> #include <drawinglayer/processor2d/baseprocessor2d.hxx> #include <svx/sdr/primitive2d/svx_primitivetypes2d.hxx> +#include <svx/svdoole2.hxx> - +#include <sdr/contact/viewcontactofsdrole2obj.hxx> using namespace com::sun::star; - - namespace { // animated extractor @@ -205,6 +207,14 @@ namespace sdr const basegfx::B2DRange& ViewObjectContact::getObjectRange() const { +#if HAVE_FEATURE_DESKTOP + // 3D charts need to be notified separately, they are not to be + // drawn by the drawinglayer + ViewContactOfSdrOle2Obj* pViewContact = dynamic_cast<ViewContactOfSdrOle2Obj*>(&GetViewContact()); + if (pViewContact && pViewContact->GetOle2Obj().IsReal3DChart()) + ChartHelper::updateChart(pViewContact->GetOle2Obj().getXModel()); +#endif + if(maObjectRange.isEmpty()) { // if range is not computed (new or LazyInvalidate objects), force it |