summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-06-20 06:00:59 +0000
committerOcke Janssen <oj@openoffice.org>2001-06-20 06:00:59 +0000
commite67dbb8393ccac73298d617c5da221a6f7cfa309 (patch)
treeb1ce8a9235deed4ba5588db89cfa81ec8ca27eda
parent8adaea4c71cb070c4ebde6733c5aa121be079b32 (diff)
#88434# new page for user admin
-rw-r--r--dbaccess/source/ui/dlg/UserAdmin.cxx341
-rw-r--r--dbaccess/source/ui/dlg/UserAdmin.hrc86
-rw-r--r--dbaccess/source/ui/dlg/UserAdmin.hxx140
-rw-r--r--dbaccess/source/ui/dlg/UserAdmin.src269
4 files changed, 836 insertions, 0 deletions
diff --git a/dbaccess/source/ui/dlg/UserAdmin.cxx b/dbaccess/source/ui/dlg/UserAdmin.cxx
new file mode 100644
index 000000000..db0fc24c1
--- /dev/null
+++ b/dbaccess/source/ui/dlg/UserAdmin.cxx
@@ -0,0 +1,341 @@
+/*************************************************************************
+ *
+ * $RCSfile: UserAdmin.cxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2001-06-20 07:00:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the License); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an AS IS basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef DBAUI_USERADMIN_HXX
+#include "UserAdmin.hxx"
+#endif
+#ifndef DBAUI_USERADMIN_HRC
+#include "UserAdmin.hrc"
+#endif
+#ifndef DBAUI_TOOLS_HXX
+#include "UITools.hxx"
+#endif
+#ifndef _DBU_RESOURCE_HRC_
+#include "dbu_resource.hrc"
+#endif
+#ifndef _COMPHELPER_TYPES_HXX_
+#include <comphelper/types.hxx>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATABASEMETADATA_HPP_
+#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XDATADEFINITIONSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XDataDefinitionSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XUSERSSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XUsersSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XDROP_HPP_
+#include <com/sun/star/sdbcx/XDrop.hpp>
+#endif
+#ifndef _SFX_PASSWD_HXX
+#include <sfx2/passwd.hxx>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XDATADESCRIPTORFACTORY_HPP_
+#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XUSER_HPP_
+#include <com/sun/star/sdbcx/XUser.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XAPPEND_HPP_
+#include <com/sun/star/sdbcx/XAppend.hpp>
+#endif
+#ifndef DBACCESS_SHARED_DBUSTRINGS_HRC
+#include "dbustrings.hrc"
+#endif
+#ifndef _TOOLS_DEBUG_HXX
+#include <tools/debug.hxx>
+#endif
+#ifndef _DBAUI_DBADMIN_HXX_
+#include "dbadmin.hxx"
+#endif
+#ifndef _DBAUI_MODULE_DBU_HXX_
+#include "moduledbu.hxx"
+#endif
+
+using namespace ::com::sun::star::container;
+using namespace ::com::sun::star::beans;
+using namespace ::com::sun::star::sdbcx;
+using namespace ::com::sun::star::sdbc;
+using namespace ::com::sun::star::uno;
+using namespace dbaui;
+
+DBG_NAME(OUserAdmin);
+//================================================================================
+// OUserAdmin
+//================================================================================
+OUserAdmin::OUserAdmin(Window* pParent,const SfxItemSet& _rAttrSet)
+ : OGenericAdministrationPage( pParent, ModuleRes(TAB_PAGE_USERADMIN), _rAttrSet)
+ ,m_FL_USER( this , ResId(FL_USER))
+ ,m_FT_USER( this , ResId(FT_USER))
+ ,m_LB_USER( this , ResId(LB_USER))
+ ,m_PB_NEWUSER( this , ResId(PB_NEWUSER))
+ ,m_PB_CHANGEPWD( this , ResId(PB_CHANGEPWD))
+ ,m_PB_DELETEUSER( this , ResId(PB_DELETEUSER))
+ ,m_FL_TABLE_GRANTS( this , ResId(FL_TABLE_GRANTS))
+ ,m_TableCtrl( this , ResId(CTRL_TABLE_GRANTS))
+ ,m_bSysDba(FALSE)
+ ,m_bDba(FALSE)
+ ,m_pAdminDialog(NULL)
+{
+ DBG_CTOR(OUserAdmin,NULL);
+ m_LB_USER.SetSelectHdl(LINK(this, OUserAdmin, ListDblClickHdl));
+
+ m_PB_NEWUSER.SetClickHdl(LINK(this, OUserAdmin, UserHdl));
+ m_PB_CHANGEPWD.SetClickHdl(LINK(this, OUserAdmin, UserHdl));
+ m_PB_DELETEUSER.SetClickHdl(LINK(this, OUserAdmin, UserHdl));
+
+ FreeResource();
+}
+// -----------------------------------------------------------------------
+OUserAdmin::~OUserAdmin()
+{
+ DBG_DTOR(OUserAdmin,NULL);
+}
+// -----------------------------------------------------------------------
+void OUserAdmin::FillUserNames()
+{
+ if(!m_xConnection.is())
+ return;
+ m_LB_USER.Clear();
+
+ Reference<XDatabaseMetaData> xMetaData = m_xConnection->getMetaData();
+
+ m_UserName = xMetaData->getUserName();
+
+ // first we need the users
+ if(m_xUsers.is())
+ {
+ m_LB_USER.Clear();
+
+ m_aUserNames = m_xUsers->getElementNames();
+ const ::rtl::OUString* pBegin = m_aUserNames.getConstArray();
+ const ::rtl::OUString* pEnd = pBegin + m_aUserNames.getLength();
+ for(;pBegin != pEnd;++pBegin)
+ {
+ m_LB_USER.InsertEntry(*pBegin);
+ }
+
+ m_LB_USER.SelectEntryPos(0);
+
+ m_TableCtrl.setUserName(GetUser());
+ m_TableCtrl.Init();
+ }
+// if(!(m_bSysDba || m_bDba))
+// {
+// m_PB_NEWUSER.Enable(FALSE);
+// m_PB_DELETEUSER.Enable(FALSE);
+// }
+}
+// -----------------------------------------------------------------------
+SfxTabPage* OUserAdmin::Create( Window* pParent, const SfxItemSet& _rAttrSet )
+{
+ return ( new OUserAdmin( pParent, _rAttrSet ) );
+}
+// -----------------------------------------------------------------------
+sal_Bool OUserAdmin::FillItemSet( SfxItemSet& _rSet )
+{
+ return sal_True;
+}
+// -----------------------------------------------------------------------
+sal_Int32* OUserAdmin::getDetailIds()
+{
+ static sal_Int32* pRelevantIds = NULL;
+ if (!pRelevantIds)
+ {
+ static sal_Int32 nRelevantIds[] =
+ {
+ 0
+ };
+ pRelevantIds = nRelevantIds;
+ }
+ return pRelevantIds;
+}
+// -----------------------------------------------------------------------
+IMPL_LINK( OUserAdmin, UserHdl, PushButton *, pButton )
+{
+ try
+ {
+ if(pButton == &m_PB_NEWUSER)
+ {
+ SfxPasswordDialog aPwdDlg(this);
+ aPwdDlg.ShowExtras(SHOWEXTRAS_ALL);
+ if(aPwdDlg.Execute())
+ {
+ Reference<XDataDescriptorFactory> xUserFactory(m_xUsers,UNO_QUERY);
+ Reference<XPropertySet> xNewUser = xUserFactory->createDataDescriptor();
+ if(xNewUser.is())
+ {
+ xNewUser->setPropertyValue(PROPERTY_NAME,makeAny(rtl::OUString(aPwdDlg.GetUser())));
+ xNewUser->setPropertyValue(PROPERTY_PASSWORD,makeAny(rtl::OUString(aPwdDlg.GetPassword())));
+ Reference<XAppend> xAppend(m_xUsers,UNO_QUERY);
+ if(xAppend.is())
+ xAppend->appendByDescriptor(xNewUser);
+ }
+ }
+ }
+ else if(pButton == &m_PB_CHANGEPWD)
+ {
+ String aName = GetUser();
+
+ SfxPasswordDialog aPwdDlg(this,&aName);
+ aPwdDlg.ShowExtras(SHOWEXTRAS_NONE);
+ if(aPwdDlg.Execute())
+ {
+ String sOldPwd = aPwdDlg.GetPassword();
+ aPwdDlg.ShowExtras(SHOWEXTRAS_CONFIRM);
+ if(aPwdDlg.Execute() && m_xUsers->hasByName(GetUser()))
+ {
+ Reference<XUser> xUser;
+ m_xUsers->getByName(GetUser()) >>= xUser;
+ if(xUser.is())
+ xUser->changePassword(sOldPwd,aPwdDlg.GetPassword());
+ }
+ }
+ }
+ else
+ {// delete user
+ if(m_xUsers->hasByName(GetUser()))
+ {
+ Reference<XDrop> xDrop(m_xUsers,UNO_QUERY);
+ if(xDrop.is())
+ xDrop->dropByName(GetUser());
+ }
+ }
+ }
+ catch(SQLException& e)
+ {
+ ::dbaui::showError(::dbtools::SQLExceptionInfo(e),this,m_xORB);
+ return 0;
+ }
+ catch(Exception& )
+ {
+ return 0;
+ }
+
+ FillUserNames();
+ return 0;
+}
+// -----------------------------------------------------------------------
+IMPL_LINK( OUserAdmin, ListDblClickHdl, ListBox *, pListBox )
+{
+ m_TableCtrl.setUserName(GetUser());
+ m_TableCtrl.UpdateTables();
+ m_TableCtrl.DeactivateCell();
+ m_TableCtrl.ActivateCell(m_TableCtrl.GetCurRow(),m_TableCtrl.GetCurColumnId());
+ return 0;
+}
+
+// -----------------------------------------------------------------------
+void OUserAdmin::NotifyCellChange()
+{
+}
+// -----------------------------------------------------------------------
+String OUserAdmin::GetUser()
+{
+ return m_LB_USER.GetSelectEntry();
+}
+// -----------------------------------------------------------------------------
+void OUserAdmin::ActivatePage( const SfxItemSet& rCoreAttrs )
+{
+ DBG_CHKTHIS( OUserAdmin, NULL );
+ OGenericAdministrationPage::ActivatePage(rCoreAttrs);
+
+ m_TableCtrl.setORB(m_xORB);
+
+ if(!m_xConnection.is() && m_pAdminDialog)
+ {
+ try
+ {
+ Reference< XDataDefinitionSupplier > xDriver(m_pAdminDialog->getDriver(),UNO_QUERY);
+ if(xDriver.is())
+ {
+ m_xConnection = m_pAdminDialog->createConnection();
+ if(m_xConnection.is())
+ {
+ // now set the tables supplier at the table control
+ Reference< XTablesSupplier > xTablesSup = xDriver->getDataDefinitionByConnection(m_xConnection);
+ m_TableCtrl.setTablesSupplier(xTablesSup);
+
+ Reference<XUsersSupplier> xUsersSup(xTablesSup,UNO_QUERY);
+ if(xUsersSup.is())
+ m_xUsers = xUsersSup->getUsers();
+ }
+ }
+ }
+ catch(SQLException& e)
+ {
+ ::dbaui::showError(::dbtools::SQLExceptionInfo(e),this,m_xORB);
+ }
+ }
+ FillUserNames();
+}
+// -----------------------------------------------------------------------------
+int OUserAdmin::DeactivatePage(SfxItemSet* _pSet)
+{
+ int nResult = OGenericAdministrationPage::DeactivatePage(_pSet);
+ ::comphelper::disposeComponent(m_xConnection);
+ return nResult;
+}
+// -----------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/dlg/UserAdmin.hrc b/dbaccess/source/ui/dlg/UserAdmin.hrc
new file mode 100644
index 000000000..1cb2ab496
--- /dev/null
+++ b/dbaccess/source/ui/dlg/UserAdmin.hrc
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: UserAdmin.hrc,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2001-06-20 07:00:59 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the License); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an AS IS basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef DBAUI_USERADMIN_HRC
+#define DBAUI_USERADMIN_HRC
+
+#define FT_USER 1
+
+#define LB_USER 1
+
+#define NF_TIMEOUT 1
+
+#define FL_TABLE_GRANTS 1
+#define FL_USER 2
+
+#define CTRL_TABLE_GRANTS 1
+
+#define PB_NEWUSER 2
+#define PB_CHANGEPWD 3
+#define PB_DELETEUSER 4
+
+//#define CB_QUERY 1
+//#define CB_REPORT 2
+//#define CB_RELATION 3
+//#define CB_FORM 4
+//#define CB_TABLE 5
+//#define CB_DONT_SHOW_AGAIN 6
+
+#endif // DBAUI_USERADMIN_HRC
diff --git a/dbaccess/source/ui/dlg/UserAdmin.hxx b/dbaccess/source/ui/dlg/UserAdmin.hxx
new file mode 100644
index 000000000..270e63dbe
--- /dev/null
+++ b/dbaccess/source/ui/dlg/UserAdmin.hxx
@@ -0,0 +1,140 @@
+/*************************************************************************
+ *
+ * $RCSfile: UserAdmin.hxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2001-06-20 07:00:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the License); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an AS IS basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef DBAUI_USERADMIN_HXX
+#define DBAUI_USERADMIN_HXX
+
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_FIELD_HXX
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_GROUP_HXX
+#include <vcl/group.hxx>
+#endif
+#ifndef DBAUI_TABLEGRANTCONTROL_HXX
+#include "TableGrantCtrl.hxx"
+#endif
+#ifndef _DBAUI_ADMINPAGES_HXX_
+#include "adminpages.hxx"
+#endif
+
+
+namespace dbaui
+{
+
+class OUserAdmin : public OGenericAdministrationPage
+{
+protected:
+ FixedLine m_FL_USER;
+ FixedText m_FT_USER;
+ ListBox m_LB_USER;
+ PushButton m_PB_NEWUSER;
+ PushButton m_PB_CHANGEPWD;
+ PushButton m_PB_DELETEUSER;
+ FixedLine m_FL_TABLE_GRANTS;
+ OTableGrantControl m_TableCtrl; // show the grant rights of one user
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> m_xConnection;
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xUsers;
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_xORB;
+ ::com::sun::star::uno::Sequence< ::rtl::OUString> m_aUserNames;
+
+ String m_UserName;
+ ODbAdminDialog* m_pAdminDialog;
+ BOOL m_bSysDba; // true if i am SYSDBA user else false
+ BOOL m_bDba;
+
+ // methods
+ DECL_LINK( ListDblClickHdl, ListBox * );
+ DECL_LINK( CloseHdl, PushButton * );
+ DECL_LINK( UserHdl, PushButton * );
+
+ void FillUserNames();
+ virtual int DeactivatePage(SfxItemSet* _pSet);
+
+ OUserAdmin( Window* pParent, const SfxItemSet& _rCoreAttrs);
+public:
+ void SetAdminDialog(ODbAdminDialog* _pDialog) { m_pAdminDialog = _pDialog; }
+ void setServiceFactory(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _xORB) { m_xORB = _xORB; }
+
+ virtual BOOL FillItemSet ( SfxItemSet& _rCoreAttrs );
+ virtual void ActivatePage( const SfxItemSet& rCoreAttrs );
+
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& _rAttrSet );
+ /// get the SfxPoolItem ids used by this tab page
+ static sal_Int32* getDetailIds();
+
+ ~OUserAdmin();
+ void NotifyCellChange();
+ String GetUser();
+};
+}
+#endif // DBAUI_USERADMIN_HXX
diff --git a/dbaccess/source/ui/dlg/UserAdmin.src b/dbaccess/source/ui/dlg/UserAdmin.src
new file mode 100644
index 000000000..1bbf32505
--- /dev/null
+++ b/dbaccess/source/ui/dlg/UserAdmin.src
@@ -0,0 +1,269 @@
+/*************************************************************************
+ *
+ * $RCSfile: UserAdmin.src,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2001-06-20 07:00:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the License); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an AS IS basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef DBAUI_USERADMIN_HRC
+#include "UserAdmin.hrc"
+#endif
+#ifndef _DBU_RESOURCE_HRC_
+#include "dbu_resource.hrc"
+#endif
+#ifndef _DBA_DBACCESS_HELPID_HRC_
+#include "dbaccess_helpid.hrc"
+#endif
+
+#define WINDOW_SIZE_X 260
+#define WINDOW_SIZE_Y 185
+
+TabPage TAB_PAGE_USERADMIN
+{
+ SVLook = TRUE ;
+ HelpId = HID_TAB_PAGE_USERADMIN ;
+ Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
+ Hide = TRUE;
+
+ FixedLine FL_USER
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8) ;
+ Text = "Benutzerauswahl" ;
+ Text [ ENGLISH ] = "User choise" ;
+ Text[english_us] = "User selection";
+ Text[ portuguese ] = "Seleco do utilizador";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Gebruikerselectie";
+ Text[ french ] = "Slection de l'utilisateur";
+ Text[ spanish ] = "Seleccin de usuario";
+ Text[ italian ] = "Selezione utente";
+ Text[ danish ] = "Brugerudvalg";
+ Text[ swedish ] = "Anvndarurval";
+ Text[ polish ] = "Wybr uytkownika";
+ Text[ portuguese_brazilian ] = "User choise";
+ Text[ japanese ] = "հްI";
+ Text[ korean ] = " ";
+ Text[ chinese_simplified ] = "ʹѡ";
+ Text[ chinese_traditional ] = "ۭq";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "Kullanc seimi";
+ };
+
+ FixedText FT_USER
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "B~enutzer:" ;
+ Text[ENGLISH] = "Us~er:" ;
+ Text[english_us] = "Us~er:";
+ Text[ portuguese ] = "~Utilizador:";
+ Text[ russian ] = ":";
+ Text[ greek ] = ":";
+ Text[ dutch ] = "Gebr~uiker:";
+ Text[ french ] = "~Utilisateur :";
+ Text[ spanish ] = "Usuari~o:";
+ Text[ italian ] = "Ut~ente:";
+ Text[ danish ] = "Bruger:";
+ Text[ swedish ] = "Anvndare:";
+ Text[ polish ] = "Uytkownik:";
+ Text[ portuguese_brazilian ] = "Us~er:";
+ Text[ japanese ] = "հް:(~E)";
+ Text[ korean ] = ":(~E)";
+ Text[ chinese_simplified ] = "ʹ(~E)";
+ Text[ chinese_traditional ] = "ϥΪ(~E)";
+ Text[ arabic ] = ":";
+ Text[ turkish ] = "Kullanc:";
+ };
+
+ ListBox LB_USER
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 108 , 13) ;
+ Size = MAP_APPFONT ( 105 , 97 ) ;
+ TabStop = TRUE ;
+ HScroll = TRUE ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ HelpId = HID_TAB_PAGE_LBUSER ;
+ };
+
+
+ PushButton PB_NEWUSER
+ {
+ Pos = MAP_APPFONT ( 12 , 29 ) ;
+ Size = MAP_APPFONT ( 70 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ HelpId = HID_TAB_PAGE_PBUSER ;
+ Text = "~Neuer Benutzer...";
+ Text[ENGLISH] = "~New user...";
+ Text[ english_us ] = "~New user...";
+ Text[ portuguese ] = "~Novo utilizador...";
+ Text[ russian ] = " ...";
+ Text[ greek ] = " ...";
+ Text[ dutch ] = "~Nieuwe gebruiker...";
+ Text[ french ] = "~Nouvel utilisateur...";
+ Text[ spanish ] = "~Nuevo usuario...";
+ Text[ italian ] = "~Nuovo utente...";
+ Text[ danish ] = "Ny bruger...";
+ Text[ swedish ] = "~Ny anvndare...";
+ Text[ polish ] = "Nowy uytkownik...";
+ Text[ portuguese_brazilian ] = "~New user...";
+ Text[ japanese ] = "Vհް(~N)...";
+ Text[ korean ] = " (~N)...";
+ Text[ chinese_simplified ] = "ʹ(~N)...";
+ Text[ chinese_traditional ] = "sWϥΪ(~N)...";
+ Text[ arabic ] = " ...";
+ Text[ turkish ] = "Yeni kullanc...";
+ };
+
+ PushButton PB_CHANGEPWD
+ {
+ Pos = MAP_APPFONT ( 95 , 29 ) ;
+ Size = MAP_APPFONT ( 70 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ HelpId = HID_TAB_PAGE_PBCHGPWD ;
+ Text = "~Passwort ndern...";
+ Text[ENGLISH] = "Change ~password...";
+ Text[ english_us ] = "Change ~password...";
+ Text[ portuguese ] = "~Mudar senha...";
+ Text[ russian ] = " ...";
+ Text[ greek ] = " ...";
+ Text[ dutch ] = "~Wachtwoord wijzigen...";
+ Text[ french ] = "Modifier le mot de ~passe...";
+ Text[ spanish ] = "Cambiar ~contrasea...";
+ Text[ italian ] = "Cambia ~password...";
+ Text[ danish ] = "Modificer adgangskode...";
+ Text[ swedish ] = "ndra ~lsenord...";
+ Text[ polish ] = "Zmie haso...";
+ Text[ portuguese_brazilian ] = "Change ~password...";
+ Text[ japanese ] = "߽ܰނ̕ύX(~P)...";
+ Text[ korean ] = "н (~P)...";
+ Text[ chinese_simplified ] = "Ŀ(~P)...";
+ Text[ chinese_traditional ] = "ܧKX(~P)...";
+ Text[ arabic ] = " ...";
+ Text[ turkish ] = "ifreyi deitir...";
+ };
+
+ PushButton PB_DELETEUSER
+ {
+ Pos = MAP_APPFONT ( WINDOW_SIZE_X - 82 , 29 ) ;
+ Size = MAP_APPFONT ( 70 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ HelpId = HID_TAB_PAGE_PBUSERDELETE ;
+ Text = "Benut~zer lschen...";
+ Text[ENGLISH] = "~Delete user...";
+ Text[ english_us ] = "~Delete user...";
+ Text[ portuguese ] = "~Eliminar utilizador...";
+ Text[ russian ] = " ...";
+ Text[ greek ] = " ...";
+ Text[ dutch ] = "~Gebruiker wissen...";
+ Text[ french ] = "~Supprimer l'utilisateur...";
+ Text[ spanish ] = "~Eliminar usuario...";
+ Text[ italian ] = "Cancella utente...";
+ Text[ danish ] = "Slet bruger...";
+ Text[ swedish ] = "Ra~dera anvndare...";
+ Text[ polish ] = "Usu uytkownika...";
+ Text[ portuguese_brazilian ] = "~Delete user...";
+ Text[ japanese ] = "հް̍폜(~D)...";
+ Text[ korean ] = " (~D)...";
+ Text[ chinese_simplified ] = "ɾʹ(~D)...";
+ Text[ chinese_traditional ] = "RϥΪ(~D)...";
+ Text[ arabic ] = " ...";
+ Text[ turkish ] = "Kullancsy sil...";
+ };
+
+ FixedLine FL_TABLE_GRANTS
+ {
+ Pos = MAP_APPFONT ( 6 , 52 ) ;
+ Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8) ;
+ Text = "Benutzerrechte fr ausgewhlten Benutzer" ;
+ Text [ ENGLISH ] = "User rights for choosen user" ;
+ Text[ english_us ] = "Access rights for user selected";
+ Text[ portuguese ] = "Direitos de acesso para utilizador seleccionado";
+ Text[ russian ] = " ";
+ Text[ greek ] = " ";
+ Text[ dutch ] = "Gebruikersrechten voor geselecteerde gebruikers";
+ Text[ french ] = "Droits accords l'utilisateur slectionn";
+ Text[ spanish ] = "Derechos de usuario para usuarios seleccionados";
+ Text[ italian ] = "Diritti utente per utente selezionato";
+ Text[ danish ] = "Den valgte brugers brugerrettigheder";
+ Text[ swedish ] = "Anvndarrttigheter fr utvald anvndare";
+ Text[ polish ] = "Prawa dla wybranego uytkownika";
+ Text[ portuguese_brazilian ] = "User rights for choosen user";
+ Text[ japanese ] = "Iհްp̱";
+ Text[ korean ] = "õ ׼ ";
+ Text[ chinese_simplified ] = "ѡʹߵʹȨ";
+ Text[ chinese_traditional ] = "襤ϥΪ̪ϥv";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "Seilen kullanc iin eriim haklar";
+ };
+
+ Control CTRL_TABLE_GRANTS
+ {
+ Pos = MAP_APPFONT ( 12 , 63 ) ;
+ Size = MAP_APPFONT ( WINDOW_SIZE_X - 22, WINDOW_SIZE_Y - 75 );
+ Border = TRUE ;
+ TabStop = TRUE ;
+ HelpId = HID_TAB_PAGE_TBLGRANTS ;
+ };
+};
+