https://bugs.freedesktop.org/show_bug.cgi?id=84714
Bug ID: 84714
Summary: Enable LibreOffice to use <table:table> element as
direct child of <draw:frame>
Product: LibreOffice
Version: 4.4.0.0.alpha0+ Master
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 107420
--> https://bugs.freedesktop.org/attachment.cgi?id=107420&action=edit
<table:table> in <draw:frame>, valid but not supported.
ODF1.2 allows a <table:table> element as direct child of a <draw:frame>
element.
See http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html
Section 9.1.2 <table:table> and 10.4.2<draw:frame>
Currently LibreOffice writes <table:table> as child of <draw:text-box> or as
sibling of <text:p>.
This leads to problems, when using a table in a shape with added textbox.
Currently the <table:table> element is written as child of <draw:custom-shape>.
But that is invalid. <table:table> can not be a child of <draw:custom-shape>.
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-draw_custom-shape.
But a <text:p> element is allowed as child of <draw:custom-shape> and of other
shapes as well. See the list of valid parents of <text:p> in
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-text_p
And on the other hand the <text:p> element can have a <draw:frame> child.
So a valid storage of a table in a textbox added to a shape would be:
<draw:custom-shape>
...
<text:p>
<draw:frame>
<table:table>
...
</table:table>
</draw:frame>
</text:p>
...
</draw:custom-shape>
That would be the same way, currently <draw:object> elements (for Math-OLE) and
<draw:image> elements are used in this textbox in a shape.
Unfortunately, LibreOffice does not accept <table:table> as direct child of
<draw:frame> and drops it when it reads such a file. Try attached document.
Calligra Words and Softmaker Textmaker can at least read files with
<table:table> as child of <draw:frame>.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs