summaryrefslogtreecommitdiff
path: root/sw/inc/numrule.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-05-17 15:10:26 +0000
committerRüdiger Timm <rt@openoffice.org>2004-05-17 15:10:26 +0000
commitfcbff21382198036362067dabe558d8be8112957 (patch)
tree1facd2f346b1c7f6e70127b13a170a6c15f11552 /sw/inc/numrule.hxx
parentc1408de4473a3b480116ea7b8cbf900d99a51723 (diff)
INTEGRATION: CWS hbqea101 (1.11.72); FILE MERGED
2004/05/05 14:48:13 hbrinkm 1.11.72.2: RESYNC: (1.11-1.13); FILE MERGED 2004/04/26 13:38:21 hbrinkm 1.11.72.1: #i27615# allow cursor in front of numbering label and propagate char attrs to according numbering format
Diffstat (limited to 'sw/inc/numrule.hxx')
-rw-r--r--sw/inc/numrule.hxx39
1 files changed, 37 insertions, 2 deletions
diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx
index 4616f5eb80fb..de4ba8899d44 100644
--- a/sw/inc/numrule.hxx
+++ b/sw/inc/numrule.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: numrule.hxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: hr $ $Date: 2004-05-10 16:15:27 $
+ * last change: $Author: rt $ $Date: 2004-05-17 16:10:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,6 +91,8 @@
#include <svx/numitem.hxx>
#endif
+#include <SwBitArray.hxx> // #i27615#
+
class Font;
class SvxBrushItem;
class SvxNumRule;
@@ -158,6 +160,11 @@ class SwNumRule
SwNumFmt* aFmts[ MAXLEVEL ];
+ /**
+ marked levels
+ */
+ SwBitArray aMarkedLevels;
+
String sName;
SwNumRuleType eRuleType;
USHORT nPoolFmtId; // Id-fuer "automatich" erzeugte NumRules
@@ -251,6 +258,34 @@ public:
void SetSvxRule(const SvxNumRule&, SwDoc* pDoc);
SvxNumRule MakeSvxNumRule() const;
+
+ // -> #i27615#
+ /**
+ Returns if a level is marked.
+
+ @param nLvl level to check
+
+ @retval TRUE level is marked
+ @retval FALSE level is not marked
+ */
+ BOOL IsLevelMarked(BYTE nLvl) const { return aMarkedLevels.Get(nLvl); }
+
+ /**
+ Mark/unmark a level.
+
+ @param nLvl level to mark/unmark
+ @param bVal - TRUE mark
+ - FALSE unmark
+
+ @return bit array in which the altered levels are marked.
+ */
+ SwBitArray SetLevelMarked(BYTE nLvl, BOOL bVal);
+
+ /**
+ Unmarks all levels.
+ */
+ void ResetMarkedLevels() { aMarkedLevels.Reset(); }
+ // <- #i27615#
// #i23726#, #i23725#
void Indent(short aAmount, int nLevel = -1,
int nReferenceLevel = -1, BOOL bRelative = TRUE,