2012-06-14 17:39:53 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2001-06-19 09:54:55 +00:00
|
|
|
|
|
|
|
#include "directsql.hrc"
|
2002-08-19 07:01:32 +00:00
|
|
|
#include "dbu_dlg.hrc"
|
2001-06-19 09:54:55 +00:00
|
|
|
|
|
|
|
#define BUTTON_SIZE_X 50
|
|
|
|
#define BUTTON_SIZE_Y 14
|
|
|
|
|
|
|
|
#define WINDOW_SIZE_X 200
|
2012-06-29 11:00:59 +08:00
|
|
|
#define WINDOW_SIZE_Y 255 + BUTTON_SIZE_Y + BUTTON_SIZE_Y
|
2001-06-19 09:54:55 +00:00
|
|
|
|
|
|
|
ModalDialog DLG_DIRECTSQL
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:ModalDialog:DLG_DIRECTSQL";
|
2001-06-19 09:54:55 +00:00
|
|
|
OutputSize = TRUE ;
|
|
|
|
Moveable = TRUE ;
|
|
|
|
Closeable = TRUE ;
|
|
|
|
SVLook = TRUE ;
|
|
|
|
Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
|
|
|
|
|
|
|
|
FixedLine FL_SQL
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT( 4, 3 );
|
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "SQL command";
|
2001-06-19 09:54:55 +00:00
|
|
|
};
|
|
|
|
FixedText FT_SQL
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT( 7, 15 );
|
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 );
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "Command to execute";
|
2001-06-19 09:54:55 +00:00
|
|
|
};
|
|
|
|
MultiLineEdit ME_SQL
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_SQL";
|
2001-06-19 09:54:55 +00:00
|
|
|
Pos = MAP_APPFONT( 7, 26 );
|
2012-06-29 11:00:59 +08:00
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 60 );
|
2001-06-19 09:54:55 +00:00
|
|
|
SVLook = TRUE;
|
|
|
|
Border = TRUE;
|
|
|
|
TabStop = TRUE;
|
|
|
|
IgnoreTab = TRUE;
|
|
|
|
};
|
2012-06-29 11:00:59 +08:00
|
|
|
CheckBox CB_SHOWOUTPUT
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT( 7, 89 );
|
|
|
|
Size = MAP_APPFONT( 120, 10 );
|
|
|
|
Text [ en-US ] = "Show output of \"select\" statements";
|
|
|
|
};
|
2001-06-19 09:54:55 +00:00
|
|
|
PushButton PB_EXECUTE
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_EXECUTE";
|
2012-06-29 11:00:59 +08:00
|
|
|
Pos = MAP_APPFONT( WINDOW_SIZE_X - BUTTON_SIZE_X - 7, 89 );
|
2001-06-19 09:54:55 +00:00
|
|
|
Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "Execute";
|
2001-06-19 09:54:55 +00:00
|
|
|
DefButton = TRUE;
|
|
|
|
};
|
|
|
|
FixedText FT_HISTORY
|
|
|
|
{
|
2012-06-29 11:00:59 +08:00
|
|
|
Pos = MAP_APPFONT( 7, 85 + BUTTON_SIZE_Y + 3 );
|
2001-06-19 09:54:55 +00:00
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 );
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "Previous commands";
|
2001-06-19 09:54:55 +00:00
|
|
|
};
|
|
|
|
ListBox LB_HISTORY
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:ListBox:DLG_DIRECTSQL:LB_HISTORY";
|
2012-06-29 11:00:59 +08:00
|
|
|
Pos = MAP_APPFONT( 7, 96 + BUTTON_SIZE_Y + 3 );
|
2001-06-19 09:54:55 +00:00
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 14 );
|
|
|
|
SvLook = TRUE;
|
|
|
|
DropDown = TRUE;
|
|
|
|
Border = TRUE;
|
|
|
|
};
|
|
|
|
FixedLine FL_STATUS
|
|
|
|
{
|
2012-06-29 11:00:59 +08:00
|
|
|
Pos = MAP_APPFONT( 4, 113 + BUTTON_SIZE_Y + 4 );
|
2001-06-19 09:54:55 +00:00
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "Status";
|
2001-06-19 09:54:55 +00:00
|
|
|
};
|
|
|
|
MultiLineEdit ME_STATUS
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_STATUS";
|
2012-06-29 11:00:59 +08:00
|
|
|
Pos = MAP_APPFONT( 7, 128 + BUTTON_SIZE_Y );
|
2001-06-19 09:54:55 +00:00
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 41 );
|
|
|
|
Border = TRUE;
|
|
|
|
ReadOnly = TRUE;
|
|
|
|
VScroll = TRUE;
|
|
|
|
};
|
2012-06-29 11:00:59 +08:00
|
|
|
FixedLine FL_OUTPUT
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT( 4, 173 + BUTTON_SIZE_Y + 4 );
|
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
|
|
|
|
Text [ en-US ] = "Output";
|
|
|
|
};
|
|
|
|
MultiLineEdit ME_OUTPUT
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT( 7, 188 + BUTTON_SIZE_Y );
|
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 51 );
|
|
|
|
Border = TRUE;
|
|
|
|
ReadOnly = TRUE;
|
|
|
|
VScroll = TRUE;
|
|
|
|
HScroll = TRUE;
|
|
|
|
};
|
2001-06-19 09:54:55 +00:00
|
|
|
FixedLine FL_BUTTONS
|
|
|
|
{
|
2012-06-29 11:00:59 +08:00
|
|
|
Pos = MAP_APPFONT( 4, 238 + BUTTON_SIZE_Y + 4 );
|
2001-06-19 09:54:55 +00:00
|
|
|
Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
|
|
|
|
};
|
|
|
|
HelpButton PB_HELP
|
|
|
|
{
|
2012-06-29 11:00:59 +08:00
|
|
|
Pos = MAP_APPFONT( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X - 3 - BUTTON_SIZE_X, 252 + BUTTON_SIZE_Y );
|
2001-06-19 09:54:55 +00:00
|
|
|
Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
|
|
|
|
};
|
|
|
|
PushButton PB_CLOSE
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_CLOSE";
|
2012-06-29 11:00:59 +08:00
|
|
|
Pos = MAP_APPFONT( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X, 252 + BUTTON_SIZE_Y );
|
2001-06-19 09:54:55 +00:00
|
|
|
Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "Close";
|
2001-06-19 09:54:55 +00:00
|
|
|
};
|
|
|
|
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "Execute SQL Statement" ;
|
2001-06-19 09:54:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
String STR_COMMAND_EXECUTED_SUCCESSFULLY
|
|
|
|
{
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "Command successfully executed." ;
|
2001-06-19 09:54:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
String STR_DIRECTSQL_CONNECTIONLOST
|
|
|
|
{
|
2004-06-26 16:29:36 +00:00
|
|
|
Text [ en-US ] = "The connection to the database has been lost. This dialog will be closed.";
|
2001-06-19 09:54:55 +00:00
|
|
|
};
|