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

#include <node.hxx>

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

Public Member Functions

 SwTableNode (const SwNode &)
 
const SwTableGetTable () const
 
SwTableGetTable ()
 
SwTabFrameMakeFrame (SwFrame *)
 
void MakeOwnFrames (SwPosition *pIdxBehind=nullptr)
 Creates the frms for the table node (i.e. More...
 
void DelFrames (SwRootFrame const *pLayout=nullptr)
 Method deletes all views of document for the node. More...
 
void MakeFramesForAdjacentContentNode (const SwNodeIndex &rIdx)
 Method creates all views of the document for the previous node. More...
 
SwTableNodeMakeCopy (SwDoc &, const SwNodeIndex &) const
 
void SetNewTable (std::unique_ptr< SwTable >, bool bNewFrames=true)
 
void RemoveRedlines ()
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 Dumps the node structure to the given destination (file nodes.xml in the current directory by default) More...
 
- Public Member Functions inherited from SwStartNode
SwStartNodeType GetStartNodeType () const
 
void CheckSectionCondColl () const
 Call ChkCondcoll to all ContentNodes of section. More...
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const override
 Dumps the node structure to the given destination (file nodes.xml in the current directory by default) More...
 
- Public Member Functions inherited from SwNode
bool IsCreateFrameWhenHidingRedlines () const
 
void SetRedlineMergeFlag (Merge const eMerge)
 
Merge GetRedlineMergeFlag () const
 
virtual ~SwNode () override=0
 the = 0 forces the class to be an abstract base class, but the dtor can be still called from subclasses More...
 
tools::Long GetSerial () const
 
sal_uInt16 GetSectionLevel () const
 Returns the section level at the position given by aIndex. More...
 
SwNodeOffset StartOfSectionIndex () const
 
const SwStartNodeStartOfSectionNode () const
 
SwStartNodeStartOfSectionNode ()
 
SwNodeOffset EndOfSectionIndex () const
 
const SwEndNodeEndOfSectionNode () const
 
SwEndNodeEndOfSectionNode ()
 
sal_uInt8 GetAutoFormatLvl () const
 
void SetAutoFormatLvl (sal_uInt8 nVal)
 
bool IsIgnoreDontExpand () const
 
void SetIgnoreDontExpand (bool bNew)
 
SwNodeType GetNodeType () const
 
SwStartNodeGetStartNode ()
 
const SwStartNodeGetStartNode () const
 
SwContentNodeGetContentNode ()
 
const SwContentNodeGetContentNode () const
 
SwEndNodeGetEndNode ()
 
const SwEndNodeGetEndNode () const
 
SwTextNodeGetTextNode ()
 Inline methods from Node.hxx. More...
 
const SwTextNodeGetTextNode () const
 
SwOLENodeGetOLENode ()
 Inline methods from Node.hxx. More...
 
const SwOLENodeGetOLENode () const
 
SwNoTextNodeGetNoTextNode ()
 
const SwNoTextNodeGetNoTextNode () const
 
SwGrfNodeGetGrfNode ()
 
const SwGrfNodeGetGrfNode () const
 
SwTableNodeGetTableNode ()
 
const SwTableNodeGetTableNode () const
 
SwSectionNodeGetSectionNode ()
 
const SwSectionNodeGetSectionNode () const
 
bool IsStartNode () const
 
bool IsContentNode () const
 
bool IsEndNode () const
 
bool IsTextNode () const
 
bool IsTableNode () const
 
bool IsSectionNode () const
 
bool IsOLENode () const
 
bool IsNoTextNode () const
 
bool IsGrfNode () const
 
bool IsInRedlines () const
 Checks if this node is in redlines. More...
 
SwTableNodeFindTableNode ()
 Search table node, in which it is. More...
 
const SwTableNodeFindTableNode () const
 
SwSectionNodeFindSectionNode ()
 Search section node, in which it is. More...
 
const SwSectionNodeFindSectionNode () const
 
SwStartNodeFindSttNodeByType (SwStartNodeType eTyp)
 
const SwStartNodeFindSttNodeByType (SwStartNodeType eTyp) const
 
const SwStartNodeFindTableBoxStartNode () const
 
const SwStartNodeFindFlyStartNode () const
 
const SwStartNodeFindFootnoteStartNode () const
 
const SwStartNodeFindHeaderStartNode () const
 
const SwStartNodeFindFooterStartNode () const
 
SwNodesGetNodes ()
 Node is in which nodes-array/doc? More...
 
const SwNodesGetNodes () const
 
SwDocGetDoc ()
 
const SwDocGetDoc () const
 
const IDocumentSettingAccessgetIDocumentSettingAccess () const
 Provides access to the document setting interface. More...
 
const IDocumentDeviceAccessgetIDocumentDeviceAccess () const
 Provides access to the document device interface. More...
 
const IDocumentMarkAccessgetIDocumentMarkAccess () const
 Provides access to the document bookmark interface. More...
 
const IDocumentRedlineAccessgetIDocumentRedlineAccess () const
 Provides access to the document redline interface. More...
 
const IDocumentStylePoolAccessgetIDocumentStylePoolAccess () const
 Provides access to the document style pool interface. More...
 
const IDocumentDrawModelAccessgetIDocumentDrawModelAccess () const
 Provides access to the document draw model interface. More...
 
const IDocumentLayoutAccessgetIDocumentLayoutAccess () const
 Provides access to the document layout interface. More...
 
IDocumentLayoutAccessgetIDocumentLayoutAccess ()
 
const IDocumentLinksAdministrationgetIDocumentLinksAdministration () const
 Provides access to the document links administration interface. More...
 
IDocumentLinksAdministrationgetIDocumentLinksAdministration ()
 
const IDocumentFieldsAccessgetIDocumentFieldsAccess () const
 Provides access to the document fields administration interface. More...
 
IDocumentFieldsAccessgetIDocumentFieldsAccess ()
 
IDocumentContentOperationsgetIDocumentContentOperations ()
 Provides access to the document content operations interface. More...
 
IStyleAccessgetIDocumentStyleAccess ()
 Provides access to the document automatic styles interface. More...
 
IDocumentListItemsgetIDocumentListItems ()
 Provides access to the document's numbered items interface. More...
 
bool IsInVisibleArea (SwViewShell const *pSh) const
 Is node in the visible area of the Shell? More...
 
bool IsInProtectSect () const
 Is node in a protected area? More...
 
bool IsProtect () const
 Is node in something that is protected (range, frame, table cells ... including anchor in case of frames or footnotes)? More...
 
const SwPageDescFindPageDesc (SwNodeOffset *pPgDescNdIdx=nullptr) const
 Search PageDesc with which this node is formatted. More...
 
SwFrameFormatGetFlyFormat () const
 If node is in a fly return the respective format. More...
 
SwTableBoxGetTableBox () const
 If node is in a table return the respective table box. More...
 
SwNodeOffset GetIndex () const
 
const SwTextNodeFindOutlineNodeOfLevel (sal_uInt8 nLvl, SwRootFrame const *pLayout=nullptr) const
 
sal_uInt8 HasPrevNextLayNode () const
 
std::vector< SwFrameFormat * > const & GetAnchoredFlys () const
 
void AddAnchoredFly (SwFrameFormat *)
 
void RemoveAnchoredFly (SwFrameFormat *)
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 Dumps the node structure to the given destination (file nodes.xml in the current directory by default) More...
 
bool operator== (const SwNode &rOther) const
 
bool operator!= (const SwNode &rOther) const
 
bool operator< (const SwNode &rOther) const
 
bool operator<= (const SwNode &rOther) const
 
bool operator> (const SwNode &rOther) const
 
bool operator>= (const SwNode &rOther) const
 
sw::AccessibilityCheckStatusgetAccessibilityCheckStatus ()
 
void resetAndQueueAccessibilityCheck ()
 
- Public Member Functions inherited from sw::BorderCacheOwner
 BorderCacheOwner ()
 
 BorderCacheOwner (BorderCacheOwner &)
 
BorderCacheOwneroperator= (const BorderCacheOwner &)
 
 ~BorderCacheOwner ()
 
bool IsInCache () const
 
void InvalidateInSwCache (const sal_uInt16)
 

Private Member Functions

virtual ~SwTableNode () override
 
 SwTableNode (const SwTableNode &rNode)=delete
 
SwTableNodeoperator= (const SwTableNode &rNode)=delete
 

Private Attributes

std::unique_ptr< SwTablem_pTable
 

Friends

class SwNodes
 

Additional Inherited Members

- Public Types inherited from SwNode
enum class  Merge {
  None ,
  First ,
  NonFirst ,
  Hidden
}
 sw_redlinehide: redline node merge state More...
 
- Protected Member Functions inherited from SwStartNode
 SwStartNode (const SwNode &rWhere, const SwNodeType nNodeType=SwNodeType::Start, SwStartNodeType=SwNormalStartNode)
 
- Protected Member Functions inherited from SwNode
 SwNode ()
 only used by SwContentNodeTmp in SwTextNode::Update More...
 
 SwNode (const SwNode &rWhere, const SwNodeType nNodeId)
 
 SwNode (SwNodes &rNodes, SwNodeOffset nPos, const SwNodeType nNodeId)
 for the initial StartNode More...
 
- Protected Attributes inherited from SwNode
SwStartNodem_pStartOfSection
 

Detailed Description

Definition at line 532 of file node.hxx.

Constructor & Destructor Documentation

◆ ~SwTableNode()

SwTableNode::~SwTableNode ( )
overrideprivatevirtual

Definition at line 2358 of file ndtbl.cxx.

References DelFrames(), SwTable::GetFrameFormat(), GetTable(), and m_pTable.

◆ SwTableNode() [1/2]

SwTableNode::SwTableNode ( const SwNode rWhere)

Definition at line 2352 of file ndtbl.cxx.

References m_pTable.

Referenced by MakeCopy().

◆ SwTableNode() [2/2]

SwTableNode::SwTableNode ( const SwTableNode rNode)
privatedelete

Member Function Documentation

◆ DelFrames()

void SwTableNode::DelFrames ( SwRootFrame const *  pLayout = nullptr)

◆ dumpAsXml()

void SwTableNode::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Dumps the node structure to the given destination (file nodes.xml in the current directory by default)

Reimplemented from SwStartNode.

Definition at line 2525 of file ndtbl.cxx.

References SwNode::GetIndex(), and m_pTable.

◆ GetTable() [1/2]

SwTable & SwTableNode::GetTable ( )
inline

Definition at line 543 of file node.hxx.

◆ GetTable() [2/2]

const SwTable & SwTableNode::GetTable ( ) const
inline

Definition at line 542 of file node.hxx.

Referenced by SwDoc::AdjustCellWidth(), SwDoc::AppendDoc(), SwHTMLTableLayout::AutoLayoutPass1(), SwTableFormula::BoxNmsToRelNm(), SwHTMLParser::BuildTable(), CalculateFlySize(), SwEditShell::CanMergeTable(), checkAndWriteFloatingTables(), CheckMergeSel(), SwCursorShell::CheckTableBoxContent(), SwDoc::ChkBoxNumFormat(), SwDoc::ClearBoxNumAttrs(), ConvertTableToText(), SwFEShell::Copy(), SwTable::CopyHeadlineIntoTable(), SwEditShell::CopySelToDoc(), SwTextField::CopyTextField(), SwXParagraphEnumeration::Create(), sw::CreateParentXText(), sw::util::InsertedTablesManager::DelAndMakeTableFrames(), SwExtraRedlineTable::DeleteAllTableRedlines(), SwXTextRange::DeleteAndInsert(), SwFEShell::DeleteCol(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwDoc::DeleteRowCol(), SwTable::DeleteSel(), sw::DocumentContentOperationsManager::DelFullPara(), SwDoc::DelTable(), SwDocShell::Execute(), RtfExport::ExportDocument_Impl(), SwXMLExport::ExportTable(), SwXMLExport::ExportTableAutoStyles(), SwViewShell::FillPrtDoc(), SwNode::FindPageDesc(), SwTableField::GetCommand(), SwCursorShell::GetContentAtPos(), SwTableBox::GetCoordinates(), SwCursorShell::GetCurField(), SwUnoCursorHelper::getCursorPropertyValue(), SwUndoFormatAttr::GetFormat(), SwTableBox::GetName(), SwXRedline::getPropertyValue(), SwXTextTableCursor::getPropertyValue(), SwDoc::GetTableAutoFormat(), SwFEShell::GetTableAutoFormat(), SwNode::GetTableBox(), SwTable::GetTableBox(), SwEditShell::GetTableBoxFormulaAttrs(), SwEditShell::GetTableChgMode(), SwEditShell::GetTableFormat(), GetTableSel(), SwTOXTable::GetText_Impl(), SwTableBox::GetValue(), GiveNodePageDesc(), SwCursorShell::GoNextCell(), SwCursor::GoPrevNextCell(), SwCursorShell::GotoNxtPrvTableFormula(), SwCursor::GotoTableBox(), sw::util::HasPageBreak(), SwDoc::HasTableAnyProtection(), SwRootFrame::Init(), SwNodes::InsBoxen(), SwDoc::InsCopyOfTable(), InsertCnt_(), SwDoc::InsertCol(), SwDoc::InsertRow(), SwDoc::InsertTable(), InsertTableImpl(), SwXMLTableContext::InsertTableSection(), SwHTMLParser::InsertTableSection(), SwTable::InsTable(), SwAccessibleMap::InvalidateShapeInParaSelection(), SwContentNode::IsAnyCondition(), SwTableBox::IsInHeadline(), SwCursor::IsInProtectTable(), SwWrtShell::IsOutlineContentVisible(), SwNode::IsProtect(), SwCursorShell::IsTableComplexForChart(), lcl_BoxNmToRel(), lcl_CopyHint(), lcl_CursorInDeletedTable(), lcl_FindTopLevelTable(), lcl_GetBoxSel(), lcl_GetSelTable(), lcl_InsertLabel(), lcl_IsInSameTableBox(), lcl_IsNewStyleTable(), lcl_MinMaxNode(), SwCursor::LeftRight(), SwUnoTableCursor::MakeBoxSels(), MakeCopy(), SwTable::MakeCopy(), SwDoc::MakeFlyAndMove(), MakeFramesForAdjacentContentNode(), SwHTMLWriter::MakeHeader(), SwXMLTableContext::MakeTable(), SwXMLTableContext::MakeTable_(), SwXMLTableContext::MakeTableLine(), SwFEShell::MergeTab(), SwNodes::MergeTable(), SwDoc::MergeTable(), SwNodes::MoveNodes(), SwWW8ImplReader::MoveOutsideFly(), SwHTMLParser::MovePageDescAttrs(), MSWordSections::MSWordSections(), SwTableCursor::NewTableSelection(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutHTML_SwTableNode(), OutHTML_SwTextNode(), MSWordExportBase::OutputTextNode(), SwFEShell::Paste(), SwTransferable::Paste(), SwTransferable::PrivateDrop(), SwUndoDelete::RedoImpl(), SwUndoInsertLabel::RedoImpl(), SwUndoSort::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoTableToText::RedoImpl(), SwUndoTableNdsChg::RedoImpl(), SwUndoTableNumFormat::RedoImpl(), SwUndoTableCpyTable::RedoImpl(), SwUndoTableHeadline::RedoImpl(), SwTableBox::RemoveFromTable(), RemoveRedlines(), SwUndoTableHeadline::RepeatImpl(), SwUndoTableNdsChg::SaveNewBoxes(), SwCursorShell::SaveTableBoxContent(), DocxAttributeOutput::SectionBreaks(), RtfAttributeOutput::SectionBreaks(), MSWordExportBase::SectionProperties(), SwAccessibleTable::selectAccessibleChild(), SwDoc::SetBoxAttr(), SwDoc::SetColRowWidthHeight(), SetGrfFlySize(), SwHistorySetFormat::SetInDoc(), SwXTextTableCursor::setPropertyValue(), SwDoc::SetRowNotTracked(), SwDoc::SetTabBorders(), SwDoc::SetTableAutoFormat(), SwEditShell::SetTableChgMode(), SwDoc::SetTabLineStyle(), SwDoc::SortTable(), SwTable::Split(), sw::DocumentContentOperationsManager::SplitNode(), SwDoc::SplitTable(), SwNodes::SplitTable(), SwDocShell::StateStyleSheet(), SwHistorySetAttrSet::SwHistorySetAttrSet(), SwHistorySetFormat::SwHistorySetFormat(), SwNode2LayImpl::SwNode2LayImpl(), SwTableBox::SwTableBox(), SwUndoAttrTable::SwUndoAttrTable(), SwUndoMergeTable::SwUndoMergeTable(), SwUndoSplitTable::SwUndoSplitTable(), SwUndoTableAutoFormat::SwUndoTableAutoFormat(), SwUndoTableMerge::SwUndoTableMerge(), SwUndoTableNdsChg::SwUndoTableNdsChg(), SwDoc::TableToText(), SwEditShell::TableToText(), SwDoc::TextToTable(), SwNodes::TextToTable(), SwCursorShell::TrySelectOuterTable(), SwUndoDelete::UndoImpl(), SwUndoInsertLabel::UndoImpl(), SwUndoSort::UndoImpl(), SwUndoSplitNode::UndoImpl(), SwUndoInsTable::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableToText::UndoImpl(), SwUndoAttrTable::UndoImpl(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), SwUndoCpyTable::UndoImpl(), SwUndoSplitTable::UndoImpl(), SwUndoMergeTable::UndoImpl(), SwUndoTableHeadline::UndoImpl(), SwUndoTableAutoFormat::UndoRedo(), SwNodes::UndoTableToText(), UnHideRedlines(), sw::DocumentFieldsManager::UpdateField(), SwTable::UpdateFields(), SwEditShell::UpdateTable(), sw::DocumentFieldsManager::UpdateTableFields(), SwFEShell::UpdateTableStyleFormatting(), WW8TabDesc::UseSwTable(), SwWriter::Write(), MSWordExportBase::WriteText(), and ~SwTableNode().

◆ MakeCopy()

SwTableNode * SwTableNode::MakeCopy ( SwDoc rDoc,
const SwNodeIndex rIdx 
) const

◆ MakeFrame()

SwTabFrame * SwTableNode::MakeFrame ( SwFrame pSib)

Definition at line 2367 of file ndtbl.cxx.

References m_pTable.

Referenced by InsertCnt_(), and MakeOwnFrames().

◆ MakeFramesForAdjacentContentNode()

void SwTableNode::MakeFramesForAdjacentContentNode ( const SwNodeIndex rIdx)

Method creates all views of the document for the previous node.

Creates all Views from the Document for the preceding Node.

The content frames that are created are put into the respective layout.

The resulting ContentFrames are added to the corresponding Layout.

Definition at line 2376 of file ndtbl.cxx.

References SwNode::GetContentNode(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwFrame::GetNext(), SwNodeIndex::GetNode(), SwFrame::getRootFrame(), GetTable(), SwFrame::GetUpper(), SwRootFrame::HasMergedParas(), SwNode::IsCreateFrameWhenHidingRedlines(), SwContentNode::MakeFrame(), SwNode2Layout::NextFrame(), and SwFrame::Paste().

Referenced by SwNodes::TableToText().

◆ MakeOwnFrames()

void SwTableNode::MakeOwnFrames ( SwPosition pIdxBehind = nullptr)

◆ operator=()

SwTableNode & SwTableNode::operator= ( const SwTableNode rNode)
privatedelete

◆ RemoveRedlines()

void SwTableNode::RemoveRedlines ( )

◆ SetNewTable()

void SwTableNode::SetNewTable ( std::unique_ptr< SwTable pNewTable,
bool  bNewFrames = true 
)

Friends And Related Function Documentation

◆ SwNodes

friend class SwNodes
friend

Definition at line 534 of file node.hxx.

Member Data Documentation

◆ m_pTable

std::unique_ptr<SwTable> SwTableNode::m_pTable
private

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