Tag: cws_src680_reportdesign02
User: oj      
Date: 2007-10-30 14:37:47+0000
Modified:
   dba/reportdesign/source/filter/xml/xmlExport.cxx

Log:
 #i80173# surround shapes only with one text-p

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.5&r2=1.5.36.1
Delta lines:  +5 -7
-------------------
--- xmlExport.cxx       2007-08-06 10:47:23+0000        1.5
+++ xmlExport.cxx       2007-10-30 14:37:45+0000        1.5.36.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: xmlExport.cxx,v $
  *
- *  $Revision: 1.5 $
+ *  $Revision: 1.5.36.1 $
  *
- *  last change: $Author: hr $ $Date: 2007/08/06 10:47:23 $
+ *  last change: $Author: oj $ $Date: 2007/10/30 14:37:45 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -1667,17 +1667,15 @@
     UniReference< XMLShapeExport > xShapeExport = GetShapeExport();
     const sal_Int32 nCount = _xSection->getCount();
     awt::Point aRefPoint;
+    ::std::auto_ptr<SvXMLElementExport> pParagraphContent;
+    if ( _bAddParagraph )
+        pParagraphContent.reset(new 
SvXMLElementExport(*this,XML_NAMESPACE_TEXT, XML_P, sal_True, sal_False));
     aRefPoint.X = 
rptui::getStyleProperty<sal_Int32>(_xSection->getReportDefinition(),PROPERTY_LEFTMARGIN);
     for (sal_Int32 i = 0; i < nCount; ++i)
     {
         uno::Reference< XShape > 
xShape(_xSection->getByIndex(i),uno::UNO_QUERY);
         if ( xShape.is() )
         {
-            ::std::auto_ptr<SvXMLElementExport> pParagraphContent;
-            if ( _bAddParagraph )
-            {
-                pParagraphContent.reset(new 
SvXMLElementExport(*this,XML_NAMESPACE_TEXT, XML_P, sal_True, sal_False));
-            }
             AddAttribute( XML_NAMESPACE_TEXT, XML_ANCHOR_TYPE, XML_PARAGRAPH );
             
xShapeExport->exportShape(xShape.get(),SEF_DEFAULT|SEF_EXPORT_NO_WS,&aRefPoint);
         }




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

Reply via email to