Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | copy title and desc from svg file to graphic object property when inserting a svg graphic | ||
---|---|---|---|
Product: | Draw | Reporter: | Regina Henschel <rb.henschel> |
Component: | open-import | Assignee: | Armin Le Grand <Armin.Le.Grand> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | Normal | ||
Priority: | P5 (lowest) | CC: | Armin.Le.Grand, issues |
Version: | 3.4.0 Beta (OOo) | ||
Target Milestone: | 4.0.0 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
Regina Henschel
2012-01-12 20:17:29 UTC
ALG: Not as easy as it seems. Each entry in SVG may have a title and desc, but in AOO it is embedded to a single SdrObject (GraphicObject). Thus, it is not clear which tiltle/desc to take if there are several ones. It is also not clear how to remember them. It would be possible to create a new title/desc primitive and add that information to the sequence of primitives, so it would be later available when breaking the object (and a pure break from primitives will be available). ALG: Taking over. ALG: Added code to scan for ObjectInfoPrimitive2D when graphic is changed/set at SdrGraphicObject; Title and Desc is taken from the outmost such info at primitives from SVG import, Name is set to filename of the inserted SVG. Need to check for SW graphic object and if/what is possible there... ALG: Moved ObjectInfoPrimitive2D extractor to drawinglayer, changed name to be the filename only, added code to SW to set Title and Desc. No set of Name in SW currently, there is a SW-provided default name and it has to be unique. Had to do some changes to SW to get the detection running since inside the SwGrfNode constructors the SwFlyFrmFmt can not yet be found, thus had to change constructing instances. Also isolated GraphicObject access at SwGrfNode to const, thus all accesses to change Graphic there are saved and will trigger SVG name detection (onGraphicChanged()). ALG: Done so far. Usage of Name,Desc in SdrObject dismantle will have to wait until SdrObjects will be constructed from primitives directly, the info is not available in metafiles. getting rid of value "enhancement" for field "severity". For enhancement the field "issue type" shall be used. |