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 GetPercentWidth (sal_uInt16 nCol, sal_uInt16 nColSpan) const
 
tools::Long GetAbsHeight (tools::Long nRawWidth, size_t nRow, sal_uInt16 nRowSpan) const
 
double GetAbsWidthRatio () const
 
 SwWriteTable (const SwTable *pTable, const SwTableLines &rLines, tools::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 (tools::Long nStartRPos, sal_uInt32 nStartCPos, tools::Long nParentLineHeight, sal_uInt32 nParentLineWidth, const SwTableLines &rLines, sal_uInt16 nDepth)
 
void FillTableRowsCols (tools::Long nStartRPos, sal_uInt16 nStartRow, sal_uInt32 nStartCPos, sal_uInt16 nStartCol, tools::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
 
tools::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 tools::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 m_nBaseWidth
 
sal_uInt16 m_nHeadEndRow
 
sal_uInt16 m_nLeftSub
 
sal_uInt16 m_nRightSub
 
sal_uInt32 m_nTabWidth
 
bool m_bRelWidths: 1
 
bool m_bUseLayoutHeights: 1
 
bool m_bGetLineHeightCalled: 1
 
bool m_bColTags: 1
 
bool m_bLayoutExport: 1
 
bool m_bCollectBorderWidth: 1
 

Private Attributes

const SwTablem_pTable
 

Detailed Description

Definition at line 214 of file wrtswtbl.hxx.

Constructor & Destructor Documentation

◆ SwWriteTable() [1/2]

SwWriteTable::SwWriteTable ( const SwTable pTable,
const SwTableLines rLines,
tools::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() [2/2]

SwWriteTable::SwWriteTable ( const SwTable pTable,
const SwHTMLTableLayout pLayoutInfo 
)

◆ ~SwWriteTable()

SwWriteTable::~SwWriteTable ( )
virtual

Definition at line 874 of file wrtswtbl.cxx.

Member Function Documentation

◆ CollectTableRowsCols()

void SwWriteTable::CollectTableRowsCols ( tools::Long  nStartRPos,
sal_uInt32  nStartCPos,
tools::Long  nParentLineHeight,
sal_uInt32  nParentLineWidth,
const SwTableLines rLines,
sal_uInt16  nDepth 
)
protected

◆ FillTableRowsCols()

void SwWriteTable::FillTableRowsCols ( tools::Long  nStartRPos,
sal_uInt16  nStartRow,
sal_uInt32  nStartCPos,
sal_uInt16  nStartCol,
tools::Long  nParentLineHeight,
sal_uInt32  nParentLineWidth,
const SwTableLines rLines,
const SvxBrushItem pLineBrush,
sal_uInt16  nDepth,
sal_uInt16  nNumOfHeaderRows 
)
protected

◆ GetAbsHeight()

tools::Long SwWriteTable::GetAbsHeight ( tools::Long  nRawWidth,
size_t  nRow,
sal_uInt16  nRowSpan 
) const

◆ GetAbsWidth()

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

Definition at line 322 of file wrtswtbl.cxx.

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

◆ GetAbsWidthRatio()

double SwWriteTable::GetAbsWidthRatio ( ) const
inline

Definition at line 286 of file wrtswtbl.hxx.

◆ GetBaseWidth()

sal_uInt32 SwWriteTable::GetBaseWidth ( ) const
inlineprotected

Definition at line 272 of file wrtswtbl.hxx.

Referenced by GetPercentWidth(), and GetRelWidth().

◆ GetBoxWidth()

sal_uInt32 SwWriteTable::GetBoxWidth ( const SwTableBox pBox)
static

◆ GetLeftSpace()

sal_uInt16 SwWriteTable::GetLeftSpace ( sal_uInt16  nCol) const
protected

◆ GetLineBrush()

const SvxBrushItem * SwWriteTable::GetLineBrush ( const SwTableBox pBox,
SwWriteTableRow pRow 
)
staticprotected

◆ GetLineHeight() [1/2]

tools::Long SwWriteTable::GetLineHeight ( const SwTableBox pBox)
staticprotected

◆ GetLineHeight() [2/2]

tools::Long SwWriteTable::GetLineHeight ( const SwTableLine pLine)
protected

◆ GetPercentWidth()

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

Definition at line 345 of file wrtswtbl.cxx.

References GetBaseWidth(), and GetRawWidth().

◆ GetRawWidth()

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

Definition at line 277 of file wrtswtbl.cxx.

References m_aCols.

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

◆ GetRelWidth()

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

Definition at line 337 of file wrtswtbl.cxx.

References GetBaseWidth(), and GetRawWidth().

◆ GetRightSpace()

sal_uInt16 SwWriteTable::GetRightSpace ( size_t  nCol,
sal_uInt16  nColSpan 
) const
protected

◆ GetRows()

const SwWriteTableRows & SwWriteTable::GetRows ( ) const
inline

Definition at line 303 of file wrtswtbl.hxx.

◆ GetTable()

const SwTable * SwWriteTable::GetTable ( ) const
inline

Definition at line 305 of file wrtswtbl.hxx.

◆ HasRelWidths()

bool SwWriteTable::HasRelWidths ( ) const
inlineprotected

Definition at line 274 of file wrtswtbl.hxx.

◆ MergeBorders()

void SwWriteTable::MergeBorders ( const editeng::SvxBorderLine pBorderLine,
bool  bTable 
)
protected

◆ MergeBoxBorders()

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

◆ ShouldExpandSub()

bool SwWriteTable::ShouldExpandSub ( const SwTableBox pBox,
bool  bExpandedBefore,
sal_uInt16  nDepth 
) const
protectedvirtual

Definition at line 384 of file wrtswtbl.cxx.

References SwTableBox::GetSttNd().

Referenced by CollectTableRowsCols(), and FillTableRowsCols().

Member Data Documentation

◆ m_aCols

SwWriteTableCols SwWriteTable::m_aCols
protected

◆ m_aRows

SwWriteTableRows SwWriteTable::m_aRows
protected

◆ m_bCollectBorderWidth

bool SwWriteTable::m_bCollectBorderWidth
protected

Definition at line 246 of file wrtswtbl.hxx.

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

◆ m_bColTags

bool SwWriteTable::m_bColTags
protected

Definition at line 244 of file wrtswtbl.hxx.

Referenced by SwWriteTable().

◆ m_bGetLineHeightCalled

bool SwWriteTable::m_bGetLineHeightCalled
protected

Definition at line 241 of file wrtswtbl.hxx.

Referenced by GetLineHeight().

◆ m_bLayoutExport

bool SwWriteTable::m_bLayoutExport
protected

Definition at line 245 of file wrtswtbl.hxx.

◆ m_bRelWidths

bool SwWriteTable::m_bRelWidths
protected

Definition at line 238 of file wrtswtbl.hxx.

◆ m_bUseLayoutHeights

bool SwWriteTable::m_bUseLayoutHeights
protected

Definition at line 239 of file wrtswtbl.hxx.

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

◆ m_nBaseWidth

sal_uInt32 SwWriteTable::m_nBaseWidth
protected

Definition at line 229 of file wrtswtbl.hxx.

Referenced by GetAbsWidth(), and SwWriteTable().

◆ m_nBorder

sal_uInt16 SwWriteTable::m_nBorder
protected

Definition at line 227 of file wrtswtbl.hxx.

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

◆ m_nBorderColor

Color SwWriteTable::m_nBorderColor
protected

Definition at line 222 of file wrtswtbl.hxx.

Referenced by MergeBorders().

◆ m_nCellPadding

sal_uInt16 SwWriteTable::m_nCellPadding
protected

◆ m_nCellSpacing

sal_uInt16 SwWriteTable::m_nCellSpacing
protected

Definition at line 224 of file wrtswtbl.hxx.

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

◆ m_nHeadEndRow

sal_uInt16 SwWriteTable::m_nHeadEndRow
protected

Definition at line 231 of file wrtswtbl.hxx.

Referenced by FillTableRowsCols().

◆ m_nInnerBorder

sal_uInt16 SwWriteTable::m_nInnerBorder
protected

Definition at line 228 of file wrtswtbl.hxx.

Referenced by MergeBorders(), and SwWriteTable().

◆ m_nLeftSub

sal_uInt16 SwWriteTable::m_nLeftSub
protected

Definition at line 233 of file wrtswtbl.hxx.

Referenced by GetLeftSpace(), and SwWriteTable().

◆ m_nRightSub

sal_uInt16 SwWriteTable::m_nRightSub
protected

Definition at line 234 of file wrtswtbl.hxx.

Referenced by GetRightSpace(), and SwWriteTable().

◆ m_nTabWidth

sal_uInt32 SwWriteTable::m_nTabWidth
protected

Definition at line 236 of file wrtswtbl.hxx.

Referenced by GetAbsWidth().

◆ m_pTable

const SwTable* SwWriteTable::m_pTable
private

Definition at line 217 of file wrtswtbl.hxx.


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