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