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

#include <node.hxx>

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

Public Member Functions

 SwTableNode (const SwNodeIndex &)
 
const SwTableGetTable () const
 
SwTableGetTable ()
 
SwTabFrameMakeFrame (SwFrame *)
 
void MakeOwnFrames (SwNodeIndex *pIdxBehind)
 Creates the frms for the table node (i.e. the TabFrames). 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 ()
 
- 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 ()
 
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...
 
long GetSerial () const
 
sal_uInt16 GetSectionLevel () const
 Returns the section level at the position given by aIndex. More...
 
sal_uLong StartOfSectionIndex () const
 
const SwStartNodeStartOfSectionNode () const
 
SwStartNodeStartOfSectionNode ()
 
sal_uLong 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 an protected area? More...
 
bool IsProtect () const
 Is node in something that is protected (range, frame, table cells ... More...
 
const SwPageDescFindPageDesc (size_t *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...
 
sal_uLong 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 *)
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
 SwModify (SwModify *pToRegisterIn)
 
void NotifyClients (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void ModifyBroadcast (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
virtual void CallSwClientNotify (const SfxHint &rHint) const
 
virtual ~SwModify () override
 
void Add (SwClient *pDepend)
 
SwClientRemove (SwClient *pDepend)
 
bool HasWriterListeners () const
 
virtual bool GetInfo (SfxPoolItem &) const override
 
void LockModify ()
 
void UnlockModify ()
 
void SetInCache (bool bNew)
 
void SetInSwFntCache (bool bNew)
 
void SetInDocDTOR ()
 
bool IsModifyLocked () const
 
bool IsInCache () const
 
bool IsInSwFntCache () const
 
void CheckCaching (const sal_uInt16 nWhich)
 
bool HasOnlyOneListener ()
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
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 &)
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 

Protected Member Functions

virtual ~SwTableNode () override
 
- Protected Member Functions inherited from SwStartNode
 SwStartNode (const SwNodeIndex &rWhere, const SwNodeType nNodeType=SwNodeType::Start, SwStartNodeType=SwNormalStartNode)
 
- Protected Member Functions inherited from SwNode
 SwNode (const SwNodeIndex &rWhere, const SwNodeType nNodeId)
 
 SwNode (SwNodes &rNodes, sal_uLong nPos, const SwNodeType nNodeId)
 for the initial StartNode More...
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 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  Merge {
  Merge::None,
  Merge::First,
  Merge::NonFirst,
  Merge::Hidden
}
 sw_redlinehide: redline node merge state More...
 
- Protected Attributes inherited from SwNode
SwStartNodem_pStartOfSection
 

Detailed Description

Definition at line 487 of file node.hxx.

Constructor & Destructor Documentation

SwTableNode::~SwTableNode ( )
overrideprotectedvirtual
SwTableNode::SwTableNode ( const SwNodeIndex rIdx)

Definition at line 2317 of file ndtbl.cxx.

References m_pTable.

Referenced by MakeCopy().

SwTableNode::SwTableNode ( const SwTableNode rNode)
privatedelete

Member Function Documentation

void SwTableNode::DelFrames ( SwRootFrame const *  pLayout = nullptr)
const SwTable& SwTableNode::GetTable ( ) const
inline

Definition at line 497 of file node.hxx.

Referenced by SwDoc::AdjustCellWidth(), SwDoc::AppendDoc(), SwHTMLTableLayout::AutoLayoutPass1(), SwTableFormula::BoxNmsToRelNm(), SwHTMLParser::BuildTable(), CalculateFlySize(), SwEditShell::CanMergeTable(), SwTableBoxFormula::ChangeState(), checkAndWriteFloatingTables(), CheckMergeSel(), SwCursorShell::CheckTableBoxContent(), SplitTable_Para::ChgBox(), SwDoc::ChkBoxNumFormat(), SwDoc::ClearBoxNumAttrs(), ConvertTableToText(), SwTable::CopyHeadlineIntoTable(), SwEditShell::CopySelToDoc(), SwTextField::CopyTextField(), CR_SetBoxWidth::CR_SetBoxWidth(), CR_SetLineHeight::CR_SetLineHeight(), sw::CreateParentXText(), sw::util::InsertedTablesManager::DelAndMakeTableFrames(), SwExtraRedlineTable::DeleteAllTableRedlines(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwTable::DeleteSel(), sw::DocumentContentOperationsManager::DelFullPara(), SwStartNode::dumpAsXml(), RtfExport::ExportDocument_Impl(), SwXMLExport::ExportTable(), SwXMLExport::ExportTableAutoStyles(), SwViewShell::FillPrtDoc(), SwNode::FindPageDesc(), SwTableField::GetCommand(), SwCursorShell::GetContentAtPos(), SwTableBox::GetCoordinates(), SwCursorShell::GetCurField(), SwUnoCursorHelper::getCursorPropertyValue(), SwTableBox::GetName(), SwXRedline::getPropertyValue(), SwXTextTableCursor::getPropertyValue(), 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(), SwHTMLImageWatcher::init(), SwNodes::InsBoxen(), SwDoc::InsCopyOfTable(), InsertCnt_(), SwBaseShell::InsertTable(), SwDoc::InsertTable(), SwHTMLParser::InsertTableSection(), SwTable::InsTable(), SwAccessibleMap::InvalidateShapeInParaSelection(), SwContentNode::IsAnyCondition(), SwUndoFormatAttr::IsFormatInDoc(), SwTableBox::IsInHeadline(), SwCursor::IsInProtectTable(), SwNode::IsProtect(), SwCursorShell::IsTableComplexForChart(), lcl_BoxNmToRel(), lcl_CopyBoxToDoc(), lcl_CopyHint(), lcl_CopyLineToDoc(), lcl_CopyRow(), lcl_CopyTableBox(), lcl_CopyTableLine(), lcl_FindTopLevelTable(), lcl_GetBoxSel(), lcl_GetSelTable(), lcl_InsertLabel(), lcl_IsInSameTableBox(), lcl_IsNewStyleTable(), lcl_Merge_MoveLine(), lcl_MinMaxNode(), SwCursor::LeftRight(), SwUnoTableCursor::MakeBoxSels(), SwTable::MakeCopy(), 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(), SwXParagraphEnumerationImpl::NextElement_Impl(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutHTML_SwTableNode(), OutHTML_SwTextNode(), MSWordExportBase::OutputTextNode(), SwFEShell::Paste(), SwUndoInsTable::RedoImpl(), SwUndoDelete::RedoImpl(), SwUndoSort::RedoImpl(), SwUndoTableToText::RedoImpl(), SwUndoInsertLabel::RedoImpl(), SwUndoTableNdsChg::RedoImpl(), SwUndoTableNumFormat::RedoImpl(), SwUndoTableCpyTable::RedoImpl(), SwUndoTableHeadline::RedoImpl(), SwTableBox::RemoveFromTable(), RemoveRedlines(), SwUndoTableHeadline::RepeatImpl(), SwUndoTableNdsChg::SaveNewBoxes(), SwCursorShell::SaveTableBoxContent(), RtfAttributeOutput::SectionBreaks(), DocxAttributeOutput::SectionBreaks(), SwAccessibleTable::selectAccessibleChild(), SwDoc::SetBoxAttr(), SwDoc::SetColRowWidthHeight(), SetGrfFlySize(), SwHistorySetFormat::SetInDoc(), SwXTextTableCursor::setPropertyValue(), SwDoc::SetTabBorders(), SwEditShell::SetTableChgMode(), SwDoc::SetTabLineStyle(), sw::DocumentContentOperationsManager::SplitNode(), SwNodes::SplitTable(), SwDoc::SplitTable(), SwDocShell::StateStyleSheet(), SwHistorySetAttrSet::SwHistorySetAttrSet(), SwHistorySetFormat::SwHistorySetFormat(), SwNode2LayImpl::SwNode2LayImpl(), SwTableBox::SwTableBox(), SwUndoAttrTable::SwUndoAttrTable(), SwUndoMergeTable::SwUndoMergeTable(), SwUndoSplitTable::SwUndoSplitTable(), SwUndoTableAutoFormat::SwUndoTableAutoFormat(), SwUndoTableMerge::SwUndoTableMerge(), SwUndoTableNdsChg::SwUndoTableNdsChg(), SwEditShell::TableToText(), SwDoc::TableToText(), SwNodes::TextToTable(), SwDoc::TextToTable(), SwUndoSplitNode::UndoImpl(), SwUndoSort::UndoImpl(), SwUndoTableToText::UndoImpl(), SwUndoAttrTable::UndoImpl(), SwUndoInsertLabel::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), SwUndoCpyTable::UndoImpl(), SwUndoSplitTable::UndoImpl(), SwUndoMergeTable::UndoImpl(), SwUndoTableHeadline::UndoImpl(), SwUndoTableAutoFormat::UndoRedo(), SwNodes::UndoTableToText(), SwEditShell::UpdateTable(), sw::DocumentFieldsManager::UpdateTableFields(), SwFEShell::UpdateTableStyleFormatting(), WW8TabDesc::UseSwTable(), SwWriter::Write(), MSWordExportBase::WriteText(), and ~SwTableNode().

SwTable& SwTableNode::GetTable ( )
inline

Definition at line 498 of file node.hxx.

SwTableNode * SwTableNode::MakeCopy ( SwDoc pDoc,
const SwNodeIndex rIdx 
) const
SwTabFrame * SwTableNode::MakeFrame ( SwFrame pSib)

Definition at line 2332 of file ndtbl.cxx.

References m_pTable.

Referenced by InsertCnt_(), and MakeOwnFrames().

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 2341 of file ndtbl.cxx.

References SwNode::GetContentNode(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwFrame::GetNext(), SwNodeIndex::GetNode(), SwFrame::getRootFrame(), GetTable(), SwFrame::GetUpper(), SwModify::HasWriterListeners(), SwNode::IsCreateFrameWhenHidingRedlines(), SwRootFrame::IsHideRedlines(), SwContentNode::MakeFrame(), and SwFrame::Paste().

void SwTableNode::MakeOwnFrames ( SwNodeIndex pIdxBehind)
SwTableNode& SwTableNode::operator= ( const SwTableNode rNode)
privatedelete
void SwTableNode::RemoveRedlines ( )
void SwTableNode::SetNewTable ( std::unique_ptr< SwTable pNewTable,
bool  bNewFrames = true 
)

Friends And Related Function Documentation

friend class SwNodes
friend

Definition at line 489 of file node.hxx.

Member Data Documentation

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

Definition at line 490 of file node.hxx.

Referenced by DelFrames(), MakeFrame(), SetNewTable(), SwTableNode(), and ~SwTableNode().


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