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#ifndef _DBACCESS_UI_DIRECTSQL_HRC_ 29#include "directsql.hrc" 30#endif 31#ifndef _DBU_DLG_HRC_ 32#include "dbu_dlg.hrc" 33#endif 34 35#define BUTTON_SIZE_X 50 36#define BUTTON_SIZE_Y 14 37 38#define WINDOW_SIZE_X 200 39#define WINDOW_SIZE_Y 210 + BUTTON_SIZE_Y + BUTTON_SIZE_Y 40 41ModalDialog DLG_DIRECTSQL 42{ 43 HelpID = "dbaccess:ModalDialog:DLG_DIRECTSQL"; 44 OutputSize = TRUE ; 45 Moveable = TRUE ; 46 Closeable = TRUE ; 47 SVLook = TRUE ; 48 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ; 49 50 FixedLine FL_SQL 51 { 52 Pos = MAP_APPFONT( 4, 3 ); 53 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 ); 54 Text [ en-US ] = "SQL command"; 55 }; 56 FixedText FT_SQL 57 { 58 Pos = MAP_APPFONT( 7, 15 ); 59 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 ); 60 Text [ en-US ] = "Command to execute"; 61 }; 62 MultiLineEdit ME_SQL 63 { 64 HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_SQL"; 65 Pos = MAP_APPFONT( 7, 26 ); 66 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 80 ); 67 SVLook = TRUE; 68 Border = TRUE; 69 TabStop = TRUE; 70 IgnoreTab = TRUE; 71 }; 72 PushButton PB_EXECUTE 73 { 74 HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_EXECUTE"; 75 Pos = MAP_APPFONT( WINDOW_SIZE_X - BUTTON_SIZE_X - 7, 109 ); 76 Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y ); 77 Text [ en-US ] = "Execute"; 78 DefButton = TRUE; 79 }; 80 FixedText FT_HISTORY 81 { 82 Pos = MAP_APPFONT( 7, 110 + BUTTON_SIZE_Y + 3 ); 83 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 ); 84 Text [ en-US ] = "Previous commands"; 85 }; 86 ListBox LB_HISTORY 87 { 88 HelpID = "dbaccess:ListBox:DLG_DIRECTSQL:LB_HISTORY"; 89 Pos = MAP_APPFONT( 7, 121 + BUTTON_SIZE_Y + 3 ); 90 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 14 ); 91 SvLook = TRUE; 92 DropDown = TRUE; 93 Border = TRUE; 94 }; 95 FixedLine FL_STATUS 96 { 97 Pos = MAP_APPFONT( 4, 138 + BUTTON_SIZE_Y + 4 ); 98 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 ); 99 Text [ en-US ] = "Status"; 100 }; 101 MultiLineEdit ME_STATUS 102 { 103 HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_STATUS"; 104 Pos = MAP_APPFONT( 7, 153 + BUTTON_SIZE_Y ); 105 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 41 ); 106 Border = TRUE; 107 ReadOnly = TRUE; 108 VScroll = TRUE; 109 }; 110 FixedLine FL_BUTTONS 111 { 112 Pos = MAP_APPFONT( 4, 193 + BUTTON_SIZE_Y + 4 ); 113 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 ); 114 }; 115 HelpButton PB_HELP 116 { 117 Pos = MAP_APPFONT( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X - 3 - BUTTON_SIZE_X, 207 + BUTTON_SIZE_Y ); 118 Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y ); 119 }; 120 PushButton PB_CLOSE 121 { 122 HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_CLOSE"; 123 Pos = MAP_APPFONT( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X, 207 + BUTTON_SIZE_Y ); 124 Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y ); 125 Text [ en-US ] = "Close"; 126 }; 127 128 Text [ en-US ] = "Execute SQL Statement" ; 129}; 130 131String STR_COMMAND_EXECUTED_SUCCESSFULLY 132{ 133 Text [ en-US ] = "Command successfully executed." ; 134}; 135 136String STR_DIRECTSQL_CONNECTIONLOST 137{ 138 Text [ en-US ] = "The connection to the database has been lost. This dialog will be closed."; 139}; 140 141