summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/writerhelper.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-16 14:35:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-16 23:31:28 +0000
commitdaa605e5f9ee9fc8285b2d9f7a348599174fefd5 (patch)
treecb29ec96d6d059f900017fe557f588a57f21efd2 /sw/source/filter/ww8/writerhelper.hxx
parent1c349320adccb9d7fd525f48c0e5b01af13384f1 (diff)
coverity#736209: Out-of-bounds access
Change-Id: Idd0b5bb68bd0038473f981bb03aab63a5defd3b7
Diffstat (limited to 'sw/source/filter/ww8/writerhelper.hxx')
-rw-r--r--sw/source/filter/ww8/writerhelper.hxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/writerhelper.hxx b/sw/source/filter/ww8/writerhelper.hxx
index ef3738695690..d15f2b8debb8 100644
--- a/sw/source/filter/ww8/writerhelper.hxx
+++ b/sw/source/filter/ww8/writerhelper.hxx
@@ -665,10 +665,26 @@ namespace sw
*/
const SwNumFmt* GetNumFmtFromTxtNode(const SwTxtNode &rTxtNode);
+ /** Get the Numbering Format for a given level from a numbering rule
+
+ @param rRule
+ The numbering rule
+
+ @param nLevel
+ The numbering level
+
+ @return A SwNumFmt pointer that describes the numbering level
+ or 0 if the nLevel is out of range
+
+ @author
+ <a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
+ */
+ const SwNumFmt* GetNumFmtFromSwNumRuleLevel(const SwNumRule &rRule,
+ int nLevel);
+
const SwNumRule* GetNumRuleFromTxtNode(const SwTxtNode &rTxtNd);
const SwNumRule* GetNormalNumRuleFromTxtNode(const SwTxtNode &rTxtNd);
-
/** Get the SwNoTxtNode associated with a SwFrmFmt if here is one
There are two differing types of numbering formats that may be on a