SHOW:
|
|
- or go back to the newest paste.
| 1 | uno::Reference< frame::XModel > xModel = GetView().GetDocShell() ? GetView().GetDocShell()->GetModel() : NULL; | |
| 2 | if ( xModel.is() ) | |
| 3 | {
| |
| 4 | - | uno::Reference< drawing::XShape > xShape = xModel->getCurrentSelection(), uno::UNO_QUERY ); |
| 4 | + | uno::Reference< drawing::XShape > xShape( xModel->getCurrentSelection(), uno::UNO_QUERY ); |
| 5 | uno::Reference< beans::XPropertySet > rShapeProps( xShape, uno::UNO_QUERY ); | |
| 6 | uno::Any Angle; | |
| 7 | Angle <<= (long)9000; | |
| 8 | rShapeProps->setPropertyValue(::rtl::OUString::createFromAscii("RotateAngle"), Angle);
| |
| 9 | } |