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

SwTableBox is one table cell in the document model. More...

#include <swtable.hxx>

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

Public Member Functions

 SwTableBox (SwTableBoxFormat *, sal_uInt16 nLines, SwTableLine *pUp)
 
 SwTableBox (SwTableBoxFormat *, const SwStartNode &, SwTableLine *pUp)
 
 SwTableBox (SwTableBoxFormat *, const SwNodeIndex &, SwTableLine *pUp)
 
virtual ~SwTableBox () override
 
SwTableLinesGetTabLines ()
 
const SwTableLinesGetTabLines () const
 
SwTableLineGetUpper ()
 
const SwTableLineGetUpper () const
 
void SetUpper (SwTableLine *pNew)
 
SwFrameFormatGetFrameFormat ()
 
SwFrameFormatGetFrameFormat () const
 
void SetDirectFormatting (bool bDirect)
 Set that this table box contains formatting that is not set by the table style. More...
 
bool HasDirectFormatting () const
 Do we contain any direct formatting (ie. something not affected by the table style)? More...
 
SwFrameFormatClaimFrameFormat ()
 
void ChgFrameFormat (SwTableBoxFormat *pNewFormat, bool bNeedToReregister=true)
 
void RemoveFromTable ()
 
const SwStartNodeGetSttNd () const
 
SwNodeOffset GetSttIdx () const
 
bool IsEmpty (bool bWithRemainingNestedTable=true) const
 
SwTableBoxFindNextBox (const SwTable &, const SwTableBox *, bool bOvrTableLns=true) const
 
SwTableBoxFindPreviousBox (const SwTable &, const SwTableBox *) const
 
OUString GetName () const
 
double GetValue (SwTableCalcPara &rPara) const
 Get value of this box. More...
 
Point GetCoordinates () const
 
bool IsInHeadline (const SwTable *pTable) const
 
bool HasNumContent (double &rNum, sal_uInt32 &rFormatIndex, bool &rIsEmptyTextNd) const
 
SwNodeOffset IsValidNumTextNd (bool bCheckAttr=true) const
 
bool IsNumberChanged () const
 
sal_uInt16 IsFormulaOrValueBox () const
 
void ActualiseValueBox ()
 
const std::optional< Color > & GetSaveUserColor () const
 
const std::optional< Color > & GetSaveNumFormatColor () const
 
void SetSaveUserColor (std::optional< Color > p)
 
void SetSaveNumFormatColor (std::optional< Color > p)
 
sal_Int32 getRowSpan () const
 
void setRowSpan (sal_Int32 nNewRowSpan)
 
bool getDummyFlag () const
 
void setDummyFlag (bool bDummy)
 
SwTableBoxFindStartOfRowSpan (const SwTable &, sal_uInt16 nMaxStep=USHRT_MAX)
 SwTableBox::FindStartOfRowSpan(..) returns the "master" cell, the cell which overlaps the given cell, it maybe the cell itself. More...
 
const SwTableBoxFindStartOfRowSpan (const SwTable &rTable, sal_uInt16 nMaxStep=USHRT_MAX) const
 
SwTableBoxFindEndOfRowSpan (const SwTable &, sal_uInt16 nMaxStep)
 SwTableBox::FindEndOfRowSpan(..) returns the last overlapped cell if there is any. More...
 
const SwTableBoxFindEndOfRowSpan (const SwTable &rTable, sal_uInt16 nMaxStep) const
 
void RegisterToFormat (SwFormat &rFormat)
 
- 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 Member Functions

 SwTableBox (const SwTableBox &)=delete
 
SwTableBoxoperator= (const SwTableBox &)=delete
 

Static Private Member Functions

static SwTableBoxFormatCheckBoxFormat (SwTableBoxFormat *)
 

Private Attributes

SwTableLines m_aLines
 
const SwStartNodem_pStartNode
 
SwTableLinem_pUpper
 
std::optional< ColormxUserColor
 
std::optional< ColormxNumFormatColor
 
sal_Int32 mnRowSpan
 
bool mbDummyFlag
 
bool mbDirectFormatting
 Do we contain any direct formatting? More...
 

Friends

class SwNodes
 
class SwXMLTableContext
 
void DelBoxNode (SwTableSortBoxes const &)
 

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

SwTableBox is one table cell in the document model.

Definition at line 425 of file swtable.hxx.

Constructor & Destructor Documentation

◆ SwTableBox() [1/4]

SwTableBox::SwTableBox ( const SwTableBox )
privatedelete

◆ SwTableBox() [2/4]

SwTableBox::SwTableBox ( SwTableBoxFormat pFormat,
sal_uInt16  nLines,
SwTableLine pUp 
)

◆ SwTableBox() [3/4]

SwTableBox::SwTableBox ( SwTableBoxFormat pFormat,
const SwStartNode rSttNd,
SwTableLine pUp 
)

◆ SwTableBox() [4/4]

SwTableBox::SwTableBox ( SwTableBoxFormat pFormat,
const SwNodeIndex rIdx,
SwTableLine pUp 
)

◆ ~SwTableBox()

SwTableBox::~SwTableBox ( )
overridevirtual

Member Function Documentation

◆ ActualiseValueBox()

void SwTableBox::ActualiseValueBox ( )

◆ CheckBoxFormat()

SwTableBoxFormat * SwTableBox::CheckBoxFormat ( SwTableBoxFormat pFormat)
staticprivate

◆ ChgFrameFormat()

void SwTableBox::ChgFrameFormat ( SwTableBoxFormat pNewFormat,
bool  bNeedToReregister = true 
)

◆ ClaimFrameFormat()

SwFrameFormat * SwTableBox::ClaimFrameFormat ( )

◆ FindEndOfRowSpan() [1/2]

SwTableBox & SwTableBox::FindEndOfRowSpan ( const SwTable rTable,
sal_uInt16  nMaxStep 
)

◆ FindEndOfRowSpan() [2/2]

const SwTableBox & SwTableBox::FindEndOfRowSpan ( const SwTable rTable,
sal_uInt16  nMaxStep 
) const
inline

Definition at line 534 of file swtable.hxx.

◆ FindNextBox()

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

◆ FindPreviousBox()

SwTableBox * SwTableBox::FindPreviousBox ( const SwTable rTable,
const SwTableBox pSrchBox 
) const

Definition at line 2327 of file tblrwcl.cxx.

References SwTableLine::FindPreviousBox(), GetTabLines(), and GetUpper().

Referenced by SwFEShell::DeleteRow(), and SwDoc::DeleteRow().

◆ FindStartOfRowSpan() [1/2]

SwTableBox & SwTableBox::FindStartOfRowSpan ( const SwTable rTable,
sal_uInt16  nMaxStep = USHRT_MAX 
)

◆ FindStartOfRowSpan() [2/2]

const SwTableBox & SwTableBox::FindStartOfRowSpan ( const SwTable rTable,
sal_uInt16  nMaxStep = USHRT_MAX 
) const
inline

Definition at line 529 of file swtable.hxx.

◆ GetCoordinates()

Point SwTableBox::GetCoordinates ( ) const

◆ getDummyFlag()

bool SwTableBox::getDummyFlag ( ) const

Definition at line 82 of file swtable.cxx.

References mbDummyFlag.

◆ GetFrameFormat() [1/2]

SwFrameFormat * SwTableBox::GetFrameFormat ( )
inline

Definition at line 464 of file swtable.hxx.

References SwClient::GetRegisteredIn().

