summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorOliver-Rainer Wittmann <orw@apache.org>2014-06-06 12:14:07 +0000
committerMichael Stahl <mstahl@redhat.com>2014-06-06 17:51:08 +0200
commitb181a3cdf8fc0206c4c71fa7d29d3a04b0caa46b (patch)
tree82c0fbcf3d49fccd2d9ac0c00c4cbb4d2e1f55cc /sw/inc
parentadb1bb21f804c62004f31ad5473d4cf447436b9b (diff)
i#124999: - call <SwGrfNode::onGraphicChanged()> only when <Graphic>
instance has been set, too - <SwGrfNode::onGraphicChanged()> - assure that graphic is swapped out in case its swap in has been triggered by this method. (cherry-picked from commit 4dbdc0ce931d7686583a49e68f8df09827357beb) Change-Id: I3e6aa68d9507095925dec37075abcdf9da58c804
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/ndgrf.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index 4d97b6a9feae..d4cd0fb653c6 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -117,6 +117,10 @@ class SW_DLLPUBLIC SwGrfNode: public SwNoTxtNode
::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > _GetDocSubstorageOrRoot(
const OUString& aStgName ) const;
+ /// allow reaction on change of content of GraphicObject, so always call
+ /// when GraphicObject content changes
+ void onGraphicChanged();
+
public:
virtual ~SwGrfNode();
const Graphic& GetGrf() const { return maGrfObj.GetGraphic(); }
@@ -132,10 +136,6 @@ public:
void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData = 0, const GraphicAttr* pAttr = NULL, sal_uLong nFlags = GRFMGR_DRAW_STANDARD, OutputDevice* pFirstFrameOutDev = NULL) { maGrfObj.StartAnimation(pOut, rPt, rSz, nExtraData, pAttr, nFlags, pFirstFrameOutDev); }
void StopGraphicAnimation(OutputDevice* pOut = NULL, long nExtraData = 0) { maGrfObj.StopAnimation(pOut, nExtraData); }
- /// allow reaction on change of content of GraphicObject, so always call
- /// when GraphicObject content changes
- void onGraphicChanged();
-
virtual Size GetTwipSize() const SAL_OVERRIDE;
void SetTwipSize( const Size& rSz );