1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 // For changing table columns/rows widths/heights.
23 typedef sal_uInt16 TableChgWidthHeightType
;
25 namespace nsTableChgWidthHeightType
27 const TableChgWidthHeightType WH_COL_LEFT
= 0;
28 const TableChgWidthHeightType WH_COL_RIGHT
= 1;
29 const TableChgWidthHeightType WH_ROW_TOP
= 2;
30 const TableChgWidthHeightType WH_ROW_BOTTOM
= 3;
31 const TableChgWidthHeightType WH_CELL_LEFT
= 4;
32 const TableChgWidthHeightType WH_CELL_RIGHT
= 5;
33 const TableChgWidthHeightType WH_CELL_TOP
= 6;
34 const TableChgWidthHeightType WH_CELL_BOTTOM
= 7;
36 // The following can "or"ed into.
37 const TableChgWidthHeightType WH_FLAG_INSDEL
= 0x4000; // Insert/Del-mode: the Bigger-Flag
38 // tells what happens:
39 // bBigger -> box gets removed.
40 // !bBigger-> box gets inserted.
41 const TableChgWidthHeightType WH_FLAG_BIGGER
= 0x8000; // Box becomes larger -> else smaller.
46 TBLFIX_CHGABS
, // Table fixed width, change neighbour.
47 TBLFIX_CHGPROP
, // Table fixed width, change all neighbours.
48 TBLVAR_CHGABS
// Table variable, change all neighbours.
51 enum SplitTable_HeadlineOption
53 HEADLINE_NONE
= 0, // Leave everything in place.
54 HEADLINE_BORDERCOPY
, // Copy border of the previous line.
55 HEADLINE_CNTNTCOPY
, // Copy 1st line with all contents.
56 HEADLINE_BOXATTRCOPY
, // Copy box attributes of 1st line.
57 HEADLINE_BOXATRCOLLCOPY
// Copy box attributes and paragraph styles of 1st line.
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */