1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _TBLENUM_HXX 24 #define _TBLENUM_HXX 25 26 //fuers aendern der Tabellen/Spalten/Zeilen Breiten/Hoehen 27 typedef sal_uInt16 TblChgWidthHeightType; 28 29 namespace nsTblChgWidthHeightType 30 { 31 const TblChgWidthHeightType WH_COL_LEFT = 0; 32 const TblChgWidthHeightType WH_COL_RIGHT = 1; 33 const TblChgWidthHeightType WH_ROW_TOP = 2; 34 const TblChgWidthHeightType WH_ROW_BOTTOM = 3; 35 const TblChgWidthHeightType WH_CELL_LEFT = 4; 36 const TblChgWidthHeightType WH_CELL_RIGHT = 5; 37 const TblChgWidthHeightType WH_CELL_TOP = 6; 38 const TblChgWidthHeightType WH_CELL_BOTTOM = 7; 39 40 41 // folgende koennen hinein verodert werden 42 const TblChgWidthHeightType WH_FLAG_INSDEL = 0x4000; // Insert/Del-Modus: das Bigger-Flag 43 // besagt was passiert: 44 // bBigger -> Box wird entfernt 45 // !bBigger-> Box wird eingefuegt 46 const TblChgWidthHeightType WH_FLAG_BIGGER = 0x8000; // Box wird groesser -> sonst kleiner 47 } 48 49 enum TblChgMode 50 { 51 TBLFIX_CHGABS, // Tabelle feste Breite, den Nachbar andern 52 TBLFIX_CHGPROP, // Tabelle feste Breite, alle Nachbarn aendern 53 TBLVAR_CHGABS // Tabelle variable, alle Nachbarn aendern 54 }; 55 56 57 enum SplitTbl_HeadlineOption 58 { 59 HEADLINE_NONE = 0, // lasse alles wie es ist 60 HEADLINE_BORDERCOPY, // von der davor obere Line der vorhergehen Line 61 HEADLINE_CNTNTCOPY, // kopiere die 1. Line komplett mit Inhalt 62 HEADLINE_BOXATTRCOPY, // kopiere von der 1. Line die Box Attribute 63 HEADLINE_BOXATRCOLLCOPY // kopiere von der 1. Line die Box Attribute 64 // und die Absatzvorlagen 65 }; 66 67 enum TableMergeErr 68 { 69 TBLMERGE_OK, 70 TBLMERGE_NOSELECTION, 71 TBLMERGE_TOOCOMPLEX 72 }; 73 74 75 #endif 76