29 : msListId( sListId ),
30 msDefaultListStyleName( rDefaultListStyle.
GetName() ),
40 std::make_unique<SwNodeNum>( &rDefaultListStyle ),
41 std::make_unique<SwNodeNum>( &rDefaultListStyle ),
42 std::make_unique<SwPaM>( *(aPam.Start()), *(aPam.End()) ));
49 pNode = rNodes[nIndex];
68 if (rNumberTree.pRoot->GetChildCount() != 0)
77 const int nLevel,
const SwDoc& rDoc)
80 const SwNodes* pNodesOfNodeNum = &(aPosOfNodeNum.nNode.GetNode().GetNodes());
84 const SwPosition* pStart = rNumberTree.pSection->Start();
85 const SwPosition* pEnd = rNumberTree.pSection->End();
88 if ( pRangeNodes == pNodesOfNodeNum &&
89 *pStart <= aPosOfNodeNum && aPosOfNodeNum <= *pEnd)
91 auto const& pRoot(isHiddenRedlines
92 ? rNumberTree.pRootRLHidden
94 pRoot->AddChild(&rNodeNum, nLevel, rDoc);
109 rNumberTree.pRoot->InvalidateTree();
110 rNumberTree.pRootRLHidden->InvalidateTree();
118 rNumberTree.pRoot->NotifyInvalidChildren(rDoc);
119 rNumberTree.pRootRLHidden->NotifyInvalidChildren(rDoc);
163 rNumberTree.pRoot->NotifyNodesOnListLevel( nLevel );
164 rNumberTree.pRootRLHidden->NotifyNodesOnListLevel( nLevel );
const SwEndNode * EndOfSectionNode() const
static void HandleNumberTreeRootNodeDelete(SwNodeNum &rNodeNum)
Marks a position in the document model.
OUString msDefaultListStyleName
SwList(const OUString &sListId, SwNumRule &rDefaultListStyle, const SwNodes &rNodes)
SwPosition GetPosition() const
void RemoveMe(const SwDoc &rDoc)
Remove this child from the tree.
constexpr sal_uInt8 MAXLEVEL
~SwList() COVERITY_NOEXCEPT_FALSE
void NotifyItemsOnListLevel(const int nLevel)
void SetDefaultListStyleName(OUString const &)
void MarkListLevel(const int nListLevel, const bool bValue)
virtual OUString GetName() const override
std::vector< tListTreeForRange > maListTrees
SwNode & GetEndOfContent() const
Regular ContentSection (i.e. the BodyText).
PaM is Point and Mark: a selection of the document model.
bool IsListLevelMarked(const int nListLevel) const
void InvalidateListTree()
SwNodeOffset GetIndex() const
void ValidateListTree(const SwDoc &rDoc)
SwNodes & GetNodes()
Node is in which nodes-array/doc?
void InsertListItem(SwNodeNum &rNodeNum, bool isHiddenRedlines, const int nLevel, const SwDoc &rDoc)
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
static void RemoveListItem(SwNodeNum &rNodeNum, const SwDoc &rDoc)
Base class of the Writer document model elements.