LibreOffice Module sw (master)
1
|
SwTableBox is one table cell in the document model. More...
#include <swtable.hxx>
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 |
SwTableLines & | GetTabLines () |
const SwTableLines & | GetTabLines () const |
SwTableLine * | GetUpper () |
const SwTableLine * | GetUpper () const |
void | SetUpper (SwTableLine *pNew) |
SwFrameFormat * | GetFrameFormat () |
SwFrameFormat * | GetFrameFormat () 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... | |
SwFrameFormat * | ClaimFrameFormat () |
void | ChgFrameFormat (SwTableBoxFormat *pNewFormat, bool bNeedToReregister=true) |
void | RemoveFromTable () |
const SwStartNode * | GetSttNd () const |
sal_uLong | GetSttIdx () const |
SwTableBox * | FindNextBox (const SwTable &, const SwTableBox *, bool bOvrTableLns=true) const |
SwTableBox * | FindPreviousBox (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 |
sal_uLong | 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) |
SwTableBox & | FindStartOfRowSpan (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 SwTableBox & | FindStartOfRowSpan (const SwTable &rTable, sal_uInt16 nMaxStep=USHRT_MAX) const |
SwTableBox & | FindEndOfRowSpan (const SwTable &, sal_uInt16 nMaxStep) |
SwTableBox::FindEndOfRowSpan(..) returns the last overlapped cell if there is any. More... | |
const SwTableBox & | FindEndOfRowSpan (const SwTable &rTable, sal_uInt16 nMaxStep) const |
void | RegisterToFormat (SwFormat &rFormat) |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::unique_ptr< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
virtual bool | GetInfo (SfxPoolItem &) const |
![]() | |
bool | IsLast () const |
Private Member Functions | |
SwTableBox (const SwTableBox &)=delete | |
SwTableBox & | operator= (const SwTableBox &)=delete |
Static Private Member Functions | |
static SwTableBoxFormat * | CheckBoxFormat (SwTableBoxFormat *) |
Private Attributes | |
SwTableLines | m_aLines |
const SwStartNode * | m_pStartNode |
SwTableLine * | m_pUpper |
std::optional< Color > | mxUserColor |
std::optional< Color > | mxNumFormatColor |
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 | |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
SwTableBox is one table cell in the document model.
Definition at line 392 of file swtable.hxx.
|
privatedelete |
SwTableBox::SwTableBox | ( | SwTableBoxFormat * | pFormat, |
sal_uInt16 | nLines, | ||
SwTableLine * | pUp | ||
) |
Definition at line 1582 of file swtable.cxx.
References SwModify::Add(), CheckBoxFormat(), m_aLines, mnRowSpan, and SwTableLines::reserve().
SwTableBox::SwTableBox | ( | SwTableBoxFormat * | pFormat, |
const SwStartNode & | rSttNd, | ||
SwTableLine * | pUp | ||
) |
Definition at line 1617 of file swtable.cxx.
References SwModify::Add(), CheckBoxFormat(), SwNode::FindTableNode(), SwTableNode::GetTable(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), m_pStartNode, mnRowSpan, and p.
SwTableBox::SwTableBox | ( | SwTableBoxFormat * | pFormat, |
const SwNodeIndex & | rIdx, | ||
SwTableLine * | pUp | ||
) |
Definition at line 1595 of file swtable.cxx.
References SwModify::Add(), assert(), CheckBoxFormat(), SwNode::FindTableNode(), SwNodeIndex::GetNode(), SwNode::GetStartNode(), SwTableNode::GetTable(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), m_pStartNode, mnRowSpan, and p.
|
overridevirtual |
Definition at line 1652 of file swtable.cxx.
References GetFrameFormat(), SwModify::HasWriterListeners(), SwModify::Remove(), and RemoveFromTable().
void SwTableBox::ActualiseValueBox | ( | ) |
Definition at line 2558 of file swtable.cxx.
References ChgTextToNum(), SwFormat::GetDoc(), GetFrameFormat(), SwFormat::GetItemState(), SwNode::GetNodes(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), GetValue(), SvNumberFormatter::IsTextFormat(), IsValidNumTextNd(), m_pStartNode, RES_BOXATR_FORMAT(), and RES_BOXATR_VALUE().
Referenced by SwXMLTableContext::MakeTableBox().
|
staticprivate |
Definition at line 1666 of file swtable.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetDoc(), SwFormat::GetItemState(), SwModify::LockModify(), SwDoc::MakeTableBoxFormat(), RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), SwFormat::ResetFormatAttr(), and SwModify::UnlockModify().
Referenced by SwTableBox().
void SwTableBox::ChgFrameFormat | ( | SwTableBoxFormat * | pNewFormat, |
bool | bNeedToReregister = true |
||
) |
Definition at line 1726 of file swtable.cxx.
References SwModify::Add(), SwFrame::FindTabFrame(), SwIterator< TElementType, TSource, eMode >::First(), GetFrameFormat(), SwFrame::GetUpper(), SwModify::HasWriterListeners(), SwFrame::InvalidatePrt_(), SwFrame::InvalidateSize_(), SwTabFrame::IsCollapsingBorders(), and SwIterator< TElementType, TSource, eMode >::Next().
Referenced by SwShareBoxFormats::ChangeFrameFormat(), WW8TabDesc::FinishSwTable(), HTMLTable::FixFrameFormat(), SwXMLTableContext::GetSharedBoxFormat(), lcl_CopyCol(), lcl_LastBoxSetWidth(), lcl_SetDfltBoxAttr(), lcl_SplitTable_CpyBox(), SwTable::NewInsertCol(), SwTable::PrepareMerge(), SwDoc::SetBoxAttr(), SwDoc::SetTabBorders(), SwTable::SplitCol(), SwDoc::TextToTable(), SwUndoTableNumFormat::UndoImpl(), and SwDoc::UnProtectCells().
SwFrameFormat * SwTableBox::ClaimFrameFormat | ( | ) |
Definition at line 1690 of file swtable.cxx.
References SwModify::Add(), SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetDoc(), GetFrameFormat(), SwModify::LockModify(), SwDoc::MakeTableBoxFormat(), SwIterator< TElementType, TSource, eMode >::Next(), RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), SwFormat::ResetFormatAttr(), and SwModify::UnlockModify().
Referenced by WW8TabDesc::AdjustNewBand(), SwDoc::ChkBoxNumFormat(), SwDoc::ClearBoxNumAttrs(), DeleteBox_(), WW8TabDesc::FinishSwTable(), HTMLTable::FixFrameFormat(), GetMergeSel(), SwXMLTableContext::GetSharedBoxFormat(), GetValue(), lcl_CalcWidth(), lcl_CopyBoxToDoc(), lcl_CopyCol(), lcl_CpyBox(), lcl_GCBorder_DelBorder(), lcl_LastBoxSetWidth(), lcl_ModifyBoxes(), lcl_SetAFormatBox(), lcl_SplitTable_CpyBox(), SwXMLTableContext::MakeTableBox(), SwTable::NewInsertCol(), SwTable::OldMerge(), SwTable::OldSplitRow(), SwTable::PrepareDeleteCol(), SwTable::PrepareMerge(), SwUndoTableNumFormat::RedoImpl(), SwUndoTableCpyTable::RedoImpl(), SwShareBoxFormats::SetAttr(), SwDoc::SetBoxAttr(), SwHistorySetFormat::SetInDoc(), SwXCell::setPropertyValue(), SwXTextTable::setPropertyValue(), SwShareBoxFormats::SetSize(), SwDoc::SetTabBorders(), SwDoc::SetTableBoxFormulaAttrs(), SwTable::SplitCol(), sw_BoxSetSplitBoxFormats(), sw_GC_Line_Border(), sw_setString(), sw_setValue(), SwUndoTableCpyTable::UndoImpl(), SwDoc::UnProtectCells(), and sw::DocumentFieldsManager::UpdateTableFields().
SwTableBox & SwTableBox::FindEndOfRowSpan | ( | const SwTable & | rTable, |
sal_uInt16 | nMaxStep | ||
) |
SwTableBox::FindEndOfRowSpan(..) returns the last overlapped cell if there is any.
Otherwise the cell itself will returned.
Definition at line 1056 of file swnewtable.cxx.
References SwTableLines::GetPos(), getRowSpan(), SwTable::GetTabLines(), GetUpper(), lcl_Box2LeftBorder(), lcl_LeftBorder2Box(), and SwTableLines::size().
Referenced by SwCellFrame::FindStartEndOfRowSpanCell(), SwCursorShell::GoNextCell(), SwCursor::GoPrevNextCell(), and SwCursor::LeftRight().
|
inline |
Definition at line 497 of file swtable.hxx.
SwTableBox * SwTableBox::FindNextBox | ( | const SwTable & | rTable, |
const SwTableBox * | pSrchBox, | ||
bool | bOvrTableLns = true |
||
) | const |
Definition at line 2301 of file tblrwcl.cxx.
References FindNextBox().
Referenced by SwFEShell::DeleteRow(), SwDoc::DeleteRow(), FindNextBox(), and SwTable::InsTable().
SwTableBox * SwTableBox::FindPreviousBox | ( | const SwTable & | rTable, |
const SwTableBox * | pSrchBox | ||
) | const |
Definition at line 2312 of file tblrwcl.cxx.
References FindPreviousBox().
Referenced by SwFEShell::DeleteRow(), SwDoc::DeleteRow(), and FindPreviousBox().
SwTableBox & SwTableBox::FindStartOfRowSpan | ( | const SwTable & | rTable, |
sal_uInt16 | nMaxStep = USHRT_MAX |
||
) |
SwTableBox::FindStartOfRowSpan(..) returns the "master" cell, the cell which overlaps the given cell, it maybe the cell itself.
Definition at line 1029 of file swnewtable.cxx.
References SwTableLines::GetPos(), getRowSpan(), SwTable::GetTabLines(), GetUpper(), lcl_Box2LeftBorder(), lcl_LeftBorder2Box(), and SwTableLines::size().
Referenced by SwTable::CollectBoxSelection(), SwTable::ExpandSelection(), SwCellFrame::FindStartEndOfRowSpanCell(), SwCursor::GoPrevNextCell(), lcl_getAllMergedBoxes(), lcl_SearchSelBox(), and SwCursor::LeftRight().
|
inline |
Definition at line 492 of file swtable.hxx.
Point SwTableBox::GetCoordinates | ( | ) | const |
Definition at line 1789 of file swtable.cxx.
References SwNode::FindTableNode(), SwTableLine::GetBoxPos(), SwTableLines::GetPos(), SwTableNode::GetTable(), SwTable::GetTabLines(), GetTabLines(), SwTableLine::GetUpper(), GetUpper(), m_pStartNode, and Point.
bool SwTableBox::getDummyFlag | ( | ) | const |
Definition at line 85 of file swtable.cxx.
|
inline |
Definition at line 431 of file swtable.hxx.
References SwClient::GetRegisteredIn().
Referenced by ActualiseValueBox(), SwCollectTableLineBoxes::AddBox(), SwUndoTableCpyTable::AddBoxAfter(), SwUndoTableCpyTable::AddBoxBefore(), WW8TabDesc::AdjustNewBand(), 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::CreateSelection(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwTable::ExpandColumnSelection(), SwXMLExport::ExportTableBox(), 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(), SwSortBoxElement::GetValue(), SwXCell::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(), lcl_xmltble_ClearName_Box(), 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(), WW8TabDesc::SetTabBorders(), SwDoc::SetTabBorders(), WW8TabDesc::SetTabDirection(), WW8TabDesc::SetTabShades(), WW8TabDesc::SetTabVertAlign(), SwTable::SplitCol(), sw_BoxSetSplitBoxFormats(), sw_GC_Line_Border(), SwCellFrame::SwCellFrame(), SwUndoTableNumFormat::SwUndoTableNumFormat(), WW8AttributeOutput::TableBackgrounds(), RtfAttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableCellProperties(), WW8AttributeOutput::TableDefaultBorders(), RtfAttributeOutput::TableDefaultBorders(), DocxAttributeOutput::TableDefaultCellMargins(), RtfAttributeOutput::TableDefinition(), DocxAttributeOutput::TableDefinition(), WW8AttributeOutput::TableVerticalCell(), RtfAttributeOutput::TableVerticalCell(), DocxAttributeOutput::TableVerticalCell(), SwDoc::TextToTable(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), SwDoc::UnProtectCells(), and ~SwTableBox().
|
inline |
Definition at line 432 of file swtable.hxx.
References SwClient::GetRegisteredIn().
OUString SwTableBox::GetName | ( | ) | const |
Definition at line 1813 of file swtable.cxx.
References SwNode::FindTableNode(), SwTableLine::GetBoxPos(), SwTableLines::GetPos(), SwTableNode::GetTable(), SwTable::GetTabLines(), GetTabLines(), SwTableLine::GetUpper(), GetUpper(), m_pStartNode, nPos, and sw_GetTableBoxColStr().
Referenced by SwChartDataProvider::AddRowCols(), SwTableFormula::BoxNmsToRelNm(), SwChartDataSequence::ExtendTo(), SwFEShell::GetAutoSum(), GetCellRangeName(), SwXCell::getPropertyValue(), SwXTextTableCursor::getRangeName(), lcl_BoxNmToRel(), lcl_CellInfo(), MoveCell(), SwTableFormula::PtrToBoxNms(), SwTableFormula::RelNmsToBoxNms(), and SwAccessibleCell::SwAccessibleCell().
sal_Int32 SwTableBox::getRowSpan | ( | ) | const |
Definition at line 75 of file swtable.cxx.
References mnRowSpan.
Referenced by SwRowFrame::AdjustCells(), SwTabFrame::CalcHeightOfFirstContentLine(), SwTable::CheckConsistency(), SwTable::CheckRowSpan(), SwTable::CleanUpBottomRowSpan(), SwTable::CollectBoxSelection(), SwXTextTable::createCursorByCellName(), SwTable::CreateSelection(), SwTable::ExpandSelection(), SwXMLExport::ExportTableLine(), SwWriteTable::FillTableRowsCols(), FindEndOfRowSpan(), FindStartOfRowSpan(), SwTable::FindSuperfluousRows_(), SwCellFrame::Format(), SwCellFrame::GetLayoutRowSpan(), SwCellFrame::GetPreviousCell(), SwXCell::getPropertyValue(), SwCursorShell::GoNextCell(), SwCursor::GoPrevNextCell(), SwLayoutFrame::GrowFrame(), InsTableBox(), SwCursor::IsInProtectTable(), lcl_CalcNewWidths(), lcl_CalculateSplitLineHeights(), lcl_CheckRowSpan(), lcl_CopyBoxToDoc(), lcl_CopyTableBox(), lcl_getAllMergedBoxes(), lcl_GetMaximumLayoutRowSpan(), lcl_InnerCalcLayout(), lcl_LineIndex(), lcl_MoveRowContent(), lcl_ProcessBoxSet(), lcl_RecalcSplitLine(), lcl_SearchSelBox(), lcl_ShrinkCellsAndAllContent(), lcl_SophisticatedFillLineIndices(), SwCursor::LeftRight(), SwTableFormula::MakeFormula_(), SwTable::NewInsertCol(), SwTable::PrepareDelBoxes(), SwTable::PrepareMerge(), SwTable::RestoreRowSpan(), SwTaggedPDFHelper::SetAttributes(), SwDoc::SetTabRows(), SwTabFrame::Split(), SwInvalidateAll(), and SwSaveRowSpan::SwSaveRowSpan().
|
inline |
Definition at line 482 of file swtable.hxx.
Referenced by ChgNumToText(), ChgTextToNum(), InsTableBox(), and IsNumberChanged().
|
inline |
Definition at line 481 of file swtable.hxx.
Referenced by ChgNumToText(), ChgTextToNum(), and InsTableBox().
sal_uLong SwTableBox::GetSttIdx | ( | ) | const |
Definition at line 1866 of file swtable.cxx.
References SwNode::GetIndex(), and m_pStartNode.
Referenced by SwTableCursor::ActualizeSelection(), SwUndoTableCpyTable::AddBoxAfter(), SwUndoTextToTable::AddFillBox(), SwDDETable::ChangeContent(), CheckTable(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwSortBoxElement::GetKey(), GetMergeSel(), WW8TabDesc::InFirstParaInCell(), SwUndoFormatAttr::Init(), lcl_CopyTableBox(), lcl_CpyBox(), lcl_InsTableBox(), lcl_SetAFormatBox(), SwTable::OldMerge(), SwTable::OldSplitRow(), CompareSwSelBoxes::operator()(), WW8TabDesc::ParkPaM(), SwTable::PrepareMerge(), SwUndoTableCpyTable::RedoImpl(), SwUndoTableNdsChg::SaveNewBoxes(), SwUndoTableNumFormat::SetBox(), WW8TabDesc::SetPamInCell(), SwDoc::SortTable(), SwCellFrame::SwCellFrame(), SwUndoTableNumFormat::SwUndoTableNumFormat(), SwDoc::TextToTable(), SwUndoTableMerge::UndoImpl(), and SwUndoTableCpyTable::UndoImpl().
|
inline |
Definition at line 445 of file swtable.hxx.
Referenced by SwUndoTableCpyTable::AddBoxAfter(), SwUndoTableCpyTable::AddBoxBefore(), SwDDETable::ChangeContent(), CheckTable(), SwDoc::ChkBoxNumFormat(), SwTable::CollectBoxSelection(), ConvertNestedTablesToText(), SwTable::CopyHeadlineIntoTable(), SwXParagraphEnumeration::Create(), SwXCell::createEnumeration(), SwTable::CreateSelection(), SwXCell::createTextCursor(), SwXCell::createTextCursorByRange(), SwExtraRedlineTable::DeleteAllTableRedlines(), SwChartDataSequence::DeleteBox(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwDoc::DeleteRowCol(), SwAccessibleTable::deselectAccessibleChild(), SwXMLExport::ExportTableBox(), SwXMLExport::ExportTableLinesAutoStyles(), SwChartDataSequence::ExtendTo(), SwWriteTable::FillTableRowsCols(), SwTableFormula::FindTable(), HTMLTable::FixFrameFormat(), SwHTMLTableLayout::GetAnyBoxStartNode(), SwXCellRange::getCellRangeByPosition(), GetFormatAndCreateCursorFromRangeRep(), SwSortBoxElement::GetKey(), SwTableBoxFormula::GetNodeOfFormula(), 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(), SwFEShell::HasWholeTabSelection(), WW8TabDesc::InFirstParaInCell(), SwNodes::InsBoxen(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), SwTable::InsertRow(), SwTable::InsTable(), InsTableBox(), SwFEShell::IsAdjustCellWidthAllowed(), IsBoxEmpty(), IsEmptyBox(), SwTable::IsTableComplexForChart(), lcl_BoxSetHeadCondColl(), lcl_CellText(), lcl_CheckCol(), lcl_CopyBoxToDoc(), lcl_CopyTableBox(), lcl_CpyBox(), lcl_DelBox(), lcl_FndNxtPrvDelBox(), lcl_GetBoxFrame(), lcl_InsTableBox(), lcl_LastBoxSetWidth(), lcl_ProcessLineGet(), lcl_RelToBox(), lcl_SaveUpperLowerBorder(), lcl_SetAFormatBox(), lcl_SplitTable_CpyBox(), lcl_TableBox_HasTabBorders(), lcl_TCFlags(), lcl_xmltble_ClearName_Box(), 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::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().
|
inline |
Definition at line 424 of file swtable.hxx.
Referenced by CheckBoxWidth(), SwWriteTable::CollectTableRowsCols(), ConvertNestedTablesToText(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwXMLExport::ExportTableBox(), SwXMLExport::ExportTableLinesAutoStyles(), SwWriteTable::FillTableRowsCols(), FindBox_(), SwTableLine::FindNextBox(), 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_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(), lcl_xmltble_ClearName_Box(), SwXMLTableContext::MakeTable_(), HTMLTable::MakeTable_(), SwXMLTableContext::MakeTableBox(), HTMLTable::MakeTableBox(), SwTable::OldMerge(), SwTable::OldSplitRow(), ww8::WW8TableInfo::processTableBox(), ww8::WW8TableInfo::processTableBoxLines(), SetLineHeight(), SwTable::SetRowHeight(), SwNodes::SplitTable(), sw_Box_CollectBox(), sw_BoxSetSplitBoxFormats(), and SwCellFrame::SwCellFrame().
|
inline |
Definition at line 425 of file swtable.hxx.
|
inline |
Definition at line 427 of file swtable.hxx.
Referenced by SwRootFrame::CalcFrameRects(), SwTable::CollectBoxSelection(), DeleteBox_(), FindBox_(), FindEndOfRowSpan(), FindStartOfRowSpan(), SwTable::FindSuperfluousRows_(), SwCellFrame::Format(), SwTableFormula::GetBoxes(), GetCoordinates(), SwWriteTable::GetLineBrush(), SwWriteTable::GetLineHeight(), SwTableFormula::GetLnPosInTable(), GetMergeSel(), GetName(), ww8::WW8TableNodeInfoInner::getRowSpansOfRow(), SwVbaTableHelper::getTabColIndex(), SwTable::GetTabCols(), ww8::WW8TableNodeInfoInner::getTableBoxesOfRow(), GetTableSel(), SwVbaTableHelper::getTabRowIndex(), ww8::WW8TableNodeInfoInner::getWidthsOfRow(), SwNodes::InsBoxen(), SwTable::InsTable(), IsInHeadline(), lcl_Box2LeftBorder(), 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(), WW8SelBoxInfo::push_back(), SwUndoTableNdsChg::SaveNewBoxes(), SwAccessibleTable::selectAccessibleChild(), SwTable::SelLineFromBox(), SwTable::SetColWidth(), SwTable::SetRowHeight(), SwTable::SetTabCols(), FndBox_::SetTableLines(), SwDoc::SetTabRows(), SwDoc::SortTable(), SwTable::SplitCol(), SwNodes::SplitTable(), SwDoc::SplitTable(), DocxAttributeOutput::StartTableRow(), WW8AttributeOutput::TableBackgrounds(), RtfAttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableBackgrounds(), WW8AttributeOutput::TableCanSplit(), RtfAttributeOutput::TableCanSplit(), DocxAttributeOutput::TableCanSplit(), WW8AttributeOutput::TableCellBorders(), WW8AttributeOutput::TableHeight(), RtfAttributeOutput::TableHeight(), DocxAttributeOutput::TableHeight(), DocxAttributeOutput::TableRowRedline(), WW8AttributeOutput::TableVerticalCell(), SwUndoTableNdsChg::UndoImpl(), and SwUndoTableMerge::UndoImpl().
|
inline |
Definition at line 428 of file swtable.hxx.
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 80 of file cellfml.cxx.
References SwTableBoxFormula::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::GetItemState(), SwDoc::GetNodes(), SwDoc::GetNumberFormatter(), GetSttNd(), SwTableNode::GetTable(), SwFormat::GetTableBoxNumFormat(), SwFormat::GetTableBoxValue(), SwTextNode::GetText(), SwTextNode::GetTextAttrAt(), SwTextNode::GetTextAttrForCharAt(), SwField::GetTyp(), SvNumberFormatter::GetType(), CntUInt32Item::GetValue(), SwTableBoxValue::GetValue(), SwValueField::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(), static_txtattr_cast(), Syntax, Table, User, and SwFieldType::Which().
Referenced by ActualiseValueBox(), SwTableCalcPara::CalcWithStackOverflow(), HasNumContent(), and SwTableFormula::MakeFormula_().
|
inline |
Do we contain any direct formatting (ie. something not affected by the table style)?
Definition at line 438 of file swtable.hxx.
Referenced by lcl_SetAFormatBox().
bool SwTableBox::HasNumContent | ( | double & | rNum, |
sal_uInt32 & | rFormatIndex, | ||
bool & | rIsEmptyTextNd | ||
) | const |
Definition at line 2385 of file swtable.cxx.
References SwFormat::GetDoc(), GetFrameFormat(), SwNode::GetNodes(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetType(), GetValue(), SwDoc::IsNumberFormat(), IsValidNumTextNd(), lcl_TabToBlankAtSttEnd(), m_pStartNode, and RES_BOXATR_FORMAT().
Referenced by SwDoc::ChkBoxNumFormat().
sal_uInt16 SwTableBox::IsFormulaOrValueBox | ( | ) | const |
Definition at line 2539 of file swtable.cxx.
References SwNode::EndOfSectionIndex(), SwFormat::GetDoc(), GetFrameFormat(), SwNode::GetIndex(), SwFormat::GetItemState(), SwNode::GetNodes(), SwDoc::GetNumberFormatter(), SwFormat::GetTableBoxNumFormat(), SwTextNode::GetText(), CntUInt32Item::GetValue(), SvNumberFormatter::IsTextFormat(), m_pStartNode, RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), and USHRT_MAX.
Referenced by SwFEShell::GetAutoSum(), GetAutoSumSel(), SwXCell::getType(), and MSWordExportBase::OutputTextNode().
bool SwTableBox::IsInHeadline | ( | const SwTable * | pTable | ) | const |
Definition at line 1850 of file swtable.cxx.
References SwNode::FindTableNode(), SwTableNode::GetTable(), SwTable::GetTabLines(), SwTableLine::GetUpper(), GetUpper(), and m_pStartNode.
Referenced by SwContentNode::IsAnyCondition(), and lcl_CopyTableBox().
bool SwTableBox::IsNumberChanged | ( | ) | const |
Definition at line 2421 of file swtable.cxx.
References SwFormat::GetDoc(), GetFrameFormat(), SwNode::GetNodes(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), GetSaveNumFormatColor(), CntUInt32Item::GetValue(), SwTableBoxValue::GetValue(), IsValidNumTextNd(), lcl_DelTabsAtSttEnd(), m_pStartNode, RES_BOXATR_FORMAT(), RES_BOXATR_FORMULA(), and RES_BOXATR_VALUE().
Referenced by SwDoc::ChkBoxNumFormat().
sal_uLong SwTableBox::IsValidNumTextNd | ( | bool | bCheckAttr = true | ) | const |
Definition at line 2457 of file swtable.cxx.
References SwpHints::Count(), SwpHints::Get(), SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwNodeIndex::GetIndex(), SwNode::GetNodes(), SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), SwNode::GetTextNode(), SwField::GetTypeId(), SwNode::IsTableNode(), SwNode::IsTextNode(), m_pStartNode, n, nIndex, nPos, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), Set, nsSwExtendedSubType::SUB_INVISIBLE, and SwTextAttr::Which().
Referenced by ActualiseValueBox(), ChgNumToText(), ChgTextToNum(), SwEditShell::GetTableBoxText(), HasNumContent(), IsNumberChanged(), SwEditShell::IsTableBoxTextFormat(), SwXCell::setFormula(), sw_setValue(), SwTableBoxFormat::SwClientNotify(), and SwUndoTableNumFormat::SwUndoTableNumFormat().
|
privatedelete |
Definition at line 2746 of file swtable.cxx.
References SwModify::Add().
void SwTableBox::RemoveFromTable | ( | ) |
Definition at line 1637 of file swtable.cxx.
References assert(), o3tl::sorted_vector< Value, Compare, Find, class >::erase(), SwNode::FindTableNode(), SwTableNode::GetTable(), m_pStartNode, and p.
Referenced by ~SwTableBox().
|
inline |
Set that this table box contains formatting that is not set by the table style.
Definition at line 435 of file swtable.hxx.
Referenced by lcl_SetAFormatBox(), and SwDoc::SetBoxAttr().
void SwTableBox::setDummyFlag | ( | bool | bDummy | ) |
Definition at line 90 of file swtable.cxx.
Referenced by lcl_CopyBoxToDoc().
void SwTableBox::setRowSpan | ( | sal_Int32 | nNewRowSpan | ) |
Definition at line 80 of file swtable.cxx.
References mnRowSpan.
Referenced by WW8TabDesc::FinishSwTable(), InsTableBox(), lcl_CheckRowSpan(), lcl_CopyBoxToDoc(), SwXMLTableContext::MakeTableLine(), HTMLTable::MakeTableLine(), SwTable::NewInsertCol(), SwTable::PrepareDelBoxes(), SwTable::PrepareMerge(), SwTable::RestoreRowSpan(), SwXCell::setPropertyValue(), and SwSaveRowSpan::SwSaveRowSpan().
Definition at line 484 of file swtable.hxx.
Referenced by ChgNumToText(), and ChgTextToNum().
Definition at line 483 of file swtable.hxx.
Referenced by ChgNumToText(), and ChgTextToNum().
|
inline |
Definition at line 429 of file swtable.hxx.
Referenced by SwXMLTableContext::NewTableBox(), HTMLTable::NewTableBox(), SwTable::OldMerge(), and SwTable::OldSplitRow().
|
friend |
Definition at line 202 of file swtable.cxx.
|
friend |
Definition at line 394 of file swtable.hxx.
|
friend |
Definition at line 396 of file swtable.hxx.
|
private |
Definition at line 401 of file swtable.hxx.
Referenced by SwTableBox().
|
private |
Definition at line 402 of file swtable.hxx.
Referenced by ActualiseValueBox(), GetCoordinates(), GetName(), GetSttIdx(), GetValue(), HasNumContent(), SwXMLTableContext::InsertTableSection(), IsFormulaOrValueBox(), IsInHeadline(), IsNumberChanged(), IsValidNumTextNd(), SwXMLTableContext::MakeTable(), RemoveFromTable(), and SwTableBox().
|
private |
Definition at line 403 of file swtable.hxx.
|
private |
Do we contain any direct formatting?
Definition at line 411 of file swtable.hxx.
|
private |
Definition at line 408 of file swtable.hxx.
|
private |
Definition at line 407 of file swtable.hxx.
|
private |
Definition at line 406 of file swtable.hxx.
|
private |
Definition at line 405 of file swtable.hxx.