diff options
Diffstat (limited to 'sw/source/ui/inc/colmgr.hxx')
-rw-r--r-- | sw/source/ui/inc/colmgr.hxx | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sw/source/ui/inc/colmgr.hxx b/sw/source/ui/inc/colmgr.hxx index 0d9ebdf5123c..dff43a1e9419 100644 --- a/sw/source/ui/inc/colmgr.hxx +++ b/sw/source/ui/inc/colmgr.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -55,7 +56,8 @@ public: inline sal_Bool HasLine() const; inline void SetNoLine(); - inline void SetLineWidthAndColor(sal_uLong nWidth, const Color& rCol); + void SetLineWidthAndColor(SvxBorderStyle eStyle, sal_uLong nWidth, const Color& rCol); + inline SvxBorderStyle GetLineStyle() const; inline sal_uLong GetLineWidth() const; inline const Color& GetLineColor() const; @@ -81,28 +83,30 @@ private: }; // INLINE METHODE -------------------------------------------------------- - inline sal_uInt16 SwColMgr::GetCount() const { return aFmtCol.GetNumCols(); } -inline void SwColMgr::SetLineWidthAndColor(sal_uLong nLWidth, const Color& rCol) + +inline SvxBorderStyle SwColMgr::GetLineStyle() const { - aFmtCol.SetLineWidth(nLWidth); - aFmtCol.SetLineColor(rCol); + return aFmtCol.GetLineStyle(); } inline sal_uLong SwColMgr::GetLineWidth() const { return aFmtCol.GetLineWidth(); } + inline const Color& SwColMgr::GetLineColor() const { return aFmtCol.GetLineColor(); } + inline SwColLineAdj SwColMgr::GetAdjust() const { return aFmtCol.GetLineAdj(); } + inline void SwColMgr::SetAdjust(SwColLineAdj eAdj) { aFmtCol.SetLineAdj(eAdj); @@ -115,6 +119,7 @@ inline void SwColMgr::SetAutoWidth(sal_Bool bOn, sal_uInt16 nGutterWidth) { aFmtCol.SetOrtho(bOn, nGutterWidth, nWidth); } + inline void SwColMgr::NoCols() { aFmtCol.GetColumns().DeleteAndDestroy(0, aFmtCol.GetColumns().Count()); @@ -123,9 +128,12 @@ inline sal_Bool SwColMgr::HasLine() const { return GetAdjust() != COLADJ_NONE; } + inline void SwColMgr::SetNoLine() { SetAdjust(COLADJ_NONE); } #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |