summaryrefslogtreecommitdiff
path: root/sw/inc/ndtxt.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-01-05 10:46:24 +0000
committerOliver Bolte <obo@openoffice.org>2005-01-05 10:46:24 +0000
commit63ddb3658b4aa19610d8b3d4f941e07414950c2b (patch)
tree2e64a00ee32e8f6361054f2a27339e2a65e5c5fb /sw/inc/ndtxt.hxx
parentbcc6f0b357613cc4e8184ffde2a1f5fb739f1fac (diff)
INTEGRATION: CWS swqcore02 (1.30.78); FILE MERGED
2004/12/15 11:12:14 hbrinkm 1.30.78.4: #1000000# resync 2004/12/15 10:58:17 hbrinkm 1.30.78.3: #1000000# resync 2004/12/14 13:47:42 hbrinkm 1.30.78.2: RESYNC: (1.30-1.33); FILE MERGED 2004/11/29 10:29:16 hbrinkm 1.30.78.1: #i38047# GetNum/GetOutlineNum get parameter bUpdate to update the numrule
Diffstat (limited to 'sw/inc/ndtxt.hxx')
-rw-r--r--sw/inc/ndtxt.hxx34
1 files changed, 28 insertions, 6 deletions
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index 6f49c16ce3b5..fcacc49203d9 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ndtxt.hxx,v $
*
- * $Revision: 1.33 $
+ * $Revision: 1.34 $
*
- * last change: $Author: kz $ $Date: 2004-12-08 17:40:25 $
+ * last change: $Author: obo $ $Date: 2005-01-05 11:46:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -123,7 +123,7 @@ class SW_DLLPUBLIC SwTxtNode: public SwCntntNode
//Also niemals direkt zugreifen!
SwpHints *pSwpHints;
SwWrongList *pWrong; // Rechtschreibfehler nach Online-Spelling
- SwNodeNum *pNdNum; // Numerierung fuer diesen Absatz
+ mutable SwNodeNum *pNdNum; // Numerierung fuer diesen Absatz
XubString aText;
// Some of the chars this para are hidden. Paragraph has to be reformatted
@@ -169,7 +169,8 @@ class SW_DLLPUBLIC SwTxtNode: public SwCntntNode
}
SW_DLLPRIVATE void CalcHiddenCharFlags() const;
- SwNodeNum * _GetOutlineNum() const;
+
+ SW_DLLPRIVATE SwNodeNum * _GetOutlineNum(BOOL bUpdate = FALSE) const;
public:
const String& GetTxt() const { return aText; }
@@ -303,8 +304,29 @@ public:
// Numerierung
const SwNodeNum* UpdateNum( const SwNodeNum& );
SwNumRule *GetNumRule() const;
- const SwNodeNum* GetNum() const; // #i29363#
- const SwNodeNum* GetOutlineNum() const;
+
+ /**
+ Returns number of this node.
+
+ @param bUpdate - TRUE: ensure numrule is valid
+ - FALSE: do not care about numrule's validity
+
+ @return number of this node
+ */
+ const SwNodeNum* GetNum(BOOL bUpdate = FALSE) const; // #i29363#
+
+ /**
+ Returns outline number of this node.
+
+ If this node has an outline numbering rule the outline number
+ is its numbrt, otherwise the node has no outline number.
+
+ @param bUpdate - TRUE: ensure numrule is valid
+ - FALSE: do not care about numrule's validity
+
+ @return outline number of this node
+ */
+ const SwNodeNum* GetOutlineNum(BOOL bUpdate = FALSE) const;
// ->#i36903#
/**