diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-29 14:37:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-29 14:44:20 +0000 |
commit | 2bf00a57385f66595ca15115f66a46b410debcba (patch) | |
tree | 2becc73f97a82239cde1bc19d95c4643d74e2f56 /dbaccess/source | |
parent | 8cfebe9673c5c423250b64ccf3092b881e532e1a (diff) |
convert user admin dialog to .ui
Change-Id: Iee1a8b5f1fac024fb5983063f032b344e5814fbc
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/ui/dlg/UserAdminDlg.cxx | 13 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/UserAdminDlg.hrc | 27 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/UserAdminDlg.src | 45 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/dbu_resource.hrc | 2 |
4 files changed, 6 insertions, 81 deletions
diff --git a/dbaccess/source/ui/dlg/UserAdminDlg.cxx b/dbaccess/source/ui/dlg/UserAdminDlg.cxx index d14f4802fbb5..e2b810fb5a28 100644 --- a/dbaccess/source/ui/dlg/UserAdminDlg.cxx +++ b/dbaccess/source/ui/dlg/UserAdminDlg.cxx @@ -25,7 +25,6 @@ #include "propertysetitem.hxx" #include "UITools.hxx" #include "UserAdmin.hxx" -#include "UserAdminDlg.hrc" #include "UserAdminDlg.hxx" #include <comphelper/processfactory.hxx> @@ -52,12 +51,11 @@ namespace dbaui ,const Reference< XComponentContext >& _rxORB ,const ::com::sun::star::uno::Any& _aDataSourceName ,const Reference< XConnection >& _xConnection) - :SfxTabDialog(_pParent, ModuleRes(DLG_DATABASE_USERADMIN), _pItems) - ,m_pItemSet(_pItems) - ,m_xConnection(_xConnection) - ,m_bOwnConnection(!_xConnection.is()) + : SfxTabDialog(_pParent, "UserAdminDialog", "dbaccess/ui/useradmindialog.ui", _pItems) + , m_pItemSet(_pItems) + , m_xConnection(_xConnection) + , m_bOwnConnection(!_xConnection.is()) { - m_pImpl.reset(new ODbDataSourceAdministrationHelper(_rxORB,_pParent,this)); m_pImpl->setDataSourceOrName(_aDataSourceName); Reference< XPropertySet > xDatasource = m_pImpl->getCurrentDataSource(); @@ -67,11 +65,10 @@ namespace dbaui delete pExampleSet; pExampleSet = new SfxItemSet(*GetInputSetImpl()); - AddTabPage(TAB_PAGE_USERADMIN, OUString(ModuleRes(STR_PAGETITLE_USERADMIN)), OUserAdmin::Create,0, sal_False, 1); + AddTabPage("settings", OUserAdmin::Create, 0); // remove the reset button - it's meaning is much too ambiguous in this dialog RemoveResetButton(); - FreeResource(); } OUserAdminDlg::~OUserAdminDlg() diff --git a/dbaccess/source/ui/dlg/UserAdminDlg.hrc b/dbaccess/source/ui/dlg/UserAdminDlg.hrc deleted file mode 100644 index 09bea090b1b0..000000000000 --- a/dbaccess/source/ui/dlg/UserAdminDlg.hrc +++ /dev/null @@ -1,27 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef DBAUI_USERADMINDLG_HRC -#define DBAUI_USERADMINDLG_HRC - -#define STR_PAGETITLE_USERADMIN 1 - - -#endif // DBAUI_USERADMINDLG_HRC - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/dbaccess/source/ui/dlg/UserAdminDlg.src b/dbaccess/source/ui/dlg/UserAdminDlg.src deleted file mode 100644 index dc26bf858632..000000000000 --- a/dbaccess/source/ui/dlg/UserAdminDlg.src +++ /dev/null @@ -1,45 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 . - */ - -#include "dbaccess_helpid.hrc" -#include "UserAdminDlg.hrc" -#include "dbu_dlg.hrc" - -TabDialog DLG_DATABASE_USERADMIN -{ - OutputSize = TRUE ; - SVLook = TRUE ; - Moveable = TRUE ; - Closeable = TRUE ; - Hide = TRUE; - HelpId = HID_DSADMIN_USERADMIN; - - TabControl 1 - { - OutputSize = TRUE ; - }; - String STR_PAGETITLE_USERADMIN - { - Text[ en-US ] = "User Settings"; - }; - - Text [ en-US ] = "User administration" ; -}; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/dbaccess/source/ui/inc/dbu_resource.hrc b/dbaccess/source/ui/inc/dbu_resource.hrc index 2742bc7d405d..5beaf5b534ec 100644 --- a/dbaccess/source/ui/inc/dbu_resource.hrc +++ b/dbaccess/source/ui/inc/dbu_resource.hrc @@ -90,7 +90,7 @@ // FREE #define DLG_INDEXDESIGN RID_DIALOG_START + 19 // FREE -#define DLG_DATABASE_USERADMIN RID_DIALOG_START + 21 + // FREE // FREE #define DLG_PASSWORD RID_DIALOG_START + 23 #define DLG_COLLECTION_VIEW RID_DIALOG_START + 27 |