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

SwTableLine is one table row in the document model. More...

#include <swtable.hxx>

Inheritance diagram for SwTableLine:
[legend]
Collaboration diagram for SwTableLine:
[legend]

Public Member Functions

 SwTableLine (SwTableLineFormat *, sal_uInt16 nBoxes, SwTableBox *pUp)
 
virtual ~SwTableLine () override
 
SwTableBoxesGetTabBoxes ()
 
const SwTableBoxesGetTabBoxes () const
 
sal_uInt16 GetBoxPos (const SwTableBox *pBox) const
 
SwTableBoxGetUpper ()
 
const SwTableBoxGetUpper () const
 
void SetUpper (SwTableBox *pNew)
 
SwFrameFormatGetFrameFormat ()
 
SwFrameFormatGetFrameFormat () const
 
SwFrameFormatClaimFrameFormat ()
 
void ChgFrameFormat (SwTableLineFormat *pNewFormat)
 
SwTableBoxFindNextBox (const SwTable &, const SwTableBox *=nullptr, bool bOvrTableLns=true) const
 
SwTableBoxFindPreviousBox (const SwTable &, const SwTableBox *=nullptr, bool bOvrTableLns=true) const
 
SwTwips GetTableLineHeight (bool &bLayoutAvailable) const
 
bool hasSoftPageBreak () const
 
bool IsEmpty () const
 
SwRedlineTable::size_type UpdateTextChangesOnly (SwRedlineTable::size_type &rRedlinePos, bool bUpdateProperty=true) const
 
SwRedlineTable::size_type GetTableRedline () const
 
bool IsTracked (SwRedlineTable::size_type &rRedlinePos, bool bOnlyDeleted=false) const
 
bool IsDeleted (SwRedlineTable::size_type &rRedlinePos) const
 
RedlineType GetRedlineType () const
 
void SetRedlineType (RedlineType eType)
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () const
 
virtual const SwTableDynCastTable () const
 

Private Attributes

SwTableBoxes m_aBoxes
 
SwTableBoxm_pUpper
 
RedlineType m_eRedlineType
 

Additional Inherited Members

- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint)=0
 

Detailed Description

SwTableLine is one table row in the document model.

Definition at line 375 of file swtable.hxx.

Constructor & Destructor Documentation

◆ SwTableLine()

SwTableLine::SwTableLine ( SwTableLineFormat pFormat,
sal_uInt16  nBoxes,
SwTableBox pUp 
)

Definition at line 1460 of file swtable.cxx.

References m_aBoxes, and None.

◆ ~SwTableLine()

SwTableLine::~SwTableLine ( )
overridevirtual

Definition at line 1469 of file swtable.cxx.

References GetFrameFormat(), i, and m_aBoxes.

Member Function Documentation

◆ ChgFrameFormat()

void SwTableLine::ChgFrameFormat ( SwTableLineFormat pNewFormat)

◆ ClaimFrameFormat()

SwFrameFormat * SwTableLine::ClaimFrameFormat ( )

◆ FindNextBox()

SwTableBox * SwTableLine::FindNextBox ( const SwTable rTable,
const SwTableBox pSrchBox = nullptr,
bool  bOvrTableLns = true 
) const

◆ FindPreviousBox()

SwTableBox * SwTableLine::FindPreviousBox ( const SwTable rTable,
const SwTableBox pSrchBox = nullptr,
bool  bOvrTableLns = true 
) const

◆ GetBoxPos()

sal_uInt16 SwTableLine::GetBoxPos ( const SwTableBox pBox) const
inline

◆ GetFrameFormat() [1/2]

SwFrameFormat * SwTableLine::GetFrameFormat ( )
inline

Definition at line 398 of file swtable.hxx.

References SwClient::GetRegisteredIn().

