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

#include <wrtswtbl.hxx>

Collaboration diagram for SwWriteTable:
[legend]

Public Member Functions

sal_uInt32 GetRawWidth (sal_uInt16 nCol, sal_uInt16 nColSpan) const
 
sal_uInt16 GetAbsWidth (sal_uInt16 nCol, sal_uInt16 nColSpan) const
 
sal_uInt16 GetRelWidth (sal_uInt16 nCol, sal_uInt16 nColSpan) const
 
sal_uInt16 GetPrcWidth (sal_uInt16 nCol, sal_uInt16 nColSpan) const
 
long GetAbsHeight (long nRawWidth, size_t nRow, sal_uInt16 nRowSpan) const
 
double GetAbsWidthRatio () const
 
 SwWriteTable (const SwTable *pTable, const SwTableLines &rLines, long nWidth, sal_uInt32 nBWidth, bool bRel, sal_uInt16 nMaxDepth=USHRT_MAX, sal_uInt16 nLeftSub=0, sal_uInt16 nRightSub=0, sal_uInt32 nNumOfRowsToRepeat=0)
 
 SwWriteTable (const SwTable *pTable, const SwHTMLTableLayout *pLayoutInfo)
 
virtual ~SwWriteTable ()
 
const SwWriteTableRowsGetRows () const
 
const SwTableGetTable () const
 

Static Public Member Functions

static sal_uInt32 GetBoxWidth (const SwTableBox *pBox)
 

Protected Member Functions

virtual bool ShouldExpandSub (const SwTableBox *pBox, bool bExpandedBefore, sal_uInt16 nDepth) const
 
void CollectTableRowsCols (long nStartRPos, sal_uInt32 nStartCPos, long nParentLineHeight, sal_uInt32 nParentLineWidth, const SwTableLines &rLines, sal_uInt16 nDepth)
 
void FillTableRowsCols (long nStartRPos, sal_uInt16 nStartRow, sal_uInt32 nStartCPos, sal_uInt16 nStartCol, long nParentLineHeight, sal_uInt32 nParentLineWidth, const SwTableLines &rLines, const SvxBrushItem *pLineBrush, sal_uInt16 nDepth, sal_uInt16 nNumOfHeaderRows)
 
void MergeBorders (const editeng::SvxBorderLine *pBorderLine, bool bTable)
 
sal_uInt16 MergeBoxBorders (const SwTableBox *pBox, size_t nRow, size_t nCol, sal_uInt16 nRowSpan, sal_uInt16 nColSpan, sal_uInt16 &rTopBorder, sal_uInt16 &rBottomBorder)
 
sal_uInt32 GetBaseWidth () const
 
bool HasRelWidths () const
 
long GetLineHeight (const SwTableLine *pLine)
 
sal_uInt16 GetLeftSpace (sal_uInt16 nCol) const
 
sal_uInt16 GetRightSpace (size_t nCol, sal_uInt16 nColSpan) const
 

Static Protected Member Functions

static long GetLineHeight (const SwTableBox *pBox)
 
static const SvxBrushItemGetLineBrush (const SwTableBox *pBox, SwWriteTableRow *pRow)
 

Protected Attributes

SwWriteTableCols m_aCols
 
SwWriteTableRows m_aRows
 
Color m_nBorderColor
 
sal_uInt16 m_nCellSpacing
 
sal_uInt16 m_nCellPadding
 
sal_uInt16 m_nBorder
 
sal_uInt16 m_nInnerBorder
 
sal_uInt32 const m_nBaseWidth
 
sal_uInt16 m_nHeadEndRow
 
sal_uInt16 const m_nLeftSub
 
sal_uInt16 const m_nRightSub
 
sal_uInt32 m_nTabWidth
 
bool const m_bRelWidths: 1
 
bool m_bUseLayoutHeights: 1
 
bool m_bGetLineHeightCalled: 1
 
bool const m_bColTags: 1
 
bool const m_bLayoutExport: 1
 
bool const m_bCollectBorderWidth: 1
 

Private Attributes

const SwTablem_pTable
 

