LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
SwTable Class Reference

SwTable is one table in the document model, containing rows (which contain cells). More...

#include <swtable.hxx>

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

Public Types

enum  SearchType {
  SEARCH_NONE ,
  SEARCH_ROW ,
  SEARCH_COL
}
 

Public Member Functions

 SwTable ()
 
virtual ~SwTable () override
 
 SwTable (const SwTable &rTable)
 
virtual const SwTableDynCastTable () const override
 
SwHTMLTableLayoutGetHTMLTableLayout ()
 
const SwHTMLTableLayoutGetHTMLTableLayout () const
 
void SetHTMLTableLayout (std::shared_ptr< SwHTMLTableLayout > const &r)
 
sal_uInt16 IncGrfsThatResize ()
 
sal_uInt16 DecGrfsThatResize ()
 
void LockModify ()
 
void UnlockModify ()
 
void SetTableModel (bool bNew)
 
bool IsNewModel () const
 
const OUString & GetTableStyleName () const
 Return the table style name of this table. More...
 
void SetTableStyleName (const OUString &rName)
 Set the new table style name for this table. More...
 
sal_uInt16 GetRowsToRepeat () const
 
void SetRowsToRepeat (sal_uInt16 nNumOfRows)
 
bool IsHeadline (const SwTableLine &rLine) const
 
SwTableLinesGetTabLines ()
 
const SwTableLinesGetTabLines () const
 
SwTableFormatGetFrameFormat ()
 
SwTableFormatGetFrameFormat () const
 
void GetTabCols (SwTabCols &rToFill, const SwTableBox *pStart, bool bHidden=false, bool bCurRowOnly=false) const
 
void SetTabCols (const SwTabCols &rNew, const SwTabCols &rOld, const SwTableBox *pStart, bool bCurRowOnly)
 
void CreateSelection (const SwPaM &rPam, SwSelBoxes &rBoxes, const SearchType eSearchType, bool bProtect) const
 void SwTable::CreateSelection(..) fills the selection structure with table cells for a given SwPaM, ie. More...
 
void CreateSelection (const SwNode *pStart, const SwNode *pEnd, SwSelBoxes &rBoxes, const SearchType eSearchType, bool bProtect) const
 void SwTable::CreateSelection(..) fills the selection structure with table cells for given start and end nodes inside a table More...
 
void ExpandSelection (SwSelBoxes &rBoxes) const
 SwTable::ExpandSelection(..) adds all boxes to the box selections which are overlapped by it. More...
 
std::unique_ptr< SwSaveRowSpanCleanUpTopRowSpan (sal_uInt16 nSplitLine)
 
void RestoreRowSpan (const SwSaveRowSpan &)
 
void CleanUpBottomRowSpan (sal_uInt16 nDelLines)
 
bool Merge (SwDoc *pDoc, const SwSelBoxes &rBoxes, const SwSelBoxes &rMerged, SwTableBox *pMergeBox, SwUndoTableMerge *pUndo)
 
bool SplitRow (SwDoc &rDoc, const SwSelBoxes &rBoxes, sal_uInt16 nCnt, bool bSameHeight)
 
bool PrepareMerge (const SwPaM &rPam, SwSelBoxes &rBoxes, SwSelBoxes &rMerged, SwTableBox **ppMergeBox, SwUndoTableMerge *pUndo)
 SwTable::PrepareMerge(..) some preparation for the coming Merge(..) More...
 
void ExpandColumnSelection (SwSelBoxes &rBoxes, tools::Long &rMin, tools::Long &rMax) const
 void SwTable::ExpandColumnSelection(..) adds cell to the give selection to assure that at least one cell of every row is part of the selection. More...
 
void PrepareDeleteCol (tools::Long nMin, tools::Long nMax)
 SwTable::PrepareDeleteCol(..) adjusts the widths of the neighbour cells of a cell selection for an upcoming (column) deletion. More...
 
bool InsertCol (SwDoc &, const SwSelBoxes &rBoxes, sal_uInt16 nCnt, bool bBehind)
 
bool InsertRow (SwDoc *, const SwSelBoxes &rBoxes, sal_uInt16 nCnt, bool bBehind)
 SwTable::InsertRow(..) inserts one or more rows before or behind the selected boxes. More...
 
void PrepareDelBoxes (const SwSelBoxes &rBoxes)
 SwTable::PrepareDelBoxes(..) adjusts the row span attributes for an upcoming deletion of table cells and invalidates the layout of these cells. More...
 
bool DeleteSel (SwDoc *, const SwSelBoxes &rBoxes, const SwSelBoxes *pMerged, SwUndo *pUndo, const bool bDelMakeFrames, const bool bCorrBorder)
 
bool SplitCol (SwDoc &rDoc, const SwSelBoxes &rBoxes, sal_uInt16 nCnt)
 
void FindSuperfluousRows (SwSelBoxes &rBoxes)
 
void CheckRowSpan (SwTableLine *&rpLine, bool bUp) const
 SwTable::CheckRowSpan(..) looks for the next line without an overlapping to the previous line. More...
 
SwTableSortBoxesGetTabSortBoxes ()
 
const SwTableSortBoxesGetTabSortBoxes () const
 
const SwTableBoxGetTableBox (const OUString &rName, const bool bPerformValidCheck=false) const
 
bool MakeCopy (SwDoc &, const SwPosition &, const SwSelBoxes &, bool bCpyName=false, const OUString &rStyleName="") const
 
bool InsTable (const SwTable &rCpyTable, const SwNodeIndex &, SwUndoTableCpyTable *pUndo)
 Copy Table into this Box. More...
 
bool InsTable (const SwTable &rCpyTable, const SwSelBoxes &, SwUndoTableCpyTable *pUndo)
 
bool InsNewTable (const SwTable &rCpyTable, const SwSelBoxes &, SwUndoTableCpyTable *pUndo)
 
void CopyHeadlineIntoTable (SwTableNode &rTableNd)
 
SwTableBoxGetTableBox (SwNodeOffset nSttIdx)
 
const SwTableBoxGetTableBox (SwNodeOffset nSttIdx) const
 
bool IsTableComplex () const
 
bool IsTableComplexForChart (std::u16string_view aSel) const
 
virtual bool GetInfo (SfxPoolItem &) const override
 
void GCLines ()
 
SwTableNodeGetTableNode () const
 
void SetTableNode (SwTableNode *pNode)
 
void SetRefObject (SwServerObject *)
 
const SwServerObjectGetObject () const
 
SwServerObjectGetObject ()
 
