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

            Bug ID: 162618
           Summary: [META] MSO layoutInCell / LO IsFollowingTextFlow
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: filter:doc, filter:docx, filter:odf
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
        Depends on: 60205, 104763, 113373, 133522, 135943, 148550, 162539,
                    162612, 51131, 77794, 91632, 105971, 116256, 154855,
                    157637, 157707, 160077, 162211, 162304, 162541,
                    162542, 162551

layoutInCell (Microsoft formats)  (allowincell in VML)
 * only has effect in tables AFAIK
 *forces the shape to be contained inside the cell (the cell expands to
encompass a large shape)
 ** exception: for vertical, it forces containment within the cell margins
 ** exception: if wrap-through, then fromTop or fromLeft can escape from the
cell
 * margin orientation now refers to cell margin (the area the text can fit in -
after the border spacing)
 * “page” orientation now refers to cell frame
 ** exception: for vertical, it refers to the cell margin
 * the default value (if not specified) is true
 ** exception: apparently layoutInCell is always considered true if vertical
orientation is “line” or horizontal orientation is “character”
 ** exception: since Word 2013 (compatibilityMode 15), layoutInCell is always
considered true
 * if NOT layoutInCell, “paragraph” orientation does not refer to the anchor
paragraph, but to the line on which the table appears. (i.e. the shape is to be
placed outside of the table)
 ** exception: all shapes are treated as “wrap-through”

Documentation quote: “Specifies how this DrawingML object behaves when its
anchor is located in a table cell; and its specified position would cause it to
intersect with a table cell displayed in the document. That behavior shall be
as follows:
 * When this attribute has a value of true , then the object shall be
positioned within the existing table cell, causing the cell to be resized as
needed. This means that all positioning shall be relative to the cell and not
the line on which the table appears.
 * When this attribute has a value of false, then the object shall be
positioned as specified, but the table shall be resized and/or relocated within
the document as needed to accommodate the object. This means that all
positioning shall be relative to the line on which the table appears and not
the cell in which the anchor is present.”


FollowTextFlow (LibreOffice formats) style:flow-with-text
 * created in OOo to implement layoutInCell
 * applies to tables, pages, header/footer, footnote/endnote, floating frames
 * “page text area” refers to the container’s text area
 * “entire page” orientation now refers to the container frame
 * the default value (if not specified) is false
 * if NOT following text flow, “paragraph” orientation still naturally refers
to the anchor paragraph.

Docuemntation quote: “The style:flow-with-text attribute specifies whether a
drawing shape flows with the text of its layout environment or not. The layout
environment of a drawing shape is determined by the location of its anchor.”


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=51131
[Bug 51131] EDITING: Images should not be moved out of text boundaries ('follow
text flow' disabled)
https://bugs.documentfoundation.org/show_bug.cgi?id=60205
[Bug 60205] Multi-column 1-page RTF(not doc) with text box (absolute position
to margin with "Layout in table cell") opens with wrong frame position
https://bugs.documentfoundation.org/show_bug.cgi?id=77794
[Bug 77794] FILEOPEN: DOCX - incorrect placement of image inside a cell when
position option "Layout in table cell" is set
https://bugs.documentfoundation.org/show_bug.cgi?id=91632
[Bug 91632] msword has some strange "layout in table cell" behaviour
https://bugs.documentfoundation.org/show_bug.cgi?id=104763
[Bug 104763] FILESAVE ODT->DOC: image in table anchored to para need to be
marked "layout in cell" on export for MSO benefit.
https://bugs.documentfoundation.org/show_bug.cgi?id=105971
[Bug 105971] FILEOPEN DOC Image with absolute position to margin is positioned
incorrectly if "Layout in table cell" is set
https://bugs.documentfoundation.org/show_bug.cgi?id=113373
[Bug 113373] Enabling 'follow text flow' causes shape to not render
https://bugs.documentfoundation.org/show_bug.cgi?id=116256
[Bug 116256] DOCX Import: LAYOUT?: incorrect placement of textbox in table in
floating frame, from ignoring LayoutInCell.
https://bugs.documentfoundation.org/show_bug.cgi?id=133522
[Bug 133522] FILEOPEN: DOCX: LayoutInCell(false): position of textbox incorrect
(compat14)
https://bugs.documentfoundation.org/show_bug.cgi?id=135943
[Bug 135943] FILESAVE DOCX: LayoutInCell Frame and and text split on import
(comment 4) - opens differently wrong in MSO and LO
https://bugs.documentfoundation.org/show_bug.cgi?id=148550
[Bug 148550] FILEOPEN RTF Image anchored to page + Layout in table cell falls
out of table
https://bugs.documentfoundation.org/show_bug.cgi?id=154855
[Bug 154855] FILESAVE DOCX "Layout in table cell" setting lost with "in front
of text" shape
https://bugs.documentfoundation.org/show_bug.cgi?id=157637
[Bug 157637] FILESAVE ODT->DOC: native LO offsets in tables as if layoutInCell,
but doesn't export that way to DOC
https://bugs.documentfoundation.org/show_bug.cgi?id=157707
[Bug 157707] FILEOPEN DOCX (compat14): layoutInCell(false) still offsets from
table, not from underlying paragraph (comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=160077
[Bug 160077] FILEOPEN DOCX: image layoutInCell must vertical offset relative to
the cell print area, not the page (comment 5)
https://bugs.documentfoundation.org/show_bug.cgi?id=162211
[Bug 162211] FILEOPEN DOCX: LayoutInCell still needed for proper round-tripping
results
https://bugs.documentfoundation.org/show_bug.cgi?id=162304
[Bug 162304] FILEOPEN ODT: IsFollowingTextFlow is inconsistent regarding "top"
and "from top" of "Page text area"
https://bugs.documentfoundation.org/show_bug.cgi?id=162539
[Bug 162539] FILEOPEN DOC/X layoutInCell: from-top should be limited by cell
margin, not cell frame
https://bugs.documentfoundation.org/show_bug.cgi?id=162541
[Bug 162541] FILEOPEN DOC/X NOT-layoutInCell: horizontal para-placement is
better represented as relative to page margin, not cell
https://bugs.documentfoundation.org/show_bug.cgi?id=162542
[Bug 162542] FILEOPEN DOC NOT-layoutInCell: horizontal char-placement w/
wrapthrough should not be page-oriented
https://bugs.documentfoundation.org/show_bug.cgi?id=162551
[Bug 162551] LAYOUT DOC/X: line (vertical) or character (horizontal)
orientation forces layoutInCell
https://bugs.documentfoundation.org/show_bug.cgi?id=162612
[Bug 162612] FILEOPEN DOC/X NOT-layoutInCell: cell-anchored objects are always
wrap-through (usually in background)
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to