xref: /aoo41x/main/sw/inc/tblenum.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _TBLENUM_HXX
28 #define _TBLENUM_HXX
29 
30 //fuers aendern der Tabellen/Spalten/Zeilen Breiten/Hoehen
31 typedef sal_uInt16 TblChgWidthHeightType;
32 
33 namespace nsTblChgWidthHeightType
34 {
35 	const TblChgWidthHeightType WH_COL_LEFT = 0;
36 	const TblChgWidthHeightType WH_COL_RIGHT = 1;
37 	const TblChgWidthHeightType WH_ROW_TOP = 2;
38 	const TblChgWidthHeightType WH_ROW_BOTTOM = 3;
39 	const TblChgWidthHeightType WH_CELL_LEFT = 4;
40 	const TblChgWidthHeightType WH_CELL_RIGHT = 5;
41 	const TblChgWidthHeightType WH_CELL_TOP = 6;
42 	const TblChgWidthHeightType WH_CELL_BOTTOM = 7;
43 
44 
45 	// folgende koennen hinein verodert werden
46 	const TblChgWidthHeightType WH_FLAG_INSDEL	= 0x4000;			// Insert/Del-Modus: das Bigger-Flag
47 										                            // besagt was passiert:
48                                                                     // bBigger -> Box wird entfernt
49                                                                     // !bBigger-> Box wird eingefuegt
50 	const TblChgWidthHeightType WH_FLAG_BIGGER	= 0x8000;			// Box wird groesser -> sonst kleiner
51 }
52 
53 enum TblChgMode
54 {
55 	TBLFIX_CHGABS,			// Tabelle feste Breite, den Nachbar andern
56 	TBLFIX_CHGPROP,			// Tabelle feste Breite, alle Nachbarn aendern
57 	TBLVAR_CHGABS			// Tabelle variable, alle Nachbarn aendern
58 };
59 
60 
61 enum SplitTbl_HeadlineOption
62 {
63 	HEADLINE_NONE = 0,     		// lasse alles wie es ist
64 	HEADLINE_BORDERCOPY,     	// von der davor obere Line der vorhergehen Line
65 	HEADLINE_CNTNTCOPY, 		// kopiere die 1. Line komplett mit Inhalt
66 	HEADLINE_BOXATTRCOPY,		// kopiere von der 1. Line die Box Attribute
67 	HEADLINE_BOXATRCOLLCOPY		// kopiere von der 1. Line die Box Attribute
68 								// und die Absatzvorlagen
69 };
70 
71 enum TableMergeErr
72 {
73 	TBLMERGE_OK,
74 	TBLMERGE_NOSELECTION,
75 	TBLMERGE_TOOCOMPLEX
76 };
77 
78 
79 #endif
80