Issue 56084 - swf export of selected object exports whole page
Summary: swf export of selected object exports whole page
Status: CLOSED WONT_FIX
Alias: None
Product: Draw
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.0
Hardware: PC (x86_64) All
: P3 Normal with 6 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 66044 (view as issue list)
Depends on:
Blocks:
 
Reported: 2005-10-16 10:21 UTC by jschwender
Modified: 2021-05-27 23:01 UTC (History)
9 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jschwender 2005-10-16 10:21:00 UTC
When i select an object and export it to svg or swf, the export file contains
the whole page with all objects and paper size background, not only the selected
object. Marking the "selection" tag in the export dialog seems to be without
effect. It works correcly with png, eps and wmf exports, and it works correctly
in version 1.1.5.

Exporting to pdf exports only the selected object, this is ok, but the object is
on a paper size background, which i would consider a defect too. It should set
bounding box or paper size to the object size if i select the "selection" tag in
the dialog.

Alternatively there could be an additional tag in the export dialog for using
the paper size or adjusting to object size for all export types.
Comment 1 wolframgarten 2005-10-17 14:10:21 UTC
For svg export the selection box is greyed out in current version, not in OOo1.1.5.
AFAIK swf export does not support selected export.
Reassigned.
Comment 2 wolframgarten 2005-10-17 14:12:48 UTC
target set.
Comment 3 lymwaydurchting 2010-11-10 21:56:08 UTC
Created attachment 73729
Comment 4 davidjprokopetz 2011-01-02 05:24:29 UTC
This issue still seems to be present in DEV300m95 - checking "Selection" when
exporting to SVG still exports the entire drawing.
Comment 5 Regina Henschel 2012-01-14 15:15:09 UTC
*** Issue 66044 has been marked as a duplicate of this issue. ***
Comment 6 Armin Le Grand 2012-01-14 18:13:00 UTC
ALG: Taking over...
Comment 7 Armin Le Grand 2012-01-16 14:27:54 UTC
ALG: Invested a bit, Svg writer has not even a concept for doing this; the implementer simply ignored that possibility (I know who it was, it was not simply not knowing this).
Comment 8 Rainer Bielefeld 2013-05-28 15:56:10 UTC
6 votes is not so very few, I do not see this one  a "trivial" one. 

Real life example where selection export is necessary: I use LibO / AOO (both used to circuit each other's bugs) to draw installation layouts for process visualization. My programming system accepts .SVG drawings, and the result on the visualization panel is much better than with gif or similar. And some separate drawing elements can be used much more flexible because of nice view of resized elements. I collect all my drawings for a project in 1 document, and Page size is selected so that the drawing will match with free space on visualization panel with my default scale. But of course most drawings do not need all free space, most are much smaller, and I can use remaining place for other elements (buttons, process values, ...)

But because of this bug for each drawing I export I have to copy my resulting Drawing to a new Draw document and to adapt page size to Drawing size before I can export to SVG, because big ampty margins around the drawing contents are not acceptable. That's really annoying.
Comment 9 Ariel Constenla-Haile 2013-05-28 16:01:34 UTC
IIRC these are two different export filters:
main/filter/source/svg/
main/filter/source/flash

It would be nice to split this bug in two separated reports.
Comment 10 Armin Le Grand 2013-05-30 10:44:21 UTC
ALG: I took a look and - sorry - this is no easy change, so it has to wait until after AOO4.0.
Comment 11 Rob Weir 2013-10-22 14:54:57 UTC
The content of attachment 73729 has been deleted for the following reason:

Spam
Comment 12 Edwin Sharp 2014-04-07 13:57:43 UTC
-svg due to issue 124608
Comment 13 Armin Le Grand 2014-04-07 15:47:01 UTC
Swf seems a little bit different from svg export when selection shall be exported; normally swf exports all slides to a slideshow. When selection is active, it will be necessary to limit the export not only to the selection, but also to the single slide containing these. Checking basic mechanism...
Comment 14 Armin Le Grand 2014-04-08 12:10:00 UTC
Okay, swf can be done, too. I experimented and used a solution as close as possible to issue 124608. When in selection mode only the page with the selection is exported. It works with any selection. Backgrounds are left out in that mode (masterpage fill, object on MP), also as with SVG. Also the same with for now staying on keeping the page dimensions, so no translations to the exported objects. BTW this is similar to full export where normally also the objects do not cover the whole page, but the page dimension is used at export.
Doing some more tests...
Comment 15 SVN Robot 2014-04-08 12:24:24 UTC
"alg" committed SVN revision 1585706 into trunk:
i56084 added support for export selection in swf export
Comment 16 Armin Le Grand 2014-04-08 12:28:05 UTC
Done as far as selection gets exported in all scenarios - same as issue 124608 we may discuss the FullPage size export. There are args for both, but I guess swf as an animation format makes not too much sense to 'zoom' to the selection at all (and exporting a selection and thus only one page offers the proposed functionality, but is also not too useful from my POV).
Comment 17 Armin Le Grand 2014-04-10 13:43:22 UTC
Tried to work on using Range of selected objects, but the swf exporter uses a wild combination of own scalings (to twips) and metafile interpretation; that mix inclused relative mappings with MapModes which (I tried it) can currently not uniformly be mapped to transforming to the needed range. This would probably work when converting the exporter to use primitives of the objects (which would allow to work with one world transformation and a specialized renderer), but that would be too much work for now. Thus, I will keep it on that state - the selection export is supported, but not reducing export pagesize to selected object range.
Comment 18 Marcus 2017-05-20 10:45:37 UTC
Reset the assignee to the default "issues@openoffice.apache.org".
Comment 19 Matthias Seidel 2021-05-27 17:48:51 UTC
Flash is dead and gone... ;-)
Comment 20 Marcus 2021-05-27 22:58:29 UTC
Closed due to comment #19.
Comment 21 Matthias Seidel 2021-05-27 23:01:56 UTC
Furthermore, we should think about removing the code sooner or later.