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 |
SwNodeOffset | GetSttIdx () const |
bool | IsEmpty (bool bWithRemainingNestedTable=true) 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 |
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) |
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) |
SwRedlineTable::size_type | GetRedline () const |
RedlineType | GetRedlineType () const |
Public Member Functions inherited from SwClient | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::optional< 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 |
Public Member Functions inherited from sw::WriterListener | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
virtual const SwTable * | DynCastTable () 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 | |
Protected Member Functions inherited from SwClient | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () 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 |
SwTableBox is one table cell in the document model.
Definition at line 442 of file swtable.hxx.
|
privatedelete |
SwTableBox::SwTableBox | ( | SwTableBoxFormat * | pFormat, |
sal_uInt16 | nLines, | ||
SwTableLine * | pUp | ||
) |
Definition at line 1986 of file swtable.cxx.
References CheckBoxFormat(), m_aLines, mnRowSpan, and SwTableLines::reserve().
SwTableBox::SwTableBox | ( | SwTableBoxFormat * | pFormat, |
const SwStartNode & | rSttNd, | ||
SwTableLine * | pUp | ||
) |
Definition at line 2021 of file swtable.cxx.
References CheckBoxFormat(), SwNode::FindTableNode(), SwTableNode::GetTable(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), m_pStartNode, mnRowSpan, and p.
SwTableBox::SwTableBox | ( | SwTableBoxFormat * | pFormat, |
const SwNodeIndex & | rIdx, | ||
SwTableLine * | pUp | ||
) |
Definition at line 1999 of file swtable.cxx.
References CheckBoxFormat(), SwNode::FindTableNode(), SwNodeIndex::GetNode(), SwNode::GetStartNode(), SwTableNode::GetTable(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), m_pStartNode, mnRowSpan, and p.
|
overridevirtual |
Definition at line 2056 of file swtable.cxx.
References GetFrameFormat(), and RemoveFromTable().
void SwTableBox::ActualiseValueBox | ( | ) |
Definition at line 2959 of file swtable.cxx.
References ChgTextToNum(), SwFormat::GetDoc(), GetFrameFormat(), SwFormat::GetItemIfSet(), SwNode::GetNodes(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), CntUInt32Item::GetValue(), SwTableBoxValue::GetValue(), SvNumberFormatter::IsTextFormat(), IsValidNumTextNd(), m_pStartNode, NODE_OFFSET_MAX(), RES_BOXATR_FORMAT(), and RES_BOXATR_VALUE().
Referenced by SwXMLTableContext::MakeTableBox().
|
staticprivate |
Definition at line 2070 of file swtable.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetDoc(), SwFormat::GetItemState(), SwDoc::MakeTableBoxFormat(), RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), and SwFormat::ResetFormatAttr().
Referenced by SwTableBox().
void SwTableBox::ChgFrameFormat | ( | SwTableBoxFormat * | pNewFormat, |
bool | bNeedToReregister = true |
||
) |
Definition at line 2130 of file swtable.cxx.
References GetFrameFormat().
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 2094 of file swtable.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::MakeTableBoxFormat(), SwIterator< TElementType, TSource, eMode >::Next(), RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), and SwFormat::ResetFormatAttr().
Referenced by WW8TabDesc::AdjustNewBand(), SwDoc::ChkBoxNumFormat(), SwDoc::ClearBoxNumAttrs(), SwTable::ConvertSubtableBox(), 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(), 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 1073 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 551 of file swtable.hxx.
SwTableBox * SwTableBox::FindNextBox | ( | const SwTable & | rTable, |
const SwTableBox * | pSrchBox, | ||
bool | bOvrTableLns = true |
||
) | const |
Definition at line 2308 of file tblrwcl.cxx.
References SwTableLine::FindNextBox(), GetTabLines(), and GetUpper().
Referenced by SwFEShell::DeleteRow(), SwDoc::DeleteRow(), and SwTable::InsTable().
SwTableBox * SwTableBox::FindPreviousBox | ( | const SwTable & | rTable, |
const SwTableBox * | pSrchBox | ||
) | const |
Definition at line 2319 of file tblrwcl.cxx.
References SwTableLine::FindPreviousBox(), GetTabLines(), and GetUpper().
Referenced by SwFEShell::DeleteRow(), and SwDoc::DeleteRow().
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 1046 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 546 of file swtable.hxx.
Point SwTableBox::GetCoordinates | ( | ) | const |
Definition at line 2165 of file swtable.cxx.
References SwNode::FindTableNode(), SwTableLine::GetBoxPos(), SwTableLines::GetPos(), SwTableNode::GetTable(), SwTable::GetTabLines(), GetTabLines(), SwTableLine::GetUpper(), GetUpper(), and m_pStartNode.
bool SwTableBox::getDummyFlag | ( | ) | const |
Definition at line 86 of file swtable.cxx.
References mbDummyFlag.
|
inline |
Definition at line 481 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(), GetRedline(), GetRedlineType(), 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(), RtfAttributeOutput::TableDefinition(), WW8AttributeOutput::TableVerticalCell(), DocxAttributeOutput::TableVerticalCell(), RtfAttributeOutput::TableVerticalCell(), SwDoc::TextToTable(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), SwDoc::UnProtectCells(), and ~SwTableBox().
|
inline |
Definition at line 482 of file swtable.hxx.
References SwClient::GetRegisteredIn().
OUString SwTableBox::GetName | ( | ) | const |
Definition at line 2189 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::DeleteBox(), SwChartDataSequence::ExtendTo(), SwFEShell::GetAutoSum(), GetCellRangeName(), SwXCell::getPropertyValue(), SwXTextTableCursor::getRangeName(), lcl_BoxNmToRel(), lcl_CellInfo(), MoveCell(), SwTableFormula::PtrToBoxNms(), SwTableFormula::RelNmsToBoxNms(), and SwAccessibleCell::SwAccessibleCell().
SwRedlineTable::size_type SwTableBox::GetRedline | ( | ) | const |
Definition at line 2987 of file swtable.cxx.
References SwRedlineTable::empty(), SwFormat::GetAttrSet(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetIndex(), SfxItemSet::GetItem(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), IDocumentRedlineAccess::GetRedlineTable(), GetSttNd(), SwRedlineTable::npos, RES_PRINT(), SwRedlineTable::size(), Start, and SwPaM::Start().
Referenced by GetRedlineType(), SwRedlineAcceptDlg::InsertParents(), and DocxAttributeOutput::TableCellRedline().
RedlineType SwTableBox::GetRedlineType | ( | ) | const |
Definition at line 3025 of file swtable.cxx.
References SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), GetRedline(), IDocumentRedlineAccess::GetRedlineTable(), SwRangeRedline::GetType(), nPos, and SwRedlineTable::npos.
Referenced by SwView::Execute(), SwCursorShell::GetContentAtPos(), SwView::GetState(), and SwRedlineAcceptDlg::InsertParents().
|
inline |
Definition at line 540 of file swtable.hxx.
References mnRowSpan.
Referenced by SwRowFrame::AdjustCells(), SwTabFrame::CalcHeightOfFirstContentLine(), SwTable::CheckConsistency(), SwTable::CheckRowSpan(), SwTable::CleanUpBottomRowSpan(), SwTable::CollectBoxSelection(), SwTable::ConvertSubtableBox(), SwXTextTable::createCursorByCellName(), SwTable::CreateSelection(), SwTable::ExpandSelection(), SwXMLExport::ExportTableLine(), SwWriteTable::FillTableRowsCols(), FindEndOfRowSpan(), FindStartOfRowSpan(), SwTable::FindSuperfluousRows_(), SwCellFrame::Format(), SwCellFrame::GetLayoutRowSpan(), SwFrame::GetPaintArea(), 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 536 of file swtable.hxx.
Referenced by ChgNumToText(), ChgTextToNum(), InsTableBox(), and IsNumberChanged().
|
inline |
Definition at line 535 of file swtable.hxx.
Referenced by ChgNumToText(), ChgTextToNum(), and InsTableBox().
SwNodeOffset SwTableBox::GetSttIdx | ( | ) | const |
Definition at line 2242 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(), 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(), SwCellFrame::SwCellFrame(), SwUndoTableNumFormat::SwUndoTableNumFormat(), SwDoc::TextToTable(), SwUndoTableMerge::UndoImpl(), and SwUndoTableCpyTable::UndoImpl().
|
inline |
Definition at line 495 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::createXTextCursor(), SwXCell::createXTextCursorByRange(), SwExtraRedlineTable::DeleteAllTableRedlines(), SwChartDataSequence::DeleteBox(), DeleteBox_(), SwFEShell::DeleteCol(), 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(), GetRedline(), 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_setRowNotTracked(), lcl_SplitTable_CpyBox(), lcl_TableBox_HasTabBorders(), lcl_TCFlags(), SwCursor::LeftRight(), SwUnoCursorHelper::makeTableCellRedline(), WW8TabDesc::MergeCells(), SwDoc::MergeTable(), MoveCell(), SwTable::NewInsertCol(), 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().
|
inline |
Definition at line 474 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().
|
inline |
Definition at line 475 of file swtable.hxx.
|
inline |
Definition at line 477 of file swtable.hxx.
Referenced by SwTable::CollectBoxSelection(), DeleteBox_(), SwFEShell::DeleteRow(), SwView::Execute(), FindBox_(), FindEndOfRowSpan(), FindNextBox(), SwTableLine::FindNextBox(), FindPreviousBox(), SwTableLine::FindPreviousBox(), FindStartOfRowSpan(), SwCellFrame::Format(), sw::GetAllValidRanges(), 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_BoxesInTrackedRows(), 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().
|
inline |
Definition at line 478 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 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_().
|
inline |
Do we contain any direct formatting (ie. something not affected by the table style)?
Definition at line 488 of file swtable.hxx.
Referenced by lcl_SetAFormatBox().
bool SwTableBox::HasNumContent | ( | double & | rNum, |
sal_uInt32 & | rFormatIndex, | ||
bool & | rIsEmptyTextNd | ||
) | const |
Definition at line 2793 of file swtable.cxx.
References SwFormat::GetDoc(), GetFrameFormat(), SwNode::GetNodes(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetType(), SwDoc::IsNumberFormat(), IsValidNumTextNd(), lcl_TabToBlankAtSttEnd(), m_pStartNode, NODE_OFFSET_MAX(), and RES_BOXATR_FORMAT().
Referenced by SwDoc::ChkBoxNumFormat().
bool SwTableBox::IsEmpty | ( | bool | bWithRemainingNestedTable = true | ) | const |
Definition at line 2247 of file swtable.cxx.
References SwNode::EndOfSectionIndex(), SwNode::GetContentNode(), SwNode::GetIndex(), SwNode::GetNodes(), GetSttNd(), SwNode::GetTableNode(), and SwContentNode::Len().
Referenced by SwFEShell::DeleteCol(), HTMLTable::FixFrameFormat(), and SwUnoCursorHelper::makeTableCellRedline().
sal_uInt16 SwTableBox::IsFormulaOrValueBox | ( | ) | const |
Definition at line 2940 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(), and RES_BOXATR_VALUE().
Referenced by SwFEShell::GetAutoSum(), SwXCell::getType(), and MSWordExportBase::OutputTextNode().
bool SwTableBox::IsInHeadline | ( | const SwTable * | pTable | ) | const |
Definition at line 2226 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 2828 of file swtable.cxx.
References SwFormat::GetDoc(), GetFrameFormat(), SwFormat::GetItemIfSet(), SwNode::GetNodes(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), GetSaveNumFormatColor(), CntUInt32Item::GetValue(), SwTableBoxValue::GetValue(), IsValidNumTextNd(), lcl_DelTabsAtSttEnd(), m_pStartNode, NODE_OFFSET_MAX(), RES_BOXATR_FORMAT(), RES_BOXATR_FORMULA(), and RES_BOXATR_VALUE().
Referenced by SwDoc::ChkBoxNumFormat().
SwNodeOffset SwTableBox::IsValidNumTextNd | ( | bool | bCheckAttr = true | ) | const |
Definition at line 2857 of file swtable.cxx.
References SwpHints::Count(), SwpHints::Get(), SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwNodeIndex::GetIndex(), SwNode::GetNodes(), SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), SwSetExpField::GetSubType(), SwNode::GetTextNode(), SwField::GetTypeId(), SwNode::IsTableNode(), SwNode::IsTextNode(), m_pStartNode, n, nIndex, NODE_OFFSET_MAX(), nPos, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), Set, nsSwExtendedSubType::SUB_INVISIBLE, and SwTextAttr::Which().
Referenced by ActualiseValueBox(), SwTableBoxFormat::BoxAttributeChanged(), ChgNumToText(), ChgTextToNum(), SwEditShell::GetTableBoxText(), HasNumContent(), IsNumberChanged(), SwEditShell::IsTableBoxTextFormat(), SwXCell::setFormula(), and SwUndoTableNumFormat::SwUndoTableNumFormat().
|
privatedelete |
void SwTableBox::RegisterToFormat | ( | SwFormat & | rFormat | ) |
Definition at line 3203 of file swtable.cxx.
void SwTableBox::RemoveFromTable | ( | ) |
Definition at line 2041 of file swtable.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::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 485 of file swtable.hxx.
Referenced by lcl_SetAFormatBox(), and SwDoc::SetBoxAttr().
void SwTableBox::setDummyFlag | ( | bool | bDummy | ) |
Definition at line 91 of file swtable.cxx.
References mbDummyFlag.
Referenced by lcl_CopyBoxToDoc().
void SwTableBox::setRowSpan | ( | sal_Int32 | nNewRowSpan | ) |
Definition at line 81 of file swtable.cxx.
References mnRowSpan.
Referenced by SwTable::ConvertSubtableBox(), WW8TabDesc::FinishSwTable(), InsTableBox(), lcl_CheckRowSpan(), lcl_CopyBoxToDoc(), lcl_CopyTableBox(), HTMLTable::MakeTableLine(), SwXMLTableContext::MakeTableLine(), SwTable::NewInsertCol(), SwTable::PrepareDelBoxes(), SwTable::PrepareMerge(), SwTable::RestoreRowSpan(), SwXCell::setPropertyValue(), and SwSaveRowSpan::SwSaveRowSpan().
|
inline |
Definition at line 538 of file swtable.hxx.
References p.
Referenced by ChgNumToText(), and ChgTextToNum().
|
inline |
Definition at line 537 of file swtable.hxx.
References p.
Referenced by ChgNumToText(), and ChgTextToNum().
|
inline |
Definition at line 479 of file swtable.hxx.
Referenced by SwXMLTableContext::NewTableBox(), HTMLTable::NewTableBox(), SwTable::OldMerge(), and SwTable::OldSplitRow().
|
friend |
Definition at line 211 of file swtable.cxx.
|
friend |
Definition at line 444 of file swtable.hxx.
|
friend |
Definition at line 446 of file swtable.hxx.
|
private |
Definition at line 451 of file swtable.hxx.
Referenced by SwTableBox().
|
private |
Definition at line 452 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 453 of file swtable.hxx.
|
private |
Do we contain any direct formatting?
Definition at line 461 of file swtable.hxx.
|
private |
Definition at line 458 of file swtable.hxx.
Referenced by getDummyFlag(), and setDummyFlag().
|
private |
Definition at line 457 of file swtable.hxx.
Referenced by setRowSpan().
|
private |
Definition at line 456 of file swtable.hxx.
|
private |
Definition at line 455 of file swtable.hxx.