141 void RemoveMe(
const SwDoc& rDoc);
186 virtual bool IsCounted()
const;
212 bool IsFirst()
const;
226 void SetLevelInListTree(
const int nLevel,
const SwDoc& rDoc);
236 int GetLevelInListTree()
const;
259 void InvalidateTree()
const;
265 void NotifyInvalidChildren(
const SwDoc& rDoc);
282 void NotifyInvalidSiblings(
const SwDoc& rDoc);
285 void NotifyNodesOnListLevel(
const int nListLevel);
297 GetRoot()->InvalidateTree();
298 GetRoot()->Notify(rDoc);
328 void IsSane(
bool bRecursive)
const;
336 tSwNumberTreeChildren::size_type GetChildCount()
const;
376 void IsSane(
bool bRecursive, std::vector<const SwNumberTreeNode*> rParents)
const;
444 void SetLastValid(
const tSwNumberTreeChildren::const_iterator& aItLastValid,
445 bool bValidating =
false)
const;
469 void NotifyChildrenOnDepth(
const int nDepth);
490 bool IsValid()
const;
539 bool HasOnlyPhantoms()
const;
541 bool HasPhantomCountedParent()
const;
558 void ClearObsoletePhantoms();
560 tSwNumberTreeChildren::const_iterator GetIterator(
const SwNumberTreeNode* pChild)
const;
bool SwNumberTreeNodeLessThan(const SwNumberTreeNode *pA, const SwNumberTreeNode *pB)
A tree of numbered nodes.
bool IsPhantom() const
Return if this node is a phantom.
virtual bool IsNotifiable(const SwDoc &rDoc) const =0
Return if this node is notifiable.
virtual bool HasCountedChildren() const =0
virtual void PostRemove()=0
SwNumberTreeNode * mpParent
he parent node
virtual bool IsContinuous() const =0
Return if this node is counted continuous.
virtual bool IsNotificationEnabled(const SwDoc &rDoc) const =0
Return if the notification is not disabled on global conditions.
SwNumberTree::tSwNumTreeNumber mnNumber
the number of the node
void InvalidateChildren()
Invalidation of all children.
bool mbContinueingPreviousSubTree
SwNumberTreeNode(const SwNumberTreeNode &)
tSwNumberTreeChildren::const_iterator mItLastValid
Iterator to the last valid element.
tSwNumberTreeChildren mChildren
the children
virtual bool IsCountedForNumbering() const =0
bool IsContinueingPreviousSubTree() const
virtual bool IsRestart() const =0
Return if numbering is restarted at this node.
void IsSane(bool bRecursive, std::vector< const SwNumberTreeNode * > rParents) const
Sanity check with loop detection.
virtual SwNumberTree::tSwNumTreeNumber GetStartValue() const =0
Return start value.
virtual bool IsCountPhantoms() const =0
Return if phantoms are counted.
std::set< SwNumberTreeNode *, compSwNumberTreeNodeLessThan > tSwNumberTreeChildren
virtual void NotifyNode()=0
Notifies the node.
bool mbPhantom
true this node is a phantom false this node is NOT a phantom
SwNumberTreeNode & operator=(const SwNumberTreeNode &)
SwNumberTreeNode * GetParent() const
Returns the parent of this node.
virtual SwNumberTreeNode * Create() const =0
Creates a new node of the same class.
void InvalidateAndNotifyTree(const SwDoc &rDoc)
Invalidation and notification of complete numbering tree.
RegionData_Impl * mpParent
tools::Long tSwNumTreeNumber
std::vector< tSwNumTreeNumber > tNumberVector
bool operator()(const SwNumberTreeNode *pA, const SwNumberTreeNode *pB) const