LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwColMgr Class Reference

#include <colmgr.hxx>

Collaboration diagram for SwColMgr:

Public Member Functions

 SwColMgr (const SfxItemSet &rSet)
 ~SwColMgr ()
sal_uInt16 GetCount () const
void SetCount (sal_uInt16 nCount, sal_uInt16 nGutterWidth)
sal_uInt16 GetGutterWidth (sal_uInt16 nPos=USHRT_MAX) const
void SetGutterWidth (sal_uInt16 nWidth, sal_uInt16 nPos=USHRT_MAX)
sal_uInt16 GetColWidth (sal_uInt16 nIdx) const
void SetColWidth (sal_uInt16 nIdx, sal_uInt16 nWidth)
bool IsAutoWidth () const
void SetAutoWidth (bool bOn, sal_uInt16 lGutterWidth=0)
bool HasLine () const
void SetNoLine ()
void SetLineWidthAndColor (SvxBorderLineStyle eStyle, sal_uLong nWidth, const Color &rCol)
SvxBorderLineStyle GetLineStyle () const
sal_uLong GetLineWidth () const
const ColorGetLineColor () const
SwColLineAdj GetAdjust () const
void SetAdjust (SwColLineAdj)
short GetLineHeightPercent () const
void SetLineHeightPercent (short nPercent)
void NoCols ()
const SwFormatColGetColumns () const
void SetActualWidth (sal_uInt16 nW)
sal_uInt16 GetActualSize () const

Private Attributes

SwFormatCol m_aFormatCol
sal_uInt16 m_nWidth

Detailed Description

Definition at line 29 of file colmgr.hxx.

Constructor & Destructor Documentation

◆ SwColMgr()

SwColMgr::SwColMgr ( const SfxItemSet rSet)

◆ ~SwColMgr()

SwColMgr::~SwColMgr ( )

Definition at line 149 of file colmgr.cxx.

Member Function Documentation

◆ GetActualSize()

sal_uInt16 SwColMgr::GetActualSize ( ) const

Definition at line 66 of file colmgr.hxx.

Referenced by GetMaxWidth().

◆ GetAdjust()

SwColLineAdj SwColMgr::GetAdjust ( ) const

Definition at line 92 of file colmgr.hxx.

References SwFormatCol::GetLineAdj(), and m_aFormatCol.

Referenced by SwColExample::DrawPage(), and HasLine().

◆ GetColumns()

const SwFormatCol & SwColMgr::GetColumns ( ) const

Definition at line 63 of file colmgr.hxx.

◆ GetColWidth()

sal_uInt16 SwColMgr::GetColWidth ( sal_uInt16  nIdx) const

Definition at line 117 of file colmgr.cxx.

References SwFormatCol::CalcPrtColWidth(), GetCount(), m_aFormatCol, and m_nWidth.

Referenced by SwColExample::DrawPage().

◆ GetCount()

sal_uInt16 SwColMgr::GetCount ( ) const

◆ GetGutterWidth()

sal_uInt16 SwColMgr::GetGutterWidth ( sal_uInt16  nPos = USHRT_MAX) const

◆ GetLineColor()

const Color & SwColMgr::GetLineColor ( ) const

Definition at line 87 of file colmgr.hxx.

References SwFormatCol::GetLineColor(), and m_aFormatCol.

◆ GetLineHeightPercent()

short SwColMgr::GetLineHeightPercent ( ) const

Definition at line 106 of file colmgr.cxx.

References SwFormatCol::GetLineHeight(), and m_aFormatCol.

Referenced by SwColExample::DrawPage().

◆ GetLineStyle()

SvxBorderLineStyle SwColMgr::GetLineStyle ( ) const

Definition at line 78 of file colmgr.hxx.

References SwFormatCol::GetLineStyle(), and m_aFormatCol.

◆ GetLineWidth()

sal_uLong SwColMgr::GetLineWidth ( ) const

Definition at line 82 of file colmgr.hxx.

References SwFormatCol::GetLineWidth(), and m_aFormatCol.

◆ HasLine()

bool SwColMgr::HasLine ( ) const

Definition at line 114 of file colmgr.hxx.

References COLADJ_NONE, and GetAdjust().

Referenced by SwColExample::DrawPage().

◆ IsAutoWidth()

bool SwColMgr::IsAutoWidth ( ) const

Definition at line 101 of file colmgr.hxx.

References SwFormatCol::IsOrtho(), and m_aFormatCol.

Referenced by SwColExample::DrawPage().

◆ NoCols()

void SwColMgr::NoCols ( )

Definition at line 110 of file colmgr.hxx.

References SwFormatCol::GetColumns(), and m_aFormatCol.

◆ SetActualWidth()

void SwColMgr::SetActualWidth ( sal_uInt16  nW)

Definition at line 130 of file colmgr.cxx.

References FitToActualSize(), m_aFormatCol, and m_nWidth.

◆ SetAdjust()

void SwColMgr::SetAdjust ( SwColLineAdj  eAdj)

Definition at line 97 of file colmgr.hxx.

References m_aFormatCol, and SwFormatCol::SetLineAdj().

Referenced by SetNoLine().

◆ SetAutoWidth()

void SwColMgr::SetAutoWidth ( bool  bOn,
sal_uInt16  lGutterWidth = 0 

Definition at line 105 of file colmgr.hxx.

References m_aFormatCol, m_nWidth, and SwFormatCol::SetOrtho().

◆ SetColWidth()

void SwColMgr::SetColWidth ( sal_uInt16  nIdx,
sal_uInt16  nWidth 

Definition at line 123 of file colmgr.cxx.

References SwFormatCol::GetColumns(), GetCount(), and m_aFormatCol.

◆ SetCount()

void SwColMgr::SetCount ( sal_uInt16  nCount,
sal_uInt16  nGutterWidth 

◆ SetGutterWidth()

void SwColMgr::SetGutterWidth ( sal_uInt16  nWidth,
sal_uInt16  nPos = USHRT_MAX 

◆ SetLineHeightPercent()

void SwColMgr::SetLineHeightPercent ( short  nPercent)

Definition at line 110 of file colmgr.cxx.

References m_aFormatCol, and SwFormatCol::SetLineHeight().

◆ SetLineWidthAndColor()

void SwColMgr::SetLineWidthAndColor ( SvxBorderLineStyle  eStyle,
sal_uLong  nWidth,
const Color rCol 

◆ SetNoLine()

void SwColMgr::SetNoLine ( )

Definition at line 119 of file colmgr.hxx.

References COLADJ_NONE, and SetAdjust().

Member Data Documentation

◆ m_aFormatCol

SwFormatCol SwColMgr::m_aFormatCol

◆ m_nWidth

sal_uInt16 SwColMgr::m_nWidth

Definition at line 70 of file colmgr.hxx.

Referenced by GetColWidth(), SetActualWidth(), SetAutoWidth(), SetCount(), SetGutterWidth(), and SwColMgr().

The documentation for this class was generated from the following files: