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