https://bugs.freedesktop.org/show_bug.cgi?id=57616

          Priority: medium
            Bug ID: 57616
          Assignee: libreoffice-bugs@lists.freedesktop.org
           Summary: FILEOPEN: DOCX with Drawing Canvas or Grouped Shapes
                    inline with text transformed to LO wrap In background
                    or through
          Severity: blocker
    Classification: Unclassified
                OS: Windows (All)
          Reporter: jfran...@his.co.uk
          Hardware: x86 (IA32)
            Status: UNCONFIRMED
           Version: 3.6.3.2 release
         Component: Writer
           Product: LibreOffice

Created attachment 70669
  --> https://bugs.freedesktop.org/attachment.cgi?id=70669&action=edit
First example with drawing canvas

I am trying to import a document with a Diagram from Word (2007, but equally
have problems with Word 2013 Pro Preview).
The Diagram consists of shapes positioned on a Drawing Canvas which has a
'layout' property to be inline with text. (OOXML wrap type="none").
The purpose is to have a diagram that moves with the text before and after it.
Without a solution to this we cannot exchange documents between 2 people
working on Word and LibreOffice.

To create such a document:
1/ Create a new blank document.
2/ Insert 2 paras of text.
3/ Insert a Drawing canvas
4/ Right click canvas and select 'format drawing canvas'. Check that the dialog
tab layout is set to 'inline with text'
5/ Add shapes to canvas...

Here is an excerpt from the document.xml file in the OOXML container.

<w:pict>
    <v:group id="_x0000_s1041" editas="canvas"
       
style="width:451.3pt;height:270.8pt;mso-position-horizontal-relative:char;mso-position-vertical-relative:line"
        coordorigin="2362,4342" coordsize="7200,4320">
        <o:lock v:ext="edit" aspectratio="t" />
<!-- Shapes removed for brevity -->
        <w10:wrap type="none" />
        <w10:anchorlock />
    </v:group>...

xmlns:w10="urn:schemas-microsoft-com:office:word"

Therefore it appears with a paragraph above and below it.

When opened in LibreOffice the canvas background disappears, the top most box
disappears apart from its text. This seems partly to be because whatever
replaces the canvas has some other kind of wrap.
The example file DocForLoBugzilla.docx shows this.

A second approach to importing a Word doc with a diagram was to group a series
of shapes outside of a Drawing Canvas.
1/ Create a new blank document.
2/ Insert 2 paras of text.
3/ Insert a Rectangle shape making it about the size and position of a
paragraph between the other 2.
4/ Insert 2 further rectangle shapes 'inside' the last rectangle
5/ Select all 3 shapes using Ctrl Click5/ Right click on selection and select
Grouping->Group
6/ Right click on the grouped shape and select 'format object'
7/ On the layout tab of the dialog click on inline with text under wrapping
style.

When opened in LibreOffice the shape group is preserved but the 'in line' with
text is not, and the diagram appears over the text.
The example file DocForLoBugzilla2.docx shows this.

Otherwise many thanks for LibreOffice, standalone it works very well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to