Referenced by WW8TabDesc::AdjustNewBand(), SwTextFormatter::BuildMultiPortion(), SwShareBoxFormats::ChangeFrameFormat(), SwFrame::CheckDirChange(), ChgFrameFormat(), ClaimFrameFormat(), SwTable::ConvertSubtableBox(), SwXMLExport::ExportTableLine(), SwXMLExport::ExportTableLinesAutoStyles(), SwWriteTable::FillTableRowsCols(), SwRowFrame::Format(), SwWriteTable::GetLineBrush(), SwWriteTable::GetLineHeight(), SwXTextTableRow::getPropertyValue(), GetRedlineType(), GetRowFrame(), GetTableLineHeight(), GetTableRedline(), hasSoftPageBreak(), SwTable::InsertSpannedRow(), SwRowFrame::IsRowSplitAllowed(), IsTracked(), lcl_calcHeightOfRowBeforeThisFrame(), lcl_CopyLineToDoc(), lcl_CopyRow(), lcl_CopyTableLine(), lcl_Merge_MoveLine(), lcl_MergeGCBox(), lcl_MergeGCLine(), lcl_ProcessRowAttr(), lcl_SplitTable_CpyLine(), lcl_UnMerge(), FndBox_::MakeFrames(), FndBox_::MakeNewFrames(), SwXMLTableContext::MakeTable(), HTMLTable::MakeTable(), SwUnoCursorHelper::makeTableRowRedline(), sw::NotifyTableCollapsedParagraph(), SwTable::OldSplitRow(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), MSWordExportBase::OutputTextNode(), SwShareBoxFormats::SetAttr(), SwXTextTableRow::setPropertyValue(), SwDoc::SetTabRows(), DocxAttributeOutput::StartTableRow(), WW8AttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableBackgrounds(), RtfAttributeOutput::TableBackgrounds(), WW8AttributeOutput::TableCanSplit(), DocxAttributeOutput::TableCanSplit(), RtfAttributeOutput::TableCanSplit(), WW8AttributeOutput::TableHeight(), DocxAttributeOutput::TableHeight(), RtfAttributeOutput::TableHeight(), UpdateTextChangesOnly(), and ~SwTableLine().

◆ GetFrameFormat() [2/2]

SwFrameFormat * SwTableLine::GetFrameFormat ( ) const
inline

Definition at line 399 of file swtable.hxx.

References SwClient::GetRegisteredIn().

◆ GetRedlineType()

RedlineType SwTableLine::GetRedlineType ( ) const

◆ GetTabBoxes() [1/2]

SwTableBoxes & SwTableLine::GetTabBoxes ( )
inline

Definition at line 386 of file swtable.hxx.

