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 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 m_nMode.

Referenced by sw_BoxSetSplitBoxFormats().

bool SwCollectTableLineBoxes::IsGetFromTop ( ) const
inline

Definition at line 93 of file tblrwcl.hxx.

References m_bGetFromTop.

Referenced by sw_Box_CollectBox(), and sw_BoxSetSplitBoxFormats().

bool SwCollectTableLineBoxes::IsGetValues ( ) const
inline

Definition at line 94 of file tblrwcl.hxx.

References m_bGetValues.

Referenced by sw_Line_CollectBox().

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

Definition at line 2949 of file ndtbl.cxx.

References m_aPositionArr, m_Boxes, m_nWidth, and n.

Referenced by SwTable::MakeCopy().

void SwCollectTableLineBoxes::SetValues ( bool  bFlag)
inline

Definition at line 97 of file tblrwcl.hxx.

References m_bGetFromTop, and m_bGetValues.

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

Member Data Documentation

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

Definition at line 63 of file tblrwcl.hxx.

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

bool SwCollectTableLineBoxes::m_bGetFromTop
private

Definition at line 68 of file tblrwcl.hxx.

Referenced by IsGetFromTop(), and SetValues().

bool SwCollectTableLineBoxes::m_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 SwCollectTableLineBoxes::m_nMode
private

Definition at line 66 of file tblrwcl.hxx.

Referenced by GetMode().

sal_uInt16 SwCollectTableLineBoxes::m_nWidth
private

Definition at line 67 of file tblrwcl.hxx.

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

SwHistory* SwCollectTableLineBoxes::m_pHistory
private

Definition at line 65 of file tblrwcl.hxx.

Referenced by AddToUndoHistory().


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