summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLTextListItemContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLTextListItemContext.cxx')
-rw-r--r--xmloff/source/text/XMLTextListItemContext.cxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/xmloff/source/text/XMLTextListItemContext.cxx b/xmloff/source/text/XMLTextListItemContext.cxx
index 45b8b88d32..2acb8da650 100644
--- a/xmloff/source/text/XMLTextListItemContext.cxx
+++ b/xmloff/source/text/XMLTextListItemContext.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLTextListItemContext.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.2.1 $
*
* This file is part of OpenOffice.org.
*
@@ -35,13 +35,10 @@
#include <xmloff/nmspmap.hxx>
#include "xmlnmspe.hxx"
#include <xmloff/xmltoken.hxx>
-#ifndef _XMLOFF_TXTPARAI_HXX
#include "txtparai.hxx"
-#endif
+#include "txtlists.hxx"
#include "XMLTextListBlockContext.hxx"
-#ifndef _XMLOFF_TXTIMP_HXX
#include <xmloff/txtimp.hxx>
-#endif
// --> OD 2008-05-08 #refactorlists#
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/style/XStyle.hpp>
@@ -50,6 +47,7 @@
#include "XMLTextListItemContext.hxx"
+
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
@@ -138,13 +136,12 @@ XMLTextListItemContext::XMLTextListItemContext(
}
}
- DBG_ASSERT( !rTxtImport.GetListItem(),
- "SwXMLListItemContext::SwXMLListItemContext: list item is existing" );
-
// If this is a <text:list-item> element, then remember it as a sign
// that a bullet has to be generated.
- if( !bIsHeader )
- rTxtImport.SetListItem( this );
+ if( !bIsHeader ) {
+ rTxtImport.GetTextListHelper().SetListItem( this );
+ }
+
}
XMLTextListItemContext::~XMLTextListItemContext()
@@ -154,7 +151,7 @@ XMLTextListItemContext::~XMLTextListItemContext()
void XMLTextListItemContext::EndElement()
{
// finish current list item
- rTxtImport.SetListItem( 0 );
+ rTxtImport.GetTextListHelper().SetListItem( 0 );
}
SvXMLImportContext *XMLTextListItemContext::CreateChildContext(