181d089aeSAndrew Rist/************************************************************** 2*485980a1SMatthias Seidel * 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 10*485980a1SMatthias Seidel * 1181d089aeSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*485980a1SMatthias Seidel * 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. 19*485980a1SMatthias Seidel * 2081d089aeSAndrew Rist *************************************************************/ 2181d089aeSAndrew Rist 2281d089aeSAndrew 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 ; 41*485980a1SMatthias Seidel Size = MAP_APPFONT ( WINDOW_SIZE_X, WINDOW_SIZE_Y ) ; 42*485980a1SMatthias Seidel Hide = TRUE ; 43cdf0e10cSrcweir 44cdf0e10cSrcweir FixedLine FL_USER 45cdf0e10cSrcweir { 46*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 6, 3 ) ; 47cdf0e10cSrcweir Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8) ; 48*485980a1SMatthias Seidel Text [ en-US ] = "User selection" ; 49cdf0e10cSrcweir }; 50cdf0e10cSrcweir 51cdf0e10cSrcweir FixedText FT_USER 52cdf0e10cSrcweir { 53*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 12, 14 ) ; 54*485980a1SMatthias Seidel Size = MAP_APPFONT ( 90, 10 ) ; 55*485980a1SMatthias Seidel Text [ en-US ] = "Us~er:" ; 56cdf0e10cSrcweir }; 57cdf0e10cSrcweir 58cdf0e10cSrcweir ListBox LB_USER 59cdf0e10cSrcweir { 60cdf0e10cSrcweir Border = TRUE ; 61*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 108, 13) ; 62*485980a1SMatthias Seidel 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 { 73*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 12, 29 ) ; 74*485980a1SMatthias Seidel Size = MAP_APPFONT ( 70, 14 ) ; 75cdf0e10cSrcweir TabStop = TRUE ; 76cdf0e10cSrcweir DefButton = TRUE ; 77cdf0e10cSrcweir HelpId = HID_TAB_PAGE_PBUSER ; 78*485980a1SMatthias Seidel Text [ en-US ] = "~Add User..." ; 79cdf0e10cSrcweir }; 80cdf0e10cSrcweir 81cdf0e10cSrcweir PushButton PB_CHANGEPWD 82cdf0e10cSrcweir { 83*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 95, 29 ) ; 84*485980a1SMatthias Seidel Size = MAP_APPFONT ( 70, 14 ) ; 85cdf0e10cSrcweir TabStop = TRUE ; 86cdf0e10cSrcweir DefButton = TRUE ; 87cdf0e10cSrcweir HelpId = HID_TAB_PAGE_PBCHGPWD ; 88*485980a1SMatthias Seidel Text [ en-US ] = "Change ~Password..." ; 89cdf0e10cSrcweir }; 90cdf0e10cSrcweir 91cdf0e10cSrcweir PushButton PB_DELETEUSER 92cdf0e10cSrcweir { 93*485980a1SMatthias Seidel Pos = MAP_APPFONT ( WINDOW_SIZE_X - 82, 29 ) ; 94*485980a1SMatthias Seidel Size = MAP_APPFONT ( 70, 14 ) ; 95cdf0e10cSrcweir TabStop = TRUE ; 96cdf0e10cSrcweir DefButton = TRUE ; 97cdf0e10cSrcweir HelpId = HID_TAB_PAGE_PBUSERDELETE ; 98*485980a1SMatthias Seidel Text [ en-US ] = "~Delete User..." ; 99cdf0e10cSrcweir }; 100cdf0e10cSrcweir 101cdf0e10cSrcweir FixedLine FL_TABLE_GRANTS 102cdf0e10cSrcweir { 103*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 6, 52 ) ; 104cdf0e10cSrcweir Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8) ; 105*485980a1SMatthias Seidel Text [ en-US ] = "Access rights for selected user" ; 106cdf0e10cSrcweir }; 107cdf0e10cSrcweir 108cdf0e10cSrcweir Control CTRL_TABLE_GRANTS 109cdf0e10cSrcweir { 110*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 12, 63 ) ; 111*485980a1SMatthias Seidel 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 ; 121*485980a1SMatthias Seidel 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 ; 141*485980a1SMatthias Seidel Size = MAP_APPFONT ( WIN_X, WIN_Y ) ; 142cdf0e10cSrcweir 143cdf0e10cSrcweir FixedLine FL_USER 144cdf0e10cSrcweir { 145*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 3, 3 ) ; 146*485980a1SMatthias Seidel Size = MAP_APPFONT ( WIN_X - 3 - 6 - 6 - 50, 8 ) ; 147*485980a1SMatthias Seidel Text [ en-US ] = "User \"$name$: $\"" ; 148cdf0e10cSrcweir }; 149cdf0e10cSrcweir 150cdf0e10cSrcweir FixedText FT_OLDPASSWORD 151cdf0e10cSrcweir { 152*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 6, 17 ) ; 153*485980a1SMatthias Seidel Size = MAP_APPFONT ( FT_SIZE_X, 10 ) ; 154*485980a1SMatthias Seidel Text [ en-US ] = "Old p~assword" ; 155cdf0e10cSrcweir }; 156cdf0e10cSrcweir Edit ED_OLDPASSWORD 157cdf0e10cSrcweir { 158*485980a1SMatthias Seidel HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_OLDPASSWORD" ; 159cdf0e10cSrcweir Border = TRUE ; 160*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 12 + FT_SIZE_X, 16 ) ; 161*485980a1SMatthias Seidel Size = MAP_APPFONT ( EDIT_SIZE_X, 12 ) ; 162cdf0e10cSrcweir PassWord = TRUE ; 163cdf0e10cSrcweir }; 164cdf0e10cSrcweir 165cdf0e10cSrcweir FixedText FT_PASSWORD 166cdf0e10cSrcweir { 167*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 6, 35 ) ; 168*485980a1SMatthias Seidel Size = MAP_APPFONT ( FT_SIZE_X, 10 ) ; 169*485980a1SMatthias Seidel Text [ en-US ] = "~Password" ; 170cdf0e10cSrcweir }; 171cdf0e10cSrcweir Edit ED_PASSWORD 172cdf0e10cSrcweir { 173*485980a1SMatthias Seidel HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_PASSWORD" ; 174cdf0e10cSrcweir Border = TRUE ; 175*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 12 + FT_SIZE_X, 34 ) ; 176*485980a1SMatthias Seidel Size = MAP_APPFONT ( EDIT_SIZE_X, 12 ) ; 177cdf0e10cSrcweir PassWord = TRUE ; 178cdf0e10cSrcweir }; 179cdf0e10cSrcweir FixedText FT_PASSWORD_REPEAT 180cdf0e10cSrcweir { 181*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 6, 52 ) ; 182*485980a1SMatthias Seidel Size = MAP_APPFONT ( FT_SIZE_X, 10 ) ; 183*485980a1SMatthias Seidel Text [ en-US ] = "~Confirm password" ; 184cdf0e10cSrcweir }; 185cdf0e10cSrcweir Edit ED_PASSWORD_REPEAT 186cdf0e10cSrcweir { 187*485980a1SMatthias Seidel HelpID = "dbaccess:Edit:DLG_PASSWORD:ED_PASSWORD_REPEAT" ; 188cdf0e10cSrcweir Border = TRUE ; 189*485980a1SMatthias Seidel Pos = MAP_APPFONT ( 12 + FT_SIZE_X, 51 ) ; 190*485980a1SMatthias Seidel Size = MAP_APPFONT ( EDIT_SIZE_X, 12 ) ; 191cdf0e10cSrcweir PassWord = TRUE ; 192cdf0e10cSrcweir }; 193*485980a1SMatthias Seidel 194cdf0e10cSrcweir OKButton BTN_PASSWORD_OK 195cdf0e10cSrcweir { 196*485980a1SMatthias Seidel Pos = MAP_APPFONT ( WIN_X - 56, 6 ) ; 197*485980a1SMatthias Seidel Size = MAP_APPFONT ( 50, 14 ) ; 198cdf0e10cSrcweir DefButton = TRUE ; 199cdf0e10cSrcweir }; 200cdf0e10cSrcweir CancelButton BTN_PASSWORD_CANCEL 201cdf0e10cSrcweir { 202*485980a1SMatthias Seidel Pos = MAP_APPFONT ( WIN_X - 56, 23 ) ; 203*485980a1SMatthias Seidel Size = MAP_APPFONT ( 50, 14 ) ; 204cdf0e10cSrcweir }; 205cdf0e10cSrcweir HelpButton BTN_PASSWORD_HELP 206cdf0e10cSrcweir { 207*485980a1SMatthias Seidel Pos = MAP_APPFONT ( WIN_X - 56, 43 ) ; 208*485980a1SMatthias Seidel Size = MAP_APPFONT ( 50, 14 ) ; 209*485980a1SMatthias Seidel }; 210*485980a1SMatthias Seidel Text [ en-US ] = "Change Password" ; 211cdf0e10cSrcweir}; 212cdf0e10cSrcweir 213cdf0e10cSrcweirString STR_ERROR_PASSWORDS_NOT_IDENTICAL 214cdf0e10cSrcweir{ 215*485980a1SMatthias Seidel Text [ en-US ] = "The passwords do not match. Please enter the password again." ; 216cdf0e10cSrcweir}; 217cdf0e10cSrcweir 218*485980a1SMatthias Seidel// ********************************************************************** EOF 219