LibreOffice Module sw (master) 1
|
#include <node.hxx>
Public Member Functions | |
SwTableNode (const SwNode &) | |
const SwTable & | GetTable () const |
SwTable & | GetTable () |
SwTabFrame * | MakeFrame (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... | |
SwTableNode * | MakeCopy (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 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 ... including anchor in case of frames or footnotes)? 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 *) |
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::AccessibilityCheckStatus & | getAccessibilityCheckStatus () |
void | resetAndQueueAccessibilityCheck () |
Public Member Functions inherited from sw::BorderCacheOwner | |
BorderCacheOwner () | |
BorderCacheOwner (BorderCacheOwner &) | |
BorderCacheOwner & | operator= (const BorderCacheOwner &) |
~BorderCacheOwner () | |
bool | IsInCache () const |
void | InvalidateInSwCache (const sal_uInt16) |
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 | |
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 | |
SwStartNode * | m_pStartOfSection |
|
overrideprivatevirtual |
Definition at line 2358 of file ndtbl.cxx.
References DelFrames(), SwTable::GetFrameFormat(), GetTable(), and m_pTable.
SwTableNode::SwTableNode | ( | const SwNode & | rWhere | ) |
|
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 2461 of file ndtbl.cxx.
References SwTabFrame::Cut(), SwFrame::DestroyFrame(), SwFrame::FindNextCnt(), SwFrame::FindPrevCnt(), SwIterator< TElementType, TSource, eMode >::First(), SwRootFrame::GetCurrShell(), SwNode::GetDoc(), SwViewShell::GetLayout(), SwFrame::getRootFrame(), SwFrame::GetUpper(), SwViewShell::InvalidateAccessibleParaFlowRelation(), SwRootFrame::IsAnyShellAccessible(), SwTabFrame::JoinAndDelFollows(), m_pTable, and SwIterator< TElementType, TSource, eMode >::Next().
Referenced by sw::util::InsertedTablesManager::DelAndMakeTableFrames(), SwNodes::Delete(), SwFEShell::DeleteRow(), SwDoc::DelTable(), SwNodes::InsertTextSection(), MakeCopy(), SwTable::MakeCopy(), SwWrtShell::MakeOutlineContentVisible(), SwXMLTableContext::MakeTable(), SwNodes::MergeTable(), SwNodes::MoveNodes(), SwUndoDelete::RedoImpl(), SwUndoSort::RedoImpl(), SaveTable::RestoreAttr(), SetNewTable(), SwDoc::SortTable(), SwNodes::TableToText(), SwUndoSort::UndoImpl(), SwUndoInsTable::UndoImpl(), SwUndoTextToTable::UndoImpl(), UnHideRedlines(), and ~SwTableNode().
|
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.
|
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().
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(), SwFormat::GetName(), GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwNode::GetNodes(), GetTable(), SwDoc::GetTableFrameFormats(), SwDoc::GetUniqueTableName(), SwDDEFieldType::IncRefCnt(), IDocumentFieldsAccess::InsDeletedFieldType(), IDocumentFieldsAccess::InsertFieldType(), SwDoc::IsCopyIsMove(), SwDDEFieldType::IsDeleted(), SwDoc::IsUsed(), lcl_CopyTableLine(), SwDoc::MakeTableFrameFormat(), n, SwTable::RegisterToFormat(), SwNodes::SectionDown(), SetNewTable(), SwTable::SetRowsToRepeat(), SwTable::SetTableChgMode(), SwTable::SetTableModel(), SwTable::SetTableNode(), SwTable::SetTableStyleName(), size, sw::FrameFormats< value_type >::size(), SwNode::StartOfSectionIndex(), SwStartNode::SwEndNode, SwTableBoxStartNode, and SwTableNode().
SwTabFrame * SwTableNode::MakeFrame | ( | SwFrame * | pSib | ) |
Definition at line 2367 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 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().
void SwTableNode::MakeOwnFrames | ( | SwPosition * | pIdxBehind = nullptr | ) |
Creates the frms for the table node (i.e.
Create a TableFrame for every Shell and insert before the corresponding ContentFrame.
the TabFrames). pIdxBehind is optional parameter.
Definition at line 2414 of file ndtbl.cxx.
References SwPosition::Assign(), SwNode::EndOfSectionNode(), SwFrame::FindNextCnt(), SwFrame::FindPrevCnt(), SwNodes::FindPrvNxtFrameNode(), SwRootFrame::GetCurrShell(), SwNode::GetIndex(), SwViewShell::GetLayout(), SwNode::GetNodes(), SwFrame::getRootFrame(), SwRootFrame::HasMergedParas(), SwViewShell::InvalidateAccessibleParaFlowRelation(), SwRootFrame::IsAnyShellAccessible(), 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 2518 of file ndtbl.cxx.
References SwExtraRedlineTable::DeleteAllTableRedlines(), SwNode::GetDoc(), IDocumentRedlineAccess::GetExtraRedlineTable(), SwDoc::getIDocumentRedlineAccess(), and GetTable().
Referenced by SwNodes::RemoveNode().
void SwTableNode::SetNewTable | ( | std::unique_ptr< SwTable > | pNewTable, |
bool | bNewFrames = true |
||
) |
Definition at line 2507 of file ndtbl.cxx.
References DelFrames(), m_pTable, and MakeOwnFrames().
Referenced by SwEditShell::InsertDDETable(), MakeCopy(), SwTable::MakeCopy(), SwXMLTableContext::MakeTable(), SwDDETable::NoDDETable(), SwUndoInsTable::RedoImpl(), and SwUndoTableToText::UndoImpl().
|
private |
Definition at line 535 of file node.hxx.
Referenced by DelFrames(), dumpAsXml(), MakeFrame(), SetNewTable(), SwTableNode(), SwNodes::TableToText(), and ~SwTableNode().