LibreOffice Module sw (master) 1
|
A section node represents the start of a section on the UI, i.e. More...
#include <node.hxx>
Public Member Functions | |
SwSectionNode (const SwNode &rWhere, SwSectionFormat &rFormat, SwTOXBase const *const pTOXBase) | |
const SwSection & | GetSection () const |
SwSection & | GetSection () |
SwFrame * | MakeFrame (SwFrame *) |
void | MakeOwnFrames (SwNodeIndex *pIdxBehind, SwNodeIndex *pEnd=nullptr) |
Creates the frms for the SectionNode (i.e. More... | |
void | DelFrames (SwRootFrame const *pLayout=nullptr, bool bForce=false) |
Method deletes all views of document for the node. More... | |
void | MakeFramesForAdjacentContentNode (const SwNodeIndex &rIdx) |
Method creates all views of document for the previous node. More... | |
SwSectionNode * | MakeCopy (SwDoc &, const SwNodeIndex &) const |
void | NodesArrChgd () |
Set pointer in format of section on itself. More... | |
bool | IsContentHidden () const |
Check for not hidden areas whether there is content that is not in a hidden sub-area. More... | |
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 | |
SwSectionNode (const SwSectionNode &)=delete | |
SwSectionNode & | operator= (const SwSectionNode &)=delete |
virtual | ~SwSectionNode () override |
Private Attributes | |
std::unique_ptr< SwSection > const | m_pSection |
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 |
A section node represents the start of a section on the UI, i.e.
the container created using Insert -> Section menu item.
|
privatedelete |
Referenced by MakeCopy().
|
overrideprivatevirtual |
Definition at line 1009 of file ndsect.cxx.
References m_pSection, RES_CNTNT(), and SwFormat::ResetFormatAttr().
SwSectionNode::SwSectionNode | ( | const SwNode & | rWhere, |
SwSectionFormat & | rFormat, | ||
SwTOXBase const *const | pTOXBase | ||
) |
Definition at line 994 of file ndsect.cxx.
References Content, GetName(), and SwFormat::SetFormatAttr().
void SwSectionNode::DelFrames | ( | SwRootFrame const * | pLayout = nullptr , |
bool | bForce = false |
||
) |
Method deletes all views of document for the node.
The content frames are removed from the respective layout.
Definition at line 1175 of file ndsect.cxx.
References CheckNodesRange(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetNodes(), SwNodes::GoNextSection(), SwNodes::GoPrevSection(), lcl_IsInSameTableBox(), and m_pSection.
Referenced by MakeCopy(), and SwNodes::MoveNodes().
|
overridevirtual |
Dumps the node structure to the given destination (file nodes.xml in the current directory by default)
Reimplemented from SwStartNode.
Definition at line 1315 of file ndsect.cxx.
References SwNode::GetIndex(), SwNode::GetNodeType(), and m_pSection.
|
inline |
Definition at line 590 of file node.hxx.
Referenced by SwNodes::CopyNodes(), SwTextShell::ExecIdx(), SwEnhancedPDFExportHelper::ExportAuthorityEntryLinks(), RtfExport::ExportDocument_Impl(), SwNode::FindPageDesc(), SwNodes::FindPrvNxtFrameNode(), SwUpdFootnoteEndNtAtEnd::FindSectNdWithEndAttr(), SwCursorShell::FindValidContentNode(), SwDoc::GetCurrSection(), SwDoc::GetCurTOX(), SwSectionFormat::GetGlobalDocSection(), SwTextShell::GetIdxState(), GetNode(), SwUpdFootnoteEndNtAtEnd::GetNumber(), SwXRedline::getPropertyValue(), SwXCell::getPropertyValue(), SwXTextTable::getPropertyValue(), MSWordExportBase::GetSectionFormat(), GetTOX(), SwDoc::GetUniqueSectionName(), SwDoc::GetUniqueTOXBaseName(), SwFormatFootnote::GetViewNumStr(), SwAutoFormat::GoNextPara(), SwNodes::GoNextSection(), SwNodes::GoPrevSection(), GotoCurrRegionAndSkip(), GotoNextRegion(), GotoPrevRegion(), SwXTextCursor::gotoStart(), SwPaM::HasReadonlySel(), InsertCnt_(), SwDoc::InsertSwSection(), SwDoc::InsertTableOf(), SwNodes::InsertTextSection(), SwCursor::IsAtValidPos(), IsContentHidden(), SwTextNode::IsHidden(), SwOLENode::IsInGlobalDocSection(), SwNode::IsInProtectSect(), SwWrtShell::IsOutlineContentVisible(), SwCursor::IsSelOvr(), SwTOXBase::IsTOXBaseInReadonly(), lcl_BreakSectionLinksInSect(), lcl_CheckHiddenSection(), lcl_html_IsMultiColStart(), lcl_initParent(), lcl_IsAtTextEnd(), lcl_IsInSameTableBox(), SwSection::MakeChildLinksVisible(), MakeCopy(), SwDocUpdateField::MakeFieldList_(), MakeFramesForAdjacentContentNode(), SwNodes::MakeTextNode(), MSWordSections::MSWordSections(), NodesArrChgd(), SwHTMLWriter::Out_SwDoc(), OutHTML_Section(), DocxExport::OutputEndNode(), MSWordExportBase::OutputSectionNode(), MSWordExportBase::OutputTextNode(), SwUndoDelSection::RedoImpl(), SwNodes::RemoveNode(), SetGetExpField::SetGetExpField(), SwEditShell::SetSectionAttr(), SwCursorShell::SetVisibleCursor(), SwDoc::SplitDoc(), SwNodes::TableToText(), SwUndoUpdateIndex::TitleSectionInserted(), SwUndoInsSection::UndoImpl(), SwUndoDelSection::UndoImpl(), UnHideRedlinesExtras(), SwTOXBaseSection::Update(), SwCursorShell::UpdateCursor(), MSWordExportBase::UpdateTocSectionNodeProperties(), SwHTMLWriter::WriteStream(), MSWordExportBase::WriteText(), and SwSectionFormat::~SwSectionFormat().
bool SwSectionNode::IsContentHidden | ( | ) | const |
Check for not hidden areas whether there is content that is not in a hidden sub-area.
Definition at line 1289 of file ndsect.cxx.
References SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwNodeIndex::GetNode(), GetSection(), SwNode::IsContentNode(), SwNode::IsEndNode(), SwSection::IsHiddenFlag(), SwNode::IsSectionNode(), SwNode::IsTableNode(), and m_pSection.
Referenced by MakeFramesForAdjacentContentNode(), and SwNodes::TableToText().
SwSectionNode * SwSectionNode::MakeCopy | ( | SwDoc & | rDoc, |
const SwNodeIndex & | rIdx | ||
) | const |
Definition at line 1212 of file ndsect.cxx.
References Connect, SwNodes::Copy_(), SwFormat::CopyAttrs(), SwSection::CreateLink(), DelFrames(), SwNode::EndOfSectionNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwNodes::GetDoc(), GetFormat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentLinksAdministration(), SwDoc::GetIDocumentUndoRedo(), IDocumentLinksAdministration::GetLinkManager(), SwNodeIndex::GetNode(), SwNode::GetNodes(), SwSection::GetObject(), GetSection(), SwDoc::GetUniqueSectionName(), sfx2::LinkManager::InsertServer(), SwDoc::IsCopyIsMove(), SwSection::IsEditInReadonlyFlag(), IsHidden(), SwSection::IsHiddenFlag(), SwSection::IsLinkType(), SwNode::IsProtect(), SwSection::IsProtectFlag(), m_pSection, SwDoc::MakeSectionFormat(), NONE, SwSection::SetCondHidden(), SwSection::SetCondition(), SwSection::SetEditInReadonly(), SwSection::SetHidden(), SwSection::SetLinkFileName(), SwSection::SetProtect(), SwSection::SetRefObject(), SwSection::SetSectionName(), SwSection::SetType(), SwStartNode::SwEndNode, SwSectionNode(), and ToxContent.
void SwSectionNode::MakeFramesForAdjacentContentNode | ( | const SwNodeIndex & | rIdx | ) |
Method creates all views of document for the previous node.
The content frames created are put into the respective layout.
Definition at line 1033 of file ndsect.cxx.
References SwNode::EndOfSectionNode(), SwFrame::FindNextCnt(), SwFrame::FindPrevCnt(), SwNode::FindSectionNode(), SwNode::FindTableNode(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwRootFrame::GetCurrShell(), SwNodes::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwViewShell::GetLayout(), SwFrame::GetNext(), SwNodeIndex::GetNode(), SwNode::GetNodes(), SwFrame::getRootFrame(), GetSection(), SwFrame::GetUpper(), SwNodes::GoNextSection(), SwNodes::GoPrevSection(), SwRootFrame::HasMergedParas(), Init(), SwViewShell::InvalidateAccessibleParaFlowRelation(), SwRootFrame::IsAnyShellAccessible(), IsContentHidden(), SwNode::IsCreateFrameWhenHidingRedlines(), SwNodes::IsDocNodes(), SwFrame::IsLayoutFrame(), SwFrame::IsSctFrame(), SwFrame::IsTextFrame(), SwLayoutFrame::Lower(), SwContentNode::MakeFrame(), SwContentNode::MakeFramesForAdjacentContentNode(), SwNode2Layout::NextFrame(), SwFrame::Paste(), and pS.
Referenced by SwNodes::ChgNode(), and SwNodes::TableToText().
void SwSectionNode::MakeOwnFrames | ( | SwNodeIndex * | pIdxBehind, |
SwNodeIndex * | pEnd = nullptr |
||
) |
Creates the frms for the SectionNode (i.e.
the SectionFrames). On default the frames are created until the end of the range. When another NodeIndex pEnd is passed a MakeFrames is called up to it. Used by TableToText.
Definition at line 1156 of file ndsect.cxx.
References SwNode::EndOfSectionNode(), SwNodes::GetDoc(), SwNodeIndex::GetNode(), GetNode(), SwNode::GetNodes(), SwNodes::IsDocNodes(), m_pSection, and MakeFrames().
Referenced by SwNodes::CopyNodes(), SwNodes::InsertTextSection(), SwSectionFormat::MakeFrames(), SwNodes::MoveNodes(), and SwNodes::TableToText().
void SwSectionNode::NodesArrChgd | ( | ) |
Set pointer in format of section on itself.
Definition at line 1333 of file ndsect.cxx.
References Connect, Content, SwNode::EndOfSectionIndex(), SwNode::FindSectionNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::GetDfltFrameFormat(), SwNode::GetDoc(), SwFormat::GetDoc(), SwSection::GetFormat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentLinksAdministration(), SwNode::GetIndex(), IDocumentLinksAdministration::GetLinkManager(), SwNode::GetNodes(), GetSection(), sfx2::LinkManager::InsertServer(), SwNodes::IsDocNodes(), m_pSection, n, NONE, sfx2::LinkManager::Remove(), SwFormat::RemoveAllUnos(), sfx2::LinkManager::RemoveServer(), SwFormat::SetDerivedFrom(), SwFormat::SetFormatAttr(), and SwNode::StartOfSectionNode().
Referenced by SwNodes::MoveNodes().
|
privatedelete |
|
private |
Definition at line 582 of file node.hxx.
Referenced by DelFrames(), dumpAsXml(), IsContentHidden(), MakeCopy(), MakeFrame(), MakeOwnFrames(), NodesArrChgd(), and ~SwSectionNode().