Kaydet (Commit) e0a43dff authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

Use vector instead of scoped_array to hold ruler items

Change-Id: I51f8d1d22da5f869e9937813de9649fddae1ffda
üst b46079bb
......@@ -140,6 +140,11 @@ public:
const SvxTabStop& operator[]( const sal_uInt16 nPos ) const
{ return maTabStops[nPos]; }
const SvxTabStop& At( const sal_uInt16 nPos ) const
{
return maTabStops[nPos];
}
// "pure virtual Methods" from SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
......
......@@ -87,11 +87,11 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
sal_uInt16 nTabBufSize;
long lDefTabDist;
long lTabPos;
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;
boost::scoped_array<RulerBorder> mpObjectBorders;
std::vector<RulerTab> mpTabs; // tab positions in pixel
std::vector<RulerIndent> mpIndents; // paragraph margins in pixel
std::vector<RulerBorder> mpBorders;
std::vector<RulerBorder> mpObjectBorders;
SfxBindings* pBindings;
long nDragOffset;
......@@ -167,7 +167,7 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
long GetRightIndent() const;
long GetLogicRightIndent() const;
inline long GetLeftFrameMargin() const;
long GetLeftFrameMargin() const;
long GetRightFrameMargin() const;
void CalcMinMax();
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment