[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Anchoring for tables
The OpenDocument format requires word processors to treat tables like paragraphs. This means that tables: * can't be positioned relatively to the page (text:anchor-type="page"), i.e. independent from the text flow. * can't be positioned as a character (text:anchor-type="as-char"), i.e. with characters before and after the table in the same paragraph, as in the attached screenshot. The only way to achieve either of these is to embed the table into a border-less text box (which in oowriter even requires an empty paragraph after the table, see screenshot too). This is an option, but a difficult one to deal with. E.g. I would need to add a koffice-specific flag to the dummy-textbox in order to remove it upon loading (which would break if someone edited the file meanwhile and that tag was preserved...) On the other hand I see no point in requiring those new anchoring options if OOo isn't going to implement them, so I would like to know if this could be considered. The detailed proposal would be to add: <define name="style-table-properties-attlist" combine="interleave"> <ref name="common-text-anchor-attlist"/> </define> and <define name="paragraph-content" combine="choice"> <ref name="table-table"/> </define> (so that one can write <text:p>before<table:table>....</table:table>after</text:p> A small change in the spec, but surely a much bigger change in layouting algorithms :/ Well. I guess we could reconsider page-anchoring for tables and remove that; but as-char anchoring is our only other way of dealing with tables (paragraph anchoring is basically a special case of that). -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]