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

#include <node.hxx>

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

Public Member Functions

 SwSectionNode (SwNodeIndex const &, SwSectionFormat &rFormat, SwTOXBase const *const pTOXBase)
 
const SwSectionGetSection () const
 
SwSectionGetSection ()
 
SwFrameMakeFrame (SwFrame *)
 
void MakeOwnFrames (SwNodeIndex *pIdxBehind, SwNodeIndex *pEnd=nullptr)
 Creates the frms for the SectionNode (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 document for the previous node. More...
 
SwSectionNodeMakeCopy (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...
 
- 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 *)
 

Protected Member Functions

virtual ~SwSectionNode () 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...
 

Private Member Functions

 SwSectionNode (const SwSectionNode &)=delete
 
SwSectionNodeoperator= (const SwSectionNode &)=delete
 

Private Attributes

std::unique_ptr< SwSection > const m_pSection
 

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 523 of file node.hxx.

Constructor & Destructor Documentation

SwSectionNode::SwSectionNode ( const SwSectionNode )
privatedelete

Referenced by MakeCopy().

SwSectionNode::~SwSectionNode ( )
overrideprotectedvirtual
SwSectionNode::SwSectionNode ( SwNodeIndex const &  rIdx,
SwSectionFormat rFormat,
SwTOXBase const *const  pTOXBase 
)

Member Function Documentation

void SwSectionNode::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 1160 of file ndsect.cxx.

References CheckNodesRange(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwNode::GetIndex(), SwNode::GetNodes(), SwNodes::GoNextSection(), SwNodes::GoPrevSection(), lcl_IsInSameTableBox(), and m_pSection.

Referenced by MakeCopy(), and SwNodes::MoveNodes().

const SwSection& SwSectionNode::GetSection ( ) const
inline

Definition at line 541 of file node.hxx.

Referenced by SwCompareLine::CompareNode(), SwNodes::CopyNodes(), SwIntrnlSectRefLink::DataChanged(), RtfExport::ExportDocument_Impl(), SwNode::FindPageDesc(), SwNodes::FindPrvNxtFrameNode(), SwUpdFootnoteEndNtAtEnd::FindSectNdWithEndAttr(), SwCursorShell::FindValidContentNode(), SwDoc::GetCurrSection(), SwDoc::GetCurTOX(), SwCompareLine::GetEndNode(), SwSectionFormat::GetGlobalDocSection(), SwUpdFootnoteEndNtAtEnd::GetNumber(), SwXRedline::getPropertyValue(), SwXCell::getPropertyValue(), SwXTextTable::getPropertyValue(), MSWordExportBase::GetSectionFormat(), SwCompareLine::GetText(), SwDoc::GetUniqueSectionName(), SwDoc::GetUniqueTOXBaseName(), SwFormatFootnote::GetViewNumStr(), SwAutoFormat::GoNextPara(), SwNodes::GoNextSection(), SwNodes::GoPrevSection(), GotoCurrRegionAndSkip(), SwXTextCursor::gotoStart(), SwPaM::HasReadonlySel(), InsertCnt_(), SwDoc::InsertSwSection(), SwDoc::InsertTableOf(), SwNodes::InsertTextSection(), SwCursor::IsAtValidPos(), IsContentHidden(), SwTextNode::IsHidden(), SwOLENode::IsInGlobalDocSection(), SwNode::IsInProtectSect(), 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(), CompareData::NextIdx(), NodesArrChgd(), OutHTML_Section(), DocxExport::OutputEndNode(), MSWordExportBase::OutputSectionNode(), MSWordExportBase::OutputTextNode(), CompareData::PrevIdx(), SwUndoDelSection::RedoImpl(), SetGetExpField::SetGetExpField(), SwEditShell::SetSectionAttr(), SwCursorShell::SetVisibleCursor(), SwDoc::SplitDoc(), SwNodes::TableToText(), SwUndoInsSection::UndoImpl(), SwUndoDelSection::UndoImpl(), SwUndoUpdateSection::UndoImpl(), SwTOXBaseSection::Update(), SwCursorShell::UpdateCursor(), MSWordExportBase::UpdateTocSectionNodeProperties(), MSWordExportBase::WriteText(), and SwSectionFormat::~SwSectionFormat().

SwSection& SwSectionNode::GetSection ( )
inline

Definition at line 542 of file node.hxx.

bool SwSectionNode::IsContentHidden ( ) const

Check for not hidden areas whether there is content that is not in a hidden sub-area.

Definition at line 1272 of file ndsect.cxx.

References SwNode::EndOfSectionIndex(), GetSection(), SwSection::IsHiddenFlag(), and m_pSection.

Referenced by MakeFramesForAdjacentContentNode(), and SwNodes::TableToText().

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

Definition at line 1017 of file ndsect.cxx.

References m_pSection.

Referenced by InsertCnt_().

void SwSectionNode::MakeFramesForAdjacentContentNode ( const SwNodeIndex rIdx)
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 1140 of file ndsect.cxx.

References SwNode::EndOfSectionNode(), SwNodes::GetDoc(), SwNode::GetNodes(), SwNodes::IsDocNodes(), m_pSection, MakeFrames(), and SwNodes::SwNodeIndex.

Referenced by SwNodes::CopyNodes(), SwNodes::InsertTextSection(), SwSectionFormat::MakeFrames(), SwNodes::MoveNodes(), and SwNodes::TableToText().

void SwSectionNode::NodesArrChgd ( )
SwSectionNode& SwSectionNode::operator= ( const SwSectionNode )
privatedelete

Friends And Related Function Documentation

friend class SwNodes
friend

Definition at line 526 of file node.hxx.

Member Data Documentation

std::unique_ptr<SwSection> const SwSectionNode::m_pSection
private

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