summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLTextNumRuleInfo.hxx
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2000-10-31 08:00:40 +0000
committerMichael Brauer <mib@openoffice.org>2000-10-31 08:00:40 +0000
commitb08f3557f32ec39e7d634c4352b73568179f995b (patch)
tree04aa26f7190854ffddb1d5a942136c6fd6b5a49a /xmloff/source/text/XMLTextNumRuleInfo.hxx
parent2bb41126f4bd5a33a5635cfc61ef2eddcc959972 (diff)
#78008#: numbering rules export does not rely on a name any longer
Diffstat (limited to 'xmloff/source/text/XMLTextNumRuleInfo.hxx')
-rw-r--r--xmloff/source/text/XMLTextNumRuleInfo.hxx18
1 files changed, 14 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLTextNumRuleInfo.hxx b/xmloff/source/text/XMLTextNumRuleInfo.hxx
index fff0ea0cb047..62d698fdce90 100644
--- a/xmloff/source/text/XMLTextNumRuleInfo.hxx
+++ b/xmloff/source/text/XMLTextNumRuleInfo.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLTextNumRuleInfo.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mib $ $Date: 2000-10-23 11:28:11 $
+ * last change: $Author: mib $ $Date: 2000-10-31 09:00:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,7 +83,6 @@ class XMLTextNumRuleInfo
const ::rtl::OUString sNumberingLevel;
const ::rtl::OUString sNumberingStartValue;
const ::rtl::OUString sParaIsNumberingRestart;
- const ::rtl::OUString sNumberingStyleName;
const ::rtl::OUString sNumberingType;
const ::rtl::OUString sIsNumbering;
const ::rtl::OUString sNumberingIsNumber;
@@ -98,6 +97,7 @@ class XMLTextNumRuleInfo
sal_Bool bIsNumbered : 1;
sal_Bool bIsOrdered : 1;
sal_Bool bIsRestart : 1;
+ sal_Bool bIsNamed : 1;
public:
@@ -122,6 +122,9 @@ public:
sal_Bool IsNumbered() const { return bIsNumbered; }
sal_Bool IsOrdered() const { return bIsOrdered; }
sal_Bool IsRestart() const { return bIsRestart; }
+ sal_Bool IsNamed() const { return bIsNamed; }
+
+ inline sal_Bool HasSameNumRules( const XMLTextNumRuleInfo& rCmp ) const;
};
inline XMLTextNumRuleInfo& XMLTextNumRuleInfo::operator=(
@@ -134,6 +137,7 @@ inline XMLTextNumRuleInfo& XMLTextNumRuleInfo::operator=(
bIsNumbered = rInfo.bIsNumbered;
bIsOrdered = rInfo.bIsOrdered;
bIsRestart = rInfo.bIsRestart;
+ bIsNamed = rInfo.bIsNamed;
return *this;
}
@@ -144,8 +148,14 @@ inline void XMLTextNumRuleInfo::Reset()
xNumRules = 0;
nStartValue = -1;
nLevel = 0;
- bIsNumbered = bIsOrdered = bIsRestart = sal_False;
+ bIsNumbered = bIsOrdered = bIsRestart = bIsNamed = sal_False;
}
+inline sal_Bool XMLTextNumRuleInfo::HasSameNumRules(
+ const XMLTextNumRuleInfo& rCmp ) const
+{
+ return (bIsNamed && rCmp.bIsNamed) ? (rCmp.sName == sName)
+ : (rCmp.xNumRules == xNumRules);
+}
#endif // _XMLOFF_XMLTEXTNUMRULEINFO_HXX