shape.cxx (a44335ce) shape.cxx (4b2c1a94)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 171 unchanged lines hidden (view full) ---

180 }
181 catch( const Exception& )
182 {
183 }
184}
185
186void Shape::applyShapeReference( const Shape& rReferencedShape )
187{
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 171 unchanged lines hidden (view full) ---

180 }
181 catch( const Exception& )
182 {
183 }
184}
185
186void Shape::applyShapeReference( const Shape& rReferencedShape )
187{
188 mpTextBody = TextBodyPtr( new TextBody( *rReferencedShape.mpTextBody.get() ) );
188 if ( rReferencedShape.mpTextBody.get() )
189 mpTextBody = TextBodyPtr( new TextBody( *rReferencedShape.mpTextBody.get() ) );
189 maShapeProperties = rReferencedShape.maShapeProperties;
190 mpLinePropertiesPtr = LinePropertiesPtr( new LineProperties( *rReferencedShape.mpLinePropertiesPtr.get() ) );
191 mpFillPropertiesPtr = FillPropertiesPtr( new FillProperties( *rReferencedShape.mpFillPropertiesPtr.get() ) );
192 mpCustomShapePropertiesPtr = CustomShapePropertiesPtr( new CustomShapeProperties( *rReferencedShape.mpCustomShapePropertiesPtr.get() ) );
193 mpTablePropertiesPtr = table::TablePropertiesPtr( rReferencedShape.mpTablePropertiesPtr.get() ? new table::TableProperties( *rReferencedShape.mpTablePropertiesPtr.get() ) : NULL );
194 mpMasterTextListStyle = TextListStylePtr( new TextListStyle( *rReferencedShape.mpMasterTextListStyle.get() ) );
195 maShapeStyleRefs = rReferencedShape.maShapeStyleRefs;
196 maSize = rReferencedShape.maSize;

--- 427 unchanged lines hidden ---
190 maShapeProperties = rReferencedShape.maShapeProperties;
191 mpLinePropertiesPtr = LinePropertiesPtr( new LineProperties( *rReferencedShape.mpLinePropertiesPtr.get() ) );
192 mpFillPropertiesPtr = FillPropertiesPtr( new FillProperties( *rReferencedShape.mpFillPropertiesPtr.get() ) );
193 mpCustomShapePropertiesPtr = CustomShapePropertiesPtr( new CustomShapeProperties( *rReferencedShape.mpCustomShapePropertiesPtr.get() ) );
194 mpTablePropertiesPtr = table::TablePropertiesPtr( rReferencedShape.mpTablePropertiesPtr.get() ? new table::TableProperties( *rReferencedShape.mpTablePropertiesPtr.get() ) : NULL );
195 mpMasterTextListStyle = TextListStylePtr( new TextListStyle( *rReferencedShape.mpMasterTextListStyle.get() ) );
196 maShapeStyleRefs = rReferencedShape.maShapeStyleRefs;
197 maSize = rReferencedShape.maSize;

--- 427 unchanged lines hidden ---