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