1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "directsql.hrc"
21 #include "dbu_dlg.hrc"
23 #define BUTTON_SIZE_X 50
24 #define BUTTON_SIZE_Y 14
26 #define WINDOW_SIZE_X 200
27 #define WINDOW_SIZE_Y 255 + BUTTON_SIZE_Y + BUTTON_SIZE_Y
29 ModalDialog DLG_DIRECTSQL
31 HelpID = "dbaccess:ModalDialog:DLG_DIRECTSQL";
36 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
40 Pos = MAP_APPFONT( 4, 3 );
41 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
42 Text [ en-US ] = "SQL command";
46 Pos = MAP_APPFONT( 7, 15 );
47 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 );
48 Text [ en-US ] = "Command to execute";
52 HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_SQL";
53 Pos = MAP_APPFONT( 7, 26 );
54 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 60 );
60 CheckBox CB_SHOWOUTPUT
62 Pos = MAP_APPFONT( 7, 89 );
63 Size = MAP_APPFONT( 120, 10 );
64 Text [ en-US ] = "Show output of \"select\" statements";
68 HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_EXECUTE";
69 Pos = MAP_APPFONT( WINDOW_SIZE_X - BUTTON_SIZE_X - 7, 89 );
70 Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
71 Text [ en-US ] = "Execute";
76 Pos = MAP_APPFONT( 7, 85 + BUTTON_SIZE_Y + 3 );
77 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 8 );
78 Text [ en-US ] = "Previous commands";
82 HelpID = "dbaccess:ListBox:DLG_DIRECTSQL:LB_HISTORY";
83 Pos = MAP_APPFONT( 7, 96 + BUTTON_SIZE_Y + 3 );
84 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 14 );
91 Pos = MAP_APPFONT( 4, 113 + BUTTON_SIZE_Y + 4 );
92 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
93 Text [ en-US ] = "Status";
95 MultiLineEdit ME_STATUS
97 HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_STATUS";
98 Pos = MAP_APPFONT( 7, 128 + BUTTON_SIZE_Y );
99 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 41 );
106 Pos = MAP_APPFONT( 4, 173 + BUTTON_SIZE_Y + 4 );
107 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
108 Text [ en-US ] = "Output";
110 MultiLineEdit ME_OUTPUT
112 Pos = MAP_APPFONT( 7, 188 + BUTTON_SIZE_Y );
113 Size = MAP_APPFONT( WINDOW_SIZE_X - 14, 51 );
121 Pos = MAP_APPFONT( 4, 238 + BUTTON_SIZE_Y + 4 );
122 Size = MAP_APPFONT( WINDOW_SIZE_X - 8, 8 );
126 Pos = MAP_APPFONT( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X - 3 - BUTTON_SIZE_X, 252 + BUTTON_SIZE_Y );
127 Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
131 HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_CLOSE";
132 Pos = MAP_APPFONT( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X, 252 + BUTTON_SIZE_Y );
133 Size = MAP_APPFONT( BUTTON_SIZE_X, BUTTON_SIZE_Y );
134 Text [ en-US ] = "Close";
137 Text [ en-US ] = "Execute SQL Statement" ;
140 String STR_COMMAND_EXECUTED_SUCCESSFULLY
142 Text [ en-US ] = "Command successfully executed." ;
145 String STR_DIRECTSQL_CONNECTIONLOST
147 Text [ en-US ] = "The connection to the database has been lost. This dialog will be closed.";
150 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */