Issue 125153 - Remove property GraphicRotation
Summary: Remove property GraphicRotation
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 4.2.0-dev
Hardware: PC Windows, all
: P3 Minor (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2014-06-24 23:05 UTC by Regina Henschel
Modified: 2014-06-24 23:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

container with test files with applied GraphicRotation and macro (38.05 KB, application/zip)
2014-06-24 23:05 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2014-06-24 23:05:36 UTC
Created attachment 83597 [details]
container with test files with applied GraphicRotation and macro

Select a Writer-picture and examine it with the Basic IDE. It supports the service SwXTextGraphicObject. The Basic IDE gives access to the property GraphicRotation, and you can set a value using a macro. Such macro is contained in file "Generated_by_AOO42.odt" in the attached zip-container.

In former versions, at least till AOO3.4, this results in a rotation of the picture around the top-left corner of the clip-rectangle set by the crop feature. You can open the attached files in AOO3.4 to see this.

(1) The value of GraphicRotation is written as "svg:transform" attribute of the draw:frame element. But ODF 1.2 does not allow such attribute.

(2) The value is written in the meaning of "actual degree = value * 0.1", but SVG defines it as literal degree.

(3) AOO4.2 does not render the rotation.

(4) AOO4.2 writes the invalid attribute itself in a newly created document, if the value is applied by a macro.

(5) The property GraphicRotation is not mentioned in the API.

GraphicRotation should not be repaired in any kind, but superseded by a proper implementation of attribute draw:transform.

BTW, you need a graphic with transparency in AOO3.4, otherwise you get rendering errors when using negative crop values. Therefore a picture with palette and defined transparent color is used in the attached examples.