LibreOffice Module sw (master) 1
|
#include <docsort.hxx>
Public Member Functions | |
FlatFndBox (SwDoc *pDocPtr, const FndBox_ &rBox) | |
Generate two-dimensional array of FndBoxes. More... | |
~FlatFndBox () | |
bool | IsSymmetric () const |
sal_uInt16 | GetRows () const |
sal_uInt16 | GetCols () const |
const FndBox_ * | GetBox (sal_uInt16 nCol, sal_uInt16 nRow) const |
Access a specific Cell. More... | |
bool | HasItemSets () const |
const SfxItemSet * | GetItemSet (sal_uInt16 nCol, sal_uInt16 nRow) const |
Private Member Functions | |
bool | CheckLineSymmetry (const FndBox_ &rBox) |
All Lines of a Box need to have same number of Boxes. More... | |
bool | CheckBoxSymmetry (const FndLine_ &rLn) |
Check Box for symmetry (All Boxes of a Line need to have same number of Lines) More... | |
sal_uInt16 | GetColCount (const FndBox_ &rBox) |
Maximum count of Columns (Boxes) More... | |
sal_uInt16 | GetRowCount (const FndBox_ &rBox) |
Maximum count of Rows (Lines) More... | |
void | FillFlat (const FndBox_ &, bool bLastBox=false) |
Create a linear array of atomic FndBoxes. More... | |
Private Attributes | |
SwDoc * | m_pDoc |
std::unique_ptr< FndBox_ const *[]> | m_pArr |
std::vector< std::optional< SfxItemSet > > | m_vItemSets |
using optional because SfxItemSet has no default constructor More... | |
sal_uInt16 | m_nRows |
sal_uInt16 | m_nCols |
sal_uInt16 | m_nRow |
sal_uInt16 | m_nCol |
bool | m_bSym |
Definition at line 113 of file docsort.hxx.
Generate two-dimensional array of FndBoxes.
Definition at line 727 of file docsort.cxx.
References CheckLineSymmetry(), FillFlat(), GetColCount(), GetRowCount(), m_bSym, m_nCols, m_nRows, m_pArr, and nCount.
FlatFndBox::~FlatFndBox | ( | ) |
Definition at line 748 of file docsort.cxx.
|
private |
Check Box for symmetry (All Boxes of a Line need to have same number of Lines)
Definition at line 775 of file docsort.cxx.
References CheckLineSymmetry(), FndLine_::GetBoxes(), FndBox_::GetLines(), and i.
Referenced by CheckLineSymmetry().
|
private |
All Lines of a Box need to have same number of Boxes.
Definition at line 753 of file docsort.cxx.
References CheckBoxSymmetry(), FndLine_::GetBoxes(), FndBox_::GetLines(), and i.
Referenced by CheckBoxSymmetry(), and FlatFndBox().
|
private |
Create a linear array of atomic FndBoxes.
Definition at line 847 of file docsort.cxx.
References FillFlat(), SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), FndBox_::GetBox(), SwTableBox::GetFrameFormat(), SwFormat::GetItemState(), FndBox_::GetLines(), m_nCol, m_nCols, m_nRow, m_nRows, m_pArr, m_pDoc, m_vItemSets, nCount, RES_BOXATR_FORMAT(), RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), and RES_VERT_ORIENT().
Referenced by FillFlat(), and FlatFndBox().
const FndBox_ * FlatFndBox::GetBox | ( | sal_uInt16 | nCol, |
sal_uInt16 | nRow | ||
) | const |
Access a specific Cell.
Definition at line 907 of file docsort.cxx.
References m_nCols, m_nRows, and m_pArr.
Referenced by SwSortBoxElement::GetKey(), SwSortBoxElement::GetValue(), MoveCol(), and MoveRow().
|
private |
Maximum count of Columns (Boxes)
Definition at line 797 of file docsort.cxx.
References GetColCount(), FndBox_::GetLines(), and nCount.
Referenced by FlatFndBox(), and GetColCount().
|
inline |
Definition at line 121 of file docsort.hxx.
References m_nCols.
Referenced by MoveRow(), and SwDoc::SortTable().
const SfxItemSet * FlatFndBox::GetItemSet | ( | sal_uInt16 | nCol, |
sal_uInt16 | nRow | ||
) | const |
Definition at line 916 of file docsort.cxx.
References m_nCols, m_nRows, and m_vItemSets.
|
private |
Maximum count of Rows (Lines)
Definition at line 822 of file docsort.cxx.
References FndBox_::GetLines(), and GetRowCount().
Referenced by FlatFndBox(), and GetRowCount().
|
inline |
Definition at line 120 of file docsort.hxx.
References m_nRows.
Referenced by MoveCol(), and SwDoc::SortTable().
|
inline |
Definition at line 148 of file docsort.hxx.
References m_vItemSets.
Referenced by SwDoc::SortTable().
|
inline |
|
private |
Definition at line 145 of file docsort.hxx.
Referenced by FlatFndBox(), and IsSymmetric().
|
private |
Definition at line 143 of file docsort.hxx.
Referenced by FillFlat().
|
private |
Definition at line 141 of file docsort.hxx.
Referenced by FillFlat(), FlatFndBox(), GetBox(), GetCols(), and GetItemSet().
|
private |
Definition at line 142 of file docsort.hxx.
Referenced by FillFlat().
|
private |
Definition at line 140 of file docsort.hxx.
Referenced by FillFlat(), FlatFndBox(), GetBox(), GetItemSet(), and GetRows().
|
private |
Definition at line 136 of file docsort.hxx.
Referenced by FillFlat(), FlatFndBox(), and GetBox().
|
private |
Definition at line 135 of file docsort.hxx.
Referenced by FillFlat().
|
private |
using optional because SfxItemSet has no default constructor
Definition at line 138 of file docsort.hxx.
Referenced by FillFlat(), GetItemSet(), and HasItemSets().