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

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
 
sal_uLong GetSttIdx () 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
 
sal_uLong IsValidNumTextNd (bool bCheckAttr=true) const
 
bool IsNumberChanged () const
 
sal_uInt16 IsFormulaOrValueBox () const
 
void ActualiseValueBox ()
 
const ColorGetSaveUserColor () const
 
const ColorGetSaveNumFormatColor () const
 
void SetSaveUserColor (const Color *p)
 
void SetSaveNumFormatColor (const Color *p)
 
long getRowSpan () const
 
void setRowSpan (long 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
 
virtual void Modify (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
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
 

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::unique_ptr< ColormpUserColor
 
std::unique_ptr< ColormpNumFormatColor
 
long 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
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

SwTableBox is one table cell in the document model.

Definition at line 386 of file swtable.hxx.

Constructor & Destructor Documentation

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

Definition at line 1598 of file swtable.cxx.

References SwModify::Add(), CheckBoxFormat(), m_aLines, and SwTableLines::reserve().

SwTableBox::SwTableBox ( SwTableBoxFormat pFormat,
const SwStartNode rSttNd,
SwTableLine pUp 
)
SwTableBox::SwTableBox ( SwTableBoxFormat pFormat,
const SwNodeIndex rIdx,
SwTableLine pUp 
)
SwTableBox::~SwTableBox ( )
overridevirtual

Member Function Documentation

void SwTableBox::ActualiseValueBox ( )
SwTableBoxFormat * SwTableBox::CheckBoxFormat ( SwTableBoxFormat pFormat)
staticprivate
void SwTableBox::ChgFrameFormat ( SwTableBoxFormat pNewFormat,
bool  bNeedToReregister = true 
)
SwFrameFormat * SwTableBox::ClaimFrameFormat ( )
SwTableBox & SwTableBox::FindEndOfRowSpan ( const SwTable rTable,
sal_uInt16  nMaxStep 
)
const SwTableBox& SwTableBox::FindEndOfRowSpan ( const SwTable rTable,
sal_uInt16  nMaxStep 
) const
inline

Definition at line 491 of file swtable.hxx.

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

Definition at line 2281 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 2292 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 
)
const SwTableBox& SwTableBox::FindStartOfRowSpan ( const SwTable rTable,
sal_uInt16  nMaxStep = USHRT_MAX 
) const
inline

Definition at line 486 of file swtable.hxx.

Point SwTableBox::GetCoordinates ( ) const
bool SwTableBox::getDummyFlag ( ) const

Definition at line 112 of file swtable.cxx.

SwFrameFormat* SwTableBox::GetFrameFormat ( )
inline

Definition at line 425 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(), SwTable::CheckConsistency(), SwCursorShell::CheckTableBoxContent(), ChgFrameFormat(), ChgNumToText(), ChgTextToNum(), SwDoc::ChkBoxNumFormat(), ClaimFrameFormat(), SwDoc::ClearBoxNumAttrs(), SwTable::CollectBoxSelection(), SaveBox::CreateNew(), 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(), SwXCell::getValue(), SwSortBoxElement::GetValue(), GetValue(), SwWriteTableCell::GetVertOri(), SwCursor::GotoTableBox(), HasNumContent(), SwHTMLWrtTable::HasTabBackground(), WW8TabDesc::InsertCells(), IsFormulaOrValueBox(), IsNumberChanged(), SwNode::IsProtect(), SwEditShell::IsTableBoxTextFormat(), lcl_AdjustBox(), lcl_AdjustWidthsInLine(), 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_Merge_MoveLine(), lcl_ModifyBoxes(), lcl_ProcessBoxSet(), lcl_SaveUpperLowerBorder(), lcl_SearchSelBox(), lcl_SetAFormatBox(), lcl_SetDfltBoxAttr(), 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(), SwHTMLWrtTable::OutTableCell(), SwTable::PrepareDelBoxes(), SwTable::PrepareDeleteCol(), SwTable::PrepareMerge(), SwUndoTableCpyTable::RedoImpl(), SaveBox::RestoreAttr(), SaveBox::SaveBox(), 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(), 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().

SwFrameFormat* SwTableBox::GetFrameFormat ( ) const
inline

Definition at line 426 of file swtable.hxx.

References SwClient::GetRegisteredIn().

OUString SwTableBox::GetName ( ) const
long SwTableBox::getRowSpan ( ) const
const Color * SwTableBox::GetSaveNumFormatColor ( ) const
inline

Definition at line 81 of file swtable.cxx.

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

const Color * SwTableBox::GetSaveUserColor ( ) const
inline

Definition at line 76 of file swtable.cxx.

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

sal_uLong SwTableBox::GetSttIdx ( ) const
const SwStartNode* SwTableBox::GetSttNd ( ) const
inline

Definition at line 439 of file swtable.hxx.

Referenced by SwUndoTableCpyTable::AddBoxAfter(), SwUndoTableCpyTable::AddBoxBefore(), SwDDETable::ChangeContent(), CheckTable(), SwDoc::ChkBoxNumFormat(), SwTable::CollectBoxSelection(), ConvertNestedTablesToText(), SwTable::CopyHeadlineIntoTable(), 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(), SwHTMLWrtTable::HasTabBackground(), SwFEShell::HasWholeTabSelection(), WW8TabDesc::InFirstParaInCell(), SwNodes::InsBoxen(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), 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(), SwHTMLWrtTable::OutTableCell(), WW8TabDesc::ParkPaM(), SwTable::PrepareMerge(), SwUndoTableCpyTable::PrepareRedline(), ww8::WW8TableInfo::processTableBox(), ww8::WW8TableInfo::processTableBoxLines(), SwUndoTableCpyTable::RedoImpl(), SwXTableRows::removeByIndex(), SwXTableColumns::removeByIndex(), SaveBox::RestoreAttr(), SaveBox::SaveBox(), SwUndoTableMerge::SaveCollection(), SwUndoTableNdsChg::SaveNewBoxes(), SwAccessibleTable::selectAccessibleChild(), SwFEShell::SelTableRowCol(), SwCursorShell::SelTableRowOrCol(), SwDoc::SetColRowWidthHeight(), SwTable::SetColWidth(), SetGetExpField::SetGetExpField(), WW8TabDesc::SetPamInCell(), SwXTextTable::setPropertyValue(), SwTable::SetRowHeight(), SwHTMLWrtTable::ShouldExpandSub(), 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().

SwTableLines& SwTableBox::GetTabLines ( )
inline

Definition at line 418 of file swtable.hxx.

Referenced by SwWriteTable::CollectTableRowsCols(), ConvertNestedTablesToText(), SaveLine::CreateNew(), 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(), SwHTMLWrtTable::HasTabBackground(), SwTable::InsertRow_(), SwTable::InsTable(), SwTable::IsTableComplexForChart(), lcl_AdjustBox(), lcl_BoxSetHeadCondColl(), lcl_CalcWidth(), lcl_CheckCol(), lcl_CopyCol(), lcl_CopyLineToDoc(), lcl_CopyRow(), lcl_CopyTableBox(), lcl_CopyTableLine(), 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_SplitTable_CpyBox(), lcl_TableBox_HasTabBorders(), lcl_xmltble_ClearName_Box(), SwXMLTableContext::MakeTable_(), HTMLTable::MakeTable_(), SwXMLTableContext::MakeTableBox(), HTMLTable::MakeTableBox(), SwTable::OldMerge(), SwTable::OldSplitRow(), SwHTMLWrtTable::OutTableCell(), ww8::WW8TableInfo::processTableBox(), ww8::WW8TableInfo::processTableBoxLines(), SaveBox::RestoreAttr(), SaveBox::SaveBox(), SwTable::SetRowHeight(), SwNodes::SplitTable(), sw_Box_CollectBox(), sw_BoxSetSplitBoxFormats(), and SwCellFrame::SwCellFrame().

const SwTableLines& SwTableBox::GetTabLines ( ) const
inline

Definition at line 419 of file swtable.hxx.

SwTableLine* SwTableBox::GetUpper ( )
inline

Definition at line 421 of file swtable.hxx.

Referenced by SwRootFrame::CalcFrameRects(), SwTable::CollectBoxSelection(), SaveBox::CreateNew(), 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_Merge_MoveLine(), 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().

const SwTableLine* SwTableBox::GetUpper ( ) const
inline

Definition at line 422 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 78 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, 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_().

bool SwTableBox::HasDirectFormatting ( ) const
inline

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

Definition at line 432 of file swtable.hxx.

Referenced by lcl_SetAFormatBox().

bool SwTableBox::HasNumContent ( double &  rNum,
sal_uInt32 &  rFormatIndex,
bool &  rIsEmptyTextNd 
) const
sal_uInt16 SwTableBox::IsFormulaOrValueBox ( ) const
bool SwTableBox::IsInHeadline ( const SwTable pTable) const
bool SwTableBox::IsNumberChanged ( ) const
sal_uLong SwTableBox::IsValidNumTextNd ( bool  bCheckAttr = true) const
SwTableBox& SwTableBox::operator= ( const SwTableBox )
privatedelete
void SwTableBox::RegisterToFormat ( SwFormat rFormat)

Definition at line 2760 of file swtable.cxx.

References SwModify::Add().

Referenced by SaveBox::CreateNew().

void SwTableBox::RemoveFromTable ( )
void SwTableBox::SetDirectFormatting ( bool  bDirect)
inline

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

Definition at line 429 of file swtable.hxx.

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

void SwTableBox::setDummyFlag ( bool  bDummy)

Definition at line 117 of file swtable.cxx.

Referenced by lcl_CopyBoxToDoc().

void SwTableBox::setRowSpan ( long  nNewRowSpan)
void SwTableBox::SetSaveNumFormatColor ( const Color p)
inline

Definition at line 94 of file swtable.cxx.

Referenced by ChgNumToText(), and ChgTextToNum().

void SwTableBox::SetSaveUserColor ( const Color p)
inline

Definition at line 86 of file swtable.cxx.

Referenced by ChgNumToText(), and ChgTextToNum().

void SwTableBox::SetUpper ( SwTableLine pNew)
inline

Friends And Related Function Documentation

void DelBoxNode ( SwTableSortBoxes const &  rSortCntBoxes)
friend

Definition at line 229 of file swtable.cxx.

friend class SwNodes
friend

Definition at line 388 of file swtable.hxx.

friend class SwXMLTableContext
friend

Definition at line 390 of file swtable.hxx.

Member Data Documentation

SwTableLines SwTableBox::m_aLines
private

Definition at line 395 of file swtable.hxx.

Referenced by SwTableBox().

const SwStartNode* SwTableBox::m_pStartNode
private
SwTableLine* SwTableBox::m_pUpper
private

Definition at line 397 of file swtable.hxx.

bool SwTableBox::mbDirectFormatting
private

Do we contain any direct formatting?

Definition at line 405 of file swtable.hxx.

bool SwTableBox::mbDummyFlag
private

Definition at line 402 of file swtable.hxx.

long SwTableBox::mnRowSpan
private

Definition at line 401 of file swtable.hxx.

std::unique_ptr<Color> SwTableBox::mpNumFormatColor
private

Definition at line 400 of file swtable.hxx.

std::unique_ptr<Color> SwTableBox::mpUserColor
private

Definition at line 399 of file swtable.hxx.


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