summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximpbody.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/xmloff/source/draw/ximpbody.cxx b/xmloff/source/draw/ximpbody.cxx
index 52562d7f4e34..7a7bd84f0fae 100644
--- a/xmloff/source/draw/ximpbody.cxx
+++ b/xmloff/source/draw/ximpbody.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ximpbody.cxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: rt $ $Date: 2004-11-26 19:33:51 $
+ * last change: $Author: kz $ $Date: 2005-01-14 12:01:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -382,6 +382,13 @@ SvXMLImportContext *SdXMLBodyContext::CreateChildContext(
switch(rTokenMap.Get(nPrefix, rLocalName))
{
+ case XML_TOK_BODY_HEADER_DECL:
+ case XML_TOK_BODY_FOOTER_DECL:
+ case XML_TOK_BODY_DATE_TIME_DECL:
+ {
+ pContext = new SdXMLHeaderFooterDeclContext( GetImport(), nPrefix, rLocalName, xAttrList );
+ break;
+ }
case XML_TOK_BODY_PAGE:
{
// only read the first page in preview mode
@@ -391,6 +398,9 @@ SvXMLImportContext *SdXMLBodyContext::CreateChildContext(
uno::Reference< drawing::XDrawPage > xNewDrawPage;
uno::Reference< drawing::XDrawPages > xDrawPages(GetSdImport().GetLocalDrawPages(), uno::UNO_QUERY);
+ if( !xDrawPages.is() )
+ break;
+
if(GetSdImport().GetNewPageCount() + 1 > xDrawPages->getCount())
{
// new page, create and insert