shapeuno.cxx (3ce8cab8) | shapeuno.cxx (92f0604b) |
---|---|
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 --- 1325 unchanged lines hidden (view full) --- 1334 if( !pImplementationId && mxShapeAgg.is()) 1335 { 1336 uno::Reference< drawing::XShape > xAggShape; 1337 mxShapeAgg->queryAggregation( ::getCppuType((uno::Reference< drawing::XShape >*)0) ) >>= xAggShape; 1338 1339 if( xAggShape.is() ) 1340 { 1341 const rtl::OUString aShapeType( xAggShape->getShapeType() ); | 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 --- 1325 unchanged lines hidden (view full) --- 1334 if( !pImplementationId && mxShapeAgg.is()) 1335 { 1336 uno::Reference< drawing::XShape > xAggShape; 1337 mxShapeAgg->queryAggregation( ::getCppuType((uno::Reference< drawing::XShape >*)0) ) >>= xAggShape; 1338 1339 if( xAggShape.is() ) 1340 { 1341 const rtl::OUString aShapeType( xAggShape->getShapeType() ); |
1342 // did we already compute an implementation id for the agregated shape type? | 1342 // did we already compute an implementation id for the aggregated shape type? |
1343 ScShapeImplementationIdMap::iterator aIter( aImplementationIdMap.find(aShapeType ) ); 1344 if( aIter == aImplementationIdMap.end() ) 1345 { 1346 // we need to create a new implementation id for this | 1343 ScShapeImplementationIdMap::iterator aIter( aImplementationIdMap.find(aShapeType ) ); 1344 if( aIter == aImplementationIdMap.end() ) 1345 { 1346 // we need to create a new implementation id for this |
1347 // note: this memory is not free'd until application exists | 1347 // note: this memory is not freed until application exists |
1348 // but since we have a fixed set of shapetypes and the 1349 // memory will be reused this is ok. 1350 pImplementationId = new uno::Sequence< sal_Int8 >( 16 ); 1351 rtl_createUuid( (sal_uInt8 *) pImplementationId->getArray(), 0, sal_True ); 1352 aImplementationIdMap[ aShapeType ] = pImplementationId; 1353 } 1354 else 1355 { --- 216 unchanged lines hidden --- | 1348 // but since we have a fixed set of shapetypes and the 1349 // memory will be reused this is ok. 1350 pImplementationId = new uno::Sequence< sal_Int8 >( 16 ); 1351 rtl_createUuid( (sal_uInt8 *) pImplementationId->getArray(), 0, sal_True ); 1352 aImplementationIdMap[ aShapeType ] = pImplementationId; 1353 } 1354 else 1355 { --- 216 unchanged lines hidden --- |