xref: /AOO41X/main/dbaccess/source/ui/dlg/directsql.src (revision 81d089ae0b6b164818efbaaff21440338527721c)
1*81d089aeSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*81d089aeSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*81d089aeSAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*81d089aeSAndrew Rist * distributed with this work for additional information
6*81d089aeSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*81d089aeSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*81d089aeSAndrew Rist * "License"); you may not use this file except in compliance
9*81d089aeSAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*81d089aeSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*81d089aeSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*81d089aeSAndrew Rist * software distributed under the License is distributed on an
15*81d089aeSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*81d089aeSAndrew Rist * KIND, either express or implied.  See the License for the
17*81d089aeSAndrew Rist * specific language governing permissions and limitations
18*81d089aeSAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*81d089aeSAndrew Rist *************************************************************/
21*81d089aeSAndrew Rist
22*81d089aeSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef _DBACCESS_UI_DIRECTSQL_HRC_
25cdf0e10cSrcweir#include "directsql.hrc"
26cdf0e10cSrcweir#endif
27cdf0e10cSrcweir#ifndef _DBU_DLG_HRC_
28cdf0e10cSrcweir#include "dbu_dlg.hrc"
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir#define BUTTON_SIZE_X		50
32cdf0e10cSrcweir#define BUTTON_SIZE_Y		14
33cdf0e10cSrcweir
34cdf0e10cSrcweir#define WINDOW_SIZE_X		200
35cdf0e10cSrcweir#define WINDOW_SIZE_Y		210 + BUTTON_SIZE_Y + BUTTON_SIZE_Y
36cdf0e10cSrcweir
37cdf0e10cSrcweirModalDialog DLG_DIRECTSQL
38cdf0e10cSrcweir{
39cdf0e10cSrcweir    HelpID = "dbaccess:ModalDialog:DLG_DIRECTSQL";
40cdf0e10cSrcweir	OutputSize	= TRUE ;
41cdf0e10cSrcweir	Moveable	= TRUE ;
42cdf0e10cSrcweir	Closeable	= TRUE ;
43cdf0e10cSrcweir	SVLook		= TRUE ;
44cdf0e10cSrcweir	Size		= MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
45cdf0e10cSrcweir
46cdf0e10cSrcweir	FixedLine FL_SQL
47cdf0e10cSrcweir	{
48cdf0e10cSrcweir		Pos = MAP_APPFONT( 4, 3 );
49cdf0e10cSrcweir		Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
50cdf0e10cSrcweir		Text [ en-US ] = "SQL command";
51cdf0e10cSrcweir	};
52cdf0e10cSrcweir	FixedText FT_SQL
53cdf0e10cSrcweir	{
54cdf0e10cSrcweir		Pos = MAP_APPFONT( 7, 15 );
55cdf0e10cSrcweir		Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 );
56cdf0e10cSrcweir		Text [ en-US ] = "Command to execute";
57cdf0e10cSrcweir	};
58cdf0e10cSrcweir	MultiLineEdit ME_SQL
59cdf0e10cSrcweir	{
60cdf0e10cSrcweir	    HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_SQL";
61cdf0e10cSrcweir		Pos = MAP_APPFONT( 7, 26 );
62cdf0e10cSrcweir		Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 80 );
63cdf0e10cSrcweir		SVLook = TRUE;
64cdf0e10cSrcweir		Border = TRUE;
65cdf0e10cSrcweir		TabStop = TRUE;
66cdf0e10cSrcweir		IgnoreTab = TRUE;
67cdf0e10cSrcweir	};
68cdf0e10cSrcweir	PushButton PB_EXECUTE
69cdf0e10cSrcweir	{
70cdf0e10cSrcweir	    HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_EXECUTE";
71cdf0e10cSrcweir		Pos = MAP_APPFONT( WINDOW_SIZE_X - BUTTON_SIZE_X - 7, 109 );
72cdf0e10cSrcweir		Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
73cdf0e10cSrcweir		Text [ en-US ] = "Execute";
74cdf0e10cSrcweir		DefButton = TRUE;
75cdf0e10cSrcweir	};
76cdf0e10cSrcweir	FixedText FT_HISTORY
77cdf0e10cSrcweir	{
78cdf0e10cSrcweir		Pos = MAP_APPFONT( 7, 110 + BUTTON_SIZE_Y + 3 );
79cdf0e10cSrcweir		Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 );
80cdf0e10cSrcweir		Text [ en-US ] = "Previous commands";
81cdf0e10cSrcweir	};
82cdf0e10cSrcweir	ListBox LB_HISTORY
83cdf0e10cSrcweir	{
84cdf0e10cSrcweir	    HelpID = "dbaccess:ListBox:DLG_DIRECTSQL:LB_HISTORY";
85cdf0e10cSrcweir		Pos = MAP_APPFONT( 7, 121 + BUTTON_SIZE_Y + 3 );
86cdf0e10cSrcweir		Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 14 );
87cdf0e10cSrcweir		SvLook = TRUE;
88cdf0e10cSrcweir		DropDown = TRUE;
89cdf0e10cSrcweir		Border = TRUE;
90cdf0e10cSrcweir	};
91cdf0e10cSrcweir	FixedLine FL_STATUS
92cdf0e10cSrcweir	{
93cdf0e10cSrcweir		Pos = MAP_APPFONT( 4, 138 + BUTTON_SIZE_Y + 4 );
94cdf0e10cSrcweir		Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
95cdf0e10cSrcweir		Text [ en-US ] = "Status";
96cdf0e10cSrcweir	};
97cdf0e10cSrcweir	MultiLineEdit ME_STATUS
98cdf0e10cSrcweir	{
99cdf0e10cSrcweir	    HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_STATUS";
100cdf0e10cSrcweir		Pos = MAP_APPFONT( 7, 153 + BUTTON_SIZE_Y );
101cdf0e10cSrcweir		Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 41 );
102cdf0e10cSrcweir		Border = TRUE;
103cdf0e10cSrcweir		ReadOnly = TRUE;
104cdf0e10cSrcweir		VScroll = TRUE;
105cdf0e10cSrcweir	};
106cdf0e10cSrcweir	FixedLine FL_BUTTONS
107cdf0e10cSrcweir	{
108cdf0e10cSrcweir		Pos = MAP_APPFONT( 4, 193 + BUTTON_SIZE_Y + 4 );
109cdf0e10cSrcweir		Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
110cdf0e10cSrcweir	};
111cdf0e10cSrcweir	HelpButton PB_HELP
112cdf0e10cSrcweir	{
113cdf0e10cSrcweir		Pos = MAP_APPFONT( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X - 3 - BUTTON_SIZE_X, 207 + BUTTON_SIZE_Y );
114cdf0e10cSrcweir		Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
115cdf0e10cSrcweir	};
116cdf0e10cSrcweir	PushButton PB_CLOSE
117cdf0e10cSrcweir	{
118cdf0e10cSrcweir	    HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_CLOSE";
119cdf0e10cSrcweir		Pos = MAP_APPFONT( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X, 207 + BUTTON_SIZE_Y );
120cdf0e10cSrcweir		Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
121cdf0e10cSrcweir		Text [ en-US ] = "Close";
122cdf0e10cSrcweir	};
123cdf0e10cSrcweir
124cdf0e10cSrcweir	Text [ en-US ]	= "Execute SQL Statement" ;
125cdf0e10cSrcweir};
126cdf0e10cSrcweir
127cdf0e10cSrcweirString STR_COMMAND_EXECUTED_SUCCESSFULLY
128cdf0e10cSrcweir{
129cdf0e10cSrcweir	Text [ en-US ] = "Command successfully executed." ;
130cdf0e10cSrcweir};
131cdf0e10cSrcweir
132cdf0e10cSrcweirString STR_DIRECTSQL_CONNECTIONLOST
133cdf0e10cSrcweir{
134cdf0e10cSrcweir	Text [ en-US ] = "The connection to the database has been lost. This dialog will be closed.";
135cdf0e10cSrcweir};
136cdf0e10cSrcweir
137