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

SwDocpDoc
 
std::unique_ptr< FndBox_ const *[]> pArr
 
std::vector< std::unique_ptr< SfxItemSet > > ppItemSets
 
sal_uInt16 nRows
 
sal_uInt16 nCols
 
sal_uInt16 nRow
 
sal_uInt16 nCol
 
bool bSym
 

Detailed Description

Definition at line 124 of file docsort.hxx.

Constructor & Destructor Documentation

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

Generate two-dimensional array of FndBoxes.

Definition at line 738 of file docsort.cxx.

References bSym, CheckLineSymmetry(), FillFlat(), GetColCount(), GetRowCount(), nCols, nRows, and pArr.

FlatFndBox::~FlatFndBox ( )

Definition at line 759 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 786 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 764 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 919 of file docsort.cxx.

References nCols, nRows, and 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 808 of file docsort.cxx.

References FndBox_::GetLines().

Referenced by FlatFndBox().

sal_uInt16 FlatFndBox::GetCols ( ) const
inline

Definition at line 132 of file docsort.hxx.

References nCols.

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

const SfxItemSet * FlatFndBox::GetItemSet ( sal_uInt16  nCol,
sal_uInt16  nRow 
) const

Definition at line 928 of file docsort.cxx.

References nCols, nRows, and ppItemSets.

Referenced by MoveCol(), and MoveRow().

sal_uInt16 FlatFndBox::GetRowCount ( const FndBox_ rBox)
private

Maximum count of Rows (Lines)

Definition at line 833 of file docsort.cxx.

References FndBox_::GetLines().

Referenced by FlatFndBox().

sal_uInt16 FlatFndBox::GetRows ( ) const
inline

Definition at line 131 of file docsort.hxx.

References nRows.

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

bool FlatFndBox::HasItemSets ( ) const
inline

Definition at line 158 of file docsort.hxx.

References ppItemSets.

Referenced by SwDoc::SortTable().

bool FlatFndBox::IsSymmetric ( ) const
inline

Definition at line 130 of file docsort.hxx.

References bSym.

Referenced by SwDoc::SortTable().

Member Data Documentation

bool FlatFndBox::bSym
private

Definition at line 155 of file docsort.hxx.

Referenced by FlatFndBox(), and IsSymmetric().

sal_uInt16 FlatFndBox::nCol
private

Definition at line 153 of file docsort.hxx.

Referenced by FillFlat().

sal_uInt16 FlatFndBox::nCols
private

Definition at line 151 of file docsort.hxx.

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

sal_uInt16 FlatFndBox::nRow
private

Definition at line 152 of file docsort.hxx.

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

sal_uInt16 FlatFndBox::nRows
private

Definition at line 150 of file docsort.hxx.

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

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

Definition at line 147 of file docsort.hxx.

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

SwDoc* FlatFndBox::pDoc
private

Definition at line 146 of file docsort.hxx.

Referenced by FillFlat().

std::vector<std::unique_ptr<SfxItemSet> > FlatFndBox::ppItemSets
private

Definition at line 148 of file docsort.hxx.

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


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