From 54e231804467fa6e129c238642c4de4f95160e37 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Fri, 18 Mar 2005 17:31:21 +0000 Subject: INTEGRATION: CWS xmlperf02 (1.93.24); FILE MERGED 2005/02/01 14:32:42 fs 1.93.24.1: #119224# XFormsSupplier allows for asking for existence of a draw page's forms in a cheaper way --- xmloff/source/draw/sdxmlexp.cxx | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx index a7f18f7c86c8..69a9a0f73f2a 100644 --- a/xmloff/source/draw/sdxmlexp.cxx +++ b/xmloff/source/draw/sdxmlexp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sdxmlexp.cxx,v $ * - * $Revision: 1.94 $ + * $Revision: 1.95 $ * - * last change: $Author: vg $ $Date: 2005-03-08 14:55:55 $ + * last change: $Author: kz $ $Date: 2005-03-18 18:31:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -149,8 +149,8 @@ #include #endif -#ifndef _COM_SUN_STAR_FORM_XFORMSUPPLIER_HPP_ -#include +#ifndef _COM_SUN_STAR_FORM_XFORMSUPPLIER2_HPP_ +#include #endif #ifndef _COM_SUN_STAR_PRESENTATION_XPRESENTATIONPAGE_HPP_ @@ -2668,16 +2668,12 @@ void SdXMLExport::exportFormsElement( Reference< XDrawPage > xDrawPage ) { if( xDrawPage.is() ) { - Reference< form::XFormsSupplier > xFormsSupplier( xDrawPage, UNO_QUERY ); - if( xFormsSupplier.is() ) + Reference< form::XFormsSupplier2 > xFormsSupplier( xDrawPage, UNO_QUERY ); + if ( xFormsSupplier.is() && xFormsSupplier->hasForms() ) { - Reference< container::XNameContainer > xForms( xFormsSupplier->getForms() ); - if( xForms.is() && xForms->hasElements() ) - { - // write masterpage - ::xmloff::OOfficeFormsExport aForms(*this); - GetFormExport()->exportForms( xDrawPage ); - } + // write masterpage + ::xmloff::OOfficeFormsExport aForms(*this); + GetFormExport()->exportForms( xDrawPage ); } sal_Bool bRet = GetFormExport()->seekPage( xDrawPage ); -- cgit