Issue 119123 - Openoffice Draw always import SVG with merged layers
Summary: Openoffice Draw always import SVG with merged layers
Status: UNCONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: open-import (show other issues)
Version: 3.4.0 Beta (OOo)
Hardware: PC All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-24 20:43 UTC by sorath
Modified: 2017-05-20 11:35 UTC (History)
2 users (show)

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


Attachments
svg_graph.svg (13.88 KB, image/svg+xml)
2012-03-24 20:43 UTC, sorath
no flags Details
test_svg_from_draw.svg (6.23 KB, image/svg+xml)
2012-03-24 20:53 UTC, sorath
no flags Details
graph_Inkscape.png (24.57 KB, image/png)
2012-03-26 20:44 UTC, sorath
no flags Details
graph_LibreOffice.png (15.06 KB, image/png)
2012-03-26 20:44 UTC, sorath
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sorath 2012-03-24 20:43:50 UTC
Created attachment 77361 [details]
svg_graph.svg

When import SVG file in Draw application (via "File" - "Open" menu and "Insert" - "Picture" - "From file") it's alway load with merged layers.

For exampe try to open attached SVG-file ("svg_graph.svg" created with Gnumeric) or any oher within Draw.

Note that all layers and objects of it already merged (or "combined") while every axis lines with it's marks of scale or numbers must be represented as separate groups.

It's allow only to "Break" SVG into separate elements by choosing appropriate context menu (but it break all links).

If this file had opened in "Inkscape" or in "LibreOffice Draw" - there several similar separate groups are represented (LibreOffice doesn't import text layers, but the axis with it's scales looks grouped by simalar way).
Comment 1 sorath 2012-03-24 20:53:39 UTC
See also another SVG-file created with OpenOffice Draw (attached "test_svg_from_draw.svg"). 

Note that after import all elements represent as one object while a "circle with it's border", a "rectangle with it's border" and "text" must be separate groups.
Comment 2 sorath 2012-03-24 20:53:48 UTC
Created attachment 77362 [details]
test_svg_from_draw.svg
Comment 3 sorath 2012-03-24 21:54:58 UTC
I forgot to mention it's for AOO-3.4 (AOO340m1 (Build:9589) Rev. 1303653 22.03.2012)
Comment 4 Armin Le Grand 2012-03-25 15:22:11 UTC
ALG: Adding myself to CC
Comment 5 Armin Le Grand 2012-03-26 16:24:21 UTC
ALG: With LO3.5 I get no groups, can just convert to bitmap. I'm not sure if I understand what you mean with 'layers'. When breaking links have to be broken since DrawObjects (SdrObjects) are created, the connection to the SVG must go.

ALG: Thus I guess you suggest that breaking the SVG should create an object-hierarchy with objects embedded in groups.
Comment 6 sorath 2012-03-26 20:43:08 UTC
As I see in LO-3.5.1 when SVG is imported vis "Insert" - "Picture" - "from File", then it allow only Convet - to Bitmap.

But if open SVG via "File - Open" then SVG image already is editable (but LO has problem with import of text withing svg now, so itsn't represented)

I attached examle (attached "test_svg_from_draw.svg") with it's results of opening in Inkscape and LibreOffice.

The thing is that after import via "Open" (both Inkscape and LibreOffice), it allowed without manual "Break" and "Grouping" action to move and resize elements that are already gropuped, e.g. the axis with it marks (labels) as shown on the attached
"graph_Inkscape.png" and "graph_LibreOffice.png" files
where I move  the axis of the graph with its marks without manual grouping immidiatly after opening.

Could is similar behaviour implemented?
Comment 7 sorath 2012-03-26 20:44:33 UTC
Created attachment 77378 [details]
graph_Inkscape.png
Comment 8 sorath 2012-03-26 20:44:55 UTC
Created attachment 77379 [details]
graph_LibreOffice.png
Comment 9 Armin Le Grand 2012-03-27 10:22:49 UTC
ALG: Thanks sorath for your comments. Something similar could be implemented, but I would not prefer it. While Inkscape IS a SVG-editor it of course should present opened SVG in editable form (that's it's purpose).
An office package is different; the SVG is embedded in a GraphicObject, exactly the same as a pixel graphic, e.g jpg format. It also would be nice to be able to paint on that pixel graphic, but is that expected from an office package? The same is true for SVG, it gets embedded into your document. The goal is to use it for your document, but as far as possible not to change the original data. When converting it at import time, it could e.g. not be cleanly saved as SVG inside the ODF.
Thus, the Break command is there to convert it to DrawObjects, the graphic elements used natively inside the office. That conversion is in the optimal case losless (it is currently not as described in #119125#). Saving this again as SVG will not lead to a SVG file with identical content to what you initially loaded.

Back to your report: I understand it in a way that you would prefer to have a hierarchy of grouped objects when breaking SVG. Annotation: In SVG groups are used and could be used when breaking up to represent that, but from my POV not urgently needed. What seems clear: You do NOT talk about the 'Layers' feature as it is present in Draw as it seems, but about grouping. Is that correct?
Comment 10 sorath 2012-03-27 17:18:20 UTC
Yes, thanks for your fast answering and explanations.
I actually bear something like "initial" grouping in mind after import via "File" - "Open" menu.

Also I am posted on availability of grouping of objects after "Break" action and I don't imply that this request is urgent. I just conceived Draw application like some light type of SVG-editor as a part of Office suite.


It then worth to change "Issue Type" as "Enchancement" for the importing of "internal" group structure if it's available in the SVG-file as "Break" split totaly for the independent elements.
Comment 11 Marcus 2017-05-20 11:35:10 UTC
Reset assigne to the default "issues@openoffice.apache.org".