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 > m_aPositionArr
 
std::vector< SwTableBox * > m_Boxes
 
SwHistorym_pHistory
 
SplitTable_HeadlineOption m_nMode
 
sal_uInt16 m_nWidth
 
bool m_bGetFromTop: 1
 
bool m_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 60 of file tblrwcl.hxx.

Constructor & Destructor Documentation

◆ SwCollectTableLineBoxes()

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

Definition at line 71 of file tblrwcl.hxx.

Member Function Documentation

◆ AddBox()

void SwCollectTableLineBoxes::AddBox ( const SwTableBox rBox)

◆ AddToUndoHistory()

void SwCollectTableLineBoxes::AddToUndoHistory ( const SwContentNode rNd)

◆ Count()

size_t SwCollectTableLineBoxes::Count ( ) const
inline

Definition at line 82 of file tblrwcl.hxx.

References m_Boxes.

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

◆ GetBox()

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

Definition at line 83 of file tblrwcl.hxx.

References m_aPositionArr, m_Boxes, m_nWidth, and nPos.

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

◆ GetBoxOfPos()

const SwTableBox * SwCollectTableLineBoxes::GetBoxOfPos ( const SwTableBox rBox)

◆ GetMode()

SplitTable_HeadlineOption SwCollectTableLineBoxes::GetMode ( ) const
inline

Definition at line 95 of file tblrwcl.hxx.

References m_nMode.

Referenced by sw_BoxSetSplitBoxFormats().

◆ IsGetFromTop()

bool SwCollectTableLineBoxes::IsGetFromTop ( ) const
inline

Definition at line 92 of file tblrwcl.hxx.

References m_bGetFromTop.

Referenced by sw_Box_CollectBox(), and sw_BoxSetSplitBoxFormats().

◆ IsGetValues()

bool SwCollectTableLineBoxes::IsGetValues ( ) const
inline

Definition at line 93 of file tblrwcl.hxx.

References m_bGetValues.

Referenced by sw_Line_CollectBox().

◆ Resize()

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

Definition at line 2986 of file ndtbl.cxx.

References m_aPositionArr, m_Boxes, m_nWidth, and n.

Referenced by SwTable::MakeCopy().

◆ SetValues()

void SwCollectTableLineBoxes::SetValues ( bool  bFlag)
inline

Definition at line 96 of file tblrwcl.hxx.

References m_bGetFromTop, m_bGetValues, and m_nWidth.

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

Member Data Documentation

◆ m_aPositionArr

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

Definition at line 62 of file tblrwcl.hxx.

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

◆ m_bGetFromTop

bool SwCollectTableLineBoxes::m_bGetFromTop
private

Definition at line 67 of file tblrwcl.hxx.

Referenced by IsGetFromTop(), and SetValues().

◆ m_bGetValues

bool SwCollectTableLineBoxes::m_bGetValues
private

Definition at line 68 of file tblrwcl.hxx.

Referenced by IsGetValues(), and SetValues().

◆ m_Boxes

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

Definition at line 63 of file tblrwcl.hxx.

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

◆ m_nMode

SplitTable_HeadlineOption SwCollectTableLineBoxes::m_nMode
private

Definition at line 65 of file tblrwcl.hxx.

Referenced by GetMode().

◆ m_nWidth

sal_uInt16 SwCollectTableLineBoxes::m_nWidth
private

Definition at line 66 of file tblrwcl.hxx.

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

◆ m_pHistory

SwHistory* SwCollectTableLineBoxes::m_pHistory
private

Definition at line 64 of file tblrwcl.hxx.

Referenced by AddToUndoHistory().


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