cid#1640468 Dereference after null check
[LibreOffice.git] / offapi / com / sun / star / text / WritingMode2.idl
blob065912858de55843552ae834dd3d2e28b7a0b1c9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com { module sun { module star { module text {
25 /** this set of constants describes different writing directions
27 <p>In addition to numerous explicit writing directions, it allows to specify to take the writing
28 direction from the object's context.</p>
30 published constants WritingMode2
33 /** text within lines is written left-to-right. Lines and blocks are placed
34 top-to-bottom.
35 <p>
36 Typically, this is the writing mode for normal "alphabetic" text.
38 const short LR_TB = 0;
41 /** text within a line are written right-to-left. Lines and blocks are
42 placed top-to-bottom.
43 <p>
44 Typically, this writing mode is used in Arabic and Hebrew text.
46 const short RL_TB = 1;
49 /** text within a line is written top-to-bottom. Lines and blocks are
50 placed right-to-left.
51 <p>
52 Typically, this writing mode is used in Chinese and Japanese text.
54 const short TB_RL = 2;
57 /** text within a line is written top-to-bottom. Lines and blocks are
58 placed left-to-right.
59 <p>
60 Typically, this writing mode is used in Mongolian text.
62 const short TB_LR = 3;
65 /** obtain writing mode from the current page.
67 <p>May not be used in page styles.</p>
69 @deprecated
70 Use CONTEXT instead.
72 const short PAGE = 4;
74 /** obtain actual writing mode from the context of the object.
76 const short CONTEXT = 4;
78 /** text within a line is written bottom-to-top. Lines and blocks are
79 placed left-to-right.
81 @since LibreOffice 6.3
83 const short BT_LR = 5;
85 /** text within a line is written top-to-bottom so as if a horizontal
86 left-to-right line is clockwise rotated by 90deg. Lines and blocks
87 are placed right-to-left. This corresponds to OOXML attribute
88 vert="vert" for shapes and ECMA w:val="tbRl" attribute in
89 <w:textDirection> element.
91 @since LibreOffice 7.5
93 const short TB_RL90 = 6;
95 /** 'T' text within a line is written top-to-bottom, but characters are
96 'E' not rotated.
97 'X' This is like LR_TB where 1 Character fit in every line.
98 'T' Only 1 line display is implemented.
99 This corresponds to OOXML attribute vert="wordArtVert" for shapes.
101 @since LibreOffice 24.8
103 const short STACKED = 7;
107 }; }; }; };
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */