Replace unnecessary #include with forward declaration
[LibreOffice.git] / sw / inc / tblenum.hxx
blob972e514ee90c4eeea54d972a5c21397247d1da28
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 <sal/types.h>
23 #include <o3tl/typed_flags_set.hxx>
25 // For changing table columns/rows widths/heights.
26 enum class TableChgWidthHeightType : sal_uInt16
28 ColLeft = 0,
29 ColRight = 1,
30 RowBottom = 3,
31 CellLeft = 4,
32 CellRight = 5,
33 CellTop = 6,
34 CellBottom = 7,
35 InvalidPos = 0x0f,
37 // The following can be "or"ed in.
38 BiggerMode = 0x8000, // Box becomes larger -> else smaller.
40 namespace o3tl {
41 template<> struct typed_flags<TableChgWidthHeightType> : is_typed_flags<TableChgWidthHeightType, 0x800f> {};
43 constexpr TableChgWidthHeightType extractPosition(TableChgWidthHeightType e) {
44 return static_cast<TableChgWidthHeightType>(static_cast<sal_uInt16>(e) & 0xf);
47 enum class TableChgMode
49 FixedWidthChangeAbs, // Table fixed width, change neighbour.
50 FixedWidthChangeProp, // Table fixed width, change all neighbours.
51 VarWidthChangeAbs // Table variable, change all neighbours.
54 enum class SplitTable_HeadlineOption
56 NONE = 0, // Leave everything in place.
57 BorderCopy, // Copy border of the previous line.
58 ContentCopy, // Copy 1st line with all contents.
59 BoxAttrCopy, // Copy box attributes of 1st line.
60 BoxAttrAllCopy // Copy box attributes and paragraph styles of 1st line.
63 enum class TableMergeErr
65 Ok,
66 NoSelection,
67 TooComplex
70 #endif
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */