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 24#include "dbinsdlg.hrc" 25#include "dbui.hrc" 26#include "cmdid.h" 27#include "helpid.h" 28ModalDialog DLG_AP_INSERT_DB_SEL 29{ 30 HelpID = HID_AP_INSERT_DB_SEL ; 31 OUTPUTSIZE = TRUE ; 32 Pos = MAP_APPFONT ( 0 , 0 ) ; 33 Size = MAP_APPFONT ( 291 , 189 ) ; 34 Moveable = TRUE ; 35 Closeable = TRUE ; 36 SVLOOK = TRUE ; 37 FixedText FT_INSERT_DATA 38 { 39 Pos = MAP_APPFONT ( 6 , 6 ) ; 40 Size = MAP_APPFONT ( 66 , 8 ) ; 41 Text [ en-US ] = "Insert data as:" ; 42 }; 43 RadioButton RB_AS_TABLE 44 { 45 HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_TABLE"; 46 Pos = MAP_APPFONT ( 80 , 6 ) ; 47 Size = MAP_APPFONT ( 60 , 10 ) ; 48 TabStop = TRUE ; 49 Check = TRUE ; 50 Text [ en-US ] = "T~able" ; 51 }; 52 RadioButton RB_AS_FIELD 53 { 54 HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_FIELD"; 55 Pos = MAP_APPFONT ( 145 , 6 ) ; 56 Size = MAP_APPFONT ( 60 , 10 ) ; 57 TabStop = TRUE ; 58 Text [ en-US ] = "~Fields" ; 59 }; 60 RadioButton RB_AS_TEXT 61 { 62 HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_TEXT"; 63 Pos = MAP_APPFONT ( 210 , 6 ) ; 64 Size = MAP_APPFONT ( 60 , 10 ) ; 65 TabStop = TRUE ; 66 Text [ en-US ] = "~Text" ; 67 }; 68 OKButton BT_OK 69 { 70 Pos = MAP_APPFONT ( 123 , 172 ) ; 71 Size = MAP_APPFONT ( 50 , 14 ) ; 72 TabStop = TRUE ; 73 DefButton = TRUE ; 74 }; 75 CancelButton BT_CANCEL 76 { 77 Pos = MAP_APPFONT ( 179 , 172 ) ; 78 Size = MAP_APPFONT ( 50 , 14 ) ; 79 TabStop = TRUE ; 80 }; 81 HelpButton BT_HELP 82 { 83 Pos = MAP_APPFONT ( 235 , 172 ) ; 84 Size = MAP_APPFONT ( 50 , 14 ) ; 85 TabStop = TRUE ; 86 }; 87 FixedLine FL_HEAD 88 { 89 Pos = MAP_APPFONT ( 6 , 19 ) ; 90 Size = MAP_APPFONT ( 279 , 8 ) ; 91 /* wird dynamisch gesetzt! */ 92 Text = "" ; 93 }; 94 FixedText FT_DB_COLUMN 95 { 96 Pos = MAP_APPFONT ( 12 , 31 ) ; 97 Size = MAP_APPFONT ( 72 , 8 ) ; 98 Text [ en-US ] = "Database ~columns" ; 99 }; 100 FixedLine FL_FORMAT 101 { 102 Pos = MAP_APPFONT ( 6 , 117 ) ; 103 Size = MAP_APPFONT ( 279 , 8 ) ; 104 Text [ en-US ] = "For~mat" ; 105 }; 106 RadioButton RB_DBFMT_FROM_DB 107 { 108 HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_DBFMT_FROM_DB"; 109 Pos = MAP_APPFONT ( 15 , 128 ) ; 110 Size = MAP_APPFONT ( 90 , 10 ) ; 111 TabStop = TRUE ; 112 Check = TRUE ; 113 Text [ en-US ] = "From ~database" ; 114 }; 115 RadioButton RB_DBFMT_FROM_USR 116 { 117 HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_DBFMT_FROM_USR"; 118 Pos = MAP_APPFONT ( 15 , 143 ) ; 119 Size = MAP_APPFONT ( 10 , 10 ) ; 120 TabStop = TRUE ; 121 }; 122 ListBox LB_DBFMT_FROM_USR 123 { 124 HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_DBFMT_FROM_USR"; 125 Border = TRUE ; 126 Pos = MAP_APPFONT ( 30 , 142 ) ; 127 Size = MAP_APPFONT ( 75 , 44 ) ; 128 TabStop = TRUE ; 129 DropDown = TRUE ; 130 AutoHScroll = TRUE ; 131 }; 132 /* -------------- Page Text / Fields -------------------------------- */ 133 ListBox LB_TXT_DB_COLUMN 134 { 135 HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TXT_DB_COLUMN"; 136 Border = TRUE ; 137 Pos = MAP_APPFONT ( 12 , 41 ) ; 138 Size = MAP_APPFONT ( 93 , 70 ) ; 139 TabStop = TRUE ; 140 Hide = TRUE ; 141 }; 142 ImageButton IB_DBCOL_TOEDIT 143 { 144 HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_TOEDIT"; 145 Pos = MAP_APPFONT ( 111 , 41 ) ; 146 Size = MAP_APPFONT ( 20 , 12 ) ; 147 TabStop = TRUE ; 148 Hide = TRUE ; 149 ButtonImage = Image 150 { 151 ImageBitmap = Bitmap 152 { 153 File = "one_right.png" ; 154 }; 155 MaskColor = IMAGE_MASK_COLOR ; 156 }; 157 }; 158 MultiLineEdit ED_DB_TEXT 159 { 160 HelpID = "sw:MultiLineEdit:DLG_AP_INSERT_DB_SEL:ED_DB_TEXT"; 161 Border = TRUE ; 162 Pos = MAP_APPFONT ( 137 , 41 ) ; 163 Size = MAP_APPFONT ( 142 , 70 ) ; 164 TabStop = TRUE ; 165 Left = TRUE ; 166 VScroll = TRUE ; 167 HScroll = TRUE ; 168 Hide = TRUE ; 169 IgnoreTab = TRUE; 170 }; 171 FixedText FT_DB_PARA_COLL 172 { 173 Pos = MAP_APPFONT ( 118 , 129 ) ; 174 Size = MAP_APPFONT ( 58 , 8 ) ; 175 Text [ en-US ] = "Paragraph ~Style:" ; 176 Hide = TRUE ; 177 }; 178 ListBox LB_DB_PARA_COLL 179 { 180 HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_DB_PARA_COLL"; 181 Border = TRUE ; 182 Pos = MAP_APPFONT ( 182 , 127 ) ; 183 Size = MAP_APPFONT ( 97 , 59 ) ; 184 TabStop = TRUE ; 185 DropDown = TRUE ; 186 Hide = TRUE ; 187 Sort = TRUE ; 188 }; 189 /* -------------- Page Table ---------------------------------------- */ 190 ListBox LB_TBL_DB_COLUMN 191 { 192 HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TBL_DB_COLUMN"; 193 Border = TRUE ; 194 Pos = MAP_APPFONT ( 12 , 41 ) ; 195 Size = MAP_APPFONT ( 93 , 70 ) ; 196 TabStop = TRUE ; 197 }; 198 ImageButton IB_DBCOL_ALL_TO 199 { 200 HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ALL_TO"; 201 Pos = MAP_APPFONT ( 111 , 41 ) ; 202 Size = MAP_APPFONT ( 20 , 12 ) ; 203 TabStop = TRUE ; 204 ButtonImage = Image 205 { 206 ImageBitmap = Bitmap 207 { 208 File = "all_right.png" ; 209 }; 210 MaskColor = IMAGE_MASK_COLOR ; 211 }; 212 }; 213 ImageButton IB_DBCOL_ONE_TO 214 { 215 HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ONE_TO"; 216 Pos = MAP_APPFONT ( 111 , 56 ) ; 217 Size = MAP_APPFONT ( 20 , 12 ) ; 218 TabStop = TRUE ; 219 ButtonImage = Image 220 { 221 ImageBitmap = Bitmap 222 { 223 File = "one_right.png" ; 224 }; 225 MaskColor = IMAGE_MASK_COLOR ; 226 }; 227 }; 228 ImageButton IB_DBCOL_ONE_FROM 229 { 230 HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ONE_FROM"; 231 Pos = MAP_APPFONT ( 111 , 84 ) ; 232 Size = MAP_APPFONT ( 20 , 12 ) ; 233 TabStop = TRUE ; 234 ButtonImage = Image 235 { 236 ImageBitmap = Bitmap 237 { 238 File = "one_left.png" ; 239 }; 240 MaskColor = IMAGE_MASK_COLOR ; 241 }; 242 }; 243 ImageButton IB_DBCOL_ALL_FROM 244 { 245 HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ALL_FROM"; 246 Pos = MAP_APPFONT ( 111 , 99 ) ; 247 Size = MAP_APPFONT ( 20 , 12 ) ; 248 TabStop = TRUE ; 249 ButtonImage = Image 250 { 251 ImageBitmap = Bitmap 252 { 253 File = "all_left.png" ; 254 }; 255 MaskColor = IMAGE_MASK_COLOR ; 256 }; 257 }; 258 FixedText FT_TABLE_COL 259 { 260 Pos = MAP_APPFONT ( 137 , 31 ) ; 261 Size = MAP_APPFONT ( 75 , 8 ) ; 262 263 Text [ en-US ] = "Tab~le column(s)" ; 264 }; 265 ListBox LB_TABLE_COL 266 { 267 HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TABLE_COL"; 268 Border = TRUE ; 269 Pos = MAP_APPFONT ( 137 , 41 ) ; 270 Size = MAP_APPFONT ( 75 , 70 ) ; 271 TabStop = TRUE ; 272 }; 273 FixedLine FL_BOTTOM 274 { 275 Pos = MAP_APPFONT ( 0 , 164 ) ; 276 Size = MAP_APPFONT ( 291, 8 ) ; 277 }; 278 CheckBox CB_TABLE_HEADON 279 { 280 HelpID = "sw:CheckBox:DLG_AP_INSERT_DB_SEL:CB_TABLE_HEADON"; 281 Pos = MAP_APPFONT ( 111 , 128 ) ; 282 Size = MAP_APPFONT ( 100 , 10 ) ; 283 TabStop = TRUE ; 284 Check = TRUE ; 285 Text [ en-US ] = "Insert table heading"; 286 }; 287 RadioButton RB_HEADL_COLNMS 288 { 289 HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_HEADL_COLNMS"; 290 Pos = MAP_APPFONT ( 120 , 142 ) ; 291 Size = MAP_APPFONT ( 90 , 10 ) ; 292 TabStop = TRUE ; 293 Check = TRUE ; 294 Text [ en-US ] = "Apply column ~name"; 295 }; 296 RadioButton RB_HEADL_EMPTY 297 { 298 HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_HEADL_EMPTY"; 299 Pos = MAP_APPFONT ( 120 , 155 ) ; 300 Size = MAP_APPFONT ( 90 , 10 ) ; 301 TabStop = TRUE ; 302 Text [ en-US ] = "Create row only"; 303 }; 304 PushButton PB_TBL_FORMAT 305 { 306 HelpID = "sw:PushButton:DLG_AP_INSERT_DB_SEL:PB_TBL_FORMAT"; 307 Pos = MAP_APPFONT ( 214 , 128 ) ; 308 Size = MAP_APPFONT ( 65 , 12 ) ; 309 Text [ en-US ] = "Pr~operties..." ; 310 TabStop = TRUE ; 311 }; 312 PushButton PB_TBL_AUTOFMT 313 { 314 HelpID = "sw:PushButton:DLG_AP_INSERT_DB_SEL:PB_TBL_AUTOFMT"; 315 Pos = MAP_APPFONT ( 214 , 144 ) ; 316 Size = MAP_APPFONT ( 65 , 12 ) ; 317 TabStop = TRUE ; 318 Text [ en-US ] = "Aut~oFormat..." ; 319 }; 320 String STR_NOTEMPL 321 { 322 Text [ en-US ] = "<none>" ; 323 }; 324 Text [ en-US ] = "Insert Database Columns" ; 325}; 326 327