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 28#include "table.hrc" 29#include "instable.hrc" 30#include "cmdid.h" 31#include "helpid.h" 32 // #define DLG_INSERT_TABLE 256 33ModalDialog DLG_INSERT_TABLE 34{ 35 HelpID = CMD_FN_INSERT_TABLE ; 36 OutputSize = TRUE ; 37 SVLook = TRUE ; 38 Size = MAP_APPFONT ( 280 , 166 ) ; 39 Text [ en-US ] = "Insert Table" ; 40 Moveable = TRUE ; 41 Edit ED_NAME 42 { 43 HelpID = "sw:Edit:DLG_INSERT_TABLE:ED_NAME"; 44 Border = TRUE ; 45 Pos = MAP_APPFONT ( 53 , 6 ) ; 46 Size = MAP_APPFONT ( 158, 12 ) ; 47 TabStop = TRUE ; 48 }; 49 FixedText FT_NAME 50 { 51 Pos = MAP_APPFONT ( 6 , 8 ) ; 52 Size = MAP_APPFONT ( 45, 8 ) ; 53 Text [ en-US ] = "Name"; 54 }; 55 FixedText FT_COL 56 { 57 Pos = MAP_APPFONT ( 12 , 34 ) ; 58 Size = MAP_APPFONT ( 39 , 8 ) ; 59 Text [ en-US ] = "~Columns" ; 60 Left = TRUE ; 61 }; 62 NumericField ED_COL 63 { 64 HelpID = "sw:NumericField:DLG_INSERT_TABLE:ED_COL"; 65 Border = TRUE ; 66 Pos = MAP_APPFONT ( 53 , 32 ) ; 67 Size = MAP_APPFONT ( 28 , 12 ) ; 68 TabStop = TRUE ; 69 Left = TRUE ; 70 Repeat = TRUE ; 71 Spin = TRUE ; 72 Minimum = 1 ; 73 Maximum = 99 ; 74 Value = 2 ; 75 First = 1 ; 76 Last = 99 ; 77 }; 78 FixedText FT_ROW 79 { 80 Pos = MAP_APPFONT ( 12 , 50 ) ; 81 Size = MAP_APPFONT ( 39 , 8 ) ; 82 Text [ en-US ] = "~Rows" ; 83 Left = TRUE ; 84 }; 85 NumericField ED_ROW 86 { 87 HelpID = "sw:NumericField:DLG_INSERT_TABLE:ED_ROW"; 88 Border = TRUE ; 89 Pos = MAP_APPFONT ( 53 , 48 ) ; 90 Size = MAP_APPFONT ( 28 , 12 ) ; 91 TabStop = TRUE ; 92 Left = TRUE ; 93 Repeat = TRUE ; 94 Spin = TRUE ; 95 Minimum = 1 ; 96 Maximum = 99 ; 97 Value = 2 ; 98 First = 1 ; 99 Last = 99 ; 100 }; 101 FixedLine FL_TABLE 102 { 103 Pos = MAP_APPFONT ( 6 , 21 ) ; 104 Size = MAP_APPFONT ( 212 , 8 ) ; 105 Text [ en-US ] = "Size"; 106 }; 107 CheckBox CB_HEADER 108 { 109 HelpID = "sw:CheckBox:DLG_INSERT_TABLE:CB_HEADER"; 110 Pos = MAP_APPFONT ( 12 , 74 ) ; 111 Size = MAP_APPFONT (113 , 10 ) ; 112 TabStop = TRUE ; 113 Text [ en-US ] = "Heading"; 114 }; 115 CheckBox CB_REPEAT_HEADER 116 { 117 HelpID = "sw:CheckBox:DLG_INSERT_TABLE:CB_REPEAT_HEADER"; 118 Pos = MAP_APPFONT ( 21 , 88 ) ; 119 Size = MAP_APPFONT ( 104 , 10 ) ; 120 TabStop = TRUE ; 121 Text [ en-US ] = "Repeat heading"; 122 }; 123 FixedText FT_REPEAT_HEADER 124 { 125 Pos = MAP_APPFONT ( 30 , 105 ) ; 126 Size = MAP_APPFONT ( 95 , 10 ) ; 127 Text [ en-US ] = "The first %POSITION_OF_CONTROL rows" ; 128 }; 129 NumericField NF_REPEAT_HEADER 130 { 131 HelpID = "sw:NumericField:DLG_INSERT_TABLE:NF_REPEAT_HEADER"; 132 Border = TRUE ; 133 Pos = MAP_APPFONT ( 130 , 104 ) ; 134 Size = MAP_APPFONT ( 28 , 12 ) ; 135 TabStop = TRUE ; 136 Left = TRUE ; 137 Repeat = TRUE ; 138 Spin = TRUE ; 139 Minimum = 1 ; 140 Maximum = 1000 ; 141 First = 1 ; 142 }; 143 Window WIN_REPEAT_HEADER 144 { 145 Pos = MAP_APPFONT ( 30 , 102 ) ; 146 Size = MAP_APPFONT ( 2 , 1 ) ; 147 }; 148 CheckBox CB_DONT_SPLIT 149 { 150 HelpID = "sw:CheckBox:DLG_INSERT_TABLE:CB_DONT_SPLIT"; 151 Pos = MAP_APPFONT ( 12 , 118 ) ; 152 Size = MAP_APPFONT ( 113 , 10 ) ; 153 Text [ en-US ] = "Don't split table"; 154 TabStop = TRUE ; 155 }; 156 CheckBox CB_BORDER 157 { 158 HelpID = "sw:CheckBox:DLG_INSERT_TABLE:CB_BORDER"; 159 Pos = MAP_APPFONT ( 12 , 132 ) ; 160 Size = MAP_APPFONT ( 113 , 10 ) ; 161 TabStop = TRUE ; 162 Text [ en-US ] = "Border"; 163 }; 164 PushButton BT_AUTOFORMAT 165 { 166 HelpID = "sw:PushButton:DLG_INSERT_TABLE:BT_AUTOFORMAT"; 167 Pos = MAP_APPFONT ( 12 , 146 ) ; 168 Size = MAP_APPFONT ( 86 , 14 ) ; 169 TabStop = TRUE ; 170 Text [ en-US ] = "Auto~Format..." ; 171 }; 172 FixedLine FL_OPTIONS 173 { 174 Pos = MAP_APPFONT ( 6 , 63 ) ; 175 Size = MAP_APPFONT ( 212 , 8 ) ; 176 Text [ en-US ] = "Options"; 177 }; 178 OKButton BT_OK 179 { 180 Pos = MAP_APPFONT ( 224 , 6 ) ; 181 Size = MAP_APPFONT ( 50 , 14 ) ; 182 TabStop = TRUE ; 183 DefButton = TRUE ; 184 }; 185 CancelButton BT_CANCEL 186 { 187 Pos = MAP_APPFONT ( 224 , 23 ) ; 188 Size = MAP_APPFONT ( 50 , 14 ) ; 189 TabStop = TRUE ; 190 }; 191 HelpButton BT_HELP 192 { 193 Pos = MAP_APPFONT ( 224 , 43 ) ; 194 Size = MAP_APPFONT ( 50 , 14 ) ; 195 TabStop = TRUE ; 196 }; 197}; 198 199 200