xref: /AOO41X/main/dbaccess/source/ui/dlg/UserAdmin.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 DBAUI_USERADMIN_HRC
25cdf0e10cSrcweir#include "UserAdmin.hrc"
26cdf0e10cSrcweir#endif
27cdf0e10cSrcweir#ifndef _DBU_DLG_HRC_
28cdf0e10cSrcweir#include "dbu_dlg.hrc"
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir#ifndef _DBA_DBACCESS_HELPID_HRC_
31cdf0e10cSrcweir#include "dbaccess_helpid.hrc"
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#define WINDOW_SIZE_X 260
35cdf0e10cSrcweir#define WINDOW_SIZE_Y 185
36cdf0e10cSrcweir
37cdf0e10cSrcweirTabPage TAB_PAGE_USERADMIN
38cdf0e10cSrcweir{
39cdf0e10cSrcweir    SVLook      = TRUE ;
40cdf0e10cSrcweir    HelpId      = HID_TAB_PAGE_USERADMIN ;
41cdf0e10cSrcweir    Size        = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
42cdf0e10cSrcweir    Hide = TRUE;
43cdf0e10cSrcweir
44cdf0e10cSrcweir    FixedLine FL_USER
45cdf0e10cSrcweir    {
46cdf0e10cSrcweir        Pos                 = MAP_APPFONT ( 6 , 3  ) ;
47cdf0e10cSrcweir        Size                = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8) ;
48cdf0e10cSrcweir        Text [ en-US ]  = "User selection";
49cdf0e10cSrcweir    };
50cdf0e10cSrcweir
51cdf0e10cSrcweir    FixedText FT_USER
52cdf0e10cSrcweir    {
53cdf0e10cSrcweir        Pos                 = MAP_APPFONT ( 12 , 14 ) ;
54cdf0e10cSrcweir        Size                = MAP_APPFONT ( 90 , 10 ) ;
55cdf0e10cSrcweir        Text [ en-US ]  = "Us~er:";
56cdf0e10cSrcweir    };
57cdf0e10cSrcweir
58cdf0e10cSrcweir    ListBox LB_USER
59cdf0e10cSrcweir    {
60cdf0e10cSrcweir        Border              = TRUE ;
61cdf0e10cSrcweir        Pos                 = MAP_APPFONT ( 108 , 13) ;
62cdf0e10cSrcweir        Size                = MAP_APPFONT ( 105 , 97 ) ;
63cdf0e10cSrcweir        TabStop             = TRUE ;
64cdf0e10cSrcweir        HScroll             = TRUE ;
65cdf0e10cSrcweir        Sort                = TRUE ;
66cdf0e10cSrcweir        DropDown            = TRUE ;
67cdf0e10cSrcweir        HelpId              = HID_TAB_PAGE_LBUSER ;
68cdf0e10cSrcweir    };
69cdf0e10cSrcweir
70cdf0e10cSrcweir
71cdf0e10cSrcweir    PushButton PB_NEWUSER
72cdf0e10cSrcweir    {
73cdf0e10cSrcweir        Pos                 = MAP_APPFONT ( 12 , 29 ) ;
74cdf0e10cSrcweir        Size                = MAP_APPFONT ( 70 , 14 ) ;
75cdf0e10cSrcweir        TabStop             = TRUE ;
76cdf0e10cSrcweir        DefButton           = TRUE ;
77cdf0e10cSrcweir        HelpId              = HID_TAB_PAGE_PBUSER ;
78cdf0e10cSrcweir        Text [ en-US ] = "~Add User...";
79cdf0e10cSrcweir    };
80cdf0e10cSrcweir
81cdf0e10cSrcweir    PushButton PB_CHANGEPWD
82cdf0e10cSrcweir    {
83cdf0e10cSrcweir        Pos                 = MAP_APPFONT ( 95 , 29 ) ;
84cdf0e10cSrcweir        Size                = MAP_APPFONT ( 70 , 14 ) ;
85cdf0e10cSrcweir        TabStop             = TRUE ;
86cdf0e10cSrcweir        DefButton           = TRUE ;
87cdf0e10cSrcweir        HelpId              = HID_TAB_PAGE_PBCHGPWD ;
88cdf0e10cSrcweir        Text [ en-US ] = "Change ~Password...";
89cdf0e10cSrcweir    };
90cdf0e10cSrcweir
91cdf0e10cSrcweir    PushButton PB_DELETEUSER
92cdf0e10cSrcweir    {
93cdf0e10cSrcweir        Pos                 = MAP_APPFONT ( WINDOW_SIZE_X - 82 , 29 ) ;
94cdf0e10cSrcweir        Size                = MAP_APPFONT ( 70 , 14 ) ;
95cdf0e10cSrcweir        TabStop             = TRUE ;
96cdf0e10cSrcweir        DefButton           = TRUE ;
97cdf0e10cSrcweir        HelpId              = HID_TAB_PAGE_PBUSERDELETE ;
98cdf0e10cSrcweir        Text [ en-US ] = "~Delete User...";
99cdf0e10cSrcweir    };
100cdf0e10cSrcweir
101cdf0e10cSrcweir    FixedLine FL_TABLE_GRANTS
102cdf0e10cSrcweir    {
103cdf0e10cSrcweir        Pos                 = MAP_APPFONT ( 6 , 52  ) ;
104cdf0e10cSrcweir        Size                = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8) ;
105cdf0e10cSrcweir        Text [ en-US ] = "Access rights for selected user";
106cdf0e10cSrcweir    };
107cdf0e10cSrcweir
108cdf0e10cSrcweir    Control CTRL_TABLE_GRANTS
109cdf0e10cSrcweir    {
110cdf0e10cSrcweir        Pos                 = MAP_APPFONT ( 12 , 63  ) ;
111cdf0e10cSrcweir        Size                = MAP_APPFONT ( WINDOW_SIZE_X - 22, WINDOW_SIZE_Y - 75 );
112cdf0e10cSrcweir        Border              = TRUE ;
113cdf0e10cSrcweir        TabStop             = TRUE ;
114cdf0e10cSrcweir        HelpId              = HID_TAB_PAGE_TBLGRANTS ;
115cdf0e10cSrcweir    };
116cdf0e10cSrcweir};
117cdf0e10cSrcweir
118cdf0e10cSrcweirQueryBox QUERY_USERADMIN_DELETE_USER
119cdf0e10cSrcweir{
120cdf0e10cSrcweir    Buttons = WB_YES_NO ;
121cdf0e10cSrcweir    Message [ en-US ] = "Do you really want to delete the user?";
122cdf0e10cSrcweir};
123cdf0e10cSrcweir
124cdf0e10cSrcweirString STR_USERADMIN_NOT_AVAILABLE
125cdf0e10cSrcweir{
126cdf0e10cSrcweir    Text [ en-US ] = "The database does not support user administration." ;
127cdf0e10cSrcweir};
128cdf0e10cSrcweir
129cdf0e10cSrcweir#define EDIT_SIZE_X     50
130cdf0e10cSrcweir#define FT_SIZE_X       90
131cdf0e10cSrcweir#define WIN_X           220
132cdf0e10cSrcweir#define WIN_Y           72
133cdf0e10cSrcweir
134cdf0e10cSrcweirModalDialog DLG_PASSWORD
135cdf0e10cSrcweir{
136cdf0e10cSrcweir    HelpId = HID_DLG_PASSWORD ;
137cdf0e10cSrcweir    Border = TRUE ;
138cdf0e10cSrcweir    Moveable = TRUE ;
139cdf0e10cSrcweir    OutputSize = TRUE ;
140cdf0e10cSrcweir    SVLook = TRUE ;
141cdf0e10cSrcweir    Size = MAP_APPFONT ( WIN_X , WIN_Y ) ;
142cdf0e10cSrcweir
143cdf0e10cSrcweir    FixedLine FL_USER
144cdf0e10cSrcweir    {
145cdf0e10cSrcweir        Pos = MAP_APPFONT ( 3 , 3 ) ;
146cdf0e10cSrcweir        Size = MAP_APPFONT ( WIN_X - 3 - 6 - 6 - 50 , 8 ) ;
147cdf0e10cSrcweir        Text [ en-US ] = "User \"$name$:  $\"";
148cdf0e10cSrcweir    };
149cdf0e10cSrcweir
150cdf0e10cSrcweir    FixedText FT_OLDPASSWORD
151cdf0e10cSrcweir    {
152cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6 , 17 ) ;
153cdf0e10cSrcweir        Size = MAP_APPFONT ( FT_SIZE_X , 10 ) ;
154cdf0e10cSrcweir        Text [ en-US ] = "Old p~assword";
155cdf0e10cSrcweir    };
156cdf0e10cSrcweir    Edit ED_OLDPASSWORD
157cdf0e10cSrcweir    {
158cdf0e10cSrcweir        HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_OLDPASSWORD";
159cdf0e10cSrcweir        Border = TRUE ;
160cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 + FT_SIZE_X , 16 ) ;
161cdf0e10cSrcweir        Size = MAP_APPFONT ( EDIT_SIZE_X , 12 ) ;
162cdf0e10cSrcweir        PassWord = TRUE ;
163cdf0e10cSrcweir    };
164cdf0e10cSrcweir
165cdf0e10cSrcweir    FixedText FT_PASSWORD
166cdf0e10cSrcweir    {
167cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6 , 35 ) ;
168cdf0e10cSrcweir        Size = MAP_APPFONT ( FT_SIZE_X , 10 ) ;
169cdf0e10cSrcweir        Text [ en-US ] = "~Password";
170cdf0e10cSrcweir    };
171cdf0e10cSrcweir    Edit ED_PASSWORD
172cdf0e10cSrcweir    {
173cdf0e10cSrcweir        HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_PASSWORD";
174cdf0e10cSrcweir        Border = TRUE ;
175cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 + FT_SIZE_X , 34 ) ;
176cdf0e10cSrcweir        Size = MAP_APPFONT ( EDIT_SIZE_X , 12 ) ;
177cdf0e10cSrcweir        PassWord = TRUE ;
178cdf0e10cSrcweir    };
179cdf0e10cSrcweir    FixedText FT_PASSWORD_REPEAT
180cdf0e10cSrcweir    {
181cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6 , 52 ) ;
182cdf0e10cSrcweir        Size = MAP_APPFONT ( FT_SIZE_X , 10 ) ;
183cdf0e10cSrcweir        Text [ en-US ] = "~Confirm  password";
184cdf0e10cSrcweir    };
185cdf0e10cSrcweir    Edit ED_PASSWORD_REPEAT
186cdf0e10cSrcweir    {
187cdf0e10cSrcweir        HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_PASSWORD_REPEAT";
188cdf0e10cSrcweir        Border = TRUE ;
189cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 + FT_SIZE_X , 51 ) ;
190cdf0e10cSrcweir        Size = MAP_APPFONT ( EDIT_SIZE_X , 12 ) ;
191cdf0e10cSrcweir        PassWord = TRUE ;
192cdf0e10cSrcweir    };
193cdf0e10cSrcweir
194cdf0e10cSrcweir    OKButton BTN_PASSWORD_OK
195cdf0e10cSrcweir    {
196cdf0e10cSrcweir        Pos = MAP_APPFONT ( WIN_X - 56 , 6 ) ;
197cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
198cdf0e10cSrcweir        DefButton = TRUE ;
199cdf0e10cSrcweir    };
200cdf0e10cSrcweir    CancelButton BTN_PASSWORD_CANCEL
201cdf0e10cSrcweir    {
202cdf0e10cSrcweir        Pos = MAP_APPFONT ( WIN_X - 56 , 23 ) ;
203cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
204cdf0e10cSrcweir    };
205cdf0e10cSrcweir    HelpButton BTN_PASSWORD_HELP
206cdf0e10cSrcweir    {
207cdf0e10cSrcweir        Pos = MAP_APPFONT ( WIN_X - 56 , 43 ) ;
208cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
209cdf0e10cSrcweir    };
210cdf0e10cSrcweir    Text [ en-US ] = "Change Password";
211cdf0e10cSrcweir};
212cdf0e10cSrcweir
213cdf0e10cSrcweirString STR_ERROR_PASSWORDS_NOT_IDENTICAL
214cdf0e10cSrcweir{
215cdf0e10cSrcweir    Text [ en-US ] = "The passwords do not match. Please enter the password again.";
216cdf0e10cSrcweir};
217cdf0e10cSrcweir
218cdf0e10cSrcweir
219cdf0e10cSrcweir
220cdf0e10cSrcweir
221cdf0e10cSrcweir
222cdf0e10cSrcweir
223cdf0e10cSrcweir
224cdf0e10cSrcweir
225cdf0e10cSrcweir
226cdf0e10cSrcweir
227cdf0e10cSrcweir
228cdf0e10cSrcweir
229cdf0e10cSrcweir
230cdf0e10cSrcweir
231cdf0e10cSrcweir
232cdf0e10cSrcweir
233cdf0e10cSrcweir
234cdf0e10cSrcweir
235cdf0e10cSrcweir
236cdf0e10cSrcweir
237cdf0e10cSrcweir
238cdf0e10cSrcweir
239cdf0e10cSrcweir
240cdf0e10cSrcweir
241cdf0e10cSrcweir
242