summaryrefslogtreecommitdiff
path: root/sw/inc/SwNodeNum.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-02-26 09:28:27 +0000
committerOliver Bolte <obo@openoffice.org>2008-02-26 09:28:27 +0000
commit59c64c4646162bd3d3954bfa83e645d4e2cc36c3 (patch)
treeeb5fc43d5824ba8d35e2bd53292abf7f6a713481 /sw/inc/SwNodeNum.hxx
parentb79954777dfc2550ae9c8e97b1056208441bbb00 (diff)
INTEGRATION: CWS swcrossref01_DEV300 (1.7.166); FILE MERGED
2007/11/22 13:27:21 od 1.7.166.2: #i83479# classes <SwNumberTree> and <SwNodeNum> - minor refactorings - made <SwNumberTree::AddChild(..)> virtual and override it in sub class <SwNodeNum> 2007/09/17 12:12:05 od 1.7.166.1: #i81002# class <SwNodeNum> - new method <GetPrecedingNodeNumOf(..)>
Diffstat (limited to 'sw/inc/SwNodeNum.hxx')
-rw-r--r--sw/inc/SwNodeNum.hxx39
1 files changed, 29 insertions, 10 deletions
diff --git a/sw/inc/SwNodeNum.hxx b/sw/inc/SwNodeNum.hxx
index 3293076eaa57..198a7e1fee2d 100644
--- a/sw/inc/SwNodeNum.hxx
+++ b/sw/inc/SwNodeNum.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: SwNodeNum.hxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2007-04-25 08:50:33 $
+ * last change: $Author: obo $ $Date: 2008-02-26 10:28:27 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -55,11 +55,7 @@ class SW_DLLPUBLIC SwNodeNum : public SwNumberTreeNode
static void _UnregisterMeAndChildrenDueToRootDelete( SwNodeNum& rNodeNum );
// <--
protected:
- void SetTxtNode(SwTxtNode * pTxtNode);
- SwTxtNode * GetTxtNode() const;
-
- void SetNumRule(SwNumRule * pRule);
- SwNumRule * GetNumRule() const;
+// void SetTxtNode(SwTxtNode * pTxtNode);
// --> OD 2006-04-26 #i64010#
virtual bool HasCountedChildren() const;
@@ -68,13 +64,28 @@ protected:
public:
SwNodeNum();
- SwNodeNum(const SwNodeNum & rNodeNum);
+ // --> OD 2007-10-26 #i83479#
+ explicit SwNodeNum( SwTxtNode* pTxtNode );
+ explicit SwNodeNum( SwNumRule* pRule );
+ // <--
+ SwNodeNum( const SwNodeNum & rNodeNum );
+
+ // --> OD 2007-10-26 #i83479# - made public
+ SwTxtNode* GetTxtNode() const;
+ SwNumRule* GetNumRule() const;
+ void SetNumRule(SwNumRule * pRule);
+ // <--
+
virtual ~SwNodeNum();
virtual SwNumberTreeNode * Create() const;
virtual SwNumberTreeNode * Copy() const;
+ // --> OD 2007-10-25 #i83479#
+ virtual void AddChild(SwNumberTreeNode * pChild, unsigned int nDepth = 0);
+ // <--
+
virtual void RemoveChild(SwNumberTreeNode * pChild);
virtual bool IsNotifiable() const;
@@ -105,8 +116,8 @@ public:
SwPosition GetPosition() const;
- friend class SwTxtNode;
- friend class SwNumRule;
+// friend class SwTxtNode;
+// friend class SwNumRule;
// --> OD 2005-11-16 #i57919# - direct access on <mnStart>, needed for HTML export
inline const tSwNumTreeNumber GetStartValue() const
@@ -125,6 +136,14 @@ public:
// in this situation - this will be asserted.
static void HandleNumberTreeRootNodeDelete( SwNodeNum& rNodeNum );
// <--
+
+ /** determines the <SwNodeNum> instance, which is preceding the given text node
+
+ OD 2007-09-06 #i81002#
+
+ @author OD
+ */
+ const SwNodeNum* GetPrecedingNodeNumOf( const SwTxtNode& rTxtNode ) const;
};
#endif // _SW_NODE_NUM_HXX