Created attachment 54251 [details] docx file The attached file is created with Microsoft Word , and it contains an image that LibreOffice writer doesn't view. the image appears when using Microsoft Word or Microsoft Word web app .
Confirmed
inside of docx file I see file /word/document.xml When opening it by Firefox, we can see tag <w:drawing> inside of it inside tags <wp:inline> and <a:graphic> When saving into odt by Word 2007, it saves picture as raster
Created attachment 56976 [details] screenshot in MSWord 2007 russian
Created attachment 56978 [details] converted into odt by Word 2007
We have something like this in-line in the document: <w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="5486400" cy="3685540"/><wp:effectExtent l="19050" t="0" r="0" b="0"/><wp:docPr id="2" name="Object 2"/><wp:cNvGraphicFramePr/><a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas"><lc:lockedCanvas><a:nvGrpSpPr><a:cNvPr id="0" name=""/><a:cNvGrpSpPr/></a:nvGrpSpPr><a:grpSpPr> Which we don't appear to open; Miklos - any quick analysis on what is missing here ? :-)
It seems to me that such a shape can be created with inserting the shape in powerpoint2007, then copy&pasting it to word2007, then saving as docx. This is plain VML without drawingML fallback, and it seems that even if we have a drawingML importer, the shape part of that is not connected with the docx import. Normally if you insert shapes in word2007 or word2010, you either get only VML shapes or you get mc:AlternateContent, and then you have the VML fallback again. So this is a groupshape, but I hope the bug has nothing to do with groupshapes. :-)
> This is plain VML without drawingML fallback Err, "plain drawingML without VML fallback" is what I wanted to write.
I'll try to take care of this.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=32b93c5c4f0663eefd1e1979875f8af659c463df fdo#43641 oox: add support for the lockedCanvas namespace The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=363dafefad14411a16f6ea9d2ee0d55b67bc9c8d fdo#43641 writerfilter: tokenize lc:lockedCanvas The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=a9966b272151fa66c4a7c74bcb2505ef2ea94a6e fdo#43641 oox: initial import of lc:lockedCanvas The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
With the above commits, something gets imported, but the relative position of the lines and ellipses, etc in the groupshape is still problematic.
I was wrong, only the position and size of LineShapes is wrong, the rest is correct.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=76a90e69d15104f76193647050948528caf6ff8d fdo#43641 oox: fix position/size of LineShapes inside lockedCanvas The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=832612bb6bd013cf68a64e33827158f96e6d03d3 fdo#43641 testcase The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Fixed in master, marking as resolved. ATM I don't plan to backport this, as this is more of a new feature that never worked.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0f61ec4974a8c9aee85c3225814c002371eac4ff&h=libreoffice-4-1 fdo#43641 oox: add support for the lockedCanvas namespace It will be available in LibreOffice 4.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=c2f608eec26c07e172f0e0137207d7ccdff202d0&h=libreoffice-4-1 fdo#43641 writerfilter: tokenize lc:lockedCanvas It will be available in LibreOffice 4.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=85b05fac54b1b9ed87f5603001a4885a14f3a5ab&h=libreoffice-4-1 fdo#43641 oox: initial import of lc:lockedCanvas It will be available in LibreOffice 4.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=34d278a5e6c40dd812480c09754fa1bcc53a71d6&h=libreoffice-4-1 fdo#43641 oox: fix position/size of LineShapes inside lockedCanvas It will be available in LibreOffice 4.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=418f712d6e59a2142125ed7815143496bfb5ea81&h=libreoffice-4-1 fdo#43641 testcase It will be available in LibreOffice 4.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
thanks for fixing this bug and creating test