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

#include <docsort.hxx>

Collaboration diagram for FlatFndBox:
[legend]

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 SfxItemSetGetItemSet (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

SwDocm_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
 

Detailed Description

Definition at line 113 of file docsort.hxx.

Constructor & Destructor Documentation

◆ FlatFndBox()

FlatFndBox::FlatFndBox ( SwDoc pDocPtr,
const FndBox_ rBox 
)

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::~FlatFndBox ( )

Definition at line 748 of file docsort.cxx.

Member Function Documentation

◆ CheckBoxSymmetry()

bool FlatFndBox::CheckBoxSymmetry ( const FndLine_ rLn)
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().

◆ CheckLineSymmetry()

bool FlatFndBox::CheckLineSymmetry ( const FndBox_ rBox)
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().

◆ FillFlat()

void FlatFndBox::FillFlat ( const FndBox_ rBox,
bool  bLastBox = false 
)
private

◆ GetBox()

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().

◆ GetColCount()

sal_uInt16 FlatFndBox::GetColCount ( const FndBox_ rBox)
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().

◆ GetCols()

sal_uInt16 FlatFndBox::GetCols ( ) const
inline

Definition at line 121 of file docsort.hxx.

References m_nCols.

Referenced by MoveRow(), and SwDoc::SortTable().

◆ GetItemSet()

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.

Referenced by MoveCol(), and MoveRow().

◆ GetRowCount()

sal_uInt16 FlatFndBox::GetRowCount ( const FndBox_ rBox)
private

Maximum count of Rows (Lines)

Definition at line 822 of file docsort.cxx.

References FndBox_::GetLines(), and GetRowCount().

Referenced by FlatFndBox(), and GetRowCount().

◆ GetRows()

sal_uInt16 FlatFndBox::GetRows ( ) const
inline

Definition at line 120 of file docsort.hxx.

References m_nRows.

Referenced by MoveCol(), and SwDoc::SortTable().

◆ HasItemSets()

bool FlatFndBox::HasItemSets ( ) const
inline

Definition at line 148 of file docsort.hxx.

References m_vItemSets.

Referenced by SwDoc::SortTable().

◆ IsSymmetric()

bool FlatFndBox::IsSymmetric ( ) const
inline

Definition at line 119 of file docsort.hxx.

References m_bSym.

Referenced by SwDoc::SortTable().

Member Data Documentation

◆ m_bSym

bool FlatFndBox::m_bSym
private

Definition at line 145 of file docsort.hxx.

Referenced by FlatFndBox(), and IsSymmetric().

◆ m_nCol

sal_uInt16 FlatFndBox::m_nCol
private

Definition at line 143 of file docsort.hxx.

Referenced by FillFlat().

◆ m_nCols

sal_uInt16 FlatFndBox::m_nCols
private

Definition at line 141 of file docsort.hxx.

Referenced by FillFlat(), FlatFndBox(), GetBox(), GetCols(), and GetItemSet().

◆ m_nRow

sal_uInt16 FlatFndBox::m_nRow
private

Definition at line 142 of file docsort.hxx.

Referenced by FillFlat().

◆ m_nRows

sal_uInt16 FlatFndBox::m_nRows
private

Definition at line 140 of file docsort.hxx.

Referenced by FillFlat(), FlatFndBox(), GetBox(), GetItemSet(), and GetRows().

◆ m_pArr

std::unique_ptr<FndBox_ const *[]> FlatFndBox::m_pArr
private

Definition at line 136 of file docsort.hxx.

Referenced by FillFlat(), FlatFndBox(), and GetBox().

◆ m_pDoc

SwDoc* FlatFndBox::m_pDoc
private

Definition at line 135 of file docsort.hxx.

Referenced by FillFlat().

◆ m_vItemSets

std::vector<std::optional<SfxItemSet> > FlatFndBox::m_vItemSets
private

using optional because SfxItemSet has no default constructor

Definition at line 138 of file docsort.hxx.

Referenced by FillFlat(), GetItemSet(), and HasItemSets().


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