1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#include "dbinsdlg.hrc" 29*cdf0e10cSrcweir#include "dbui.hrc" 30*cdf0e10cSrcweir#include "cmdid.h" 31*cdf0e10cSrcweir#include "helpid.h" 32*cdf0e10cSrcweirModalDialog DLG_AP_INSERT_DB_SEL 33*cdf0e10cSrcweir{ 34*cdf0e10cSrcweir HelpID = HID_AP_INSERT_DB_SEL ; 35*cdf0e10cSrcweir OUTPUTSIZE = TRUE ; 36*cdf0e10cSrcweir Pos = MAP_APPFONT ( 0 , 0 ) ; 37*cdf0e10cSrcweir Size = MAP_APPFONT ( 291 , 189 ) ; 38*cdf0e10cSrcweir Moveable = TRUE ; 39*cdf0e10cSrcweir Closeable = TRUE ; 40*cdf0e10cSrcweir SVLOOK = TRUE ; 41*cdf0e10cSrcweir FixedText FT_INSERT_DATA 42*cdf0e10cSrcweir { 43*cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 6 ) ; 44*cdf0e10cSrcweir Size = MAP_APPFONT ( 66 , 8 ) ; 45*cdf0e10cSrcweir Text [ en-US ] = "Insert data as:" ; 46*cdf0e10cSrcweir }; 47*cdf0e10cSrcweir RadioButton RB_AS_TABLE 48*cdf0e10cSrcweir { 49*cdf0e10cSrcweir HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_TABLE"; 50*cdf0e10cSrcweir Pos = MAP_APPFONT ( 80 , 6 ) ; 51*cdf0e10cSrcweir Size = MAP_APPFONT ( 60 , 10 ) ; 52*cdf0e10cSrcweir TabStop = TRUE ; 53*cdf0e10cSrcweir Check = TRUE ; 54*cdf0e10cSrcweir Text [ en-US ] = "T~able" ; 55*cdf0e10cSrcweir }; 56*cdf0e10cSrcweir RadioButton RB_AS_FIELD 57*cdf0e10cSrcweir { 58*cdf0e10cSrcweir HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_FIELD"; 59*cdf0e10cSrcweir Pos = MAP_APPFONT ( 145 , 6 ) ; 60*cdf0e10cSrcweir Size = MAP_APPFONT ( 60 , 10 ) ; 61*cdf0e10cSrcweir TabStop = TRUE ; 62*cdf0e10cSrcweir Text [ en-US ] = "~Fields" ; 63*cdf0e10cSrcweir }; 64*cdf0e10cSrcweir RadioButton RB_AS_TEXT 65*cdf0e10cSrcweir { 66*cdf0e10cSrcweir HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_TEXT"; 67*cdf0e10cSrcweir Pos = MAP_APPFONT ( 210 , 6 ) ; 68*cdf0e10cSrcweir Size = MAP_APPFONT ( 60 , 10 ) ; 69*cdf0e10cSrcweir TabStop = TRUE ; 70*cdf0e10cSrcweir Text [ en-US ] = "~Text" ; 71*cdf0e10cSrcweir }; 72*cdf0e10cSrcweir OKButton BT_OK 73*cdf0e10cSrcweir { 74*cdf0e10cSrcweir Pos = MAP_APPFONT ( 123 , 172 ) ; 75*cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 76*cdf0e10cSrcweir TabStop = TRUE ; 77*cdf0e10cSrcweir DefButton = TRUE ; 78*cdf0e10cSrcweir }; 79*cdf0e10cSrcweir CancelButton BT_CANCEL 80*cdf0e10cSrcweir { 81*cdf0e10cSrcweir Pos = MAP_APPFONT ( 179 , 172 ) ; 82*cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 83*cdf0e10cSrcweir TabStop = TRUE ; 84*cdf0e10cSrcweir }; 85*cdf0e10cSrcweir HelpButton BT_HELP 86*cdf0e10cSrcweir { 87*cdf0e10cSrcweir Pos = MAP_APPFONT ( 235 , 172 ) ; 88*cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 89*cdf0e10cSrcweir TabStop = TRUE ; 90*cdf0e10cSrcweir }; 91*cdf0e10cSrcweir FixedLine FL_HEAD 92*cdf0e10cSrcweir { 93*cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 19 ) ; 94*cdf0e10cSrcweir Size = MAP_APPFONT ( 279 , 8 ) ; 95*cdf0e10cSrcweir /* wird dynamisch gesetzt! */ 96*cdf0e10cSrcweir Text = "" ; 97*cdf0e10cSrcweir }; 98*cdf0e10cSrcweir FixedText FT_DB_COLUMN 99*cdf0e10cSrcweir { 100*cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 31 ) ; 101*cdf0e10cSrcweir Size = MAP_APPFONT ( 72 , 8 ) ; 102*cdf0e10cSrcweir Text [ en-US ] = "Database ~columns" ; 103*cdf0e10cSrcweir }; 104*cdf0e10cSrcweir FixedLine FL_FORMAT 105*cdf0e10cSrcweir { 106*cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 117 ) ; 107*cdf0e10cSrcweir Size = MAP_APPFONT ( 279 , 8 ) ; 108*cdf0e10cSrcweir Text [ en-US ] = "For~mat" ; 109*cdf0e10cSrcweir }; 110*cdf0e10cSrcweir RadioButton RB_DBFMT_FROM_DB 111*cdf0e10cSrcweir { 112*cdf0e10cSrcweir HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_DBFMT_FROM_DB"; 113*cdf0e10cSrcweir Pos = MAP_APPFONT ( 15 , 128 ) ; 114*cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 10 ) ; 115*cdf0e10cSrcweir TabStop = TRUE ; 116*cdf0e10cSrcweir Check = TRUE ; 117*cdf0e10cSrcweir Text [ en-US ] = "From ~database" ; 118*cdf0e10cSrcweir }; 119*cdf0e10cSrcweir RadioButton RB_DBFMT_FROM_USR 120*cdf0e10cSrcweir { 121*cdf0e10cSrcweir HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_DBFMT_FROM_USR"; 122*cdf0e10cSrcweir Pos = MAP_APPFONT ( 15 , 143 ) ; 123*cdf0e10cSrcweir Size = MAP_APPFONT ( 10 , 10 ) ; 124*cdf0e10cSrcweir TabStop = TRUE ; 125*cdf0e10cSrcweir }; 126*cdf0e10cSrcweir ListBox LB_DBFMT_FROM_USR 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_DBFMT_FROM_USR"; 129*cdf0e10cSrcweir Border = TRUE ; 130*cdf0e10cSrcweir Pos = MAP_APPFONT ( 30 , 142 ) ; 131*cdf0e10cSrcweir Size = MAP_APPFONT ( 75 , 44 ) ; 132*cdf0e10cSrcweir TabStop = TRUE ; 133*cdf0e10cSrcweir DropDown = TRUE ; 134*cdf0e10cSrcweir AutoHScroll = TRUE ; 135*cdf0e10cSrcweir }; 136*cdf0e10cSrcweir /* -------------- Page Text / Fields -------------------------------- */ 137*cdf0e10cSrcweir ListBox LB_TXT_DB_COLUMN 138*cdf0e10cSrcweir { 139*cdf0e10cSrcweir HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TXT_DB_COLUMN"; 140*cdf0e10cSrcweir Border = TRUE ; 141*cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 41 ) ; 142*cdf0e10cSrcweir Size = MAP_APPFONT ( 93 , 70 ) ; 143*cdf0e10cSrcweir TabStop = TRUE ; 144*cdf0e10cSrcweir Hide = TRUE ; 145*cdf0e10cSrcweir }; 146*cdf0e10cSrcweir ImageButton IB_DBCOL_TOEDIT 147*cdf0e10cSrcweir { 148*cdf0e10cSrcweir HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_TOEDIT"; 149*cdf0e10cSrcweir Pos = MAP_APPFONT ( 111 , 41 ) ; 150*cdf0e10cSrcweir Size = MAP_APPFONT ( 20 , 12 ) ; 151*cdf0e10cSrcweir TabStop = TRUE ; 152*cdf0e10cSrcweir Hide = TRUE ; 153*cdf0e10cSrcweir ButtonImage = Image 154*cdf0e10cSrcweir { 155*cdf0e10cSrcweir ImageBitmap = Bitmap 156*cdf0e10cSrcweir { 157*cdf0e10cSrcweir File = "one_right.bmp" ; 158*cdf0e10cSrcweir }; 159*cdf0e10cSrcweir MaskColor = IMAGE_MASK_COLOR ; 160*cdf0e10cSrcweir }; 161*cdf0e10cSrcweir }; 162*cdf0e10cSrcweir MultiLineEdit ED_DB_TEXT 163*cdf0e10cSrcweir { 164*cdf0e10cSrcweir HelpID = "sw:MultiLineEdit:DLG_AP_INSERT_DB_SEL:ED_DB_TEXT"; 165*cdf0e10cSrcweir Border = TRUE ; 166*cdf0e10cSrcweir Pos = MAP_APPFONT ( 137 , 41 ) ; 167*cdf0e10cSrcweir Size = MAP_APPFONT ( 142 , 70 ) ; 168*cdf0e10cSrcweir TabStop = TRUE ; 169*cdf0e10cSrcweir Left = TRUE ; 170*cdf0e10cSrcweir VScroll = TRUE ; 171*cdf0e10cSrcweir HScroll = TRUE ; 172*cdf0e10cSrcweir Hide = TRUE ; 173*cdf0e10cSrcweir IgnoreTab = TRUE; 174*cdf0e10cSrcweir }; 175*cdf0e10cSrcweir FixedText FT_DB_PARA_COLL 176*cdf0e10cSrcweir { 177*cdf0e10cSrcweir Pos = MAP_APPFONT ( 118 , 129 ) ; 178*cdf0e10cSrcweir Size = MAP_APPFONT ( 58 , 8 ) ; 179*cdf0e10cSrcweir Text [ en-US ] = "Paragraph ~Style:" ; 180*cdf0e10cSrcweir Hide = TRUE ; 181*cdf0e10cSrcweir }; 182*cdf0e10cSrcweir ListBox LB_DB_PARA_COLL 183*cdf0e10cSrcweir { 184*cdf0e10cSrcweir HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_DB_PARA_COLL"; 185*cdf0e10cSrcweir Border = TRUE ; 186*cdf0e10cSrcweir Pos = MAP_APPFONT ( 182 , 127 ) ; 187*cdf0e10cSrcweir Size = MAP_APPFONT ( 97 , 59 ) ; 188*cdf0e10cSrcweir TabStop = TRUE ; 189*cdf0e10cSrcweir DropDown = TRUE ; 190*cdf0e10cSrcweir Hide = TRUE ; 191*cdf0e10cSrcweir Sort = TRUE ; 192*cdf0e10cSrcweir }; 193*cdf0e10cSrcweir /* -------------- Page Table ---------------------------------------- */ 194*cdf0e10cSrcweir ListBox LB_TBL_DB_COLUMN 195*cdf0e10cSrcweir { 196*cdf0e10cSrcweir HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TBL_DB_COLUMN"; 197*cdf0e10cSrcweir Border = TRUE ; 198*cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 41 ) ; 199*cdf0e10cSrcweir Size = MAP_APPFONT ( 93 , 70 ) ; 200*cdf0e10cSrcweir TabStop = TRUE ; 201*cdf0e10cSrcweir }; 202*cdf0e10cSrcweir ImageButton IB_DBCOL_ALL_TO 203*cdf0e10cSrcweir { 204*cdf0e10cSrcweir HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ALL_TO"; 205*cdf0e10cSrcweir Pos = MAP_APPFONT ( 111 , 41 ) ; 206*cdf0e10cSrcweir Size = MAP_APPFONT ( 20 , 12 ) ; 207*cdf0e10cSrcweir TabStop = TRUE ; 208*cdf0e10cSrcweir ButtonImage = Image 209*cdf0e10cSrcweir { 210*cdf0e10cSrcweir ImageBitmap = Bitmap 211*cdf0e10cSrcweir { 212*cdf0e10cSrcweir File = "all_right.bmp" ; 213*cdf0e10cSrcweir }; 214*cdf0e10cSrcweir MaskColor = IMAGE_MASK_COLOR ; 215*cdf0e10cSrcweir }; 216*cdf0e10cSrcweir }; 217*cdf0e10cSrcweir ImageButton IB_DBCOL_ONE_TO 218*cdf0e10cSrcweir { 219*cdf0e10cSrcweir HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ONE_TO"; 220*cdf0e10cSrcweir Pos = MAP_APPFONT ( 111 , 56 ) ; 221*cdf0e10cSrcweir Size = MAP_APPFONT ( 20 , 12 ) ; 222*cdf0e10cSrcweir TabStop = TRUE ; 223*cdf0e10cSrcweir ButtonImage = Image 224*cdf0e10cSrcweir { 225*cdf0e10cSrcweir ImageBitmap = Bitmap 226*cdf0e10cSrcweir { 227*cdf0e10cSrcweir File = "one_right.bmp" ; 228*cdf0e10cSrcweir }; 229*cdf0e10cSrcweir MaskColor = IMAGE_MASK_COLOR ; 230*cdf0e10cSrcweir }; 231*cdf0e10cSrcweir }; 232*cdf0e10cSrcweir ImageButton IB_DBCOL_ONE_FROM 233*cdf0e10cSrcweir { 234*cdf0e10cSrcweir HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ONE_FROM"; 235*cdf0e10cSrcweir Pos = MAP_APPFONT ( 111 , 84 ) ; 236*cdf0e10cSrcweir Size = MAP_APPFONT ( 20 , 12 ) ; 237*cdf0e10cSrcweir TabStop = TRUE ; 238*cdf0e10cSrcweir ButtonImage = Image 239*cdf0e10cSrcweir { 240*cdf0e10cSrcweir ImageBitmap = Bitmap 241*cdf0e10cSrcweir { 242*cdf0e10cSrcweir File = "one_left.bmp" ; 243*cdf0e10cSrcweir }; 244*cdf0e10cSrcweir MaskColor = IMAGE_MASK_COLOR ; 245*cdf0e10cSrcweir }; 246*cdf0e10cSrcweir }; 247*cdf0e10cSrcweir ImageButton IB_DBCOL_ALL_FROM 248*cdf0e10cSrcweir { 249*cdf0e10cSrcweir HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ALL_FROM"; 250*cdf0e10cSrcweir Pos = MAP_APPFONT ( 111 , 99 ) ; 251*cdf0e10cSrcweir Size = MAP_APPFONT ( 20 , 12 ) ; 252*cdf0e10cSrcweir TabStop = TRUE ; 253*cdf0e10cSrcweir ButtonImage = Image 254*cdf0e10cSrcweir { 255*cdf0e10cSrcweir ImageBitmap = Bitmap 256*cdf0e10cSrcweir { 257*cdf0e10cSrcweir File = "all_left.bmp" ; 258*cdf0e10cSrcweir }; 259*cdf0e10cSrcweir MaskColor = IMAGE_MASK_COLOR ; 260*cdf0e10cSrcweir }; 261*cdf0e10cSrcweir }; 262*cdf0e10cSrcweir FixedText FT_TABLE_COL 263*cdf0e10cSrcweir { 264*cdf0e10cSrcweir Pos = MAP_APPFONT ( 137 , 31 ) ; 265*cdf0e10cSrcweir Size = MAP_APPFONT ( 75 , 8 ) ; 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir Text [ en-US ] = "Tab~le column(s)" ; 268*cdf0e10cSrcweir }; 269*cdf0e10cSrcweir ListBox LB_TABLE_COL 270*cdf0e10cSrcweir { 271*cdf0e10cSrcweir HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TABLE_COL"; 272*cdf0e10cSrcweir Border = TRUE ; 273*cdf0e10cSrcweir Pos = MAP_APPFONT ( 137 , 41 ) ; 274*cdf0e10cSrcweir Size = MAP_APPFONT ( 75 , 70 ) ; 275*cdf0e10cSrcweir TabStop = TRUE ; 276*cdf0e10cSrcweir }; 277*cdf0e10cSrcweir FixedLine FL_BOTTOM 278*cdf0e10cSrcweir { 279*cdf0e10cSrcweir Pos = MAP_APPFONT ( 0 , 164 ) ; 280*cdf0e10cSrcweir Size = MAP_APPFONT ( 291, 8 ) ; 281*cdf0e10cSrcweir }; 282*cdf0e10cSrcweir CheckBox CB_TABLE_HEADON 283*cdf0e10cSrcweir { 284*cdf0e10cSrcweir HelpID = "sw:CheckBox:DLG_AP_INSERT_DB_SEL:CB_TABLE_HEADON"; 285*cdf0e10cSrcweir Pos = MAP_APPFONT ( 111 , 128 ) ; 286*cdf0e10cSrcweir Size = MAP_APPFONT ( 100 , 10 ) ; 287*cdf0e10cSrcweir TabStop = TRUE ; 288*cdf0e10cSrcweir Check = TRUE ; 289*cdf0e10cSrcweir Text [ en-US ] = "Insert table heading"; 290*cdf0e10cSrcweir }; 291*cdf0e10cSrcweir RadioButton RB_HEADL_COLNMS 292*cdf0e10cSrcweir { 293*cdf0e10cSrcweir HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_HEADL_COLNMS"; 294*cdf0e10cSrcweir Pos = MAP_APPFONT ( 120 , 142 ) ; 295*cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 10 ) ; 296*cdf0e10cSrcweir TabStop = TRUE ; 297*cdf0e10cSrcweir Check = TRUE ; 298*cdf0e10cSrcweir Text [ en-US ] = "Apply column ~name"; 299*cdf0e10cSrcweir }; 300*cdf0e10cSrcweir RadioButton RB_HEADL_EMPTY 301*cdf0e10cSrcweir { 302*cdf0e10cSrcweir HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_HEADL_EMPTY"; 303*cdf0e10cSrcweir Pos = MAP_APPFONT ( 120 , 155 ) ; 304*cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 10 ) ; 305*cdf0e10cSrcweir TabStop = TRUE ; 306*cdf0e10cSrcweir Text [ en-US ] = "Create row only"; 307*cdf0e10cSrcweir }; 308*cdf0e10cSrcweir PushButton PB_TBL_FORMAT 309*cdf0e10cSrcweir { 310*cdf0e10cSrcweir HelpID = "sw:PushButton:DLG_AP_INSERT_DB_SEL:PB_TBL_FORMAT"; 311*cdf0e10cSrcweir Pos = MAP_APPFONT ( 214 , 128 ) ; 312*cdf0e10cSrcweir Size = MAP_APPFONT ( 65 , 12 ) ; 313*cdf0e10cSrcweir Text [ en-US ] = "Pr~operties..." ; 314*cdf0e10cSrcweir TabStop = TRUE ; 315*cdf0e10cSrcweir }; 316*cdf0e10cSrcweir PushButton PB_TBL_AUTOFMT 317*cdf0e10cSrcweir { 318*cdf0e10cSrcweir HelpID = "sw:PushButton:DLG_AP_INSERT_DB_SEL:PB_TBL_AUTOFMT"; 319*cdf0e10cSrcweir Pos = MAP_APPFONT ( 214 , 144 ) ; 320*cdf0e10cSrcweir Size = MAP_APPFONT ( 65 , 12 ) ; 321*cdf0e10cSrcweir TabStop = TRUE ; 322*cdf0e10cSrcweir Text [ en-US ] = "Aut~oFormat..." ; 323*cdf0e10cSrcweir }; 324*cdf0e10cSrcweir String STR_NOTEMPL 325*cdf0e10cSrcweir { 326*cdf0e10cSrcweir Text [ en-US ] = "<none>" ; 327*cdf0e10cSrcweir }; 328*cdf0e10cSrcweir Text [ en-US ] = "Insert Database Columns" ; 329*cdf0e10cSrcweir}; 330*cdf0e10cSrcweir 331