LibreOffice Module sw (master) 1
tblenum.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_SW_INC_TBLENUM_HXX
20#define INCLUDED_SW_INC_TBLENUM_HXX
21
22#include <sal/types.h>
24
25// For changing table columns/rows widths/heights.
26enum class TableChgWidthHeightType : sal_uInt16
27{
28 ColLeft = 0,
29 ColRight = 1,
30 RowBottom = 3,
31 CellLeft = 4,
32 CellRight = 5,
33 CellTop = 6,
34 CellBottom = 7,
35 InvalidPos = 0x0f,
36
37 // The following can be "or"ed in.
38 BiggerMode = 0x8000, // Box becomes larger -> else smaller.
39};
40namespace o3tl {
41 template<> struct typed_flags<TableChgWidthHeightType> : is_typed_flags<TableChgWidthHeightType, 0x800f> {};
42}
44 return static_cast<TableChgWidthHeightType>(static_cast<sal_uInt16>(e) & 0xf);
45}
46
47enum class TableChgMode
48{
49 FixedWidthChangeAbs, // Table fixed width, change neighbour.
50 FixedWidthChangeProp, // Table fixed width, change all neighbours.
51 VarWidthChangeAbs // Table variable, change all neighbours.
52};
53
55{
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.
61};
62
63enum class TableMergeErr
64{
65 Ok,
68};
69
70#endif
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
NONE
SplitTable_HeadlineOption
Definition: tblenum.hxx:55
TableMergeErr
Definition: tblenum.hxx:64
TableChgMode
Definition: tblenum.hxx:48
constexpr TableChgWidthHeightType extractPosition(TableChgWidthHeightType e)
Definition: tblenum.hxx:43
TableChgWidthHeightType
Definition: tblenum.hxx:27