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 ( SwDoc pDocPtr,
const FndBox_ rBox 
)

Generate two-dimensional array of FndBoxes.

Definition at line 735 of file docsort.cxx.

References CheckLineSymmetry(), FillFlat(), GetColCount(), GetRowCount(), m_bSym, m_nCols, m_nRows, m_pArr, and nCount.

FlatFndBox::~FlatFndBox ( )

Definition at line 756 of file docsort.cxx.

Member Function Documentation

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 783 of file docsort.cxx.

References CheckLineSymmetry(), FndLine_::GetBoxes(), FndBox_::GetLines(), and i.

Referenced by CheckLineSymmetry().

bool FlatFndBox::CheckLineSymmetry ( const FndBox_ rBox)
private

All Lines of a Box need to have same number of Boxes.

Definition at line 761 of file docsort.cxx.

References CheckBoxSymmetry(), FndLine_::GetBoxes(), FndBox_::GetLines(), and i.

Referenced by CheckBoxSymmetry(), and FlatFndBox().

void FlatFndBox::FillFlat ( const FndBox_ rBox,
bool  bLastBox = false 
)
private
const FndBox_ * FlatFndBox::GetBox ( sal_uInt16  nCol,
sal_uInt16  nRow 
) const

Access a specific Cell.

Definition at line 915 of file docsort.cxx.

References m_nCols, m_nRows, and m_pArr.

Referenced by SwSortBoxElement::GetKey(), SwSortBoxElement::GetValue(), MoveCol(), and MoveRow().

sal_uInt16 FlatFndBox::GetColCount ( const FndBox_ rBox)
private

Maximum count of Columns (Boxes)

Definition at line 805 of file docsort.cxx.

References FndBox_::GetLines(), and nCount.

Referenced by FlatFndBox().

sal_uInt16 FlatFndBox::GetCols ( ) const
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 924 of file docsort.cxx.

References m_nCols, m_nRows, and m_vItemSets.

Referenced by MoveCol(), and MoveRow().

sal_uInt16 FlatFndBox::GetRowCount ( const FndBox_ rBox)
private

Maximum count of Rows (Lines)

Definition at line 830 of file docsort.cxx.

References FndBox_::GetLines().

Referenced by FlatFndBox().

sal_uInt16 FlatFndBox::GetRows ( ) const
inline

Definition at line 120 of file docsort.hxx.

References m_nRows.

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

bool FlatFndBox::HasItemSets ( ) const
inline

Definition at line 148 of file docsort.hxx.

References m_vItemSets.

Referenced by SwDoc::SortTable().

bool FlatFndBox::IsSymmetric ( ) const
inline

Definition at line 119 of file docsort.hxx.

References m_bSym.

Referenced by SwDoc::SortTable().

Member Data Documentation

bool FlatFndBox::m_bSym
private

Definition at line 145 of file docsort.hxx.

Referenced by FlatFndBox(), and IsSymmetric().

sal_uInt16 FlatFndBox::m_nCol
private

Definition at line 143 of file docsort.hxx.

Referenced by FillFlat().

sal_uInt16 FlatFndBox::m_nCols
private

Definition at line 141 of file docsort.hxx.

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

sal_uInt16 FlatFndBox::m_nRow
private

Definition at line 142 of file docsort.hxx.

Referenced by FillFlat().

sal_uInt16 FlatFndBox::m_nRows
private

Definition at line 140 of file docsort.hxx.

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

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

Definition at line 136 of file docsort.hxx.

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

SwDoc* FlatFndBox::m_pDoc
private

Definition at line 135 of file docsort.hxx.

Referenced by FillFlat().

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: