LibreOffice Module sw (master) 1
|
#include <wrtswtbl.hxx>
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 SwWriteTableRows & | GetRows () const |
const SwTable * | GetTable () 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 SvxBrushItem * | GetLineBrush (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 SwTable * | m_pTable |
Definition at line 214 of file wrtswtbl.hxx.
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 |
||
) |
Definition at line 724 of file wrtswtbl.cxx.
References CollectTableRowsCols(), ColorTransparency, FillTableRowsCols(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), m_aCols, m_bUseLayoutHeights, m_nBaseWidth, m_nBorder, m_nInnerBorder, m_nLeftSub, and m_nRightSub.
SwWriteTable::SwWriteTable | ( | const SwTable * | pTable, |
const SwHTMLTableLayout * | pLayoutInfo | ||
) |
Definition at line 758 of file wrtswtbl.cxx.
References SwWriteTableRow::AddCell(), COL_DFLT_WIDTH, ColorTransparency, SwHTMLTableLayout::GetBorder(), SwHTMLTableLayout::GetCell(), SwHTMLTableLayout::GetCellPadding(), SwHTMLTableLayout::GetCellSpacing(), SwHTMLTableLayout::GetColCount(), SwHTMLTableLayoutCell::GetColSpan(), SwHTMLTableLayout::GetColumn(), SwHTMLTableLayoutCell::GetContents(), GetLineBrush(), GetLineHeight(), SwHTMLTableLayout::GetRowCount(), SwHTMLTableLayoutCell::GetRowSpan(), SwHTMLTableLayoutCnts::GetTableBox(), SwHTMLTableLayoutCell::GetWidthOption(), SwHTMLTableLayoutColumn::GetWidthOption(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwHTMLTableLayoutCell::IsPercentWidthOption(), SwHTMLTableLayoutColumn::IsRelWidthOption(), m_aCols, m_aRows, SwWriteTableRow::m_bBottomBorder, m_bCollectBorderWidth, m_bColTags, SwWriteTableCol::m_bLeftBorder, SwWriteTableCol::m_bRightBorder, SwWriteTableRow::m_bTopBorder, m_bUseLayoutHeights, m_nBorder, m_nCellPadding, m_nCellSpacing, m_nInnerBorder, MergeBoxBorders(), ROW_DFLT_HEIGHT, and SwWriteTableCell::SetWidthOpt().
|
virtual |
Definition at line 874 of file wrtswtbl.cxx.
|
protected |
Definition at line 394 of file wrtswtbl.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), CollectTableRowsCols(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), GetBoxWidth(), GetLineHeight(), SwTableLine::GetTabBoxes(), SwTableBox::GetTabLines(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), m_aCols, m_aRows, m_bUseLayoutHeights, p, ShouldExpandSub(), and SwTableLines::size().
Referenced by CollectTableRowsCols(), and SwWriteTable().
|
protected |
Definition at line 518 of file wrtswtbl.cxx.
References SwWriteTableRow::AddCell(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), FillTableRowsCols(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwFormat::GetAttrSet(), GetBoxWidth(), SwTableLine::GetFrameFormat(), SfxItemSet::GetItemIfSet(), GetLineHeight(), SwTableBox::getRowSpan(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableBox::GetTabLines(), m_aCols, m_aRows, SwWriteTableRow::m_bBottomBorder, SwWriteTableCol::m_bLeftBorder, SwWriteTableCol::m_bRightBorder, SwWriteTableRow::m_bTopBorder, m_bUseLayoutHeights, SwWriteTableRow::m_nBottomBorder, m_nHeadEndRow, SwWriteTableRow::m_nTopBorder, MergeBoxBorders(), p, RES_BACKGROUND(), RES_FRM_SIZE(), SAL_WARN_IF, SwWriteTableRow::SetBackground(), ShouldExpandSub(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and SwTableLines::size().
Referenced by FillTableRowsCols(), and SwWriteTable().
tools::Long SwWriteTable::GetAbsHeight | ( | tools::Long | nRawWidth, |
size_t | nRow, | ||
sal_uInt16 | nRowSpan | ||
) | const |
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.
|
inline |
Definition at line 286 of file wrtswtbl.hxx.
|
inlineprotected |
Definition at line 272 of file wrtswtbl.hxx.
Referenced by GetPercentWidth(), and GetRelWidth().
|
static |
Definition at line 82 of file wrtswtbl.cxx.
References SwFormat::GetFormatAttr(), SwTableBox::GetFrameFormat(), SvxSizeItem::GetSize(), RES_FRM_SIZE(), and Size::Width().
Referenced by CollectTableRowsCols(), SwXMLExport::ExportTableLine(), SwXMLExport::ExportTableLinesAutoStyles(), FillTableRowsCols(), and SwXMLTableLines_Impl::SwXMLTableLines_Impl().
|
protected |
Definition at line 286 of file wrtswtbl.cxx.
References SwWriteTableCol::HasLeftBorder(), m_aCols, m_nBorder, m_nCellPadding, m_nCellSpacing, and m_nLeftSub.
Referenced by GetAbsWidth().
|
staticprotected |
Definition at line 159 of file wrtswtbl.cxx.
References SwFormat::GetAttrSet(), SwWriteTableRow::GetBackground(), SwTableLine::GetFrameFormat(), SfxItemSet::GetItemIfSet(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), RES_BACKGROUND(), and SwWriteTableRow::SetBackground().
Referenced by SwWriteTable().
|
staticprotected |
Definition at line 142 of file wrtswtbl.cxx.
References SwFormat::GetAttrSet(), SwTableLine::GetFrameFormat(), SfxItemSet::GetItemIfSet(), SwTableBox::GetUpper(), and RES_FRM_SIZE().
|
protected |
Definition at line 91 of file wrtswtbl.cxx.
References GetLineHeight(), SwTableLine::GetTabBoxes(), SwTableLine::GetTableLineHeight(), m_bGetLineHeightCalled, m_bUseLayoutHeights, ROW_DFLT_HEIGHT, SAL_WARN_IF, and SwTableLines::size().
Referenced by CollectTableRowsCols(), FillTableRowsCols(), GetLineHeight(), and SwWriteTable().
sal_uInt16 SwWriteTable::GetPercentWidth | ( | sal_uInt16 | nCol, |
sal_uInt16 | nColSpan | ||
) | const |
Definition at line 345 of file wrtswtbl.cxx.
References GetBaseWidth(), and 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().
sal_uInt16 SwWriteTable::GetRelWidth | ( | sal_uInt16 | nCol, |
sal_uInt16 | nColSpan | ||
) | const |
Definition at line 337 of file wrtswtbl.cxx.
References GetBaseWidth(), and GetRawWidth().
|
protected |
Definition at line 304 of file wrtswtbl.cxx.
References SwWriteTableCol::HasRightBorder(), m_aCols, m_nBorder, m_nCellPadding, m_nCellSpacing, m_nRightSub, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by GetAbsWidth().
|
inline |
Definition at line 303 of file wrtswtbl.hxx.
|
inline |
Definition at line 305 of file wrtswtbl.hxx.
|
inlineprotected |
Definition at line 274 of file wrtswtbl.hxx.
|
protected |
Definition at line 188 of file wrtswtbl.cxx.
References COL_GRAY(), ColorTransparency, m_bCollectBorderWidth, m_nBorder, m_nBorderColor, m_nCellSpacing, and m_nInnerBorder.
Referenced by MergeBoxBorders().
|
protected |
Definition at line 218 of file wrtswtbl.cxx.
References SvxBoxItem::GetBottom(), SvxBoxItem::GetDistance(), SwFormat::GetFormatAttr(), SwTableBox::GetFrameFormat(), SvxBoxItem::GetLeft(), editeng::SvxBorderLine::GetOutWidth(), SvxBoxItem::GetRight(), SvxBoxItem::GetTop(), m_aCols, m_aRows, m_bCollectBorderWidth, m_nCellPadding, MergeBorders(), rBoxItem, RES_BOX(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by FillTableRowsCols(), and SwWriteTable().
|
protectedvirtual |
Definition at line 384 of file wrtswtbl.cxx.
References SwTableBox::GetSttNd().
Referenced by CollectTableRowsCols(), and FillTableRowsCols().
|
protected |
Definition at line 219 of file wrtswtbl.hxx.
Referenced by CollectTableRowsCols(), FillTableRowsCols(), GetLeftSpace(), GetRawWidth(), GetRightSpace(), MergeBoxBorders(), and SwWriteTable().
|
protected |
Definition at line 220 of file wrtswtbl.hxx.
Referenced by CollectTableRowsCols(), FillTableRowsCols(), GetAbsHeight(), MergeBoxBorders(), and SwWriteTable().
|
protected |
Definition at line 246 of file wrtswtbl.hxx.
Referenced by MergeBorders(), MergeBoxBorders(), and SwWriteTable().
|
protected |
Definition at line 244 of file wrtswtbl.hxx.
Referenced by SwWriteTable().
|
protected |
Definition at line 241 of file wrtswtbl.hxx.
Referenced by GetLineHeight().
|
protected |
Definition at line 245 of file wrtswtbl.hxx.
|
protected |
Definition at line 238 of file wrtswtbl.hxx.
|
protected |
Definition at line 239 of file wrtswtbl.hxx.
Referenced by CollectTableRowsCols(), FillTableRowsCols(), GetLineHeight(), and SwWriteTable().
|
protected |
Definition at line 229 of file wrtswtbl.hxx.
Referenced by GetAbsWidth(), and SwWriteTable().
|
protected |
Definition at line 227 of file wrtswtbl.hxx.
Referenced by GetAbsHeight(), GetLeftSpace(), GetRightSpace(), MergeBorders(), and SwWriteTable().
|
protected |
Definition at line 222 of file wrtswtbl.hxx.
Referenced by MergeBorders().
|
protected |
Definition at line 225 of file wrtswtbl.hxx.
Referenced by GetAbsHeight(), GetLeftSpace(), GetRightSpace(), MergeBoxBorders(), and SwWriteTable().
|
protected |
Definition at line 224 of file wrtswtbl.hxx.
Referenced by GetAbsHeight(), GetLeftSpace(), GetRightSpace(), MergeBorders(), and SwWriteTable().
|
protected |
Definition at line 231 of file wrtswtbl.hxx.
Referenced by FillTableRowsCols().
|
protected |
Definition at line 228 of file wrtswtbl.hxx.
Referenced by MergeBorders(), and SwWriteTable().
|
protected |
Definition at line 233 of file wrtswtbl.hxx.
Referenced by GetLeftSpace(), and SwWriteTable().
|
protected |
Definition at line 234 of file wrtswtbl.hxx.
Referenced by GetRightSpace(), and SwWriteTable().
|
protected |
Definition at line 236 of file wrtswtbl.hxx.
Referenced by GetAbsWidth().
|
private |
Definition at line 217 of file wrtswtbl.hxx.