Referenced by ActualiseValueBox(), SwCollectTableLineBoxes::AddBox(), SwUndoTableCpyTable::AddBoxAfter(), SwUndoTableCpyTable::AddBoxBefore(), WW8TabDesc::AdjustNewBand(), SwTableBoxFormat::BoxAttributeChanged(), ww8::CellInfo::CellInfo(), SwDDETable::ChangeContent(), SwShareBoxFormats::ChangeFrameFormat(), CheckBoxWidth(), SwTable::CheckConsistency(), SwCursorShell::CheckTableBoxContent(), ChgFrameFormat(), ChgNumToText(), ChgTextToNum(), SwDoc::ChkBoxNumFormat(), ClaimFrameFormat(), SwDoc::ClearBoxNumAttrs(), DocxAttributeOutput::CmdField_Impl(), SwTable::CollectBoxSelection(), SwTable::ConvertSubtableBox(), SwTable::CreateSelection(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwTable::ExpandColumnSelection(), SwXMLExport::ExportTableBox(), SwXMLExport::ExportTableLine(), SwXMLExport::ExportTableLinesAutoStyles(), FlatFndBox::FillFlat(), SwCellFrame::FindStartEndOfRowSpanCell(), SwCellFrame::Format(), SwXCell::GetAny(), SwCollectTableLineBoxes::GetBoxOfPos(), SwWriteTable::GetBoxWidth(), SwCursorShell::GetContentAtPos(), SwUndoFormatAttr::GetFormat(), SwXCell::getFormula(), GetMergeSel(), SwXCell::getPropertyValue(), SwXTextTable::getPropertyValue(), SwDoc::GetTableAutoFormat(), SwAccessibleCell::GetTableBoxFormat(), SwEditShell::GetTableBoxFormulaAttrs(), GetTableSel(), SwXCell::getValue(), SwSortBoxElement::GetValue(), GetValue(), SwWriteTableCell::GetVertOri(), SwCursor::GotoTableBox(), HasNumContent(), WW8TabDesc::InsertCells(), IsFormulaOrValueBox(), IsNumberChanged(), SwNode::IsProtect(), SwEditShell::IsTableBoxTextFormat(), lcl_AdjustBox(), lcl_AdjustWidthsInLine(), lcl_AjustLines(), lcl_Box2LeftBorder(), lcl_CalcNewWidths(), lcl_CheckCol(), lcl_CheckMinMax(), lcl_CopyBoxToDoc(), lcl_CopyCol(), lcl_CopyLineToDoc(), lcl_CopyTableBox(), lcl_CpyBox(), lcl_FindEndPosOfBorder(), lcl_FndNxtPrvDelBox(), lcl_GCBorder_ChkBoxBrd_B(), lcl_GCBorder_GetBorder(), lcl_InsTableBox(), lcl_InvalidateCellFrame(), lcl_LastBoxSetWidth(), lcl_LeftBorder2Box(), lcl_Merge_MoveBox(), lcl_ModifyBoxes(), lcl_ProcessBoxSet(), lcl_SaveUpperLowerBorder(), lcl_SearchSelBox(), lcl_SetAFormatBox(), lcl_SetDfltBoxAttr(), lcl_SetOtherBoxWidth(), lcl_SetSelBoxWidth(), lcl_SplitTable_CpyBox(), lcl_TableBox_HasTabBorders(), lcl_TCFlags(), SwXMLTableContext::MakeTable(), SwUnoCursorHelper::makeTableCellRedline(), SwWriteTable::MergeBoxBorders(), MoveCol(), MoveRow(), SwTable::NewInsertCol(), SwTable::OldMerge(), SwTable::OldSplitRow(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutHTML_SwTextNode(), MSWordExportBase::OutputTextNode(), SwTable::PrepareDelBoxes(), SwTable::PrepareDeleteCol(), SwTable::PrepareMerge(), SwUndoTableCpyTable::RedoImpl(), SwShareBoxFormats::SetAttr(), SwDoc::SetBoxAttr(), SwHTMLTableLayout::SetBoxWidth(), SwTable::SetColWidth(), SwXCell::setFormula(), SwXCell::setPropertyValue(), SwXTextTable::setPropertyValue(), SwShareBoxFormats::SetSize(), SwDoc::SetTabBorders(), WW8TabDesc::SetTabBorders(), WW8TabDesc::SetTabDirection(), WW8TabDesc::SetTabShades(), WW8TabDesc::SetTabVertAlign(), SwTable::SplitCol(), sw_BoxSetSplitBoxFormats(), sw_GC_Line_Border(), SwCellFrame::SwCellFrame(), SwUndoTableNumFormat::SwUndoTableNumFormat(), WW8AttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableBackgrounds(), RtfAttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableCellProperties(), WW8AttributeOutput::TableDefaultBorders(), RtfAttributeOutput::TableDefaultBorders(), DocxAttributeOutput::TableDefaultCellMargins(), DocxAttributeOutput::TableDefinition(), RtfAttributeOutput::TableDefinition(), WW8AttributeOutput::TableVerticalCell(), DocxAttributeOutput::TableVerticalCell(), RtfAttributeOutput::TableVerticalCell(), SwDoc::TextToTable(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), SwDoc::UnProtectCells(), and ~SwTableBox().

◆ GetFrameFormat() [2/2]

SwFrameFormat * SwTableBox::GetFrameFormat ( ) const
inline

Definition at line 465 of file swtable.hxx.

References SwClient::GetRegisteredIn().

◆ GetName()

OUString SwTableBox::GetName ( ) const

◆ getRowSpan()

sal_Int32 SwTableBox::getRowSpan ( ) const
inline

◆ GetSaveNumFormatColor()

const std::optional< Color > & SwTableBox::GetSaveNumFormatColor ( ) const
inline

Definition at line 519 of file swtable.hxx.

Referenced by ChgNumToText(), ChgTextToNum(), InsTableBox(), and IsNumberChanged().

◆ GetSaveUserColor()

const std::optional< Color > & SwTableBox::GetSaveUserColor ( ) const
inline

Definition at line 518 of file swtable.hxx.

Referenced by ChgNumToText(), ChgTextToNum(), and InsTableBox().

◆ GetSttIdx()

SwNodeOffset SwTableBox::GetSttIdx ( ) const

◆ GetSttNd()

const SwStartNode * SwTableBox::GetSttNd ( ) const
inline

Definition at line 478 of file swtable.hxx.

Referenced by SwUndoTableCpyTable::AddBoxAfter(), SwUndoTableCpyTable::AddBoxBefore(), SwDDETable::ChangeContent(), CheckTable(), SwDoc::ChkBoxNumFormat(), SwTable::CollectBoxSelection(), ConvertNestedTablesToText(), SwTable::ConvertSubtableBox(), SwTable::CopyHeadlineIntoTable(), SwXParagraphEnumeration::Create(), SwXCell::createEnumeration(), SwTable::CreateSelection(), SwXCell::createTextCursor(), SwXCell::createTextCursorByRange(), SwExtraRedlineTable::DeleteAllTableRedlines(), SwChartDataSequence::DeleteBox(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwAccessibleTable::deselectAccessibleChild(), SwXMLExport::ExportTableBox(), SwXMLExport::ExportTableLinesAutoStyles(), SwChartDataSequence::ExtendTo(), SwWriteTable::FillTableRowsCols(), SwTableFormula::FindTable(), HTMLTable::FixFrameFormat(), SwHTMLTableLayout::GetAnyBoxStartNode(), SwXCellRange::getCellRangeByPosition(), GetFormatAndCreateCursorFromRangeRep(), SwSortBoxElement::GetKey(), SwXCell::getPropertyValue(), SwXTextTable::getPropertyValue(), SwUnoCursorHelper::GetSelectableFromAny(), SwHTMLTableLayoutCnts::GetStartNode(), SwXCell::GetStartNode(), SwDoc::GetTableAutoFormat(), SwTable::GetTableBox(), SwEditShell::GetTableBoxFormulaAttrs(), GetValue(), SwWriteTableCell::GetVertOri(), SwCursorShell::GoNextCell(), SwCursor::GoPrevNextCell(), SwCursorShell::GotoNxtPrvTableFormula(), SwCursor::GotoTableBox(), WW8TabDesc::InFirstParaInCell(), SwNodes::InsBoxen(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), SwTable::InsertRow(), SwTable::InsTable(), InsTableBox(), SwFEShell::IsAdjustCellWidthAllowed(), IsEmpty(), IsEmptyBox(), SwTable::IsTableComplexForChart(), lcl_BoxSetHeadCondColl(), lcl_CellText(), lcl_CheckCol(), lcl_CopyBoxToDoc(), lcl_CopyTableBox(), lcl_CpyBox(), lcl_DelBox(), lcl_FindCornerTableBox(), lcl_FndNxtPrvDelBox(), lcl_GetBoxFrame(), lcl_InsTableBox(), lcl_LastBoxSetWidth(), lcl_ProcessLineGet(), lcl_RelToBox(), lcl_SaveUpperLowerBorder(), lcl_SetAFormatBox(), lcl_SplitTable_CpyBox(), lcl_TableBox_HasTabBorders(), lcl_TCFlags(), SwCursor::LeftRight(), WW8TabDesc::MergeCells(), SwDoc::MergeTable(), MoveCell(), SwXMLTableContext::NewTableBox(), SwTable::OldMerge(), SwTable::OldSplitRow(), MSWordExportBase::OutputSectionBreaks(), MSWordExportBase::OutputTextNode(), WW8TabDesc::ParkPaM(), SwTable::PrepareMerge(), SwUndoTableCpyTable::PrepareRedline(), ww8::WW8TableInfo::processSwTableByLayout(), ww8::WW8TableInfo::processTableBox(), ww8::WW8TableInfo::processTableBoxLines(), SwUndoTableCpyTable::RedoImpl(), SwXTableRows::removeByIndex(), SwXTableColumns::removeByIndex(), SwUndoTableMerge::SaveCollection(), SwUndoTableNdsChg::SaveNewBoxes(), SwAccessibleTable::selectAccessibleChild(), SwFEShell::SelTableRowCol(), SwCursorShell::SelTableRowOrCol(), SwDoc::SetColRowWidthHeight(), SwTable::SetColWidth(), SetGetExpField::SetGetExpField(), WW8TabDesc::SetPamInCell(), SwXTextTable::setPropertyValue(), SwTable::SetRowHeight(), SwWriteTable::ShouldExpandSub(), SwNodes::SplitTable(), sw_BoxSetSplitBoxFormats(), sw_GC_Line_Border(), SwUndoTableNumFormat::SwUndoTableNumFormat(), SwXTextTableCursor::SwXTextTableCursor(), SwDoc::TextToTable(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), SwTOXBaseSection::UpdateTable(), sw::DocumentFieldsManager::UpdateTableFields(), and SwFEShell::WhichMouseTabCol().

◆ GetTabLines() [1/2]

SwTableLines & SwTableBox::GetTabLines ( )
inline

Definition at line 457 of file swtable.hxx.

Referenced by CheckBoxWidth(), SwWriteTable::CollectTableRowsCols(), ConvertNestedTablesToText(), SwTable::ConvertSubtableBox(), SwTable::ConvertSubtables(), SaveTable::CreateNew(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwXMLExport::ExportTableBox(), SwXMLExport::ExportTableLinesAutoStyles(), SwWriteTable::FillTableRowsCols(), FindBox_(), FindNextBox(), SwTableLine::FindNextBox(), FindPreviousBox(), SwTableLine::FindPreviousBox(), FndBoxCopyCol(), FndContentBox(), SwRowFrame::Format(), SwHTMLTableLayout::GetAnyBoxStartNode(), GetCoordinates(), GetName(), SwDoc::GetTableAutoFormat(), SwTable::GetTableBox(), SwVbaTableHelper::getTabRowIndex(), SwTable::InsertRow_(), SwTable::InsTable(), SwTable::IsTableComplexForChart(), lcl_AdjustBox(), lcl_AjustLines(), lcl_BoxSetHeadCondColl(), lcl_CalcWidth(), lcl_CheckCol(), lcl_CopyCol(), lcl_CopyTableBox(), lcl_CpyLines(), lcl_DelBox(), lcl_FindCornerTableBox(), lcl_FindParentLines(), lcl_FindTableLine(), lcl_FndNxtPrvDelBox(), lcl_GC_Box_Border(), lcl_GCBorder_ChkBoxBrd_B(), lcl_GCBorder_GetLastBox_B(), lcl_LastBoxSetWidth(), lcl_Merge_MoveBox(), lcl_Merge_MoveLine(), lcl_MergeGCBox(), lcl_MergeGCLine(), lcl_ModifyBoxes(), lcl_ProcessBoxGet(), lcl_ProcessBoxPtr(), lcl_ProcessBoxSet(), lcl_ProcessBoxSize(), lcl_ProcessLineGet(), lcl_RelToBox(), lcl_SaveUpperLowerBorder(), lcl_SetOtherBoxWidth(), lcl_SetSelBoxWidth(), lcl_SplitTable_CpyBox(), lcl_TableBox_HasTabBorders(), SwXMLTableContext::MakeTable_(), HTMLTable::MakeTable_(), HTMLTable::MakeTableBox(), SwXMLTableContext::MakeTableBox(), SwTable::OldMerge(), SwTable::OldSplitRow(), ww8::WW8TableInfo::processTableBox(), ww8::WW8TableInfo::processTableBoxLines(), SetLineHeight(), SwTable::SetRowHeight(), SwNodes::SplitTable(), sw_Box_CollectBox(), sw_BoxSetSplitBoxFormats(), and SwCellFrame::SwCellFrame().

◆ GetTabLines() [2/2]

const SwTableLines & SwTableBox::GetTabLines ( ) const
inline

Definition at line 458 of file swtable.hxx.

◆ GetUpper() [1/2]

SwTableLine * SwTableBox::GetUpper ( )
inline

Definition at line 460 of file swtable.hxx.

Referenced by SwTable::CollectBoxSelection(), DeleteBox_(), SwFEShell::DeleteRow(), SwView::Execute(), FindBox_(), FindEndOfRowSpan(), FindNextBox(), SwTableLine::FindNextBox(), FindPreviousBox(), SwTableLine::FindPreviousBox(), FindStartOfRowSpan(), SwCellFrame::Format(), SwTableFormula::GetBoxes(), SwCursorShell::GetContentAtPos(), GetCoordinates(), SwWriteTable::GetLineBrush(), SwWriteTable::GetLineHeight(), SwTableFormula::GetLnPosInTable(), GetMergeSel(), GetName(), ww8::WW8TableNodeInfoInner::getRowSpansOfRow(), SwView::GetState(), SwVbaTableHelper::getTabColIndex(), SwTable::GetTabCols(), ww8::WW8TableNodeInfoInner::getTableBoxesOfRow(), GetTableSel(), SwVbaTableHelper::getTabRowIndex(), ww8::WW8TableNodeInfoInner::getWidthsOfRow(), SwNodes::InsBoxen(), SwRedlineAcceptDlg::InsertParents(), SwTable::InsTable(), IsInHeadline(), lcl_Box2LeftBorder(), lcl_BoxesInDeletedRows(), lcl_CalculateSplitLineHeights(), lcl_CpyBox(), lcl_FindParentLines(), lcl_FindTableLine(), lcl_getAllMergedBoxes(), lcl_GetBoxOffset(), lcl_GetDistance(), lcl_InsertPosition(), lcl_InsTableBox(), lcl_IsAnLower(), lcl_Merge_MoveBox(), lcl_MergeGCBox(), lcl_ProcessBoxSet(), lcl_RelToBox(), lcl_SaveUpperLowerBorder(), lcl_SophisticatedFillLineIndices(), lcl_SortedTabColInsert(), SwTable::NewSetTabCols(), SwTable::OldSplitRow(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), MSWordExportBase::OutputSectionBreaks(), MSWordExportBase::OutputTextNode(), SwTable::PrepareDelBoxes(), SwTable::PrepareMerge(), SwTransferable::PrivateDrop(), WW8SelBoxInfo::push_back(), SwUndoTableNdsChg::SaveNewBoxes(), SwAccessibleTable::selectAccessibleChild(), SwTable::SelLineFromBox(), SwTable::SetColWidth(), SwTable::SetRowHeight(), SwTable::SetTabCols(), FndBox_::SetTableLines(), SwDoc::SetTabRows(), SwDoc::SortTable(), SwTable::SplitCol(), SwDoc::SplitTable(), SwNodes::SplitTable(), DocxAttributeOutput::StartTableRow(), WW8AttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableBackgrounds(), RtfAttributeOutput::TableBackgrounds(), WW8AttributeOutput::TableCanSplit(), DocxAttributeOutput::TableCanSplit(), RtfAttributeOutput::TableCanSplit(), WW8AttributeOutput::TableCellBorders(), WW8AttributeOutput::TableHeight(), DocxAttributeOutput::TableHeight(), RtfAttributeOutput::TableHeight(), DocxAttributeOutput::TableRowRedline(), WW8AttributeOutput::TableVerticalCell(), SwUndoTableNdsChg::UndoImpl(), and SwUndoTableMerge::UndoImpl().

◆ GetUpper() [2/2]

const SwTableLine * SwTableBox::GetUpper ( ) const
inline

Definition at line 461 of file swtable.hxx.

◆ GetValue()

double SwTableBox::GetValue ( SwTableCalcPara rCalcPara) const

Get value of this box.

The value is comes from the first TextNode. If it starts with a number/ formula then calculate it, if it starts with a field then get the value. All other conditions return 0 (and an error?).

Definition at line 83 of file cellfml.cxx.

References Calc, SwTableField::CalcField(), SwCalc::Calculate(), CH_TXT_ATR_INPUTFIELDSTART, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, Char, ClaimFrameFormat(), DateTime, SwTableCalcPara::DecStackCnt(), SwField::ExpandField(), SwNode::FindTableNode(), SwDoc::GetAttrPool(), SwFormat::GetDoc(), SwFormatField::GetField(), SwTextInputField::GetFieldContent(), SwTextAttr::GetFormatField(), GetFrameFormat(), SwNode::GetIndex(), SwFormat::GetItemIfSet(), SwFormat::GetItemState(), SwDoc::GetNodes(), SwDoc::GetNumberFormatter(), SwTextNode::GetRedlineText(), GetSttNd(), SwTableNode::GetTable(), SwFormat::GetTableBoxNumFormat(), SwFormat::GetTableBoxValue(), SwTextNode::GetText(), SwTextNode::GetTextAttrAt(), SwTextNode::GetTextAttrForCharAt(), SwField::GetTyp(), SvNumberFormatter::GetType(), CntUInt32Item::GetValue(), SwTableBoxValue::GetValue(), SwValueField::GetValue(), GetValue(), SwTableCalcPara::IncStackCnt(), SwCalc::IsCalcError(), SwDoc::IsNumberFormat(), SwTableCalcPara::IsStackOverflow(), SwTableFormula::IsValid(), JumpEdit, SwTableCalcPara::m_pBoxStack, SwTableCalcPara::m_pLayout, m_pStartNode, SwTableCalcPara::m_pTable, SwTableCalcPara::m_rCalc, NaN, NONE, RES_BOXATR_BEGIN(), RES_BOXATR_END(), RES_BOXATR_FORMAT(), RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), RES_TXTATR_FIELD(), RES_TXTATR_INPUTFIELD(), SwCalc::SetCalcError(), SetExp, SwFormat::SetFormatAttr(), SwTableCalcPara::SetLastTableBox(), Syntax, Table, User, and SwFieldType::Which().

Referenced by SwTableCalcPara::CalcWithStackOverflow(), GetValue(), and SwTableFormula::MakeFormula_().

◆ HasDirectFormatting()

bool SwTableBox::HasDirectFormatting ( ) const
inline

Do we contain any direct formatting (ie. something not affected by the table style)?

Definition at line 471 of file swtable.hxx.

Referenced by lcl_SetAFormatBox().

◆ HasNumContent()

bool SwTableBox::HasNumContent ( double &  rNum,
sal_uInt32 &  rFormatIndex,
bool &  rIsEmptyTextNd 
) const

◆ IsEmpty()

bool SwTableBox::IsEmpty ( bool  bWithRemainingNestedTable = true) const

◆ IsFormulaOrValueBox()

sal_uInt16 SwTableBox::IsFormulaOrValueBox ( ) const

◆ IsInHeadline()

bool SwTableBox::IsInHeadline ( const SwTable pTable) const

◆ IsNumberChanged()

bool SwTableBox::IsNumberChanged ( ) const

◆ IsValidNumTextNd()

SwNodeOffset SwTableBox::IsValidNumTextNd ( bool  bCheckAttr = true) const

◆ operator=()

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

◆ RegisterToFormat()

void SwTableBox::RegisterToFormat ( SwFormat rFormat)

Definition at line 2976 of file swtable.cxx.

References SwModify::Add().

◆ RemoveFromTable()

void SwTableBox::RemoveFromTable ( )

◆ SetDirectFormatting()

void SwTableBox::SetDirectFormatting ( bool  bDirect)
inline

Set that this table box contains formatting that is not set by the table style.

Definition at line 468 of file swtable.hxx.

Referenced by lcl_SetAFormatBox(), and SwDoc::SetBoxAttr().

◆ setDummyFlag()

void SwTableBox::setDummyFlag ( bool  bDummy)

Definition at line 87 of file swtable.cxx.

References mbDummyFlag.

Referenced by lcl_CopyBoxToDoc().

◆ setRowSpan()

void SwTableBox::setRowSpan ( sal_Int32  nNewRowSpan)

◆ SetSaveNumFormatColor()

void SwTableBox::SetSaveNumFormatColor ( std::optional< Color p)
inline

Definition at line 521 of file swtable.hxx.

References p.

Referenced by ChgNumToText(), and ChgTextToNum().

◆ SetSaveUserColor()

void SwTableBox::SetSaveUserColor ( std::optional< Color p)
inline

Definition at line 520 of file swtable.hxx.

References p.

Referenced by ChgNumToText(), and ChgTextToNum().

◆ SetUpper()

void SwTableBox::SetUpper ( SwTableLine pNew)
inline

Friends And Related Function Documentation

◆ DelBoxNode

void DelBoxNode ( SwTableSortBoxes const &  rSortCntBoxes)
friend

Definition at line 207 of file swtable.cxx.

◆ SwNodes

friend class SwNodes
friend

Definition at line 427 of file swtable.hxx.

◆ SwXMLTableContext

friend class SwXMLTableContext
friend

Definition at line 429 of file swtable.hxx.

Member Data Documentation

◆ m_aLines

SwTableLines SwTableBox::m_aLines
private

Definition at line 434 of file swtable.hxx.

Referenced by SwTableBox().

◆ m_pStartNode

const SwStartNode* SwTableBox::m_pStartNode
private

◆ m_pUpper

SwTableLine* SwTableBox::m_pUpper
private

Definition at line 436 of file swtable.hxx.

◆ mbDirectFormatting

bool SwTableBox::mbDirectFormatting
private

Do we contain any direct formatting?

Definition at line 444 of file swtable.hxx.

◆ mbDummyFlag

bool SwTableBox::mbDummyFlag
private

Definition at line 441 of file swtable.hxx.

Referenced by getDummyFlag(), and setDummyFlag().

◆ mnRowSpan

sal_Int32 SwTableBox::mnRowSpan
private

Definition at line 440 of file swtable.hxx.

Referenced by setRowSpan().

◆ mxNumFormatColor

std::optional<Color> SwTableBox::mxNumFormatColor
private

Definition at line 439 of file swtable.hxx.

◆ mxUserColor

std::optional<Color> SwTableBox::mxUserColor
private

Definition at line 438 of file swtable.hxx.


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