diff options
author | Christian Lippka <cl@openoffice.org> | 2002-11-04 11:38:51 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2002-11-04 11:38:51 +0000 |
commit | 691e0d5165bb4821eb4538452f1be76740e45d9c (patch) | |
tree | 33f5e5eb9aa3c2d72d7a62706d168ad2c5d9a7ed /xmloff/source | |
parent | 0bd663fc27c510615a4729b947c9b5734d10e62b (diff) |
#104456# don't support styles for group shapes
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/draw/shapeexport.cxx | 16 | ||||
-rw-r--r-- | xmloff/source/draw/ximpgrp.cxx | 6 |
2 files changed, 13 insertions, 9 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 3d9a015122e5..0733b796136c 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -2,9 +2,9 @@ * * $RCSfile: shapeexport.cxx,v $ * - * $Revision: 1.53 $ + * $Revision: 1.54 $ * - * last change: $Author: cl $ $Date: 2002-07-19 12:50:55 $ + * last change: $Author: cl $ $Date: 2002-11-04 12:38:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -248,7 +248,7 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap // ----------------------------- ImpCalcShapeType(xShape, aShapeInfo.meShapeType); - const sal_Bool bObjSupportsText = + const bool bObjSupportsText = // aShapeInfo.meShapeType != XmlShapeTypeDrawControlShape && aShapeInfo.meShapeType != XmlShapeTypeDrawChartShape && aShapeInfo.meShapeType != XmlShapeTypePresChartShape && @@ -258,7 +258,13 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap aShapeInfo.meShapeType != XmlShapeTypeDraw3DCubeObject && aShapeInfo.meShapeType != XmlShapeTypeDraw3DSphereObject && aShapeInfo.meShapeType != XmlShapeTypeDraw3DLatheObject && - aShapeInfo.meShapeType != XmlShapeTypeDraw3DExtrudeObject; + aShapeInfo.meShapeType != XmlShapeTypeDraw3DExtrudeObject && + aShapeInfo.meShapeType != XmlShapeTypeDrawPageShape && + aShapeInfo.meShapeType != XmlShapeTypePresPageShape && + aShapeInfo.meShapeType != XmlShapeTypeDrawGroupShape; + + const bool bObjSupportsStyle = + aShapeInfo.meShapeType != XmlShapeTypeDrawGroupShape; sal_Bool bIsEmptyPresObj = sal_False; @@ -290,7 +296,7 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap // ------------------------------ // compute the shape parent style // ------------------------------ - if(xPropSet.is()) + if( xPropSet.is() && bObjSupportsStyle ) { uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() ); diff --git a/xmloff/source/draw/ximpgrp.cxx b/xmloff/source/draw/ximpgrp.cxx index 678600e163ca..c6df40a1499b 100644 --- a/xmloff/source/draw/ximpgrp.cxx +++ b/xmloff/source/draw/ximpgrp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ximpgrp.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: cl $ $Date: 2001-12-14 15:39:26 $ + * last change: $Author: cl $ $Date: 2002-11-04 12:38:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -147,8 +147,6 @@ void SdXMLGroupShapeContext::StartElement(const uno::Reference< xml::sax::XAttri if(mxShape.is()) { - SetStyle(); - mxChilds = uno::Reference< drawing::XShapes >::query( mxShape ); if( mxChilds.is() ) GetImport().GetShapeImport()->pushGroupForSorting( mxChilds ); |