LibreOffice Module sw (master) 1
|
A tree of numbered nodes. More...
#include <SwNumberTree.hxx>
Public Member Functions | |
SwNumberTreeNode () | |
virtual | ~SwNumberTreeNode () |
void | AddChild (SwNumberTreeNode *pChild, const int nDepth, const SwDoc &rDoc) |
Add a child. More... | |
void | RemoveChild (SwNumberTreeNode *pChild, const SwDoc &rDoc) |
Remove a child. More... | |
void | RemoveMe (const SwDoc &rDoc) |
Remove this child from the tree. More... | |
SwNumberTreeNode * | GetParent () const |
Returns the parent of this node. More... | |
SwNumberTree::tSwNumTreeNumber | GetNumber (bool bValidate=true) const |
Returns number of this node. More... | |
bool | IsContinueingPreviousSubTree () const |
SwNumberTree::tNumberVector | GetNumberVector () const |
Returns level numbers of this node. More... | |
virtual bool | IsRestart () const =0 |
Return if numbering is restarted at this node. More... | |
virtual SwNumberTree::tSwNumTreeNumber | GetStartValue () const =0 |
Return start value. More... | |
virtual bool | IsCounted () const |
Return if this node is counted. More... | |
virtual bool | IsContinuous () const =0 |
Return if this node is counted continuous. More... | |
bool | IsFirst (const SwNumberTreeNode *pNode) const |
Return if a node is first non-phantom child of this node. More... | |
bool | IsFirst () const |
Return if this node if the first non-phantom node in the tree. More... | |
bool | IsPhantom () const |
Return if this node is a phantom. More... | |
void | SetLevelInListTree (const int nLevel, const SwDoc &rDoc) |
set level of this node More... | |
int | GetLevelInListTree () const |
Return level of this node. More... | |
virtual bool | LessThan (const SwNumberTreeNode &rTreeNode) const |
Returns if this node is less than another node. More... | |
void | InvalidateTree () const |
Invalidate this node and all its descendants. More... | |
void | NotifyInvalidChildren (const SwDoc &rDoc) |
Notifies all invalid children of this node. More... | |
void | InvalidateMe () |
Notifies the node. More... | |
void | ValidateMe () |
Validates this node. More... | |
void | NotifyInvalidSiblings (const SwDoc &rDoc) |
Notifies all invalid siblings of this node. More... | |
void | NotifyNodesOnListLevel (const int nListLevel) |
notification of all nodes in the list tree on certain list level More... | |
void | InvalidateAndNotifyTree (const SwDoc &rDoc) |
Invalidation and notification of complete numbering tree. More... | |
SwNumberTreeNode * | GetPred (bool bSibling=false) const |
Returns the greatest descendant of the root that is smaller than this node, aka the predecessor of this node. More... | |
const SwNumberTreeNode * | GetPrecedingNodeOf (const SwNumberTreeNode &rNode) const |
determines the node, which is preceding the node More... | |
void | IsSane (bool bRecursive) const |
Sanity check. More... | |
tSwNumberTreeChildren::size_type | GetChildCount () const |
Returns how many children this node has got. More... | |
Protected Types | |
typedef std::set< SwNumberTreeNode *, compSwNumberTreeNodeLessThan > | tSwNumberTreeChildren |
Protected Member Functions | |
SwNumberTreeNode * | GetRoot () const |
Returns the root node of the tree this node is part of. More... | |
virtual bool | IsNotificationEnabled (const SwDoc &rDoc) const =0 |
Return if the notification is not disabled on global conditions. More... | |
virtual bool | HasCountedChildren () const =0 |
virtual bool | IsCountedForNumbering () const =0 |
virtual void | PreAdd ()=0 |
virtual void | PostRemove ()=0 |
void | IsSane (bool bRecursive, std::vector< const SwNumberTreeNode * > rParents) const |
Sanity check with loop detection. More... | |
SwNumberTreeNode (const SwNumberTreeNode &) | |
SwNumberTreeNode & | operator= (const SwNumberTreeNode &) |
void | GetNumberVector_ (SwNumberTree::tNumberVector &rVector, bool bValidate=true) const |
Calls GetNumberVector_ on parent and adds number of this node at the end. More... | |
void | Invalidate (SwNumberTreeNode const *pChild) |
Invalidates a child. More... | |
void | InvalidateChildren () |
Invalidation of all children. More... | |
void | SetLastValid (const tSwNumberTreeChildren::const_iterator &aItLastValid, bool bValidating=false) const |
Set the last valid child of this node. More... | |
virtual bool | IsNotifiable (const SwDoc &rDoc) const =0 |
Return if this node is notifiable. More... | |
virtual void | NotifyNode ()=0 |
Notifies the node. More... | |
void | Notify (const SwDoc &rDoc) |
Notifies this node (NotifyNode) and all descendants. More... | |
void | NotifyChildrenOnDepth (const int nDepth) |
notification of children nodes on certain depth More... | |
bool | IsValid (const SwNumberTreeNode *pChild) const |
Returns if a child A this node is valid. More... | |
bool | IsValid () const |
Returns if this node is valid. More... | |
void | Validate (const SwNumberTreeNode *pNode) const |
Validates a child. More... | |
void | ValidateHierarchical (const SwNumberTreeNode *pNode) const |
Validates a child using hierarchical numbering. More... | |
void | ValidateContinuous (const SwNumberTreeNode *pNode) const |
Validates a child using continuous numbering. More... | |
virtual SwNumberTreeNode * | Create () const =0 |
Creates a new node of the same class. More... | |
SwNumberTreeNode * | CreatePhantom () |
Creates a phantom. More... | |
virtual bool | IsCountPhantoms () const =0 |
Return if phantoms are counted. More... | |
bool | HasOnlyPhantoms () const |
Return if all descendants of this node are phantoms. More... | |
bool | HasPhantomCountedParent () const |
SwNumberTreeNode * | GetFirstNonPhantomChild () |
HB, OD : return node, if it isn't a phantom, otherwise return first non-phantom descendant. More... | |
void | ClearObsoletePhantoms () |
Removes recursively phantoms that have no children. More... | |
tSwNumberTreeChildren::const_iterator | GetIterator (const SwNumberTreeNode *pChild) const |
void | MoveChildren (SwNumberTreeNode *pDest) |
Moves all children to a given destination node. More... | |
void | MoveGreaterChildren (SwNumberTreeNode &_rCompareNode, SwNumberTreeNode &_rDestNode) |
Moves all children of this node that are greater than a given node to the destination node. More... | |
SwNumberTreeNode * | GetLastDescendant () const |
Returns the last descendant of a node, if it has children. More... | |
Protected Attributes | |
tSwNumberTreeChildren | mChildren |
the children More... | |
SwNumberTreeNode * | mpParent |
he parent node More... | |
SwNumberTree::tSwNumTreeNumber | mnNumber |
the number of the node More... | |
bool | mbContinueingPreviousSubTree |
bool | mbPhantom |
true this node is a phantom false this node is NOT a phantom More... | |
tSwNumberTreeChildren::const_iterator | mItLastValid |
Iterator to the last valid element. More... | |
A tree of numbered nodes.
Simple example:
1. kshdkjfs 1.1. lskjf 2. sdfjlksaf 3. fkaoslk 3.1. lfjlaskf 3.2. jaslkjflsf 3.2.1. hkljhkjhk + R + 1 kshdkjfs | + 1 lskjf + 2 sdfjlksaf + 3 fkaoslk + 1 lfjlaskf + 2 jaslkjflsf + 1 hkljhkjhk
The root contains the nodes of the first level. Each node A of the first level contains those nodes of the second level that have the same first level number as A and so on for the subsidiary levels.
The numbering label of a node A is resolved by concatenating the numbers of the nodes on the path from the root to A.
Phantoms
A phantom is an auxiliary node that is used to emulate numberings starting with nodes not at top level. The phantom contains the number for the level but is not considered part of the numbering.
Constraint 1: A phantom is always the first child node. Constraint 2: At each node there is at most one child that is a phantom. Constraint 3: A phantom is the smallest of all numbering nodes.
Uncounted Phantoms
0.1. dljflskjlasf
R (nStart = 5)
The phantom gets numbered with 0. The first non-phantom node gets numbered with the start value.
Counted Phantoms
5.1. lgkjjgklg
The phantom gets numbered with the start value.
Definition at line 113 of file SwNumberTree.hxx.
|
protected |
Definition at line 116 of file SwNumberTree.hxx.
SwNumberTreeNode::SwNumberTreeNode | ( | ) |
Definition at line 30 of file SwNumberTree.cxx.
References mChildren, mItLastValid, and mpParent.
|
virtual |
Definition at line 39 of file SwNumberTree.cxx.
References GetChildCount(), HasOnlyPhantoms(), IsPhantom(), mChildren, mItLastValid, and mpParent.
|
protected |
void SwNumberTreeNode::AddChild | ( | SwNumberTreeNode * | pChild, |
const int | nDepth, | ||
const SwDoc & | rDoc | ||
) |
Add a child.
pChild | child to add |
nDepth | depth in which to add the child |
Definition at line 414 of file SwNumberTree.cxx.
References AddChild(), ClearObsoletePhantoms(), CreatePhantom(), GetChildCount(), GetParent(), InvalidateMe(), IsCounted(), IsNotificationEnabled(), IsPhantom(), IsSane(), mChildren, MoveGreaterChildren(), mpParent, NotifyInvalidChildren(), NotifyInvalidSiblings(), PreAdd(), and SetLastValid().
Referenced by AddChild(), and SetLevelInListTree().
|
protected |
Removes recursively phantoms that have no children.
The resulting tree has no phantoms that either have no children or whose descendancy consist entirely of phantoms.
Definition at line 104 of file SwNumberTree.cxx.
References mChildren, and SetLastValid().
Referenced by AddChild(), and RemoveMe().
|
protectedpure virtual |
Creates a new node of the same class.
Implemented in SwNodeNum.
Referenced by CreatePhantom().
|
protected |
Creates a phantom.
Definition at line 63 of file SwNumberTree.cxx.
References Create(), mbPhantom, mChildren, and mpParent.
Referenced by AddChild(), MoveChildren(), and RemoveChild().
SwNumberTreeNode::tSwNumberTreeChildren::size_type SwNumberTreeNode::GetChildCount | ( | ) | const |
Returns how many children this node has got.
Definition at line 829 of file SwNumberTree.cxx.
References mChildren.
Referenced by AddChild(), GetPrecedingNodeOf(), HasOnlyPhantoms(), SwNodeNum::UnregisterMeAndChildrenDueToRootDelete(), ValidateHierarchical(), and ~SwNumberTreeNode().
|
protected |
HB, OD : return node, if it isn't a phantom, otherwise return first non-phantom descendant.
Returns the first child of this node that is NOT a phantom.
Definition at line 307 of file SwNumberTree.cxx.
References GetFirstNonPhantomChild(), IsPhantom(), and mChildren.
Referenced by GetFirstNonPhantomChild().
|
protected |
Definition at line 890 of file SwNumberTree.cxx.
References mChildren.
Referenced by GetPred(), Invalidate(), NotifyInvalidChildren(), RemoveChild(), SetLastValid(), and ValidateHierarchical().
|
protected |
Returns the last descendant of a node, if it has children.
Definition at line 914 of file SwNumberTree.cxx.
References GetLastDescendant(), and mChildren.
Referenced by GetLastDescendant(), and GetPred().
int SwNumberTreeNode::GetLevelInListTree | ( | ) | const |
Return level of this node.
The level of this node is the length of the path from the root to this node.
Definition at line 820 of file SwNumberTree.cxx.
References GetLevelInListTree(), and mpParent.
Referenced by SwTextNode::GetActualListLevel(), GetLevelInListTree(), SwNodeNum::GetStartValue(), SwNumRule::MakeRefNumString(), and SetLevelInListTree().
SwNumberTree::tSwNumTreeNumber SwNumberTreeNode::GetNumber | ( | bool | bValidate = true | ) | const |
Returns number of this node.
bValidate | validate the number? |
Definition at line 666 of file SwNumberTree.cxx.
References mnNumber, mpParent, and Validate().
Referenced by GetNumberVector_(), SwEditShell::SetNumberingRestart(), and ValidateContinuous().
SwNumberTree::tNumberVector SwNumberTreeNode::GetNumberVector | ( | ) | const |
Returns level numbers of this node.
Definition at line 676 of file SwNumberTree.cxx.
References GetNumberVector_().
Referenced by lcl_FindOutlineNum(), SwNumRule::MakeNumString(), MakeRefNumStr(), and SwNumRule::MakeRefNumString().
|
protected |
Calls GetNumberVector_ on parent and adds number of this node at the end.
rVector | return value |
bValidate | validate the number? |
Definition at line 297 of file SwNumberTree.cxx.
References GetNumber(), GetNumberVector_(), and mpParent.
Referenced by GetNumberVector(), and GetNumberVector_().
|
inline |
Returns the parent of this node.
Definition at line 148 of file SwNumberTree.hxx.
References mpParent.
Referenced by AddChild(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), GetPred(), SwNodeNum::GetStartValue(), SwNodeNum::HandleNumberTreeRootNodeDelete(), SwNodeNum::IsContinuous(), IsFirst(), SwTextNode::IsInList(), SwNumRule::MakeRefNumString(), NotifyInvalidChildren(), NotifyNodesOnListLevel(), RemoveMe(), SetLastValid(), SetLevelInListTree(), ValidateContinuous(), and ValidateHierarchical().
const SwNumberTreeNode * SwNumberTreeNode::GetPrecedingNodeOf | ( | const SwNumberTreeNode & | rNode | ) | const |
determines the node, which is preceding the node
#i81002# The search for the preceding node is performed for the tree below the <this> node. To search the complete tree, the method has been called for the root of the tree.
Definition at line 1119 of file SwNumberTree.cxx.
References GetChildCount(), GetPrecedingNodeOf(), GetRoot(), LessThan(), and mChildren.
Referenced by SwNodeNum::GetPrecedingNodeNumOf(), and GetPrecedingNodeOf().
SwNumberTreeNode * SwNumberTreeNode::GetPred | ( | bool | bSibling = false | ) | const |
Returns the greatest descendant of the root that is smaller than this node, aka the predecessor of this node.
Definition at line 935 of file SwNumberTree.cxx.
References GetIterator(), GetLastDescendant(), GetParent(), mChildren, and mpParent.
Referenced by SwTaggedPDFHelper::BeginNumberedListStructureElements(), and ValidateContinuous().
|
protected |
Returns the root node of the tree this node is part of.
Important note: method call <GetRoot()->GetRoot()> returns NULL.
Definition at line 93 of file SwNumberTree.cxx.
References mpParent.
Referenced by SwNodeNum::GetPrecedingNodeNumOf(), GetPrecedingNodeOf(), SwNodeNum::HandleNumberTreeRootNodeDelete(), HasPhantomCountedParent(), NotifyNodesOnListLevel(), and SetLevelInListTree().
|
pure virtual |
Return start value.
Implemented in SwNodeNum.
Referenced by ValidateContinuous().
|
protectedpure virtual |
Implemented in SwNodeNum.
Referenced by IsCounted().
|
protected |
Return if all descendants of this node are phantoms.
Definition at line 701 of file SwNumberTree.cxx.
References GetChildCount(), and mChildren.
Referenced by RemoveMe(), and ~SwNumberTreeNode().
|
protected |
Definition at line 723 of file SwNumberTree.cxx.
References GetRoot(), HasPhantomCountedParent(), IsCounted(), IsPhantom(), and mpParent.
Referenced by HasPhantomCountedParent(), and ValidateHierarchical().
|
protected |
Invalidates a child.
Calls SetLastValid for the preceding sibling of the child and notifies all invalid children.
pChild | the child to invalidate |
Definition at line 1033 of file SwNumberTree.cxx.
References GetIterator(), IsValid(), mChildren, and SetLastValid().
Referenced by InvalidateMe().
|
inline |
Invalidation and notification of complete numbering tree.
#i64010# Usage: on <IsCounted()> state change it's needed to invalidate the complete numbering tree due to wide influence of this change.
Definition at line 293 of file SwNumberTree.hxx.
|
inlineprotected |
Invalidation of all children.
Usage: on <IsCounted()> state change the children have to be invalidated
Definition at line 433 of file SwNumberTree.hxx.
Referenced by SetLastValid().
void SwNumberTreeNode::InvalidateMe | ( | ) |
Notifies the node.
Calls Invalidate(this) on parent.
Definition at line 1049 of file SwNumberTree.cxx.
References Invalidate(), and mpParent.
Referenced by AddChild().
void SwNumberTreeNode::InvalidateTree | ( | ) | const |
Invalidate this node and all its descendants.
All iterators holding the last valid node in the according list of children are set to the end of this list, thereby stating all children in the list are invalid. #i83479# - made public
Definition at line 1024 of file SwNumberTree.cxx.
References mChildren, and mItLastValid.
|
inline |
Definition at line 159 of file SwNumberTree.hxx.
Referenced by SwUnoCursorHelper::getCursorPropertyValue().
|
pure virtual |
Return if this node is counted continuous.
true | This node is counted continuous. |
false | else |
Implemented in SwNodeNum.
Referenced by SwNodeNum::IsContinuous(), NotifyInvalidChildren(), SetLastValid(), and Validate().
|
virtual |
Return if this node is counted.
true | this node is counted |
false | this node is NOT counted |
Reimplemented in SwNodeNum.
Definition at line 717 of file SwNumberTree.cxx.
References HasCountedChildren(), IsCountPhantoms(), and IsPhantom().
Referenced by AddChild(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), HasPhantomCountedParent(), SwNodeNum::IsCounted(), NotifyInvalidChildren(), SetLastValid(), and ValidateHierarchical().
|
protectedpure virtual |
Implemented in SwNodeNum.
|
protectedpure virtual |
bool SwNumberTreeNode::IsFirst | ( | ) | const |
Return if this node if the first non-phantom node in the tree.
true | this node is the first non-phantom node in the tree |
false | else |
Definition at line 758 of file SwNumberTree.cxx.
References GetParent(), IsFirst(), IsPhantom(), and mChildren.
Referenced by IsFirst().
bool SwNumberTreeNode::IsFirst | ( | const SwNumberTreeNode * | pNode | ) | const |
Return if a node is first non-phantom child of this node.
pNode | the node to check |
true | pNode is first child of this node |
false | else |
Definition at line 748 of file SwNumberTree.cxx.
References mChildren.
Referenced by SwTaggedPDFHelper::BeginNumberedListStructureElements(), and SwTextNode::IsFirstOfNumRule().
|
protectedpure virtual |
Return if this node is notifiable.
true | This node is notifiable. |
false | else |
Implemented in SwNodeNum.
Referenced by Notify(), and NotifyInvalidChildren().
|
protectedpure virtual |
Return if the notification is not disabled on global conditions.
true | Notification enabled in general. |
false | else |
Implemented in SwNodeNum.
Referenced by AddChild().
|
inline |
Return if this node is a phantom.
true | this node is a phantom |
false | this node is NOT a phantom |
Definition at line 220 of file SwNumberTree.hxx.
Referenced by AddChild(), GetFirstNonPhantomChild(), HasPhantomCountedParent(), IsCounted(), SwNodeNum::IsCountedForNumbering(), IsFirst(), SwNumRule::MakeRefNumString(), MoveChildren(), Notify(), RemoveChild(), RemoveMe(), SwNodeNum::UnregisterMeAndChildrenDueToRootDelete(), ValidateHierarchical(), and ~SwNumberTreeNode().
|
pure virtual |
Return if numbering is restarted at this node.
Implemented in SwNodeNum.
void SwNumberTreeNode::IsSane | ( | bool | bRecursive | ) | const |
Sanity check.
bRecursive | descend to children |
true | the structure of this node is sane |
false | else |
Definition at line 835 of file SwNumberTree.cxx.
References IsSane().
Referenced by AddChild(), IsSane(), MoveChildren(), MoveGreaterChildren(), and RemoveMe().
|
protected |
Sanity check with loop detection.
bRecursive | descend to children |
rParents | vector for recording path |
|
protected |
Returns if this node is valid.
true | this node is valid |
false | else |
Definition at line 661 of file SwNumberTree.cxx.
References IsValid(), and mpParent.
Referenced by Validate().
|
protected |
Returns if a child A this node is valid.
A is valid if aItLastValid in parent refers to a node greater than of equal to A.
pChild | child to be tested |
true | this node is valid |
false | this node is NOT valid |
Definition at line 685 of file SwNumberTree.cxx.
References mChildren, mItLastValid, and mpParent.
Referenced by Invalidate(), and IsValid().
|
virtual |
Returns if this node is less than another node.
rTreeNode | node to compare with |
true | this node is less than rTreeNode |
false | else |
Reimplemented in SwNodeNum.
Definition at line 930 of file SwNumberTree.cxx.
Referenced by GetPrecedingNodeOf(), MoveGreaterChildren(), and SwNumberTreeNodeLessThan().
|
protected |
Moves all children to a given destination node.
pDest | the destination node |
Definition at line 366 of file SwNumberTree.cxx.
References CreatePhantom(), IsPhantom(), IsSane(), mChildren, mItLastValid, MoveChildren(), and SetLastValid().
Referenced by MoveChildren(), and RemoveChild().
|
protected |
Moves all children of this node that are greater than a given node to the destination node.
distinguish between node for comparing, whose children are greater, and the destination node.
_rCompareNode | input parameter - reference to the node, which is used to determine the greater children |
_rDestNode | input parameter - reference to the node, which is the destination for the greater children |
Definition at line 318 of file SwNumberTree.cxx.
References IsSane(), LessThan(), mChildren, and SetLastValid().
Referenced by AddChild().
|
protected |
Notifies this node (NotifyNode) and all descendants.
Definition at line 1061 of file SwNumberTree.cxx.
References IsNotifiable(), IsPhantom(), mChildren, and NotifyNode().
|
protected |
notification of children nodes on certain depth
Definition at line 1163 of file SwNumberTree.cxx.
References mChildren.
Referenced by NotifyNodesOnListLevel().
void SwNumberTreeNode::NotifyInvalidChildren | ( | const SwDoc & | rDoc | ) |
Notifies all invalid children of this node.
#i83479# - made public
Definition at line 1073 of file SwNumberTree.cxx.
References GetIterator(), GetParent(), IsContinuous(), IsCounted(), IsNotifiable(), mChildren, mItLastValid, mpParent, and NotifyInvalidChildren().
Referenced by AddChild(), NotifyInvalidChildren(), NotifyInvalidSiblings(), and RemoveChild().
void SwNumberTreeNode::NotifyInvalidSiblings | ( | const SwDoc & | rDoc | ) |
Notifies all invalid siblings of this node.
Definition at line 1112 of file SwNumberTree.cxx.
References mpParent, and NotifyInvalidChildren().
Referenced by AddChild().
|
protectedpure virtual |
void SwNumberTreeNode::NotifyNodesOnListLevel | ( | const int | nListLevel | ) |
notification of all nodes in the list tree on certain list level
Definition at line 1150 of file SwNumberTree.cxx.
References GetParent(), GetRoot(), and NotifyChildrenOnDepth().
|
protected |
|
protectedpure virtual |
Implemented in SwNodeNum.
Referenced by RemoveChild().
|
protectedpure virtual |
Implemented in SwNodeNum.
Referenced by AddChild().
void SwNumberTreeNode::RemoveChild | ( | SwNumberTreeNode * | pChild, |
const SwDoc & | rDoc | ||
) |
Remove a child.
pChild | child to be removed |
Definition at line 567 of file SwNumberTree.cxx.
References CreatePhantom(), GetIterator(), IsPhantom(), mChildren, MoveChildren(), mpParent, NotifyInvalidChildren(), PostRemove(), and SetLastValid().
Referenced by RemoveMe().
void SwNumberTreeNode::RemoveMe | ( | const SwDoc & | rDoc | ) |
Remove this child from the tree.
Definition at line 640 of file SwNumberTree.cxx.
References ClearObsoletePhantoms(), GetParent(), HasOnlyPhantoms(), IsPhantom(), IsSane(), mpParent, and RemoveChild().
Referenced by SwList::RemoveListItem(), and SetLevelInListTree().
|
protected |
Set the last valid child of this node.
aItLastValid | iterator pointing to the new last valid child |
bValidating | - true always set the last valid node to aItLastValid
|
Definition at line 967 of file SwNumberTree.cxx.
References GetIterator(), GetParent(), InvalidateChildren(), IsContinuous(), IsCounted(), mChildren, mItLastValid, mpParent, and SetLastValid().
Referenced by AddChild(), ClearObsoletePhantoms(), Invalidate(), MoveChildren(), MoveGreaterChildren(), RemoveChild(), SetLastValid(), ValidateContinuous(), and ValidateHierarchical().
set level of this node
precondition: node is already member of a list tree
Definition at line 796 of file SwNumberTree.cxx.
References AddChild(), GetLevelInListTree(), GetParent(), GetRoot(), and RemoveMe().
|
protected |
Validates a child.
pNode | child to be validated |
Definition at line 286 of file SwNumberTree.cxx.
References IsContinuous(), IsValid(), ValidateContinuous(), and ValidateHierarchical().
Referenced by GetNumber(), and ValidateMe().
|
protected |
Validates a child using continuous numbering.
pNode | child to be validated |
Definition at line 229 of file SwNumberTree.cxx.
References GetNumber(), GetParent(), GetPred(), GetStartValue(), mChildren, mItLastValid, and SetLastValid().
Referenced by Validate().
|
protected |
Validates a child using hierarchical numbering.
pNode | child to be validated |
Definition at line 126 of file SwNumberTree.cxx.
References GetChildCount(), GetIterator(), GetParent(), HasPhantomCountedParent(), IsCounted(), IsPhantom(), mChildren, mItLastValid, and SetLastValid().
Referenced by Validate().
void SwNumberTreeNode::ValidateMe | ( | ) |
Validates this node.
Calls Validate(this) on parent.
Definition at line 1055 of file SwNumberTree.cxx.
References mpParent, and Validate().
Referenced by SwNodeNum::NotifyNode().
|
mutableprotected |
Definition at line 392 of file SwNumberTree.hxx.
|
protected |
true this node is a phantom false this node is NOT a phantom
Definition at line 398 of file SwNumberTree.hxx.
Referenced by CreatePhantom().
|
protected |
the children
Definition at line 340 of file SwNumberTree.hxx.
Referenced by AddChild(), ClearObsoletePhantoms(), CreatePhantom(), GetChildCount(), GetFirstNonPhantomChild(), GetIterator(), GetLastDescendant(), GetPrecedingNodeOf(), GetPred(), SwNodeNum::HasCountedChildren(), HasOnlyPhantoms(), Invalidate(), InvalidateTree(), IsFirst(), IsValid(), MoveChildren(), MoveGreaterChildren(), Notify(), NotifyChildrenOnDepth(), NotifyInvalidChildren(), RemoveChild(), SetLastValid(), SwNumberTreeNode(), SwNodeNum::UnregisterMeAndChildrenDueToRootDelete(), ValidateContinuous(), ValidateHierarchical(), and ~SwNumberTreeNode().
|
mutableprotected |
Iterator to the last valid element.
All children that are less than or equal to the referenced child are valid. All children greater than the referenced child are invalid.
Definition at line 405 of file SwNumberTree.hxx.
Referenced by InvalidateTree(), IsValid(), MoveChildren(), NotifyInvalidChildren(), SetLastValid(), SwNumberTreeNode(), ValidateContinuous(), ValidateHierarchical(), and ~SwNumberTreeNode().
|
mutableprotected |
|
protected |
he parent node
Definition at line 380 of file SwNumberTree.hxx.
Referenced by AddChild(), CreatePhantom(), GetLevelInListTree(), GetNumber(), GetNumberVector_(), GetPred(), GetRoot(), HasPhantomCountedParent(), InvalidateMe(), IsValid(), NotifyInvalidChildren(), NotifyInvalidSiblings(), RemoveChild(), RemoveMe(), SetLastValid(), ValidateMe(), and ~SwNumberTreeNode().