LibreOffice Module sw (master)
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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 <
o3tl/typed_flags_set.hxx
>
23
24
// For changing table columns/rows widths/heights.
25
enum class
TableChgWidthHeightType
: sal_uInt16
26
{
27
ColLeft
= 0,
28
ColRight
= 1,
29
RowBottom
= 3,
30
CellLeft
= 4,
31
CellRight
= 5,
32
CellTop
= 6,
33
CellBottom
= 7,
34
InvalidPos
= 0x0f,
35
36
// The following can be "or"ed in.
37
BiggerMode
= 0x8000,
// Box becomes larger -> else smaller.
38
};
39
namespace
o3tl
{
40
template
<>
struct
typed_flags
<
TableChgWidthHeightType
> :
is_typed_flags
<TableChgWidthHeightType, 0x800f> {};
41
}
42
constexpr
TableChgWidthHeightType
extractPosition
(
TableChgWidthHeightType
e) {
43
return
static_cast<
TableChgWidthHeightType
>
(
static_cast<
sal_uInt16
>
(e) & 0xf);
44
}
45
46
enum class
TableChgMode
47
{
48
FixedWidthChangeAbs
,
// Table fixed width, change neighbour.
49
FixedWidthChangeProp
,
// Table fixed width, change all neighbours.
50
VarWidthChangeAbs
// Table variable, change all neighbours.
51
};
52
53
enum class
SplitTable_HeadlineOption
54
{
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.
60
};
61
62
enum class
TableMergeErr
63
{
64
Ok
,
65
NoSelection
,
66
TooComplex
67
};
68
69
#endif
70
71
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
TableChgWidthHeightType::InvalidPos
TableChgWidthHeightType::RowBottom
TableChgWidthHeightType
TableChgWidthHeightType
Definition:
tblenum.hxx:25
TableChgWidthHeightType::CellRight
TableMergeErr
TableMergeErr
Definition:
tblenum.hxx:62
SplitTable_HeadlineOption::NONE
SplitTable_HeadlineOption::BoxAttrCopy
typed_flags_set.hxx
TableMergeErr::Ok
TableChgMode::VarWidthChangeAbs
TableChgWidthHeightType::ColRight
TableChgWidthHeightType::CellLeft
SplitTable_HeadlineOption::BoxAttrAllCopy
SplitTable_HeadlineOption
SplitTable_HeadlineOption
Definition:
tblenum.hxx:53
TableChgWidthHeightType::CellTop
TableChgWidthHeightType::BiggerMode
o3tl::is_typed_flags
TableChgWidthHeightType::CellBottom
SplitTable_HeadlineOption::ContentCopy
TableMergeErr::TooComplex
TableMergeErr::NoSelection
o3tl
TableChgMode::FixedWidthChangeProp
o3tl::typed_flags
extractPosition
constexpr TableChgWidthHeightType extractPosition(TableChgWidthHeightType e)
Definition:
tblenum.hxx:42
TableChgMode
TableChgMode
Definition:
tblenum.hxx:46
SplitTable_HeadlineOption::BorderCopy
TableChgWidthHeightType::ColLeft
TableChgMode::FixedWidthChangeAbs
Generated on Sat Feb 27 2021 02:41:04 for LibreOffice Module sw (master) by
1.8.10