Advertisement
dezsiszabi

Untitled

Apr 2nd, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  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 );
  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.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement