diff options
author | Rüdiger Timm <rt@openoffice.org> | 2006-05-05 08:13:03 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2006-05-05 08:13:03 +0000 |
commit | d682dde016e1affb9a686b7ff91c26c42f6f73a7 (patch) | |
tree | 321fd53fe20c5064ea0369a2e319f87b0a7d56b7 /sw/inc/SwNumberTree.hxx | |
parent | 7de6361e539cf407d4132fcd36902bdd4698b586 (diff) |
INTEGRATION: CWS swqbf62 (1.2.228); FILE MERGED
2006/05/03 14:16:47 od 1.2.228.2: #135352# - correct fix for issue i64311
2006/04/26 19:22:43 od 1.2.228.1: #i64010# class <SwNumberTree> and <SwNodeNum>
- adjustments for correct handling of text node, which are
counted, but have no number/bullet
Diffstat (limited to 'sw/inc/SwNumberTree.hxx')
-rw-r--r-- | sw/inc/SwNumberTree.hxx | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/sw/inc/SwNumberTree.hxx b/sw/inc/SwNumberTree.hxx index fc31fcd995f1..dbbbe3d857e8 100644 --- a/sw/inc/SwNumberTree.hxx +++ b/sw/inc/SwNumberTree.hxx @@ -4,9 +4,9 @@ * * $RCSfile: SwNumberTree.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2005-11-08 17:11:18 $ + * last change: $Author: rt $ $Date: 2006-05-05 09:13:03 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -370,12 +370,17 @@ protected: tSwNumberTreeChildren::iterator GetIterator(const SwNumberTreeNode * pChild) const; - bool HasCountedChildren() const; + // --> OD 2006-04-26 #i64010# - made pure virtual + virtual bool HasCountedChildren() const = 0; + // <-- // --> OD 2005-10-27 #126009# bool HasPhantomCountedParent() const; // <-- + // --> OD 2006-04-26 #i64010# + virtual bool IsCountedForNumbering() const = 0; + // <-- public: SwNumberTreeNode(); SwNumberTreeNode(const SwNumberTreeNode & rNode); @@ -671,7 +676,7 @@ public: */ inline void InvalidateNotCountedParent() { - if ( GetParent() && !GetParent()->IsCounted() ) + if ( GetParent() && !GetParent()->IsCountedForNumbering() ) { GetParent()->InvalidateMe(); } @@ -685,12 +690,26 @@ public: */ inline void NotifyNotCountedParentSiblings() { - if ( GetParent() && !GetParent()->IsCounted() ) + if ( GetParent() && !GetParent()->IsCountedForNumbering() ) { GetParent()->NotifyInvalidSiblings(); } } + /** Invalidation and notification of complete numbering tree + + OD 2006-04-26 #i64010# + Usage: on <IsCounted()> state change its needed to invalidate the + complete numbering tree due to wide influence of this change. + */ + inline void InvalidateAndNotifyTree() + { + if ( GetRoot() ) + { + GetRoot()->InvalidateTree(); + GetRoot()->Notify(); + } + } /** Print this subtree. |