void UpdateCharts () const
 
TableChgMode GetTableChgMode () const
 
void SetTableChgMode (TableChgMode eMode)
 
bool SetColWidth (SwTableBox &rCurrentBox, TableChgWidthHeightType eType, SwTwips nAbsDiff, SwTwips nRelDiff, std::unique_ptr< SwUndo > *ppUndo)
 
bool SetRowHeight (SwTableBox &rCurrentBox, TableChgWidthHeightType eType, SwTwips nAbsDiff, SwTwips nRelDiff, std::unique_ptr< SwUndo > *ppUndo)
 
void RegisterToFormat (SwFormat &rFormat)
 
void CheckConsistency () const
 
bool HasLayout () const
 
bool CanConvertSubtables () const
 
void ConvertSubtables ()
 
bool IsDeleted () const
 
bool HasDeletedRowOrCell () const
 
bool IsEmpty () const
 
void SwitchFormulasToExternalRepresentation ()
 
void SwitchFormulasToRelativeRepresentation ()
 
void SwitchFormulasToInternalRepresentation ()
 
void Merge (SwTable &rTable, SwHistory *pHistory)
 
void Split (OUString sNewTableName, sal_uInt16 nSplitLine, SwHistory *pHistory)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 
- 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
 

Static Public Member Functions

static sal_uInt16 GetBoxNum (OUString &rStr, bool bFirst=false, const bool bPerformValidCheck=false)
 
static SwSelBoxesSelLineFromBox (const SwTableBox *pBox, SwSelBoxes &rBoxes, bool bToTop=true)
 
static SwTableFindTable (SwFrameFormat const *const pFormat)
 

Protected Member Functions

virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 
- 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
 

Protected Attributes

SwTableLines m_aLines
 
SwTableSortBoxes m_TabSortContentBoxes
 
tools::SvRef< SwServerObjectm_xRefObj
 
std::shared_ptr< SwHTMLTableLayoutm_xHTMLLayout
 
SwTableNodem_pTableNode
 
TableChgMode m_eTableChgMode
 
sal_uInt16 m_nGraphicsThatResize
 
sal_uInt16 m_nRowsToRepeat
 
OUString maTableStyleName
 Name of the table style to be applied on this table. More...
 
bool m_bModifyLocked:1
 
bool m_bNewModel:1
 

Private Member Functions

SwTableoperator= (const SwTable &)=delete
 
bool OldMerge (SwDoc *, const SwSelBoxes &, SwTableBox *, SwUndoTableMerge *)
 
bool OldSplitRow (SwDoc &, const SwSelBoxes &, sal_uInt16, bool)
 
bool NewMerge (SwDoc *, const SwSelBoxes &, const SwSelBoxes &rMerged, SwUndoTableMerge *)
 NewMerge(..) removes the superfluous cells after cell merge. More...
 
bool NewSplitRow (SwDoc &, const SwSelBoxes &, sal_uInt16, bool)
 SwTable::NewSplitRow(..) splits all selected boxes horizontally. More...
 
std::optional< SwBoxSelectionCollectBoxSelection (const SwPaM &rPam) const
 CollectBoxSelection(..) create a rectangulare selection based on the given SwPaM and prepares the selected cells for merging. More...
 
void InsertSpannedRow (SwDoc &rDoc, sal_uInt16 nIdx, sal_uInt16 nCnt)
 SwTable::InsertSpannedRow(..) inserts "superfluous" rows, i.e. More...
 
bool InsertRow_ (SwDoc *, const SwSelBoxes &, sal_uInt16 nCnt, bool bBehind)
 
bool NewInsertCol (SwDoc &, const SwSelBoxes &rBoxes, sal_uInt16 nCnt, bool)
 SwTable::NewInsertCol(..) insert new column(s) into a table. More...
 
void FindSuperfluousRows_ (SwSelBoxes &rBoxes, SwTableLine *, SwTableLine *)
 SwTable::FindSuperfluousRows_(..) is looking for superfluous rows, i.e. More...
 
void AdjustWidths (const tools::Long nOld, const tools::Long nNew)
 
void NewSetTabCols (Parm &rP, const SwTabCols &rNew, const SwTabCols &rOld, const SwTableBox *pStart, bool bCurRowOnly)
 
void ConvertSubtableBox (sal_uInt16 const nRow, sal_uInt16 const nBox)
 This is kind of similar to InsertSpannedRow()/InsertRow() but that one would recursively copy subtables, which would kind of defeat the purpose; this function directly moves the subtable rows's cells into the newly created rows. More...
 
void UpdateFields (TableFormulaUpdateFlags eFlags)
 
void GatherFormulas (std::vector< SwTableBoxFormula * > &rvFormulas)
 

Detailed Description

SwTable is one table in the document model, containing rows (which contain cells).

Definition at line 112 of file swtable.hxx.

Member Enumeration Documentation

◆ SearchType

Enumerator
SEARCH_NONE 
SEARCH_ROW 
SEARCH_COL 

Definition at line 144 of file swtable.hxx.

Constructor & Destructor Documentation

◆ SwTable() [1/2]

SwTable::SwTable ( )
explicit

Definition at line 187 of file swtable.cxx.

References GetTableChgDefaultMode(), and m_eTableChgMode.

Referenced by SwDDETable::NoDDETable().

◆ ~SwTable()

SwTable::~SwTable ( )
overridevirtual

◆ SwTable() [2/2]

SwTable::SwTable ( const SwTable rTable)

Definition at line 199 of file swtable.cxx.

Member Function Documentation

◆ AdjustWidths()

void SwTable::AdjustWidths ( const tools::Long  nOld,
const tools::Long  nNew 
)
private

Definition at line 359 of file swtable.cxx.

References lcl_ModifyLines(), m_aLines, and size.

Referenced by NewInsertCol(), and SwClientNotify().

◆ CanConvertSubtables()

bool SwTable::CanConvertSubtables ( ) const

◆ CheckConsistency()

void SwTable::CheckConsistency ( ) const

◆ CheckRowSpan()

void SwTable::CheckRowSpan ( SwTableLine *&  rpLine,
bool  bUp 
) const

SwTable::CheckRowSpan(..) looks for the next line without an overlapping to the previous line.

Definition at line 1950 of file swnewtable.cxx.

