summaryrefslogtreecommitdiff
path: root/include/svx/ruler.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-08-28 21:36:17 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-08-29 18:40:01 +0200
commit0e0078468addfa8f253f966d72d57164bc630c32 (patch)
tree809e1c05bd125152c75c75cc86c035cf493f02f5 /include/svx/ruler.hxx
parent99bbef59aea5a9b5d3a606ec67870161b4896689 (diff)
Convert more instance vars to scoped_ptr and scoped_array in ruler
Change-Id: I8f6f0800af814e08a38e09136c4e26cb1b9c7902
Diffstat (limited to 'include/svx/ruler.hxx')
-rw-r--r--include/svx/ruler.hxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/svx/ruler.hxx b/include/svx/ruler.hxx
index 15b799bd9505..1044c8922987 100644
--- a/include/svx/ruler.hxx
+++ b/include/svx/ruler.hxx
@@ -25,6 +25,7 @@
#include <svx/svxdllapi.h>
#include <boost/scoped_ptr.hpp>
+#include <boost/scoped_array.hpp>
class SvxProtectItem;
class SvxRulerItem;
@@ -57,7 +58,9 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
boost::scoped_ptr<SvxObjectItem> mpObjectItem; // object
Window* pEditWin;
- SvxRuler_Impl* pRuler_Imp;
+
+ boost::scoped_ptr<SvxRuler_Impl> mpRulerImpl;
+
sal_Bool bAppSetNullOffset :1;
sal_Bool bHorz :1;
long lLogicNullOffset; // in logic coordinates
@@ -84,11 +87,12 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
sal_uInt16 nTabBufSize;
long lDefTabDist;
long lTabPos;
- RulerTab* pTabs; // tab positions in pixel
- RulerIndent* pIndents; // paragraph margins in pixel
- RulerBorder* pBorders;
+ boost::scoped_array<RulerTab> mpTabs; // tab positions in pixel
+ boost::scoped_array<RulerIndent> mpIndents; // paragraph margins in pixel
+ boost::scoped_array<RulerBorder> mpBorders;
sal_uInt16 nBorderCount;
- RulerBorder* pObjectBorders;
+ boost::scoped_array<RulerBorder> mpObjectBorders;
+
SfxBindings* pBindings;
long nDragOffset;
long nMaxLeft;