Detailed Description

Definition at line 213 of file wrtswtbl.hxx.

Constructor & Destructor Documentation

SwWriteTable::SwWriteTable ( const SwTable pTable,
const SwTableLines rLines,
long  nWidth,
sal_uInt32  nBWidth,
bool  bRel,
sal_uInt16  nMaxDepth = USHRT_MAX,
sal_uInt16  nLeftSub = 0,
sal_uInt16  nRightSub = 0,
sal_uInt32  nNumOfRowsToRepeat = 0 
)
SwWriteTable::SwWriteTable ( const SwTable pTable,
const SwHTMLTableLayout pLayoutInfo 
)
SwWriteTable::~SwWriteTable ( )
virtual

Definition at line 882 of file wrtswtbl.cxx.

Member Function Documentation

void SwWriteTable::CollectTableRowsCols ( long  nStartRPos,
sal_uInt32  nStartCPos,
long  nParentLineHeight,
sal_uInt32  nParentLineWidth,
const SwTableLines rLines,
sal_uInt16  nDepth 
)
protected
void SwWriteTable::FillTableRowsCols ( long  nStartRPos,
sal_uInt16  nStartRow,
sal_uInt32  nStartCPos,
sal_uInt16  nStartCol,
long  nParentLineHeight,
sal_uInt32  nParentLineWidth,
const SwTableLines rLines,
const SvxBrushItem pLineBrush,
sal_uInt16  nDepth,
sal_uInt16  nNumOfHeaderRows 
)
protected
long SwWriteTable::GetAbsHeight ( long  nRawWidth,
size_t  nRow,
sal_uInt16  nRowSpan 
) const
sal_uInt16 SwWriteTable::GetAbsWidth ( sal_uInt16  nCol,
sal_uInt16  nColSpan 
) const

Definition at line 328 of file wrtswtbl.cxx.

References GetLeftSpace(), GetRawWidth(), GetRightSpace(), m_nBaseWidth, and m_nTabWidth.

double SwWriteTable::GetAbsWidthRatio ( ) const
inline

Definition at line 285 of file wrtswtbl.hxx.

sal_uInt32 SwWriteTable::GetBaseWidth ( ) const
inlineprotected

Definition at line 271 of file wrtswtbl.hxx.

Referenced by GetPrcWidth(), and GetRelWidth().

sal_uInt32 SwWriteTable::GetBoxWidth ( const SwTableBox pBox)
static
sal_uInt16 SwWriteTable::GetLeftSpace ( sal_uInt16  nCol) const
protected
const SvxBrushItem * SwWriteTable::GetLineBrush ( const SwTableBox pBox,
SwWriteTableRow pRow 
)
staticprotected
long SwWriteTable::GetLineHeight ( const SwTableLine pLine)
protected
long SwWriteTable::GetLineHeight ( const SwTableBox pBox)
staticprotected
sal_uInt16 SwWriteTable::GetPrcWidth ( sal_uInt16  nCol,
sal_uInt16  nColSpan 
) const

Definition at line 351 of file wrtswtbl.cxx.

References GetBaseWidth(), and GetRawWidth().

sal_uInt32 SwWriteTable::GetRawWidth ( sal_uInt16  nCol,
sal_uInt16  nColSpan 
) const

Definition at line 283 of file wrtswtbl.cxx.

References m_aCols.

Referenced by GetAbsWidth(), GetPrcWidth(), and GetRelWidth().

sal_uInt16 SwWriteTable::GetRelWidth ( sal_uInt16  nCol,
sal_uInt16  nColSpan 
) const

Definition at line 343 of file wrtswtbl.cxx.

References GetBaseWidth(), and GetRawWidth().

sal_uInt16 SwWriteTable::GetRightSpace ( size_t  nCol,
sal_uInt16  nColSpan 
) const
protected
const SwWriteTableRows& SwWriteTable::GetRows ( ) const
inline

Definition at line 302 of file wrtswtbl.hxx.

const SwTable* SwWriteTable::GetTable ( ) const
inline

Definition at line 304 of file wrtswtbl.hxx.

