Need help in UNO

Miklos Vajna vmiklos at suse.cz
Mon Apr 2 14:11:48 PDT 2012


On Mon, Apr 02, 2012 at 08:20:18PM +0200, Dézsi Szabolcs <dezsiszabi at hotmail.com> wrote:
> > Not sure if you noticed that the RotationDescriptor service is
> > deprecated, just in case you plan to spend too much time on it. ;)
> 
> 
> Yes, I noticed it, I think I have to use Transformation (?).
> 
> This is just a test to see if I can do it with RotateAngle (like in extension), after that I can use Transformation (I hope).

Hi Szabolcs,

Indeed, which API you use is irrelevant at the moment. :)

Seems your problem is that the extension first converts the picture
frame (SwXTextGraphicObject) to an SwXShape (you can see the position of
the shape is changed - though probably that's an accident), and then it
sets the RotationAngle property, since that object will have that
property then.

Check how that conversion is done in the extension, then you can do
something similar in SwGrfShell::Execute().

Miklos


More information about the LibreOffice mailing list