1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #ifndef _DBACCESS_UI_DIRECTSQL_HRC_
29 #include "directsql.hrc"
32 #include "dbu_dlg.hrc"
35 #define BUTTON_SIZE_X 50
36 #define BUTTON_SIZE_Y 14
38 #define WINDOW_SIZE_X 200
39 #define WINDOW_SIZE_Y 210 + BUTTON_SIZE_Y + BUTTON_SIZE_Y
41 ModalDialog DLG_DIRECTSQL
43 HelpID = "dbaccess:ModalDialog:DLG_DIRECTSQL";
48 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
52 Pos = MAP_APPFONT( 4, 3 );
53 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
54 Text [ en-US ] = "SQL command";
58 Pos = MAP_APPFONT( 7, 15 );
59 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 );
60 Text [ en-US ] = "Command to execute";
64 HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_SQL";
65 Pos = MAP_APPFONT( 7, 26 );
66 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 80 );
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";
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";
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 );
97 Pos = MAP_APPFONT( 4, 138 + BUTTON_SIZE_Y + 4 );
98 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
99 Text [ en-US ] = "Status";
101 MultiLineEdit ME_STATUS
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 );
112 Pos = MAP_APPFONT( 4, 193 + BUTTON_SIZE_Y + 4 );
113 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
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 );
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";
128 Text [ en-US ] = "Execute SQL Statement" ;
131 String STR_COMMAND_EXECUTED_SUCCESSFULLY
133 Text [ en-US ] = "Command successfully executed." ;
136 String STR_DIRECTSQL_CONNECTIONLOST
138 Text [ en-US ] = "The connection to the database has been lost. This dialog will be closed.";