Referenced by SwDDETable::ChangeContent(), CheckBoxWidth(), SwTable::CheckConsistency(), SwTable::CheckRowSpan(), SwTable::CleanUpBottomRowSpan(), SwTable::CollectBoxSelection(), SwWriteTable::CollectTableRowsCols(), ConvertNestedTablesToText(), SwTable::ConvertSubtableBox(), SwTable::ConvertSubtables(), SwTable::CopyHeadlineIntoTable(), SaveTable::CreateNew(), SwTable::CreateSelection(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwChartDataProvider::detectArguments(), SwTable::ExpandColumnSelection(), SwXMLExport::ExportTableLine(), SwXMLExport::ExportTableLinesAutoStyles(), SwWriteTable::FillTableRowsCols(), FindNextBox(), FindPreviousBox(), SwTable::FindSuperfluousRows_(), FndContentLine(), SwCellFrame::Format(), SwHTMLTableLayout::GetAnyBoxStartNode(), SwXTextTable::Impl::GetColumnCount(), ww8::WW8TableNodeInfoInner::getColumnWidthsBasedOnAllRows(), SwXTableColumns::getCount(), SwWriteTable::GetLineHeight(), GetMergeSel(), SwXTextTableRow::getPropertyValue(), SwXTextTable::getPropertyValue(), ww8::WW8TableNodeInfoInner::getRowSpansOfRow(), SwVbaTableHelper::GetTabBox(), SwTable::GetTabCols(), SwVbaTableHelper::getTabColumnsCount(), SwTable::GetTableBox(), ww8::WW8TableNodeInfoInner::getTableBoxesOfRow(), GetTableRedline(), GetTableSel(), ww8::WW8TableNodeInfoInner::getWidthsOfRow(), SwNodes::InsBoxen(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), WW8TabDesc::InsertCells(), SwTable::InsertRow(), SwTable::InsertRow_(), SwTable::InsertSpannedRow(), SwDoc::InsertTable(), SwTable::InsTable(), InsTableBox(), IsDeleted(), SwTable::IsTableComplexForChart(), lcl_AdjustWidthsInLine(), lcl_AjustLines(), lcl_BalanceTable(), lcl_Box2LeftBorder(), lcl_CalcNewWidths(), lcl_CalcWidth(), lcl_ChangeRowSpan(), lcl_CheckMinMax(), lcl_CheckRowSpan(), lcl_CopyCol(), lcl_CopyLineToDoc(), lcl_CopyTableLine(), lcl_CpyBoxes(), lcl_DelLine(), lcl_FillSelBoxes(), lcl_FindCornerTableBox(), lcl_FndNxtPrvDelBox(), lcl_GCBorder_ChkBoxBrd_L(), lcl_GCBorder_GetLastBox_L(), lcl_GetBoxOffset(), lcl_GetDistance(), lcl_LeftBorder2Box(), lcl_Merge_MoveBox(), lcl_Merge_MoveLine(), lcl_MergeGCBox(), lcl_MergeGCLine(), lcl_ProcessBoxSet(), lcl_ProcessLine(), lcl_ProcessLineGet(), lcl_ProcessRowSize(), lcl_RelToBox(), lcl_SaveUpperLowerBorder(), lcl_SearchSelBox(), lcl_SetOtherBoxWidth(), lcl_SetSelBoxWidth(), lcl_SortedTabColInsert(), lcl_SplitTable_CpyLine(), lcl_TableLine_HasTabBorders(), SwTable::MakeCopy(), SwXMLTableContext::MakeTable(), HTMLTable::MakeTable(), HTMLTable::MakeTableBox(), HTMLTable::MakeTableLine(), SwXMLTableContext::MakeTableLine(), SwUnoCursorHelper::makeTableRowRedline(), WW8TabDesc::MergeCells(), SwTable::NewInsertCol(), SwTable::OldMerge(), SwTable::OldSplitRow(), SwTable::PrepareDeleteCol(), ww8::WW8TableInfo::processTableBoxLines(), ww8::WW8TableInfo::processTableLine(), SwTable::RestoreRowSpan(), SwTable::SelLineFromBox(), SwTable::SetColWidth(), SetLineHeight(), WW8TabDesc::SetPamInCell(), SwXTextTableRow::setPropertyValue(), SwXTextTable::setPropertyValue(), SwTable::SetTabCols(), SwTable::SplitCol(), SwDoc::SplitTable(), SwNodes::SplitTable(), sw_GC_Line_Border(), sw_Line_CollectBox(), sw_LineSetHeadCondColl(), SwRowFrame::SwRowFrame(), SwXMLTableLines_Impl::SwXMLTableLines_Impl(), WW8AttributeOutput::TableBackgrounds(), WW8AttributeOutput::TableCellBorders(), WW8AttributeOutput::TableVerticalCell(), SwNodes::TextToTable(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwNodes::UndoTableToText(), and UpdateTextChangesOnly().

◆ GetTabBoxes() [2/2]

const SwTableBoxes & SwTableLine::GetTabBoxes ( ) const
inline

Definition at line 387 of file swtable.hxx.

◆ GetTableLineHeight()

SwTwips SwTableLine::GetTableLineHeight ( bool &  bLayoutAvailable) const

◆ GetTableRedline()

SwRedlineTable::size_type SwTableLine::GetTableRedline ( ) const

◆ GetUpper() [1/2]

SwTableBox * SwTableLine::GetUpper ( )
inline

◆ GetUpper() [2/2]

const SwTableBox * SwTableLine::GetUpper ( ) const
inline

Definition at line 395 of file swtable.hxx.

◆ hasSoftPageBreak()

bool SwTableLine::hasSoftPageBreak ( ) const

◆ IsDeleted()

bool SwTableLine::IsDeleted ( SwRedlineTable::size_type rRedlinePos) const

Definition at line 1937 of file swtable.cxx.

References GetRedlineType(), GetTabBoxes(), i, and IsTracked().

Referenced by SwFEShell::DeleteRow(), and FndBox_::MakeFrames().

◆ IsEmpty()

bool SwTableLine::IsEmpty ( ) const

Definition at line 1567 of file swtable.cxx.

References i, IsEmpty(), and m_aBoxes.

Referenced by sw::GetAllValidRanges(), IsEmpty(), and SwUnoCursorHelper::makeTableRowRedline().

◆ IsTracked()

bool SwTableLine::IsTracked ( SwRedlineTable::size_type rRedlinePos,
bool  bOnlyDeleted = false 
) const

◆ SetRedlineType()

void SwTableLine::SetRedlineType ( RedlineType  eType)
inline

Definition at line 438 of file swtable.hxx.

References eType.

Referenced by GetRedlineType(), and UpdateTextChangesOnly().

◆ SetUpper()

void SwTableLine::SetUpper ( SwTableBox pNew)
inline

Definition at line 396 of file swtable.hxx.

Referenced by SaveTable::CreateNew().

◆ UpdateTextChangesOnly()

SwRedlineTable::size_type SwTableLine::UpdateTextChangesOnly ( SwRedlineTable::size_type rRedlinePos,
bool  bUpdateProperty = true 
) const

Member Data Documentation

◆ m_aBoxes

SwTableBoxes SwTableLine::m_aBoxes
private

Definition at line 377 of file swtable.hxx.

Referenced by IsEmpty(), SwTableLine(), and ~SwTableLine().

◆ m_eRedlineType

RedlineType SwTableLine::m_eRedlineType
private

Definition at line 379 of file swtable.hxx.

Referenced by GetRedlineType().

◆ m_pUpper

SwTableBox* SwTableLine::m_pUpper
private

Definition at line 378 of file swtable.hxx.


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