Tag: cws_src680_rptchart01
User: oj      
Date: 2008-02-22 07:33:24+0000
Modified:
   dba/reportdesign/source/filter/xml/xmlExport.cxx

Log:
 #i85255# export sub-document when element is a model

File Changes:

Directory: /dba/reportdesign/source/filter/xml/
===============================================

File [changed]: xmlExport.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/filter/xml/xmlExport.cxx?r1=1.6.20.6&r2=1.6.20.7
Delta lines:  +4 -18
--------------------
--- xmlExport.cxx       2008-02-19 16:59:28+0000        1.6.20.6
+++ xmlExport.cxx       2008-02-22 07:33:21+0000        1.6.20.7
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: xmlExport.cxx,v $
  *
- *  $Revision: 1.6.20.6 $
+ *  $Revision: 1.6.20.7 $
  *
- *  last change: $Author: oj $ $Date: 2008/02/19 16:59:28 $
+ *  last change: $Author: oj $ $Date: 2008/02/22 07:33:21 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -91,27 +91,13 @@
 #include <com/sun/star/style/ParagraphAdjust.hpp>
 #include <com/sun/star/awt/TextAlign.hpp>
 #include <com/sun/star/report/GroupOn.hpp>
-#ifndef _COM_SUN_STAR_REPORT_XFIXEDTEXT_HPP_
 #include <com/sun/star/report/XFixedText.hpp>
-#endif
-#ifndef _COM_SUN_STAR_REPORT_XImageControl_HPP_
 #include <com/sun/star/report/XImageControl.hpp>
-#endif
-#ifndef _COM_SUN_STAR_REPORT_XSHAPE_HPP_
 #include <com/sun/star/report/XShape.hpp>
-#endif
-#ifndef _COM_SUN_STAR_DRAWING_XSHAPE_HPP_
 #include <com/sun/star/drawing/XShape.hpp>
-#endif
-#ifndef _COM_SUN_STAR_DRAWING_XSHAPES_HPP_
 #include <com/sun/star/drawing/XShapes.hpp>
-#endif
-#ifndef _COM_SUN_STAR_REPORT_XFUNCTION_HPP_
 #include <com/sun/star/report/XFunction.hpp>
-#endif
-#ifndef _COM_SUN_STAR_AWT_FONTDESCRIPTOR_HPP_
 #include <com/sun/star/awt/FontDescriptor.hpp>
-#endif
 #include <com/sun/star/text/TextContentAnchorType.hpp>
 #include <com/sun/star/table/BorderLine.hpp>
 #include <com/sun/star/report/XFixedLine.hpp>
@@ -1701,8 +1687,8 @@
         if ( xShape.is() )
         {
             ::std::auto_ptr<SvXMLElementExport> pSubDocument;
-            uno::Sequence< ::rtl::OUString> aMasterFields = 
xShape->getMasterFields();
-            if ( aMasterFields.getLength() )
+            uno::Reference< frame::XModel> 
xModel(xShape->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Model"))),uno::UNO_QUERY);
+            if ( xModel.is() ) // special handlingfor chart object
             {
                 pSubDocument.reset(new 
SvXMLElementExport(*this,XML_NAMESPACE_REPORT, XML_SUB_DOCUMENT, sal_False, 
sal_False));
                 exportMasterDetailFields(xShape.get());




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to