summaryrefslogtreecommitdiff
path: root/sw/inc/fmtclds.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/fmtclds.hxx')
-rw-r--r--sw/inc/fmtclds.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/fmtclds.hxx b/sw/inc/fmtclds.hxx
index 7e1cc64eb8e2..a7b08d3431eb 100644
--- a/sw/inc/fmtclds.hxx
+++ b/sw/inc/fmtclds.hxx
@@ -34,6 +34,7 @@
#include "swdllapi.h"
#include <hintids.hxx>
#include <format.hxx>
+#include <boost/ptr_container/ptr_vector.hpp>
// ColumnDescriptor
class SwColumn
@@ -49,7 +50,7 @@ class SwColumn
public:
SwColumn();
- sal_Bool operator==( const SwColumn & );
+ sal_Bool operator==( const SwColumn & ) const;
void SetWishWidth( sal_uInt16 nNew ) { nWish = nNew; }
@@ -65,8 +66,7 @@ public:
sal_uInt16 GetRight() const { return nRight; }
};
-typedef SwColumn* SwColumnPtr;
-SV_DECL_PTRARR_DEL( SwColumns, SwColumnPtr, 0 )
+typedef boost::ptr_vector<SwColumn> SwColumns;
enum SwColLineAdj
{
@@ -119,7 +119,7 @@ public:
const SwColumns &GetColumns() const { return aColumns; }
SwColumns &GetColumns() { return aColumns; }
- sal_uInt16 GetNumCols() const { return aColumns.Count(); }
+ sal_uInt16 GetNumCols() const { return aColumns.size(); }
editeng::SvxBorderStyle GetLineStyle() const { return eLineStyle;}
sal_uLong GetLineWidth() const { return nLineWidth;}