LibreOffice Module sw (master)
1
sw
inc
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
>
23
#include <
o3tl/typed_flags_set.hxx
>
24
25
// For changing table columns/rows widths/heights.
26
enum 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
};
40
namespace
o3tl
{
41
template
<>
struct
typed_flags
<
TableChgWidthHeightType
> :
is_typed_flags
<TableChgWidthHeightType, 0x800f> {};
42
}
43
constexpr
TableChgWidthHeightType
extractPosition
(
TableChgWidthHeightType
e) {
44
return
static_cast<
TableChgWidthHeightType
>
(
static_cast<
sal_uInt16
>
(e) & 0xf);
45
}
46
47
enum 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
54
enum class
SplitTable_HeadlineOption
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
63
enum class
TableMergeErr
64
{
65
Ok
,
66
NoSelection
,
67
TooComplex
68
};
69
70
#endif
71
72
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
NONE
NONE
o3tl
FatError::Ok
@ Ok
o3tl::is_typed_flags
o3tl::typed_flags
SplitTable_HeadlineOption
SplitTable_HeadlineOption
Definition:
tblenum.hxx:55
SplitTable_HeadlineOption::BoxAttrCopy
@ BoxAttrCopy
SplitTable_HeadlineOption::ContentCopy
@ ContentCopy
SplitTable_HeadlineOption::BoxAttrAllCopy
@ BoxAttrAllCopy
SplitTable_HeadlineOption::BorderCopy
@ BorderCopy
TableMergeErr
TableMergeErr
Definition:
tblenum.hxx:64
TableMergeErr::NoSelection
@ NoSelection
TableMergeErr::TooComplex
@ TooComplex
TableChgMode
TableChgMode
Definition:
tblenum.hxx:48
TableChgMode::VarWidthChangeAbs
@ VarWidthChangeAbs
TableChgMode::FixedWidthChangeAbs
@ FixedWidthChangeAbs
TableChgMode::FixedWidthChangeProp
@ FixedWidthChangeProp
extractPosition
constexpr TableChgWidthHeightType extractPosition(TableChgWidthHeightType e)
Definition:
tblenum.hxx:43
TableChgWidthHeightType
TableChgWidthHeightType
Definition:
tblenum.hxx:27
TableChgWidthHeightType::CellTop
@ CellTop
TableChgWidthHeightType::RowBottom
@ RowBottom
TableChgWidthHeightType::ColRight
@ ColRight
TableChgWidthHeightType::BiggerMode
@ BiggerMode
TableChgWidthHeightType::CellBottom
@ CellBottom
TableChgWidthHeightType::CellRight
@ CellRight
TableChgWidthHeightType::InvalidPos
@ InvalidPos
TableChgWidthHeightType::CellLeft
@ CellLeft
TableChgWidthHeightType::ColLeft
@ ColLeft
typed_flags_set.hxx
types.h
Generated on Sun Jul 30 2023 04:28:04 for LibreOffice Module sw (master) by
1.9.3