1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
20 #ifndef INCLUDED_EDITENG_FRMDIR_HXX
21 #define INCLUDED_EDITENG_FRMDIR_HXX
23 #include <com/sun/star/text/WritingMode2.hpp>
24 #include <unotools/resmgr.hxx>
27 * Defines possible text directions in frames.
28 * A scoped enum over the constants in css::text:WritingMode2.
30 enum class SvxFrameDirection
32 /** used as an error return value in SW */
35 /** Horizontal, from left to right, from top to bottom
36 (typical for western languages). */
37 Horizontal_LR_TB
= css::text::WritingMode2::LR_TB
,
39 /** Horizontal, from right to left, from top to bottom
40 (typical for arabic/hebrew languages). */
41 Horizontal_RL_TB
= css::text::WritingMode2::RL_TB
,
43 /** Vertical, from top to bottom, from right to left
44 (typical for asian languages). */
45 Vertical_RL_TB
= css::text::WritingMode2::TB_RL
,
47 /** Vertical, from top to bottom, from left to right
48 (typical for mongol language). */
49 Vertical_LR_TB
= css::text::WritingMode2::TB_LR
,
51 /** Use the value from the environment, can only be used in frames. */
52 Environment
= css::text::WritingMode2::CONTEXT
,
54 /** Vertical, from bottom to top, from left to right (vert="vert270"). */
55 Vertical_LR_BT
= css::text::WritingMode2::BT_LR
,
57 /** Vertical, from top to bottom, from right to left (vert="vert"). */
58 Vertical_RL_TB90
= css::text::WritingMode2::TB_RL90
,
60 /** Stacked, from top to bottom, 1 char per line (vert="wordArtVert"). */
61 Stacked
= css::text::WritingMode2::STACKED
,
64 TranslateId
getFrmDirResId(size_t nIndex
);
66 #endif // INCLUDED_EDITENG_FRMDIR_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */