summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-02-12 12:04:19 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-07-01 16:55:51 +0200
commit512dcf886d7cdc067d7c91fa2e38b54eba099732 (patch)
treea4278192e9fb92fc32672ec43bfcc0a10600f45a /offapi
parentab813ebf7a47d9e448ff93977600c06547e59d79 (diff)
sw btlr wrting mode: implement document model
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 <w:textDirection w:val="btLr"/> 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 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins (cherry picked from commit db346dde6179e7414289681d91b153a6ed259d05)
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/text/WritingMode2.idl7
1 files changed, 7 insertions, 0 deletions
diff --git a/offapi/com/sun/star/text/WritingMode2.idl b/offapi/com/sun/star/text/WritingMode2.idl
index 4f1800b06a0d..1edc467e7a0f 100644
--- a/offapi/com/sun/star/text/WritingMode2.idl
+++ b/offapi/com/sun/star/text/WritingMode2.idl
@@ -76,6 +76,13 @@ published constants WritingMode2
/** obtain actual writing mode from the context of the object.
*/
const short CONTEXT = 4;
+
+ /** text within a line is written bottom-to-top. Lines and blocks are
+ placed left-to-right.
+
+ @since LibreOffice 6.3
+ */
+ const short BT_LR = 5;
};