LibreOffice Module sw (master)
1
|
#include <node.hxx>
Public Member Functions | |
SwTableNode (const SwNodeIndex &) | |
const SwTable & | GetTable () const |
SwTable & | GetTable () |
SwTabFrame * | MakeFrame (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... | |
SwTableNode * | MakeCopy (SwDoc &, const SwNodeIndex &) const |
void | SetNewTable (std::unique_ptr< SwTable >, bool bNewFrames=true) |
void | RemoveRedlines () |
![]() | |
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... | |
![]() | |
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 SwStartNode * | StartOfSectionNode () const |
SwStartNode * | StartOfSectionNode () |
SwNodeOffset | EndOfSectionIndex () const |
const SwEndNode * | EndOfSectionNode () const |
SwEndNode * | EndOfSectionNode () |
sal_uInt8 | GetAutoFormatLvl () const |
void | SetAutoFormatLvl (sal_uInt8 nVal) |
bool | IsIgnoreDontExpand () const |
void | SetIgnoreDontExpand (bool bNew) |
SwNodeType | GetNodeType () const |
SwStartNode * | GetStartNode () |
const SwStartNode * | GetStartNode () const |
SwContentNode * | GetContentNode () |
const SwContentNode * | GetContentNode () const |
SwEndNode * | GetEndNode () |
const SwEndNode * | GetEndNode () const |
SwTextNode * | GetTextNode () |
Inline methods from Node.hxx. More... | |
const SwTextNode * | GetTextNode () const |
SwOLENode * | GetOLENode () |
Inline methods from Node.hxx. More... | |
const SwOLENode * | GetOLENode () const |
SwNoTextNode * | GetNoTextNode () |
const SwNoTextNode * | GetNoTextNode () const |
SwGrfNode * | GetGrfNode () |
const SwGrfNode * | GetGrfNode () const |
SwTableNode * | GetTableNode () |
const SwTableNode * | GetTableNode () const |
SwSectionNode * | GetSectionNode () |
const SwSectionNode * | GetSectionNode () 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... | |
SwTableNode * | FindTableNode () |
Search table node, in which it is. More... | |
const SwTableNode * | FindTableNode () const |
SwSectionNode * | FindSectionNode () |
Search section node, in which it is. More... | |
const SwSectionNode * | FindSectionNode () const |
SwStartNode * | FindSttNodeByType (SwStartNodeType eTyp) |
const SwStartNode * | FindSttNodeByType (SwStartNodeType eTyp) const |
const SwStartNode * | FindTableBoxStartNode () const |
const SwStartNode * | FindFlyStartNode () const |
const SwStartNode * | FindFootnoteStartNode () const |
const SwStartNode * | FindHeaderStartNode () const |
const SwStartNode * | FindFooterStartNode () const |
SwNodes & | GetNodes () |
Node is in which nodes-array/doc? More... | |
const SwNodes & | GetNodes () const |
SwDoc & | GetDoc () |
const SwDoc & | GetDoc () const |
const IDocumentSettingAccess * | getIDocumentSettingAccess () const |
Provides access to the document setting interface. More... | |
const IDocumentDeviceAccess & | getIDocumentDeviceAccess () const |
Provides access to the document device interface. More... | |
const IDocumentMarkAccess * | getIDocumentMarkAccess () const |
Provides access to the document bookmark interface. More... | |
const IDocumentRedlineAccess & | getIDocumentRedlineAccess () const |
Provides access to the document redline interface. More... | |
const IDocumentStylePoolAccess & | getIDocumentStylePoolAccess () const |
Provides access to the document style pool interface. More... | |
const IDocumentDrawModelAccess & | getIDocumentDrawModelAccess () const |
Provides access to the document draw model interface. More... | |
const IDocumentLayoutAccess & | getIDocumentLayoutAccess () const |
Provides access to the document layout interface. More... | |
IDocumentLayoutAccess & | getIDocumentLayoutAccess () |
const IDocumentLinksAdministration & | getIDocumentLinksAdministration () const |
Provides access to the document links administration interface. More... | |
IDocumentLinksAdministration & | getIDocumentLinksAdministration () |
const IDocumentFieldsAccess & | getIDocumentFieldsAccess () const |
Provides access to the document fields administration interface. More... | |
IDocumentFieldsAccess & | getIDocumentFieldsAccess () |
IDocumentContentOperations & | getIDocumentContentOperations () |
Provides access to the document content operations interface. More... | |
IStyleAccess & | getIDocumentStyleAccess () |
Provides access to the document automatic styles interface. More... | |
IDocumentListItems & | getIDocumentListItems () |
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 ... More... | |
const SwPageDesc * | FindPageDesc (SwNodeOffset *pPgDescNdIdx=nullptr) const |
Search PageDesc with which this node is formatted. More... | |
SwFrameFormat * | GetFlyFormat () const |
If node is in a fly return the respective format. More... | |
SwTableBox * | GetTableBox () const |
If node is in a table return the respective table box. More... | |
SwNodeOffset | GetIndex () const |
const SwTextNode * | FindOutlineNodeOfLevel (sal_uInt8 nLvl, SwRootFrame const *pLayout=nullptr) const |
sal_uInt8 | HasPrevNextLayNode () const |
std::vector< SwFrameFormat * > const & | GetAnchoredFlys () const |
void | AddAnchoredFly (SwFrameFormat *) |
void | RemoveAnchoredFly (SwFrameFormat *) |
![]() | |
BorderCacheOwner () | |
BorderCacheOwner (BorderCacheOwner &) | |
BorderCacheOwner & | operator= (const BorderCacheOwner &) |
~BorderCacheOwner () | |
bool | IsInCache () const |
void | InvalidateInSwCache (const sal_uInt16) |
![]() | |
virtual void | CallSwClientNotify (const SfxHint &rHint) const override |
![]() | |
SwModify () | |
virtual | ~SwModify () override |
void | Add (SwClient *pDepend) |
SwClient * | Remove (SwClient *pDepend) |
bool | HasWriterListeners () const |
bool | HasOnlyOneListener () const |
virtual bool | GetInfo (SfxPoolItem &) const override |
void | LockModify () |
void | UnlockModify () |
bool | IsModifyLocked () const |
![]() | |
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 &) |
![]() | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
![]() | |
BroadcasterMixin ()=default | |
BroadcasterMixin (BroadcasterMixin const &)=default | |
BroadcasterMixin & | operator= (const BroadcasterMixin &) |
SvtBroadcaster & | GetNotifier () |
Private Member Functions | |
virtual | ~SwTableNode () override |
SwTableNode (const SwTableNode &rNode)=delete | |
SwTableNode & | operator= (const SwTableNode &rNode)=delete |
Private Attributes | |
std::unique_ptr< SwTable > | m_pTable |
Friends | |
class | SwNodes |
Additional Inherited Members | |
![]() | |
enum | Merge { Merge::None, Merge::First, Merge::NonFirst, Merge::Hidden } |
sw_redlinehide: redline node merge state More... | |
![]() | |
SwStartNode (const SwNodeIndex &rWhere, const SwNodeType nNodeType=SwNodeType::Start, SwStartNodeType=SwNormalStartNode) | |
![]() | |
SwNode (const SwNodeIndex &rWhere, const SwNodeType nNodeId) | |
SwNode (SwNodes &rNodes, SwNodeOffset nPos, const SwNodeType nNodeId) | |
for the initial StartNode More... | |
![]() | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
![]() | |
SwStartNode * | m_pStartOfSection |
|
overrideprivatevirtual |
Definition at line 2341 of file ndtbl.cxx.
References SvtBroadcaster::Broadcast(), DelFrames(), SwTable::GetFrameFormat(), sw::BroadcasterMixin::GetNotifier(), GetTable(), and m_pTable.
SwTableNode::SwTableNode | ( | const SwNodeIndex & | rIdx | ) |
|
privatedelete |
void SwTableNode::DelFrames | ( | SwRootFrame const * | pLayout = nullptr | ) |
Method deletes all views of document for the node.
The content frames are removed from the respective layout.
Definition at line 2437 of file ndtbl.cxx.
References SwTabFrame::Cut(), SwFrame::DestroyFrame(), SwFrame::FindNextCnt(), SwFrame::FindPrevCnt(), SwIterator< TElementType, TSource, eMode >::First(), SwRootFrame::GetCurrShell(), SwFrame::getRootFrame(), SwFrame::GetUpper(), SwFlowFrame::HasFollow(), SwFlowFrame::IsFollow(), SwTabFrame::JoinAndDelFollows(), m_pTable, and SwIterator< TElementType, TSource, eMode >::Next().
Referenced by sw::util::InsertedTablesManager::DelAndMakeTableFrames(), SwNodes::Delete(), SwFEShell::DeleteRow(), SwTable::MakeCopy(), MakeCopy(), SwWrtShell::MakeOutlineContentVisible(), SwXMLTableContext::MakeTable(), SwNodes::MergeTable(), SwNodes::MoveNodes(), SwUndoDelete::RedoImpl(), SwUndoSort::RedoImpl(), SaveTable::RestoreAttr(), SetNewTable(), SwUndoSort::UndoImpl(), UnHideRedlines(), and ~SwTableNode().
|
inline |
Definition at line 506 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(), SwDoc::ChkBoxNumFormat(), SwDoc::ClearBoxNumAttrs(), ConvertTableToText(), SwTable::CopyHeadlineIntoTable(), SwEditShell::CopySelToDoc(), SwTextField::CopyTextField(), SwXParagraphEnumeration::Create(), sw::CreateParentXText(), sw::util::InsertedTablesManager::DelAndMakeTableFrames(), SwExtraRedlineTable::DeleteAllTableRedlines(), SwXTextRange::DeleteAndInsert(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwTable::DeleteSel(), sw::DocumentContentOperationsManager::DelFullPara(), SwStartNode::dumpAsXml(), 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(), 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::InsertTable(), InsertTableImpl(), 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(), 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(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutHTML_SwTableNode(), OutHTML_SwTextNode(), MSWordExportBase::OutputTextNode(), SwFEShell::Paste(), SwTransferable::PrivateDrop(), 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::SetRowNotTracked(), 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(), UnHideRedlines(), SwEditShell::UpdateTable(), sw::DocumentFieldsManager::UpdateTableFields(), SwFEShell::UpdateTableStyleFormatting(), WW8TabDesc::UseSwTable(), SwWriter::Write(), MSWordExportBase::WriteText(), and ~SwTableNode().
SwTableNode * SwTableNode::MakeCopy | ( | SwDoc & | rDoc, |
const SwNodeIndex & | rIdx | ||
) | const |
Definition at line 244 of file ndcopy.cxx.
References SwNodeRange::aEnd, SwNodeIndex::Assign(), SwNodeRange::aStart, CHECK_TABLE, SwNodes::Copy_(), SwFormat::CopyAttrs(), DelFrames(), SwNode::EndOfSectionNode(), SwDoc::GetDfltFrameFormat(), SwNodes::GetEndOfInserts(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), GetName(), SwNode::GetNodes(), SwDoc::GetNodes(), GetTable(), SwDoc::GetTableFrameFormats(), SwDoc::GetUniqueTableName(), SwDDEFieldType::IncRefCnt(), IDocumentFieldsAccess::InsDeletedFieldType(), IDocumentFieldsAccess::InsertFieldType(), SwDoc::IsCopyIsMove(), SwDDEFieldType::IsDeleted(), lcl_CopyTableLine(), SwDoc::MakeTableFrameFormat(), n, SwTable::RegisterToFormat(), SwNodes::SectionDown(), SetNewTable(), SwTable::SetRowsToRepeat(), SwTable::SetTableChgMode(), SwTable::SetTableModel(), SwTable::SetTableNode(), SwTable::SetTableStyleName(), size, SwFrameFormats::size(), SwNode::StartOfSectionIndex(), SwStartNode::SwEndNode, SwTableBoxStartNode, and SwTableNode().
SwTabFrame * SwTableNode::MakeFrame | ( | SwFrame * | pSib | ) |
Definition at line 2350 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 2359 of file ndtbl.cxx.
References SwNode::GetContentNode(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwFrame::GetNext(), SwNodeIndex::GetNode(), SwFrame::getRootFrame(), GetTable(), SwFrame::GetUpper(), SwRootFrame::HasMergedParas(), SwModify::HasWriterListeners(), SwNode::IsCreateFrameWhenHidingRedlines(), SwContentNode::MakeFrame(), and SwFrame::Paste().
void SwTableNode::MakeOwnFrames | ( | SwNodeIndex * | pIdxBehind | ) |
Creates the frms for the table node (i.e. the TabFrames).
Create a TableFrame for every Shell and insert before the corresponding ContentFrame.
Definition at line 2394 of file ndtbl.cxx.
References SwNode::EndOfSectionNode(), SwFrame::FindNextCnt(), SwFrame::FindPrevCnt(), SwNodes::FindPrvNxtFrameNode(), SwRootFrame::GetCurrShell(), SwNode::GetIndex(), SwNode::GetNodes(), SwFrame::getRootFrame(), SwRootFrame::HasMergedParas(), SwNode::IsCreateFrameWhenHidingRedlines(), MakeFrame(), SwTabFrame::Paste(), SwTabFrame::RegistFlys(), and SwNode2Layout::UpperFrame().
Referenced by SwNodes::CopyNodes(), sw::util::InsertedTablesManager::DelAndMakeTableFrames(), SwFEShell::DeleteRow(), SwDoc::InsertTable(), SwTable::MakeCopy(), SwXMLTableContext::MakeTable(), SwNodes::MoveNodes(), SaveTable::RestoreAttr(), SetNewTable(), SwDoc::SplitTable(), SwUndoMergeTable::UndoImpl(), and UnHideRedlines().
|
privatedelete |
void SwTableNode::RemoveRedlines | ( | ) |
Definition at line 2495 of file ndtbl.cxx.
References SwExtraRedlineTable::DeleteAllTableRedlines(), SwNode::GetDoc(), IDocumentRedlineAccess::GetExtraRedlineTable(), SwDoc::getIDocumentRedlineAccess(), and GetTable().
Referenced by SwNodes::RemoveNode().
Definition at line 2482 of file ndtbl.cxx.
References DelFrames(), SwNode::EndOfSectionNode(), SwNode::GetNodes(), SwNodes::GoNext(), m_pTable, and MakeOwnFrames().
Referenced by SwEditShell::InsertDDETable(), SwTable::MakeCopy(), MakeCopy(), SwXMLTableContext::MakeTable(), SwDDETable::NoDDETable(), and SwUndoInsTable::RedoImpl().
|
private |
Definition at line 499 of file node.hxx.
Referenced by DelFrames(), MakeFrame(), SetNewTable(), SwTableNode(), and ~SwTableNode().