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::unique_ptr< SfxItemSet > > m_ppItemSets
 
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 737 of file docsort.cxx.

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

FlatFndBox::~FlatFndBox ( )

Definition at line 758 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 785 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 763 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 918 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 807 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 927 of file docsort.cxx.

References m_nCols, m_nRows, and m_ppItemSets.

Referenced by MoveCol(), and MoveRow().

sal_uInt16 FlatFndBox::GetRowCount ( const FndBox_ rBox)
private

Maximum count of Rows (Lines)

Definition at line 832 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 147 of file docsort.hxx.

References m_ppItemSets.

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 144 of file docsort.hxx.

Referenced by FlatFndBox(), and IsSymmetric().

sal_uInt16 FlatFndBox::m_nCol
private

Definition at line 142 of file docsort.hxx.

Referenced by FillFlat().

sal_uInt16 FlatFndBox::m_nCols
private

Definition at line 140 of file docsort.hxx.

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

sal_uInt16 FlatFndBox::m_nRow
private

Definition at line 141 of file docsort.hxx.

Referenced by FillFlat().

sal_uInt16 FlatFndBox::m_nRows
private

Definition at line 139 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::unique_ptr<SfxItemSet> > FlatFndBox::m_ppItemSets
private

Definition at line 137 of file docsort.hxx.

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


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