summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtsecte.cxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-01-19 17:38:06 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-01-19 17:38:06 +0000
commit31f71f89ea9d8a6650055eee8fbc92cc0e33d769 (patch)
treea1937a37247d5919c9863c1253e773606ad3eb3d /xmloff/source/text/txtsecte.cxx
parent78556417dec01d3302bc7525e4480b8ada918ff0 (diff)
*** empty log message ***
Diffstat (limited to 'xmloff/source/text/txtsecte.cxx')
-rw-r--r--xmloff/source/text/txtsecte.cxx38
1 files changed, 26 insertions, 12 deletions
diff --git a/xmloff/source/text/txtsecte.cxx b/xmloff/source/text/txtsecte.cxx
index a23d8da35989..88f2592e559b 100644
--- a/xmloff/source/text/txtsecte.cxx
+++ b/xmloff/source/text/txtsecte.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtsecte.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: dvo $ $Date: 2000-11-30 16:46:20 $
+ * last change: $Author: dvo $ $Date: 2001-01-19 18:38:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -160,6 +160,10 @@
#include "XMLSectionExport.hxx"
#endif
+#ifndef _XMLOFF_XMLREDLINEEXPORT_HXX
+#include "XMLRedlineExport.hxx"
+#endif
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::text;
using namespace ::com::sun::star::uno;
@@ -274,23 +278,33 @@ void XMLTextParagraphExport::exportListAndSectionChange(
// close all elements of aOld ...
// (order: newest to oldest)
- vector<Reference<XTextSection> > ::iterator aOldForward =
- aOldStack.begin();
- while ((aOldForward != aOldStack.end()) &&
- (*aOldForward != *aOld))
- {
- pSectionExport->ExportSectionEnd(*aOldForward, bAutoStyles);
- aOldForward++;
- }
- if (aOldForward != aOldStack.end())
+ if (aOld != aOldStack.rend())
{
- pSectionExport->ExportSectionEnd(*aOldForward, bAutoStyles);
+ vector<Reference<XTextSection> > ::iterator aOldForward =
+ aOldStack.begin();
+ while ((aOldForward != aOldStack.end()) &&
+ (*aOldForward != *aOld))
+ {
+ pRedlineExport->ExportStartOrEndRedline(*aOldForward,
+ sal_False);
+ pSectionExport->ExportSectionEnd(*aOldForward,
+ bAutoStyles);
+ aOldForward++;
+ }
+ if (aOldForward != aOldStack.end())
+ {
+ pRedlineExport->ExportStartOrEndRedline(*aOldForward,
+ sal_False);
+ pSectionExport->ExportSectionEnd(*aOldForward,
+ bAutoStyles);
+ }
}
// ...then open all of aNew
// (order: oldest to newest)
while (aNew != aNewStack.rend())
{
+ pRedlineExport->ExportStartOrEndRedline(*aNew, sal_True);
pSectionExport->ExportSectionStart(*aNew, bAutoStyles);
aNew++;
}