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

#include <colmgr.hxx>

Collaboration diagram for SwColMgr:
[legend]

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 aFormatCol
 
sal_uInt16 nWidth
 

Detailed Description

Definition at line 27 of file colmgr.hxx.

Constructor & Destructor Documentation

SwColMgr::SwColMgr ( const SfxItemSet rSet)
SwColMgr::~SwColMgr ( )

Definition at line 150 of file colmgr.cxx.

Member Function Documentation

sal_uInt16 SwColMgr::GetActualSize ( ) const
inline

Definition at line 64 of file colmgr.hxx.

Referenced by GetMaxWidth().

SwColLineAdj SwColMgr::GetAdjust ( ) const
inline

Definition at line 90 of file colmgr.hxx.

References aFormatCol, and SwFormatCol::GetLineAdj().

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

const SwFormatCol& SwColMgr::GetColumns ( ) const
inline

Definition at line 61 of file colmgr.hxx.

sal_uInt16 SwColMgr::GetColWidth ( sal_uInt16  nIdx) const

Definition at line 117 of file colmgr.cxx.

References aFormatCol, SwFormatCol::CalcPrtColWidth(), GetCount(), and nWidth.

Referenced by SwColExample::DrawPage().

sal_uInt16 SwColMgr::GetCount ( ) const
inline
sal_uInt16 SwColMgr::GetGutterWidth ( sal_uInt16  nPos = USHRT_MAX) const
const Color & SwColMgr::GetLineColor ( ) const
inline

Definition at line 85 of file colmgr.hxx.

References aFormatCol, and SwFormatCol::GetLineColor().

short SwColMgr::GetLineHeightPercent ( ) const

Definition at line 106 of file colmgr.cxx.

References aFormatCol, and SwFormatCol::GetLineHeight().

Referenced by SwColExample::DrawPage().

SvxBorderLineStyle SwColMgr::GetLineStyle ( ) const
inline

Definition at line 76 of file colmgr.hxx.

References aFormatCol, and SwFormatCol::GetLineStyle().

sal_uLong SwColMgr::GetLineWidth ( ) const
inline

Definition at line 80 of file colmgr.hxx.

References aFormatCol, and SwFormatCol::GetLineWidth().

bool SwColMgr::HasLine ( ) const
inline

Definition at line 112 of file colmgr.hxx.

References COLADJ_NONE, and GetAdjust().

Referenced by SwColExample::DrawPage().

bool SwColMgr::IsAutoWidth ( ) const
inline

Definition at line 99 of file colmgr.hxx.

References aFormatCol, and SwFormatCol::IsOrtho().

Referenced by SwColExample::DrawPage().

void SwColMgr::NoCols ( )
inline

Definition at line 108 of file colmgr.hxx.

References aFormatCol, and SwFormatCol::GetColumns().

void SwColMgr::SetActualWidth ( sal_uInt16  nW)

Definition at line 131 of file colmgr.cxx.

References aFormatCol, FitToActualSize(), and nWidth.

void SwColMgr::SetAdjust ( SwColLineAdj  eAdj)
inline

Definition at line 95 of file colmgr.hxx.

References aFormatCol, and SwFormatCol::SetLineAdj().

Referenced by SetNoLine().

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

Definition at line 103 of file colmgr.hxx.

References aFormatCol, nWidth, and SwFormatCol::SetOrtho().

void SwColMgr::SetColWidth ( sal_uInt16  nIdx,
sal_uInt16  nWidth 
)

Definition at line 123 of file colmgr.cxx.

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

void SwColMgr::SetCount ( sal_uInt16  nCount,
sal_uInt16  nGutterWidth 
)
void SwColMgr::SetGutterWidth ( sal_uInt16  nWidth,
sal_uInt16  nPos = USHRT_MAX 
)
void SwColMgr::SetLineHeightPercent ( short  nPercent)

Definition at line 110 of file colmgr.cxx.

References aFormatCol, and SwFormatCol::SetLineHeight().

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

Definition at line 117 of file colmgr.hxx.

References COLADJ_NONE, and SetAdjust().

Member Data Documentation

SwFormatCol SwColMgr::aFormatCol
private
sal_uInt16 SwColMgr::nWidth
private

Definition at line 68 of file colmgr.hxx.

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


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