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