LibreOffice Module sw (master)
1
|
#include <node.hxx>
Public Member Functions | |
SwSectionNode (SwNodeIndex const &, 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... | |
![]() | |
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... | |
sal_uLong | StartOfSectionIndex () const |
const SwStartNode * | StartOfSectionNode () const |
SwStartNode * | StartOfSectionNode () |
sal_uLong | 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 (size_t *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... | |
sal_uLong | 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) |
Protected Member Functions | |
virtual | ~SwSectionNode () override |
![]() | |
SwStartNode (const SwNodeIndex &rWhere, const SwNodeType nNodeType=SwNodeType::Start, SwStartNodeType=SwNormalStartNode) | |
![]() | |
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 | |
SwSectionNode & | operator= (const SwSectionNode &)=delete |
Private Attributes | |
std::unique_ptr< SwSection > const | m_pSection |
Friends | |
class | SwNodes |
Additional Inherited Members | |
![]() | |
enum | Merge { Merge::None, Merge::First, Merge::NonFirst, Merge::Hidden } |
sw_redlinehide: redline node merge state More... | |
![]() | |
SwStartNode * | m_pStartOfSection |
|
privatedelete |
Referenced by MakeCopy().
|
overrideprotectedvirtual |
Definition at line 1024 of file ndsect.cxx.
References SwModify::LockModify(), m_pSection, RES_CNTNT(), SwFormat::ResetFormatAttr(), and SwModify::UnlockModify().
SwSectionNode::SwSectionNode | ( | SwNodeIndex const & | rIdx, |
SwSectionFormat & | rFormat, | ||
SwTOXBase const *const | pTOXBase | ||
) |
Definition at line 1009 of file ndsect.cxx.
References Content, SwModify::LockModify(), SwFormat::SetFormatAttr(), and SwModify::UnlockModify().
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 1183 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().
|
inline |
Definition at line 545 of file node.hxx.
Referenced by SwNodes::CopyNodes(), RtfExport::ExportDocument_Impl(), SwNode::FindPageDesc(), SwNodes::FindPrvNxtFrameNode(), SwUpdFootnoteEndNtAtEnd::FindSectNdWithEndAttr(), SwCursorShell::FindValidContentNode(), SwDoc::GetCurrSection(), SwDoc::GetCurTOX(), SwSectionFormat::GetGlobalDocSection(), SwUpdFootnoteEndNtAtEnd::GetNumber(), SwXRedline::getPropertyValue(), SwXCell::getPropertyValue(), SwXTextTable::getPropertyValue(), MSWordExportBase::GetSectionFormat(), 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(), NodesArrChgd(), OutHTML_Section(), DocxExport::OutputEndNode(), MSWordExportBase::OutputSectionNode(), MSWordExportBase::OutputTextNode(), SwUndoDelSection::RedoImpl(), SetGetExpField::SetGetExpField(), SwEditShell::SetSectionAttr(), SwCursorShell::SetVisibleCursor(), SwDoc::SplitDoc(), SwNodes::TableToText(), SwUndoInsSection::UndoImpl(), SwUndoDelSection::UndoImpl(), SwTOXBaseSection::Update(), SwCursorShell::UpdateCursor(), MSWordExportBase::UpdateTocSectionNodeProperties(), 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 1296 of file ndsect.cxx.
References SwNode::EndOfSectionIndex(), GetSection(), SwSection::IsHiddenFlag(), and m_pSection.
Referenced by MakeFramesForAdjacentContentNode(), and SwNodes::TableToText().
SwSectionNode * SwSectionNode::MakeCopy | ( | SwDoc & | rDoc, |
const SwNodeIndex & | rIdx | ||
) | const |
Definition at line 1220 of file ndsect.cxx.
References Connect, SwNodes::Copy_(), SwFormat::CopyAttrs(), SwSection::CreateLink(), DelFrames(), SwNode::EndOfSectionNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwNodes::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentLinksAdministration(), SwDoc::GetIDocumentUndoRedo(), IDocumentLinksAdministration::GetLinkManager(), SwNode::GetNodes(), SwSection::GetObject(), GetSection(), SwDoc::GetUniqueSectionName(), sfx2::LinkManager::InsertServer(), SwDoc::IsCopyIsMove(), SwSection::IsEditInReadonly(), SwSection::IsEditInReadonlyFlag(), SwSection::IsHidden(), SwSection::IsHiddenFlag(), SwSection::IsLinkType(), SwSection::IsProtect(), SwSection::IsProtectFlag(), IDocumentUndoRedo::IsUndoNodes(), m_pSection, SwDoc::MakeSectionFormat(), NONE, sfx2::Metadatable::RegisterAsCopyOf(), 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 1048 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(), SwNodeIndex::GetNode(), SwNode::GetNodes(), SwFrame::getRootFrame(), GetSection(), SwNodes::GoNextSection(), SwNodes::GoPrevSection(), Init(), SwViewShell::InvalidateAccessibleParaFlowRelation(), IsContentHidden(), SwNode::IsCreateFrameWhenHidingRedlines(), SwNodes::IsDocNodes(), SwSection::IsHidden(), SwFrame::IsLayoutFrame(), SwFrame::IsTextFrame(), SwLayoutFrame::Lower(), SwContentNode::MakeFrame(), SwContentNode::MakeFramesForAdjacentContentNode(), SwFrame::Paste(), and pS.
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 1163 of file ndsect.cxx.
References SwNode::EndOfSectionNode(), SwNodes::GetDoc(), 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 1322 of file ndsect.cxx.
References Connect, Content, SwNode::EndOfSectionIndex(), SwNode::FindSectionNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::GetDfltFrameFormat(), SwFormat::GetDoc(), SwNode::GetDoc(), SwSection::GetFormat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentLinksAdministration(), SwNode::GetIndex(), IDocumentLinksAdministration::GetLinkManager(), SwNode::GetNodes(), GetSection(), sfx2::LinkManager::InsertServer(), SwNodes::IsDocNodes(), SwModify::LockModify(), m_pSection, n, NONE, sfx2::LinkManager::Remove(), SwFormat::RemoveAllUnos(), sfx2::LinkManager::RemoveServer(), SwFormat::SetDerivedFrom(), SwFormat::SetFormatAttr(), SwNode::StartOfSectionNode(), and SwModify::UnlockModify().
|
privatedelete |
|
private |
Definition at line 536 of file node.hxx.
Referenced by DelFrames(), IsContentHidden(), MakeCopy(), MakeFrame(), MakeOwnFrames(), NodesArrChgd(), and ~SwSectionNode().