bool SwWriteTable::HasRelWidths ( ) const
inlineprotected

Definition at line 273 of file wrtswtbl.hxx.

void SwWriteTable::MergeBorders ( const editeng::SvxBorderLine pBorderLine,
bool  bTable 
)
protected
sal_uInt16 SwWriteTable::MergeBoxBorders ( const SwTableBox pBox,
size_t  nRow,
size_t  nCol,
sal_uInt16  nRowSpan,
sal_uInt16  nColSpan,
sal_uInt16 &  rTopBorder,
sal_uInt16 &  rBottomBorder 
)
protected
bool SwWriteTable::ShouldExpandSub ( const SwTableBox pBox,
bool  bExpandedBefore,
sal_uInt16  nDepth 
) const
protectedvirtual

Definition at line 390 of file wrtswtbl.cxx.

References SwTableBox::GetSttNd().

Referenced by CollectTableRowsCols(), and FillTableRowsCols().

Member Data Documentation

SwWriteTableCols SwWriteTable::m_aCols
protected
SwWriteTableRows SwWriteTable::m_aRows
protected
bool const SwWriteTable::m_bCollectBorderWidth
protected

Definition at line 245 of file wrtswtbl.hxx.

Referenced by MergeBorders(), MergeBoxBorders(), and SwWriteTable().

bool const SwWriteTable::m_bColTags
protected

Definition at line 243 of file wrtswtbl.hxx.

Referenced by SwWriteTable().

bool SwWriteTable::m_bGetLineHeightCalled
protected

Definition at line 240 of file wrtswtbl.hxx.

Referenced by GetLineHeight().

bool const SwWriteTable::m_bLayoutExport
protected

Definition at line 244 of file wrtswtbl.hxx.

bool const SwWriteTable::m_bRelWidths
protected

Definition at line 237 of file wrtswtbl.hxx.

bool SwWriteTable::m_bUseLayoutHeights
protected

Definition at line 238 of file wrtswtbl.hxx.

Referenced by CollectTableRowsCols(), FillTableRowsCols(), GetLineHeight(), and SwWriteTable().

sal_uInt32 const SwWriteTable::m_nBaseWidth
protected

Definition at line 228 of file wrtswtbl.hxx.

Referenced by GetAbsWidth(), and SwWriteTable().

sal_uInt16 SwWriteTable::m_nBorder
protected

Definition at line 226 of file wrtswtbl.hxx.

Referenced by GetAbsHeight(), GetLeftSpace(), GetRightSpace(), MergeBorders(), and SwWriteTable().

Color SwWriteTable::m_nBorderColor
protected

Definition at line 221 of file wrtswtbl.hxx.

Referenced by MergeBorders().

sal_uInt16 SwWriteTable::m_nCellPadding
protected
sal_uInt16 SwWriteTable::m_nCellSpacing
protected

Definition at line 223 of file wrtswtbl.hxx.

Referenced by GetAbsHeight(), GetLeftSpace(), GetRightSpace(), MergeBorders(), and SwWriteTable().

sal_uInt16 SwWriteTable::m_nHeadEndRow
protected

Definition at line 230 of file wrtswtbl.hxx.

Referenced by FillTableRowsCols().

sal_uInt16 SwWriteTable::m_nInnerBorder
protected

Definition at line 227 of file wrtswtbl.hxx.

Referenced by MergeBorders(), and SwWriteTable().

sal_uInt16 const SwWriteTable::m_nLeftSub
protected

Definition at line 232 of file wrtswtbl.hxx.

Referenced by GetLeftSpace(), and SwWriteTable().

sal_uInt16 const SwWriteTable::m_nRightSub
protected

Definition at line 233 of file wrtswtbl.hxx.

Referenced by GetRightSpace(), and SwWriteTable().

sal_uInt32 SwWriteTable::m_nTabWidth
protected

Definition at line 235 of file wrtswtbl.hxx.

Referenced by GetAbsWidth().

const SwTable* SwWriteTable::m_pTable
private

Definition at line 216 of file wrtswtbl.hxx.


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