summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/xml/xmlexp.cxx15
-rw-r--r--sw/source/filter/xml/xmlimp.cxx7
2 files changed, 18 insertions, 4 deletions
diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx
index 8258ea237761..b52bcfabaeec 100644
--- a/sw/source/filter/xml/xmlexp.cxx
+++ b/sw/source/filter/xml/xmlexp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlexp.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: mib $ $Date: 2000-12-02 10:57:15 $
+ * last change: $Author: mib $ $Date: 2000-12-06 14:25:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -90,6 +90,12 @@
#ifndef _SWMODULE_HXX //autogen wg. SW_MOD
#include <swmodule.hxx>
#endif
+#ifndef _SVDMODEL_HXX
+#include <svx/svdmodel.hxx>
+#endif
+#ifndef _SVDPAGE_HXX
+#include <svx/svdpage.hxx>
+#endif
#ifndef _SWDOCSH_HXX
#include <docsh.hxx>
@@ -263,6 +269,11 @@ SwXMLExport::SwXMLExport( const Reference< XModel >& rModel, SwPaM& rPaM,
SfxObjectShell* pObjSh = pDoc->GetDocShell();
if( pObjSh )
pObjSh->UpdateDocInfoForSave(); // update information
+
+ //Auf die Korrektheit der OrdNums sind wir schon angewiesen.
+ SdrModel* pModel = pDoc->GetDrawModel();
+ if( pModel )
+ pModel->GetPage( 0 )->RecalcObjOrdNums();
}
XMLTextParagraphExport* SwXMLExport::CreateTextParagraphExport()
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index bc6f16f2c42e..9381ebc0de2e 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlimp.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: mib $ $Date: 2000-12-02 10:57:15 $
+ * last change: $Author: mib $ $Date: 2000-12-06 14:25:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -320,6 +320,9 @@ SwXMLImport::SwXMLImport(
rDoc.GetTxtCollFromPool(RES_POOLCOLL_STANDARD) );
}
}
+
+ // We need a draw model to be able to set the z order
+ rDoc.MakeDrawModel();
}
SwXMLImport::~SwXMLImport()