Resolves tdf#142513 - Order of ZoomIn and ZoomOut at Print Preview
[LibreOffice.git] / sw / inc / tblenum.hxx
blobfd9ea7237fa7c7d2c82f454aff2bc774a61f7084
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 .
19 #ifndef INCLUDED_SW_INC_TBLENUM_HXX
20 #define INCLUDED_SW_INC_TBLENUM_HXX
22 #include <o3tl/typed_flags_set.hxx>
24 // For changing table columns/rows widths/heights.
25 enum class TableChgWidthHeightType : sal_uInt16
27 ColLeft = 0,
28 ColRight = 1,
29 RowBottom = 3,
30 CellLeft = 4,
31 CellRight = 5,
32 CellTop = 6,
33 CellBottom = 7,
34 InvalidPos = 0x0f,
36 // The following can be "or"ed in.
37 BiggerMode = 0x8000, // Box becomes larger -> else smaller.
39 namespace o3tl {
40 template<> struct typed_flags<TableChgWidthHeightType> : is_typed_flags<TableChgWidthHeightType, 0x800f> {};
42 constexpr TableChgWidthHeightType extractPosition(TableChgWidthHeightType e) {
43 return static_cast<TableChgWidthHeightType>(static_cast<sal_uInt16>(e) & 0xf);
46 enum class TableChgMode
48 FixedWidthChangeAbs, // Table fixed width, change neighbour.
49 FixedWidthChangeProp, // Table fixed width, change all neighbours.
50 VarWidthChangeAbs // Table variable, change all neighbours.
53 enum class SplitTable_HeadlineOption
55 NONE = 0, // Leave everything in place.
56 BorderCopy, // Copy border of the previous line.
57 ContentCopy, // Copy 1st line with all contents.
58 BoxAttrCopy, // Copy box attributes of 1st line.
59 BoxAttrAllCopy // Copy box attributes and paragraph styles of 1st line.
62 enum class TableMergeErr
64 Ok,
65 NoSelection,
66 TooComplex
69 #endif
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */