summaryrefslogtreecommitdiff
path: root/sc/inc/editutil.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-20 13:49:00 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 12:38:09 +0100
commit11e83bc770af8a274ff08c7162677e7d6987bcd4 (patch)
tree34fc412a59f00e6a3be47c312b2bb70921b310c6 /sc/inc/editutil.hxx
parent61b224f392eb856bf4cfa0c04c68202a463cbdbf (diff)
wrap some more OutputDevice in VclPtr
Change-Id: I6f4a74bf56543e4d31d3b84a0cd2830d4f4d669a
Diffstat (limited to 'sc/inc/editutil.hxx')
-rw-r--r--sc/inc/editutil.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/inc/editutil.hxx b/sc/inc/editutil.hxx
index 3b9b53a40d0e..86fd4ff70083 100644
--- a/sc/inc/editutil.hxx
+++ b/sc/inc/editutil.hxx
@@ -41,7 +41,7 @@ class ScEditUtil
SCROW nRow;
SCTAB nTab;
Point aScrPos;
- OutputDevice* pDev; // MapMode has to be set
+ VclPtr<OutputDevice> pDev; // MapMode has to be set
double nPPTX;
double nPPTY;
Fraction aZoomX;
@@ -80,10 +80,7 @@ public:
ScEditUtil( ScDocument* pDocument, SCCOL nX, SCROW nY, SCTAB nZ,
const Point& rScrPosPixel,
OutputDevice* pDevice, double nScaleX, double nScaleY,
- const Fraction& rX, const Fraction& rY ) :
- pDoc(pDocument),nCol(nX),nRow(nY),nTab(nZ),
- aScrPos(rScrPosPixel),pDev(pDevice),
- nPPTX(nScaleX),nPPTY(nScaleY),aZoomX(rX),aZoomY(rY) {}
+ const Fraction& rX, const Fraction& rY );
Rectangle GetEditArea( const ScPatternAttr* pPattern, bool bForceToTop );
};