https://bugs.documentfoundation.org/show_bug.cgi?id=103567

Michael Stahl <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected],
                   |                            |[email protected]
            Version|5.2.2.2 release             |4.0.0.3 release
         Resolution|---                         |FIXED
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |
            Summary|FILESAVE: Hyperlinks        |ODF import: Interaction
                   |inserted in gallery objects |events / Hyperlinks
                   |are not persistent in ODP   |inserted on SVG images are
                   |files                       |lost
         Whiteboard|                            |odf

--- Comment #2 from Michael Stahl <[email protected]> ---
LO does store elements like this:

          <office:event-listeners>
            <presentation:event-listener script:event-name="dom:click"
presentation:action="next-page"/>
          </office:event-listeners>

          <office:event-listeners>
            <presentation:event-listener script:event-name="dom:click"
presentation:action="show" xlink:href="http://example.com/"; xlink:type="simple"
xlink:show="embed" xlink:actuate="onRequest"/>
          </office:event-listeners>

but doesn't load them if the image is a SVG; if it's a JPEG
then the events load fine.

that started with LO 4.0, which introduced the new SVG import filter.

... the problem is that the SVG actually has 2 draw:image inside a draw:frame,
on import the event stuff is stored on the PNG fall-back object and then
that is deleted by MultiImageImportHelper::solveMultipleImages
because the SVG is better.

... the relaxng for draw frame is:

                <element name="draw:frame">
                        <ref
name="common-draw-shape-with-text-and-styles-attlist"/>
                        <ref name="common-draw-position-attlist"/>
                        <ref name="common-draw-rel-size-attlist"/>
                        <ref name="common-draw-caption-id-attlist"/>
                        <ref name="presentation-shape-attlist"/>
                        <ref name="draw-frame-attlist"/>
                        <zeroOrMore>
                                <choice>
                                        <ref name="draw-text-box"/>
                                        <ref name="draw-image"/>
                                        <ref name="draw-object"/>
                                        <ref name="draw-object-ole"/>
                                        <ref name="draw-applet"/>
                                        <ref name="draw-floating-frame"/>
                                        <ref name="draw-plugin"/>
                                        <ref name="table-table"/>
                                </choice>
                        </zeroOrMore>
                        <optional>
                                <ref name="office-event-listeners"/>
                        </optional>
                        <zeroOrMore>
                                <ref name="draw-glue-point"/>
                        </zeroOrMore>
                        <optional>
                                <ref name="draw-image-map"/>
                        </optional>
                        <optional>
                                <ref name="svg-title"/>
                        </optional>
                        <optional>
                                <ref name="svg-desc"/>
                        </optional>
                        <optional>
                                <choice>
                                        <ref name="draw-contour-polygon"/>
                                        <ref name="draw-contour-path"/>
                                </choice>
                        </optional>
                </element>

... so its children are ordered, we know at which point we
have all variant main content elements, and can choose which
one to pick *before* applying the various properties in the optional
child elements.

the import calls solveMultipleImages too late currently.

fixed on master.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to