2010-10-27 12:33:13 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-14 17:39:53 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2013-11-05 02:18:53 +01:00
|
|
|
#ifndef INCLUDED_DBACCESS_SOURCE_UI_DLG_USERADMIN_HXX
|
|
|
|
#define INCLUDED_DBACCESS_SOURCE_UI_DLG_USERADMIN_HXX
|
2001-06-20 06:00:59 +00:00
|
|
|
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
#include <vcl/field.hxx>
|
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
#include <vcl/dialog.hxx>
|
|
|
|
#include <vcl/group.hxx>
|
|
|
|
#include "TableGrantCtrl.hxx"
|
|
|
|
#include "adminpages.hxx"
|
2004-08-02 14:41:57 +00:00
|
|
|
#include <comphelper/uno3.hxx>
|
2001-06-20 06:00:59 +00:00
|
|
|
|
2011-08-11 19:53:21 -04:00
|
|
|
namespace com { namespace sun { namespace star {
|
|
|
|
namespace sdbc {
|
|
|
|
class XConnection;
|
|
|
|
}
|
|
|
|
}}}
|
2001-06-20 06:00:59 +00:00
|
|
|
|
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
|
|
|
|
class OUserAdmin : public OGenericAdministrationPage
|
|
|
|
{
|
2015-06-03 12:02:36 +02:00
|
|
|
friend class VclPtr<OUserAdmin>;
|
2001-06-20 06:00:59 +00:00
|
|
|
protected:
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<ListBox> m_pUSER;
|
|
|
|
VclPtr<PushButton> m_pNEWUSER;
|
|
|
|
VclPtr<PushButton> m_pCHANGEPWD;
|
|
|
|
VclPtr<PushButton> m_pDELETEUSER;
|
2015-01-16 15:29:28 +02:00
|
|
|
VclPtr<OTableGrantControl> m_TableCtrl; // show the grant rights of one user
|
2001-06-20 06:00:59 +00:00
|
|
|
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> m_xConnection;
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xUsers;
|
2013-04-07 12:06:47 +02:00
|
|
|
::com::sun::star::uno::Sequence< OUString> m_aUserNames;
|
2001-06-20 06:00:59 +00:00
|
|
|
|
2013-09-26 12:17:53 +02:00
|
|
|
OUString m_UserName;
|
2001-06-20 06:00:59 +00:00
|
|
|
|
|
|
|
// methods
|
|
|
|
DECL_LINK( ListDblClickHdl, ListBox * );
|
|
|
|
DECL_LINK( CloseHdl, PushButton * );
|
|
|
|
DECL_LINK( UserHdl, PushButton * );
|
|
|
|
|
|
|
|
void FillUserNames();
|
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
OUserAdmin( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs);
|
2001-06-20 06:00:59 +00:00
|
|
|
public:
|
2015-04-17 13:51:33 +01:00
|
|
|
static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* _rAttrSet );
|
2001-06-20 06:00:59 +00:00
|
|
|
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~OUserAdmin();
|
2015-01-16 15:29:28 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2013-09-26 12:17:53 +02:00
|
|
|
OUString GetUser();
|
2004-08-02 14:41:57 +00:00
|
|
|
|
2015-01-08 23:08:34 +01:00
|
|
|
// subclasses must override this, but it isn't pure virtual
|
2014-04-17 11:16:55 +02:00
|
|
|
virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) SAL_OVERRIDE;
|
2004-08-02 14:41:57 +00:00
|
|
|
|
|
|
|
// <method>OGenericAdministrationPage::fillControls</method>
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) SAL_OVERRIDE;
|
2004-08-02 14:41:57 +00:00
|
|
|
|
|
|
|
// <method>OGenericAdministrationPage::fillWindows</method>
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) SAL_OVERRIDE;
|
2001-06-20 06:00:59 +00:00
|
|
|
};
|
|
|
|
}
|
2013-11-05 02:18:53 +01:00
|
|
|
#endif // INCLUDED_DBACCESS_SOURCE_UI_DLG_USERADMIN_HXX
|
2010-10-27 12:33:13 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|