References SwTableLines::GetPos(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTabLines(), IsNewModel(), size, and SwTableLines::size().

Referenced by FndBox_::DelFrames().

◆ CleanUpBottomRowSpan()

void SwTable::CleanUpBottomRowSpan ( sal_uInt16  nDelLines)

◆ CleanUpTopRowSpan()

std::unique_ptr< SwSaveRowSpan > SwTable::CleanUpTopRowSpan ( sal_uInt16  nSplitLine)

Definition at line 2092 of file swnewtable.cxx.

References GetTabLines(), and IsNewModel().

Referenced by SwDoc::SplitTable().

◆ CollectBoxSelection()

std::optional< SwBoxSelection > SwTable::CollectBoxSelection ( const SwPaM rPam) const
private

◆ ConvertSubtableBox()

void SwTable::ConvertSubtableBox ( sal_uInt16 const  nRow,
sal_uInt16 const  nBox 
)
private

This is kind of similar to InsertSpannedRow()/InsertRow() but that one would recursively copy subtables, which would kind of defeat the purpose; this function directly moves the subtable rows's cells into the newly created rows.

For the non-subtable boxes, covered-cells are created.

Outer row heights are adjusted to match the inner row heights, and the last row's height is tweaked to ensure the sum of the heights is at least the original outer row's minimal height.

Inner row backgrounds are copied to its cells, if they lack a background.

This currently can't handle more than 1 subtable in a row; the inner rows of all subtables would need to be sorted by their height to create the correct outer row structure, which is tricky and probably requires a layout for the typical variable-height case.

Definition at line 2144 of file swnewtable.cxx.

References begin, SwTableLine::ClaimFrameFormat(), SwTableBox::ClaimFrameFormat(), SwNodes::Delete(), DeleteBox_(), SwTableLines::empty(), SwNode::EndOfSectionNode(), SwDoc::GetDfltTextFormatColl(), GetFrameFormat(), SwTableLine::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SwFormatFrameSize::GetHeightSizeType(), SwDoc::getIDocumentContentOperations(), SwFormat::GetItemIfSet(), SwFormat::GetItemState(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwTableBox::getRowSpan(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTableNode(), GetTabLines(), SwTableBox::GetTabLines(), SwFormatFrameSize::GetWidthPercent(), i, SwTableLines::insert(), InsTableBox(), lcl_ChangeRowSpan(), SwNodes::MakeTextNode(), Minimum, IDocumentContentOperations::MoveNodeRange(), SwNodes::MoveNodes(), NO_DELFRMS, REDLINES, RES_BACKGROUND(), RES_FRM_SIZE(), SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SvxSizeItem::SetHeight(), SwFormatFrameSize::SetHeightSizeType(), SwTableBox::setRowSpan(), size, SwTableLines::size(), and Variable.

Referenced by ConvertSubtables().

◆ ConvertSubtables()

void SwTable::ConvertSubtables ( )

◆ CopyHeadlineIntoTable()

void SwTable::CopyHeadlineIntoTable ( SwTableNode rTableNd)

◆ CreateSelection() [1/2]

void SwTable::CreateSelection ( const SwNode pStart,
const SwNode pEnd,
SwSelBoxes rBoxes,
const SearchType  eSearchType,
bool  bProtect 
) const

◆ CreateSelection() [2/2]

void SwTable::CreateSelection ( const SwPaM rPam,
SwSelBoxes rBoxes,
const SearchType  eSearch,
bool  bChkProtected 
) const

◆ DecGrfsThatResize()

sal_uInt16 SwTable::DecGrfsThatResize ( )
inline

Definition at line 187 of file swtable.hxx.

Referenced by SetGrfFlySize().

◆ DeleteSel()

bool SwTable::DeleteSel ( SwDoc pDoc,
const SwSelBoxes rBoxes,
const SwSelBoxes pMerged,
SwUndo pUndo,
const bool  bDelMakeFrames,
const bool  bCorrBorder 
)

◆ dumpAsXml()

void SwTable::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 1731 of file swtable.cxx.

References GetFrameFormat(), and GetTabLines().

◆ DynCastTable()

virtual const SwTable * SwTable::DynCastTable ( ) const
inlineoverridevirtual

Reimplemented from sw::WriterListener.

Definition at line 158 of file swtable.hxx.

◆ ExpandColumnSelection()

void SwTable::ExpandColumnSelection ( SwSelBoxes rBoxes,
tools::Long rMin,
tools::Long rMax 
) const

◆ ExpandSelection()

void SwTable::ExpandSelection ( SwSelBoxes rBoxes) const

◆ FindSuperfluousRows()

void SwTable::FindSuperfluousRows ( SwSelBoxes rBoxes)
inline

Definition at line 263 of file swtable.hxx.

Referenced by SwDoc::DeleteRowCol().

◆ FindSuperfluousRows_()

void SwTable::FindSuperfluousRows_ ( SwSelBoxes rBoxes,
SwTableLine pFirstLn,
SwTableLine pLastLn 
)
private

◆ FindTable()

SwTable * SwTable::FindTable ( SwFrameFormat const *const  pFormat)
static

Definition at line 2308 of file swtable.cxx.

References SwIterator< TElementType, TSource, eMode >::First().

Referenced by MSWordExportBase::AddLinkTarget(), SwXTextTable::autoFormat(), SwContentTree::BringEntryToAttention(), SwDoc::ChgTableStyle(), SwChartDataProvider::convertRangeToXML(), SwXText::convertToTable(), SwXTextTable::createCursorByCellName(), SwXCell::CreateXCell(), SwChartDataSequence::DeleteBox(), SwDoc::DelTableStyle(), SwChartDataSequence::dispose(), SwXTextTable::dispose(), SwDoc::DoUpdateAllCharts(), SwXMLTextParagraphExport::exportTable(), SwChartDataSequence::ExtendTo(), SwContentType::FillMemberList(), SwChartDataSequence::FillRangeDesc(), SwTableFormula::FindTable(), SwChartDataSequence::generateLabel(), SwXTableRows::getByIndex(), SwXTextTable::getCellByName(), SwXTextTable::getCellNames(), SwXTextTable::getCellRangeByName(), SwXTextTable::getCellRangeByPosition(), SwXCellRange::getCellRangeByPosition(), GetCellRangeName(), SwChartDataSequence::GetCells(), SwXTextTable::Impl::GetColumnCount(), SwXTableRows::getCount(), SwXTableColumns::getCount(), GetFormatAndCreateCursorFromRangeRep(), SwXCell::getFormula(), SwXCell::getPropertyValue(), SwXTextTableRow::getPropertyValue(), SwXTextTable::getPropertyValue(), SwXTextTableCursor::getRangeName(), SwXTextTable::Impl::GetRowCount(), SwUnoCursorHelper::GetSelectableFromAny(), SwVbaTableHelper::GetSwTable(), GetTableByName(), SwXTextRange::getText(), SwCursor::GotoTable(), SwDoc::HasTableAnyProtection(), SwChartDataProvider::Impl_createDataSource(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), SwXText::insertTextContentAfter(), SwXText::insertTextContentBefore(), SwXTextTableStyle::isInUse(), SwDoc::IsUsed(), SwXCell::IsValid(), lcl_CreateXCell(), lcl_GetSpecialProperty(), lcl_SetSpecialProperty(), SwXTableRows::removeByIndex(), SwXTableColumns::removeByIndex(), SwXText::removeTextContentAfter(), SwXText::removeTextContentBefore(), SwXCell::setFormula(), SwXTextTable::setName(), SwXTextTableRow::setPropertyValue(), SwXTextTable::setPropertyValue(), SwDoc::SetTableName(), SwXTextTable::sort(), SwChartDataSequence::SwChartDataSequence(), SwXTextRange::SwXTextRange(), SwDoc::UnProtectCells(), SwDoc::UnProtectTables(), SwDoc::UpdateCharts(), and SwTOXBaseSection::UpdateTable().

◆ GatherFormulas()

void SwTable::GatherFormulas ( std::vector< SwTableBoxFormula * > &  rvFormulas)
private

Definition at line 1626 of file swtable.cxx.

References SwNode::GetDoc(), GetFrameFormat(), SwDoc::GetNodes(), SwNode::GetNodes(), and RES_BOXATR_FORMULA().

Referenced by Merge(), and Split().

◆ GCLines()

void SwTable::GCLines ( )

◆ GetBoxNum()

sal_uInt16 SwTable::GetBoxNum ( OUString &  rStr,
bool  bFirst = false,
const bool  bPerformValidCheck = false 
)
static

Definition at line 1284 of file swtable.cxx.

References lcl_IsValidRowName(), nPos, SAL_MAX_UINT16, and o3tl::toInt32().

Referenced by GetTableBox(), lcl_BoxNmToRel(), and lcl_RelToBox().

◆ GetFrameFormat() [1/2]

SwTableFormat * SwTable::GetFrameFormat ( )
inline

Definition at line 209 of file swtable.hxx.

References SwClient::GetRegisteredIn().

Referenced by SwDoc::AdjustCellWidth(), WW8TabDesc::AdjustNewBand(), SwDoc::AppendDoc(), FndBox_::AreLinesToRestore(), SwXTextTable::attach(), SwHTMLParser::BuildTableCell(), CalculateFlySize(), CanConvertSubtables(), SwDDETable::ChangeContent(), checkAndWriteFloatingTables(), CheckConsistency(), CheckTable(), ConvertSubtableBox(), ConvertSubtables(), SwXText::convertToTable(), CopyHeadlineIntoTable(), SwEditShell::CopySelToDoc(), sw::DocumentChartDataProviderManager::CreateChartInternalDataProviders(), SaveTable::CreateNew(), sw::CreateParentXText(), WW8TabDesc::CreateSwTable(), sw::util::InsertedTablesManager::DelAndMakeTableFrames(), SwChartDataProvider::DeleteBox(), DeleteBox_(), DeleteSel(), sw::DocumentContentOperationsManager::DelFullPara(), SwDoc::DelTable(), SwChartDataProvider::DisposeAllDataSequences(), dumpAsXml(), RtfExport::ExportDocument_Impl(), SwXMLExport::ExportTable(), SwXMLExport::ExportTableAutoStyles(), SwViewShell::FillPrtDoc(), GatherFormulas(), SwHTMLTableLayout::GetBrowseWidthByTable(), SwUnoCursorHelper::getCursorPropertyValue(), ww8::WW8TableNodeInfoInner::getGridColsOfRow(), GetInfo(), SwXRedline::getPropertyValue(), SwXTextTableCursor::getPropertyValue(), GetTabCols(), GetTableBox(), SwEditShell::GetTableFormat(), SwXMLTableInfo_Impl::GetTableFormat(), AttributeOutputBase::GetTablePageSize(), SwTOXTable::GetText_Impl(), GiveNodePageDesc(), HasDeletedRowOrCell(), HasLayout(), sw::util::HasPageBreak(), SwRootFrame::Init(), RtfAttributeOutput::InitTableHelper(), DocxAttributeOutput::InitTableHelper(), InsertCol(), SwUndoTableCpyTable::InsertRow(), InsertRow_(), SwXMLTableContext::InsertTableSection(), InsNewTable(), InsTable(), SwAccessibleMap::InvalidateShapeInParaSelection(), SwChartDataProvider::InvalidateTable(), IsDeleted(), lcl_ChgTableSize(), lcl_CpyBox(), lcl_InsertLabel(), MakeCopy(), FndBox_::MakeFrames(), SwHTMLWriter::MakeHeader(), FndBox_::MakeNewFrames(), SwXMLTableContext::MakeTable(), HTMLTable::MakeTable(), SwNodes::MergeTable(), UnfloatTableButton::MouseButtonDown(), SwNodes::MoveNodes(), SwWW8ImplReader::MoveOutsideFly(), SwHTMLParser::MovePageDescAttrs(), MSWordSections::MSWordSections(), NewInsertCol(), SwDDETable::NoDDETable(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutHTML_SwTableNode(), MSWordExportBase::OutputTextNode(), SwTransferable::Paste(), PrepareDeleteCol(), PrepareMerge(), SwUndoDelete::RedoImpl(), SwUndoInsertLabel::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoTextToTable::RedoImpl(), SaveTable::RestoreAttr(), SaveTable::SaveTable(), SwTableFormula::ScanString(), DocxAttributeOutput::SectionBreaks(), RtfAttributeOutput::SectionBreaks(), MSWordExportBase::SectionProperties(), SetColWidth(), SwXTextTable::setName(), SwXTextTableCursor::setPropertyValue(), SwDoc::SetRowsToRepeat(), WW8TabDesc::SetSizePosition(), SwDoc::SetTabCols(), SetTabCols(), SwTableCellInfo::Impl::setTable(), SwDoc::SortTable(), SwTableFormula::SplitMergeBoxNm_(), sw::DocumentContentOperationsManager::SplitNode(), SwDoc::SplitTable(), SwNodes::SplitTable(), SwNode2LayImpl::SwNode2LayImpl(), SwUndoMergeTable::SwUndoMergeTable(), SwUndoTableToText::SwUndoTableToText(), WW8AttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableBackgrounds(), RtfAttributeOutput::TableBackgrounds(), WW8AttributeOutput::TableBidi(), DocxAttributeOutput::TableBidi(), RtfAttributeOutput::TableBidi(), WW8AttributeOutput::TableDefinition(), DocxAttributeOutput::TableDefinition(), RtfAttributeOutput::TableDefinition(), RtfAttributeOutput::TableOrientation(), WW8AttributeOutput::TableOrientation(), WW8AttributeOutput::TableSpacing(), SwUndoDelete::UndoImpl(), SwUndoInsertLabel::UndoImpl(), SwUndoSplitNode::UndoImpl(), SwUndoInsTable::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoCpyTable::UndoImpl(), SwUndoMergeTable::UndoImpl(), UpdateCharts(), SwDoc::UpdateCharts_(), UpdateFields(), SwDDETable::~SwDDETable(), ~SwTable(), and SwTableNode::~SwTableNode().

◆ GetFrameFormat() [2/2]

SwTableFormat * SwTable::GetFrameFormat ( ) const
inline

Definition at line 210 of file swtable.hxx.

References SwClient::GetRegisteredIn().

◆ GetHTMLTableLayout() [1/2]

SwHTMLTableLayout * SwTable::GetHTMLTableLayout ( )
inline

◆ GetHTMLTableLayout() [2/2]

const SwHTMLTableLayout * SwTable::GetHTMLTableLayout ( ) const
inline

Definition at line 183 of file swtable.hxx.

◆ GetInfo()

bool SwTable::GetInfo ( SfxPoolItem rInfo) const
overridevirtual

◆ GetObject() [1/2]

SwServerObject * SwTable::GetObject ( )
inline

Definition at line 333 of file swtable.hxx.

References tools::SvRef< typename T >::get().

◆ GetObject() [2/2]

const SwServerObject * SwTable::GetObject ( ) const
inline

Definition at line 332 of file swtable.hxx.

References tools::SvRef< typename T >::get().

◆ GetRowsToRepeat()

sal_uInt16 SwTable::GetRowsToRepeat ( ) const
inline

◆ GetTabCols()

void SwTable::GetTabCols ( SwTabCols rToFill,
const SwTableBox pStart,
bool  bHidden = false,
bool  bCurRowOnly = false 
) const

◆ GetTableBox() [1/3]

const SwTableBox * SwTable::GetTableBox ( const OUString &  rName,
const bool  bPerformValidCheck = false 
) const

Definition at line 1344 of file swtable.cxx.

References SwTableLines::empty(), SwTableLines::front(), GetBoxNum(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableBox::GetTabLines(), and SwTableLines::size().

Referenced by SwTableFormula::BoxNmsToPtr(), SwTableFormula::BoxNmsToRelNm(), SwCursorShell::CheckTableBoxContent(), CopyHeadlineIntoTable(), SwXTextTable::createCursorByCellName(), SwChartDataSequence::DeleteBox(), SwChartDataSequence::ExtendTo(), SwXTextTable::getCellByName(), SwXCellRange::getCellRangeByPosition(), GetCellRangeName(), SwCursorShell::GetContentAtPos(), SwUndoFormatAttr::GetFormat(), GetFormatAndCreateCursorFromRangeRep(), SwXTextTableCursor::getRangeName(), SwVbaTableHelper::getTabColIndex(), SwNode::GetTableBox(), GetTableSel(), SwVbaTableHelper::getTabRowIndex(), SwCursorShell::GoNextCell(), SwCursor::GotoTableBox(), SwTableFormula::HasValidBoxes_(), SwDoc::InsCopyOfTable(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), InsTable(), SwCursor::IsInProtectTable(), IsTableComplexForChart(), lcl_CreateXCell(), lcl_RelToBox(), SwUnoTableCursor::MakeBoxSels(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutHTML_SwTextNode(), SwFEShell::Paste(), SwUndoSort::RedoImpl(), SwUndoTableNdsChg::RedoImpl(), SwUndoTableNumFormat::RedoImpl(), SwUndoTableCpyTable::RedoImpl(), SwTableFormula::RelBoxNmsToPtr(), SwTableFormula::RelNmsToBoxNms(), SwXTableRows::removeByIndex(), SwXTableColumns::removeByIndex(), SwCursorShell::SaveTableBoxContent(), SwHistorySetFormat::SetInDoc(), SwTableFormula::SplitMergeBoxNm_(), SwDoc::SplitTable(), SwNodes::SplitTable(), SwUndoSort::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), and SwUndoSplitTable::UndoImpl().

◆ GetTableBox() [2/3]

SwTableBox * SwTable::GetTableBox ( SwNodeOffset  nSttIdx)

◆ GetTableBox() [3/3]

const SwTableBox * SwTable::GetTableBox ( SwNodeOffset  nSttIdx) const
inline

Definition at line 300 of file swtable.hxx.

◆ GetTableChgMode()

TableChgMode SwTable::GetTableChgMode ( ) const
inline

◆ GetTableNode()

SwTableNode * SwTable::GetTableNode ( ) const

◆ GetTableStyleName()

const OUString & SwTable::GetTableStyleName ( ) const
inline

◆ GetTabLines() [1/2]

SwTableLines & SwTable::GetTabLines ( )
inline

Definition at line 206 of file swtable.hxx.

Referenced by FndBox_::AreLinesToRestore(), CanConvertSubtables(), CheckConsistency(), SwLayHelper::CheckInsert(), CheckMergeSel(), CheckRowSpan(), CleanUpBottomRowSpan(), CleanUpTopRowSpan(), CollectBoxSelection(), ConvertSubtableBox(), ConvertSubtables(), ConvertTableToText(), CopyHeadlineIntoTable(), SaveTable::CreateNew(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), FndBox_::DelFrames(), SwChartDataProvider::detectArguments(), dumpAsXml(), SwXMLTextParagraphExport::exportTable(), SwXMLExport::ExportTable(), SwXMLExport::ExportTableAutoStyles(), SwTableBox::FindEndOfRowSpan(), SwXTextTableRow::FindLine(), SwTableLine::FindNextBox(), SwTableLine::FindPreviousBox(), SwTableBox::FindStartOfRowSpan(), FindSuperfluousRows_(), RtfAttributeOutput::FinishTableRowCell(), SwRowFrame::Format(), GCLines(), SwHTMLTableLayout::GetAnyBoxStartNode(), SwXTableRows::getByIndex(), SwXTextTable::getCellNames(), SwXTextTable::Impl::GetColumnCount(), ww8::WW8TableNodeInfoInner::getColumnWidthsBasedOnAllRows(), SwTableBox::GetCoordinates(), SwXTableRows::getCount(), SwXTableColumns::getCount(), SwTableFormula::GetLnPosInTable(), SwTableBox::GetName(), SwXTextTable::getPropertyValue(), SwXTextTable::Impl::GetRowCount(), SwVbaTableHelper::GetTabBox(), SwVbaTableHelper::getTabColumnsCount(), SwVbaTableHelper::getTabColumnsMaxCount(), SwDoc::GetTableAutoFormat(), GetTableBox(), GetTableSel(), SwVbaTableHelper::getTabRowIndex(), SwTabFrame::HandleTableHeadlineChange(), SwChartDataProvider::Impl_createDataSource(), RtfAttributeOutput::InitTableHelper(), DocxAttributeOutput::InitTableHelper(), SwNodes::InsBoxen(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), InsertCol(), InsertRow(), InsertRow_(), InsertSpannedRow(), SwDoc::InsertTable(), InsNewTable(), InsTable(), IsHeadline(), SwTableBox::IsInHeadline(), IsTableComplexForChart(), lcl_BalanceTable(), lcl_CalculateSplitLineHeights(), lcl_ChangeRowSpan(), lcl_CheckRowSpan(), lcl_ChgTableSize(), lcl_CollectLines(), lcl_CpyBox(), lcl_FindParentLines(), lcl_FindTableLine(), lcl_getAllMergedBoxes(), lcl_GetRowNumber(), lcl_GetSelTable(), lcl_InsertPosition(), lcl_IsFirstRowInFollowTableWithoutRepeatedHeadlines(), lcl_LineIndex(), lcl_RelToBox(), lcl_SaveUpperLowerBorder(), lcl_SetTableBoxWidths(), lcl_SetTableBoxWidths2(), lcl_SophisticatedFillLineIndices(), lcl_UpdateRepeatedHeadlines(), SwTabFrame::MakeAll(), MakeCopy(), FndBox_::MakeFrames(), FndBox_::MakeNewFrames(), SwXMLTableContext::MakeTable(), HTMLTable::MakeTable(), SwXMLTableContext::MakeTable_(), HTMLTable::MakeTableLine(), SwXMLTableContext::MakeTableLine(), SwFEShell::MergeTab(), SwNodes::MergeTable(), NewSetTabCols(), NewSplitRow(), SwDDETable::NoDDETable(), OldMerge(), OutHTML_SwTableNode(), MSWordExportBase::OutputTextNode(), PrepareDelBoxes(), SwTransferable::PrivateDrop(), ww8::WW8TableInfo::processSwTable(), SaveTable::RestoreAttr(), RestoreRowSpan(), SaveTable::SaveTable(), SwAccessibleTable::selectAccessibleChild(), SwXTextTable::setPropertyValue(), SetRowHeight(), SwDoc::SetRowNotTracked(), SetTabCols(), SwDoc::SetTableAutoFormat(), FndBox_::SetTableLines(), SwDoc::SortTable(), SwTabFrame::Split(), SwDoc::SplitTable(), SwNodes::SplitTable(), SwDDETable::SwDDETable(), SwTabFrame::SwTabFrame(), SwDoc::TextToTable(), SwNodes::TextToTable(), SwNodes::UndoTableToText(), and WW8TabDesc::UseSwTable().

◆ GetTabLines() [2/2]

const SwTableLines & SwTable::GetTabLines ( ) const
inline

Definition at line 207 of file swtable.hxx.

◆ GetTabSortBoxes() [1/2]

SwTableSortBoxes & SwTable::GetTabSortBoxes ( )
inline

◆ GetTabSortBoxes() [2/2]

const SwTableSortBoxes & SwTable::GetTabSortBoxes ( ) const
inline

Definition at line 268 of file swtable.hxx.

◆ HasDeletedRowOrCell()

bool SwTable::HasDeletedRowOrCell ( ) const

◆ HasLayout()

bool SwTable::HasLayout ( ) const

◆ IncGrfsThatResize()

sal_uInt16 SwTable::IncGrfsThatResize ( )
inline

Definition at line 186 of file swtable.hxx.

◆ InsertCol()

bool SwTable::InsertCol ( SwDoc rDoc,
const SwSelBoxes rBoxes,
sal_uInt16  nCnt,
bool  bBehind 
)

◆ InsertRow()

bool SwTable::InsertRow ( SwDoc pDoc,
const SwSelBoxes rBoxes,
sal_uInt16  nCnt,
bool  bBehind 
)

◆ InsertRow_()

bool SwTable::InsertRow_ ( SwDoc pDoc,
const SwSelBoxes rBoxes,
sal_uInt16  nCnt,
bool  bBehind 
)
private

◆ InsertSpannedRow()

void SwTable::InsertSpannedRow ( SwDoc rDoc,
sal_uInt16  nRowIdx,
sal_uInt16  nCnt 
)
private

◆ InsNewTable()

bool SwTable::InsNewTable ( const SwTable rCpyTable,
const SwSelBoxes rSelBoxes,
SwUndoTableCpyTable pUndo 
)

◆ InsTable() [1/2]

bool SwTable::InsTable ( const SwTable rCpyTable,
const SwNodeIndex rSttBox,
SwUndoTableCpyTable pUndo 
)

Copy Table into this Box.

Copy all Boxes of a Line into the corresponding Boxes. The old content is deleted by doing this. If no Box is left the remaining content goes to the Box of a "BaseLine". If there's no Line anymore, put it also into the last Box of a "BaseLine".

Definition at line 701 of file tblcpy.cxx.

References FndBox_::DelFrames(), SwTableLines::empty(), SwTableBox::FindNextBox(), SwNode::FindTableBoxStartNode(), SwTableLines::front(), SwFormat::GetDoc(), GetFrameFormat(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwTableLines::GetPos(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), GetTableBox(), GetTabLines(), SwTableBox::GetTabLines(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SwDoc::IsIdxInTable(), lcl_CpyBox(), FndBox_::MakeFrames(), nPos, SetHTMLTableLayout(), size, and SwitchFormulasToRelativeRepresentation().

Referenced by SwDoc::InsCopyOfTable().

◆ InsTable() [2/2]

bool SwTable::InsTable ( const SwTable rCpyTable,
const SwSelBoxes rSelBoxes,
SwUndoTableCpyTable pUndo 
)

◆ IsDeleted()

bool SwTable::IsDeleted ( ) const

◆ IsEmpty()

bool SwTable::IsEmpty ( ) const

Definition at line 1577 of file swtable.cxx.

References i, IsEmpty(), m_aLines, and SwTableLines::size().

Referenced by IsEmpty().

◆ IsHeadline()

bool SwTable::IsHeadline ( const SwTableLine rLine) const

◆ IsNewModel()

bool SwTable::IsNewModel ( ) const
inline

◆ IsTableComplex()

bool SwTable::IsTableComplex ( ) const

◆ IsTableComplexForChart()

bool SwTable::IsTableComplexForChart ( std::u16string_view  aSel) const

◆ LockModify()

void SwTable::LockModify ( )
inline

Definition at line 189 of file swtable.hxx.

Referenced by SetColWidth(), and SetTabCols().

◆ MakeCopy()

bool SwTable::MakeCopy ( SwDoc rInsDoc,
const SwPosition rPos,
const SwSelBoxes rSelBoxes,
bool  bCpyName = false,
const OUString &  rStyleName = "" 
) const

◆ Merge() [1/2]

bool SwTable::Merge ( SwDoc pDoc,
const SwSelBoxes rBoxes,
const SwSelBoxes rMerged,
SwTableBox pMergeBox,
SwUndoTableMerge pUndo 
)
inline

Definition at line 237 of file swtable.hxx.

Referenced by SwDoc::MergeTable().

◆ Merge() [2/2]

void SwTable::Merge ( SwTable rTable,
SwHistory pHistory 
)

◆ NewInsertCol()

bool SwTable::NewInsertCol ( SwDoc rDoc,
const SwSelBoxes rBoxes,
sal_uInt16  nCnt,
bool  bBehind 
)
private

◆ NewMerge()

bool SwTable::NewMerge ( SwDoc pDoc,
const SwSelBoxes rBoxes,
const SwSelBoxes rMerged,
SwUndoTableMerge pUndo 
)
private

NewMerge(..) removes the superfluous cells after cell merge.

SwTable::NewMerge(..) does some cleaning up, it simply deletes the superfluous cells ("cell span") and notifies the Undo about it. The main work has been done by SwTable::PrepareMerge(..) already.

Parameters
rBoxesthe boxes to remove
pUndothe undo object to notify, maybe empty
Returns
true for compatibility reasons with OldMerge(..)

Definition at line 92 of file swnewtable.cxx.

References CHECK_TABLE, DeleteSel(), and SwUndoTableMerge::SetSelBoxes().

◆ NewSetTabCols()

void SwTable::NewSetTabCols ( Parm rP,
const SwTabCols rNew,
const SwTabCols rOld,
const SwTableBox pStart,
bool  bCurRowOnly 
)
private

◆ NewSplitRow()

bool SwTable::NewSplitRow ( SwDoc rDoc,
const SwSelBoxes rBoxes,
sal_uInt16  nCnt,
bool  bSameHeight 
)
private

◆ OldMerge()

bool SwTable::OldMerge ( SwDoc pDoc,
const SwSelBoxes rBoxes,
SwTableBox pMergeBox,
SwUndoTableMerge pUndo 
)
private

◆ OldSplitRow()

bool SwTable::OldSplitRow ( SwDoc rDoc,
const SwSelBoxes rBoxes,
sal_uInt16  nCnt,
bool  bSameHeight 
)
private

Definition at line 1025 of file tblrwcl.cxx.

References SwTableLines::begin(), CHECKBOXWIDTH, CHECKTABLELAYOUT, SwTableLine::ClaimFrameFormat(), SwTableBox::ClaimFrameFormat(), IDocumentChartDataProviderAccess::CreateChartInternalDataProviders(), SwNodes::Delete(), FndBox_::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), GCLines(), SwFormat::GetBox(), SwTableLine::GetBoxPos(), SwFrameAreaDefinition::getFrameArea(), SwTableLine::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SwRectFnSet::GetHeight(), SwFormatFrameSize::GetHeightSizeType(), SwDoc::getIDocumentChartDataProviderAccess(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), GetRowFrame(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableBox::GetTabLines(), SvxBoxItem::GetTop(), SwTableBox::GetUpper(), i, SwTableLines::insert(), InsTableBox(), FndBox_::MakeFrames(), Minimum, SwNodes::MoveNodes(), n, RES_BOXATR_BEGIN(), RES_BOXATR_END(), RES_FRMATR_END(), RES_LR_SPACE(), SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SvxSizeItem::SetHeight(), SwFormatFrameSize::SetHeightSizeType(), SetHTMLTableLayout(), SvxBoxItem::SetLine(), FndBox_::SetTableLines(), SwTableBox::SetUpper(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and Variable.

◆ operator=()

SwTable & SwTable::operator= ( const SwTable )
privatedelete

◆ PrepareDelBoxes()

void SwTable::PrepareDelBoxes ( const SwSelBoxes rBoxes)

◆ PrepareDeleteCol()

void SwTable::PrepareDeleteCol ( tools::Long  nMin,
tools::Long  nMax 
)

◆ PrepareMerge()

bool SwTable::PrepareMerge ( const SwPaM rPam,
SwSelBoxes rBoxes,
SwSelBoxes rMerged,
SwTableBox **  ppMergeBox,
SwUndoTableMerge pUndo 
)

SwTable::PrepareMerge(..) some preparation for the coming Merge(..)

For the old table model, GetMergeSel(..) is called only, for the new table model, PrepareMerge does the main work. It modifies all cells to merge (width, border, rowspan etc.) and collects the cells which have to be deleted by Merge(..) afterwards. If there are superfluous rows, these cells are put into the deletion list as well.

Parameters
rPamthe selection to merge
rBoxesshould be empty at the beginning, at the end it is filled with boxes to delete.
ppMergeBoxwill be set to the master cell box
pUndothe undo object to record all changes can be Null, e.g. when called by Redo(..)
Returns

Definition at line 825 of file swnewtable.cxx.

References SwUndoTableMerge::AddNewBox(), SwPosition::Adjust(), IDocumentContentOperations::AppendTextNode(), SwPosition::Assign(), CHECK_TABLE, SwTableBox::ChgFrameFormat(), SwTableBox::ClaimFrameFormat(), CollectBoxSelection(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwNode::EndOfSectionNode(), FindSuperfluousRows_(), SvxBoxItem::GetBottom(), SwFormat::GetBox(), SwFormat::GetDoc(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SvxBoxItem::GetLeft(), GetMergeSel(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), SwPaM::GetPointNode(), SvxBoxItem::GetRight(), SwTableBox::getRowSpan(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwNode::GetTextNode(), SvxBoxItem::GetTop(), SwTableBox::GetUpper(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), IsEmptyBox(), SwContentNode::Len(), m_bNewModel, SwUndoTableMerge::MoveBoxContent(), IDocumentContentOperations::MoveNodeRange(), NO_DELFRMS, SwPosition::SetContent(), SwTextNode::SetCountedInList(), SwFormat::SetFormatAttr(), SvxBoxItem::SetLine(), SwTableBox::setRowSpan(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and Variable.

Referenced by SwDoc::MergeTable().

◆ RegisterToFormat()

void SwTable::RegisterToFormat ( SwFormat rFormat)

◆ RestoreRowSpan()

void SwTable::RestoreRowSpan ( const SwSaveRowSpan rSave)

◆ SelLineFromBox()

SwSelBoxes & SwTable::SelLineFromBox ( const SwTableBox pBox,
SwSelBoxes rBoxes,
bool  bToTop = true 
)
static

◆ SetColWidth()

bool SwTable::SetColWidth ( SwTableBox rCurrentBox,
TableChgWidthHeightType  eType,
SwTwips  nAbsDiff,
SwTwips  nRelDiff,
std::unique_ptr< SwUndo > *  ppUndo 
)

◆ SetHTMLTableLayout()

void SwTable::SetHTMLTableLayout ( std::shared_ptr< SwHTMLTableLayout > const &  r)

◆ SetRefObject()

void SwTable::SetRefObject ( SwServerObject pObj)

Definition at line 2322 of file swtable.cxx.

References tools::SvRef< typename T >::is(), and m_xRefObj.

◆ SetRowHeight()

bool SwTable::SetRowHeight ( SwTableBox rCurrentBox,
TableChgWidthHeightType  eType,
SwTwips  nAbsDiff,
SwTwips  nRelDiff,
std::unique_ptr< SwUndo > *  ppUndo 
)

◆ SetRowsToRepeat()

void SwTable::SetRowsToRepeat ( sal_uInt16  nNumOfRows)
inline

◆ SetTabCols()

void SwTable::SetTabCols ( const SwTabCols rNew,
const SwTabCols rOld,
const SwTableBox pStart,
bool  bCurRowOnly 
)

◆ SetTableChgMode()

void SwTable::SetTableChgMode ( TableChgMode  eMode)
inline

Definition at line 339 of file swtable.hxx.

References eMode.

Referenced by SwTableNode::MakeCopy(), MakeCopy(), and SwNodes::MergeTable().

◆ SetTableModel()

void SwTable::SetTableModel ( bool  bNew)
inline

◆ SetTableNode()

void SwTable::SetTableNode ( SwTableNode pNode)
inline

Definition at line 328 of file swtable.hxx.

Referenced by SwTableNode::MakeCopy().

◆ SetTableStyleName()

void SwTable::SetTableStyleName ( const OUString &  rName)
inline

◆ Split()

void SwTable::Split ( OUString  sNewTableName,
sal_uInt16  nSplitLine,
SwHistory pHistory 
)

◆ SplitCol()

bool SwTable::SplitCol ( SwDoc rDoc,
const SwSelBoxes rBoxes,
sal_uInt16  nCnt 
)

◆ SplitRow()

bool SwTable::SplitRow ( SwDoc rDoc,
const SwSelBoxes rBoxes,
sal_uInt16  nCnt,
bool  bSameHeight 
)
inline

Definition at line 243 of file swtable.hxx.

Referenced by SwDoc::SplitTable().

◆ SwClientNotify()

void SwTable::SwClientNotify ( const SwModify ,
const SfxHint rHint 
)
overrideprotectedvirtual

◆ SwitchFormulasToExternalRepresentation()

void SwTable::SwitchFormulasToExternalRepresentation ( )
inline

◆ SwitchFormulasToInternalRepresentation()

void SwTable::SwitchFormulasToInternalRepresentation ( )
inline

◆ SwitchFormulasToRelativeRepresentation()

void SwTable::SwitchFormulasToRelativeRepresentation ( )
inline

Definition at line 364 of file swtable.hxx.

References TBL_RELBOXNAME.

Referenced by CopyHeadlineIntoTable(), InsNewTable(), InsTable(), MakeCopy(), and SwDoc::SortTable().

◆ UnlockModify()

void SwTable::UnlockModify ( )
inline

Definition at line 190 of file swtable.hxx.

Referenced by SetColWidth(), and SetTabCols().

◆ UpdateCharts()

void SwTable::UpdateCharts ( ) const

◆ UpdateFields()

void SwTable::UpdateFields ( TableFormulaUpdateFlags  eFlags)
private

Member Data Documentation

◆ m_aLines

SwTableLines SwTable::m_aLines
protected

◆ m_bModifyLocked

bool SwTable::m_bModifyLocked
protected

Definition at line 138 of file swtable.hxx.

Referenced by SwClientNotify().

◆ m_bNewModel

bool SwTable::m_bNewModel
protected

◆ m_eTableChgMode

TableChgMode SwTable::m_eTableChgMode
protected

Definition at line 129 of file swtable.hxx.

Referenced by SetColWidth(), SetRowHeight(), and SwTable().

◆ m_nGraphicsThatResize

sal_uInt16 SwTable::m_nGraphicsThatResize
protected

Definition at line 131 of file swtable.hxx.

◆ m_nRowsToRepeat

sal_uInt16 SwTable::m_nRowsToRepeat
protected

Definition at line 133 of file swtable.hxx.

◆ m_pTableNode

SwTableNode* SwTable::m_pTableNode
protected

Definition at line 126 of file swtable.hxx.

Referenced by GetTableNode(), and SwDDETable::~SwDDETable().

◆ m_TabSortContentBoxes

SwTableSortBoxes SwTable::m_TabSortContentBoxes
protected

Definition at line 117 of file swtable.hxx.

Referenced by GetInfo(), GetTableBox(), IsTableComplex(), SwDDETable::SwDDETable(), and ~SwTable().

◆ m_xHTMLLayout

std::shared_ptr<SwHTMLTableLayout> SwTable::m_xHTMLLayout
protected

Definition at line 120 of file swtable.hxx.

Referenced by SetHTMLTableLayout().

◆ m_xRefObj

tools::SvRef<SwServerObject> SwTable::m_xRefObj
protected

Definition at line 118 of file swtable.hxx.

Referenced by SetRefObject(), and ~SwTable().

◆ maTableStyleName

OUString SwTable::maTableStyleName
protected

Name of the table style to be applied on this table.

Definition at line 136 of file swtable.hxx.


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