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 .
23 // For changing table columns/rows widths/heights.
24 typedef sal_uInt16 TblChgWidthHeightType
;
26 namespace nsTblChgWidthHeightType
28 const TblChgWidthHeightType WH_COL_LEFT
= 0;
29 const TblChgWidthHeightType WH_COL_RIGHT
= 1;
30 const TblChgWidthHeightType WH_ROW_TOP
= 2;
31 const TblChgWidthHeightType WH_ROW_BOTTOM
= 3;
32 const TblChgWidthHeightType WH_CELL_LEFT
= 4;
33 const TblChgWidthHeightType WH_CELL_RIGHT
= 5;
34 const TblChgWidthHeightType WH_CELL_TOP
= 6;
35 const TblChgWidthHeightType WH_CELL_BOTTOM
= 7;
38 // The following can "or"ed into.
39 const TblChgWidthHeightType WH_FLAG_INSDEL
= 0x4000; // Insert/Del-mode: the Bigger-Flag
40 // tells what happens:
41 // bBigger -> box gets removed.
42 // !bBigger-> box gets inserted.
43 const TblChgWidthHeightType WH_FLAG_BIGGER
= 0x8000; // Box becomes larger -> else smaller.
48 TBLFIX_CHGABS
, // Table fixed width, change neighbour.
49 TBLFIX_CHGPROP
, // Table fixed width, change all neighbours.
50 TBLVAR_CHGABS
// Table variable, change all neighbours.
54 enum SplitTbl_HeadlineOption
56 HEADLINE_NONE
= 0, // Leave everything in place.
57 HEADLINE_BORDERCOPY
, // Copy border of the previous line.
58 HEADLINE_CNTNTCOPY
, // Copy 1st line with all contents.
59 HEADLINE_BOXATTRCOPY
, // Copy box attributs of 1st line.
60 HEADLINE_BOXATRCOLLCOPY
// Copy box attributes and paragraph styles of 1st line.
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */