summaryrefslogtreecommitdiff
path: root/sw/inc/ndole.hxx
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2016-07-01 14:20:00 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-07-07 22:32:38 +0200
commit64e1113916a6b19b30f95b454018528571ac84df (patch)
tree3228110d392555e90dd95402b9b9febb09fec0bd /sw/inc/ndole.hxx
parent30fdc46969f3c90c47cddf18d0dde640c8ea280e (diff)
tdf#50613 buffer OLE primitives for charts
If OLE is a chart, buffer the primitives used for presentation as info at the SwOLEObj, after getting them the first time using the ChartHelper. Change-Id: I6d7486185f6eac450de9328d37ea800f424f351b
Diffstat (limited to 'sw/inc/ndole.hxx')
-rw-r--r--sw/inc/ndole.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx
index 4d3a3fbbb68a..d9223c4af070 100644
--- a/sw/inc/ndole.hxx
+++ b/sw/inc/ndole.hxx
@@ -41,6 +41,10 @@ class SW_DLLPUBLIC SwOLEObj
svt::EmbeddedObjectRef xOLERef;
OUString aName;
+ // eventually buffered data if it is a chart OLE
+ drawinglayer::primitive2d::Primitive2DContainer m_aPrimitive2DSequence;
+ basegfx::B2DRange m_aRange;
+
SwOLEObj( const SwOLEObj& rObj ) = delete;
void SetNode( SwOLENode* pNode );
@@ -62,6 +66,11 @@ public:
const OUString& GetCurrentPersistName() const { return aName; }
OUString GetStyleString();
bool IsOleRef() const; ///< To avoid unnecessary loading of object.
+
+ // try to get OLE visualization in form of a Primitive2DSequence
+ // and the corresponding B2DRange. This data may be locally buffered
+ drawinglayer::primitive2d::Primitive2DContainer tryToGetChartContentAsPrimitive2DSequence(basegfx::B2DRange& rRange);
+ void resetBufferedData();
};
// SwOLENode