sw btlr wrting mode: implement document model

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 12 February 2019 13:35 EST

btLr is not a writing mode that would be used by any natural language, the reason it makes sense to support this is that the Word UI makes it easy to rotate text 90 degrees counter-clockwise for Latin (lrtb) text, which then triggers this feature. This is common in the first column of tables to create text that looks like a row header.

An import-time workaround to handle was added in commit c2d1ab73165d5fa19037e6244b1d634c6c455efc (tentative fix for fdo#30474#, 2010-11-26), but rotating text at a text portion level has various unwanted side effects, just counting my own fixes, I had 7 workarounds on top of that workaround to hide problems where the root cause is this missing writing direction in sw core.

This commit just extends the sw core doc model, everything else is to be done in follow-up commits.

Change-Id: I89e02cd4b40de78699dbf14885fc128e870de3b8 Reviewed-on: https://gerrit.libreoffice.org/67717

db346dde6179 sw btlr wrting mode: implement document model
editeng/source/items/frmitems.cxx | 11 +++++++++++
include/editeng/frmdir.hxx | 5 ++++-
include/editeng/frmdiritem.hxx | 1 +
offapi/com/sun/star/text/WritingMode2.idl | 7 +++++++
4 files changed, 23 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share