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

Class for SplitTable Collects the uppermost or lowermost Lines of a Box from a Line in an array. More...

#include <tblrwcl.hxx>

Collaboration diagram for SwCollectTableLineBoxes:
[legend]

Public Member Functions

 SwCollectTableLineBoxes (bool bTop, SplitTable_HeadlineOption nMd=SplitTable_HeadlineOption::NONE, SwHistory *pHist=nullptr)
 
void AddBox (const SwTableBox &rBox)
 
const SwTableBoxGetBoxOfPos (const SwTableBox &rBox)
 
void AddToUndoHistory (const SwContentNode &rNd)
 
size_t Count () const
 
const SwTableBoxGetBox (std::size_t nPos, sal_uInt16 *pWidth=nullptr) const
 
bool IsGetFromTop () const
 
bool IsGetValues () const
 
SplitTable_HeadlineOption GetMode () const
 
void SetValues (bool bFlag)
 
bool Resize (sal_uInt16 nOffset, sal_uInt16 nWidth)
 

Private Attributes

std::vector< sal_uInt16 > aPosArr
 
std::vector< SwTableBox * > m_Boxes
 
SwHistorypHst
 
SplitTable_HeadlineOption const nMode
 
sal_uInt16 nWidth
 
bool bGetFromTop: 1
 
bool bGetValues: 1
 

Detailed Description

Class for SplitTable Collects the uppermost or lowermost Lines of a Box from a Line in an array.

We also store their positions.

See also
implementation in ndtbl.cxx

Definition at line 61 of file tblrwcl.hxx.

Constructor & Destructor Documentation

SwCollectTableLineBoxes::SwCollectTableLineBoxes ( bool  bTop,
SplitTable_HeadlineOption  nMd = SplitTable_HeadlineOption::NONE,
SwHistory pHist = nullptr 
)
inline

Definition at line 72 of file tblrwcl.hxx.

Member Function Documentation

void SwCollectTableLineBoxes::AddBox ( const SwTableBox rBox)
void SwCollectTableLineBoxes::AddToUndoHistory ( const SwContentNode rNd)
size_t SwCollectTableLineBoxes::Count ( ) const
inline

Definition at line 83 of file tblrwcl.hxx.

Referenced by lcl_FindEndPosOfBorder(), lcl_GCBorder_DelBorder(), and sw_GC_Line_Border().

const SwTableBox& SwCollectTableLineBoxes::GetBox ( std::size_t  nPos,
sal_uInt16 *  pWidth = nullptr 
) const
inline

Definition at line 84 of file tblrwcl.hxx.

Referenced by lcl_FindEndPosOfBorder(), lcl_GCBorder_DelBorder(), and sw_GC_Line_Border().

const SwTableBox * SwCollectTableLineBoxes::GetBoxOfPos ( const SwTableBox rBox)
SplitTable_HeadlineOption SwCollectTableLineBoxes::GetMode ( ) const
inline

Definition at line 96 of file tblrwcl.hxx.

References nMode.

Referenced by sw_BoxSetSplitBoxFormats().

bool SwCollectTableLineBoxes::IsGetFromTop ( ) const
inline

Definition at line 93 of file tblrwcl.hxx.

References bGetFromTop.

Referenced by sw_Box_CollectBox(), and sw_BoxSetSplitBoxFormats().

bool SwCollectTableLineBoxes::IsGetValues ( ) const
inline

Definition at line 94 of file tblrwcl.hxx.

References bGetValues.

Referenced by sw_Line_CollectBox().

bool SwCollectTableLineBoxes::Resize ( sal_uInt16  nOffset,
sal_uInt16  nWidth 
)

Definition at line 2927 of file ndtbl.cxx.

References aPosArr, m_Boxes, n, and nWidth.

Referenced by SwTable::MakeCopy().

void SwCollectTableLineBoxes::SetValues ( bool  bFlag)
inline

Definition at line 97 of file tblrwcl.hxx.

References bGetFromTop, and bGetValues.

Referenced by SwTable::MakeCopy(), and SwDoc::SplitTable().

Member Data Documentation

std::vector<sal_uInt16> SwCollectTableLineBoxes::aPosArr
private

Definition at line 63 of file tblrwcl.hxx.

Referenced by AddBox(), GetBoxOfPos(), and Resize().

bool SwCollectTableLineBoxes::bGetFromTop
private

Definition at line 68 of file tblrwcl.hxx.

Referenced by IsGetFromTop(), and SetValues().

bool SwCollectTableLineBoxes::bGetValues
private

Definition at line 69 of file tblrwcl.hxx.

Referenced by IsGetValues(), and SetValues().

std::vector<SwTableBox*> SwCollectTableLineBoxes::m_Boxes
private

Definition at line 64 of file tblrwcl.hxx.

Referenced by AddBox(), GetBoxOfPos(), and Resize().

SplitTable_HeadlineOption const SwCollectTableLineBoxes::nMode
private

Definition at line 66 of file tblrwcl.hxx.

Referenced by GetMode().

sal_uInt16 SwCollectTableLineBoxes::nWidth
private

Definition at line 67 of file tblrwcl.hxx.

Referenced by AddBox(), GetBoxOfPos(), and Resize().

SwHistory* SwCollectTableLineBoxes::pHst
private

Definition at line 65 of file tblrwcl.hxx.

Referenced by AddToUndoHistory().


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