shape.cxx (ca5ec200) shape.cxx (d742e3ec)
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

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

470 PropertySet( xSet ).setProperties( aShapeProps );
471
472 if( bIsCustomShape )
473 {
474 if ( mbFlipH )
475 mpCustomShapePropertiesPtr->setMirroredX( sal_True );
476 if ( mbFlipV )
477 mpCustomShapePropertiesPtr->setMirroredY( sal_True );
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

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

470 PropertySet( xSet ).setProperties( aShapeProps );
471
472 if( bIsCustomShape )
473 {
474 if ( mbFlipH )
475 mpCustomShapePropertiesPtr->setMirroredX( sal_True );
476 if ( mbFlipV )
477 mpCustomShapePropertiesPtr->setMirroredY( sal_True );
478
479 // #119920 Handle missing text rotation
480 if(getTextBody())
481 {
482 const sal_Int32 nTextRotation(getTextBody()->getTextProperties().moRotation.get(0));
483
484 if(nTextRotation)
485 {
486 mpCustomShapePropertiesPtr->setTextRotation((nTextRotation * -1) / 60000);
487 }
488 }
489
478 mpCustomShapePropertiesPtr->pushToPropSet( rFilterBase, xSet, mxShape );
479 }
480
481 // in some cases, we don't have any text body.
482 if( getTextBody() )
483 {
484 Reference < XText > xText( mxShape, UNO_QUERY );
485 if ( xText.is() ) // not every shape is supporting an XText interface (e.g. GroupShape)

--- 126 unchanged lines hidden ---
490 mpCustomShapePropertiesPtr->pushToPropSet( rFilterBase, xSet, mxShape );
491 }
492
493 // in some cases, we don't have any text body.
494 if( getTextBody() )
495 {
496 Reference < XText > xText( mxShape, UNO_QUERY );
497 if ( xText.is() ) // not every shape is supporting an XText interface (e.g. GroupShape)

--- 126 unchanged lines hidden ---