1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef DBAUI_USERADMIN_HRC
29 #include "UserAdmin.hrc"
32 #include "dbu_dlg.hrc"
34 #ifndef _DBA_DBACCESS_HELPID_HRC_
35 #include "dbaccess_helpid.hrc"
38 #define WINDOW_SIZE_X 260
39 #define WINDOW_SIZE_Y 185
41 TabPage TAB_PAGE_USERADMIN
44 HelpId = HID_TAB_PAGE_USERADMIN ;
45 Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
50 Pos = MAP_APPFONT ( 6 , 3 ) ;
51 Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8) ;
52 Text [ en-US ] = "User selection";
57 Pos = MAP_APPFONT ( 12 , 14 ) ;
58 Size = MAP_APPFONT ( 90 , 10 ) ;
59 Text [ en-US ] = "Us~er:";
65 Pos = MAP_APPFONT ( 108 , 13) ;
66 Size = MAP_APPFONT ( 105 , 97 ) ;
71 HelpId = HID_TAB_PAGE_LBUSER ;
76 Pos = MAP_APPFONT ( 12 , 29 ) ;
77 Size = MAP_APPFONT ( 70 , 14 ) ;
80 HelpId = HID_TAB_PAGE_PBUSER ;
81 Text [ en-US ] = "~Add User...";
84 PushButton PB_CHANGEPWD
86 Pos = MAP_APPFONT ( 95 , 29 ) ;
87 Size = MAP_APPFONT ( 70 , 14 ) ;
90 HelpId = HID_TAB_PAGE_PBCHGPWD ;
91 Text [ en-US ] = "Change ~Password...";
94 PushButton PB_DELETEUSER
96 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 82 , 29 ) ;
97 Size = MAP_APPFONT ( 70 , 14 ) ;
100 HelpId = HID_TAB_PAGE_PBUSERDELETE ;
101 Text [ en-US ] = "~Delete User...";
104 FixedLine FL_TABLE_GRANTS
106 Pos = MAP_APPFONT ( 6 , 52 ) ;
107 Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8) ;
108 Text [ en-US ] = "Access rights for selected user";
111 Control CTRL_TABLE_GRANTS
113 Pos = MAP_APPFONT ( 12 , 63 ) ;
114 Size = MAP_APPFONT ( WINDOW_SIZE_X - 22, WINDOW_SIZE_Y - 75 );
117 HelpId = HID_TAB_PAGE_TBLGRANTS ;
121 QueryBox QUERY_USERADMIN_DELETE_USER
123 Buttons = WB_YES_NO ;
124 Message [ en-US ] = "Do you really want to delete the user?";
127 String STR_USERADMIN_NOT_AVAILABLE
129 Text [ en-US ] = "The database does not support user administration." ;
132 #define EDIT_SIZE_X 50
137 ModalDialog DLG_PASSWORD
139 HelpId = HID_DLG_PASSWORD ;
144 Size = MAP_APPFONT ( WIN_X , WIN_Y ) ;
148 Pos = MAP_APPFONT ( 3 , 3 ) ;
149 Size = MAP_APPFONT ( WIN_X - 3 - 6 - 6 - 50 , 8 ) ;
150 Text [ en-US ] = "User \"$name$: $\"";
152 FixedText FT_OLDPASSWORD
154 Pos = MAP_APPFONT ( 6 , 17 ) ;
155 Size = MAP_APPFONT ( FT_SIZE_X , 10 ) ;
156 Text [ en-US ] = "Old p~assword";
160 HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_OLDPASSWORD";
162 Pos = MAP_APPFONT ( 12 + FT_SIZE_X , 16 ) ;
163 Size = MAP_APPFONT ( EDIT_SIZE_X , 12 ) ;
167 FixedText FT_PASSWORD
169 Pos = MAP_APPFONT ( 6 , 35 ) ;
170 Size = MAP_APPFONT ( FT_SIZE_X , 10 ) ;
171 Text [ en-US ] = "~Password";
175 HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_PASSWORD";
177 Pos = MAP_APPFONT ( 12 + FT_SIZE_X , 34 ) ;
178 Size = MAP_APPFONT ( EDIT_SIZE_X , 12 ) ;
181 FixedText FT_PASSWORD_REPEAT
183 Pos = MAP_APPFONT ( 6 , 52 ) ;
184 Size = MAP_APPFONT ( FT_SIZE_X , 10 ) ;
185 Text [ en-US ] = "~Confirm password";
187 Edit ED_PASSWORD_REPEAT
189 HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_PASSWORD_REPEAT";
191 Pos = MAP_APPFONT ( 12 + FT_SIZE_X , 51 ) ;
192 Size = MAP_APPFONT ( EDIT_SIZE_X , 12 ) ;
196 OKButton BTN_PASSWORD_OK
198 Pos = MAP_APPFONT ( WIN_X - 56 , 6 ) ;
199 Size = MAP_APPFONT ( 50 , 14 ) ;
202 CancelButton BTN_PASSWORD_CANCEL
204 Pos = MAP_APPFONT ( WIN_X - 56 , 23 ) ;
205 Size = MAP_APPFONT ( 50 , 14 ) ;
207 HelpButton BTN_PASSWORD_HELP
209 Pos = MAP_APPFONT ( WIN_X - 56 , 43 ) ;
210 Size = MAP_APPFONT ( 50 , 14 ) ;
212 Text [ en-US ] = "Change Password";
215 String STR_ERROR_PASSWORDS_NOT_IDENTICAL
217 Text [ en-US ] = "The passwords do not match. Please enter the password again.";