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 .
|
|
|
|
*/
|
2004-08-02 14:54:59 +00:00
|
|
|
|
2013-11-05 02:18:53 +01:00
|
|
|
#ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_USERADMINDLG_HXX
|
|
|
|
#define INCLUDED_DBACCESS_SOURCE_UI_INC_USERADMINDLG_HXX
|
2004-08-02 14:54:59 +00:00
|
|
|
|
|
|
|
#include <sfx2/tabdlg.hxx>
|
|
|
|
#include "dsntypes.hxx"
|
|
|
|
#include "IItemSetHelper.hxx"
|
|
|
|
#include <comphelper/uno3.hxx>
|
|
|
|
#include "moduledbu.hxx"
|
|
|
|
#include <memory>
|
|
|
|
|
2011-08-11 19:53:21 -04:00
|
|
|
namespace com { namespace sun { namespace star {
|
|
|
|
namespace sdbc {
|
|
|
|
class XConnection;
|
|
|
|
}
|
|
|
|
namespace lang {
|
|
|
|
class XMultiServiceFactory;
|
|
|
|
}
|
|
|
|
}}}
|
2004-08-02 14:54:59 +00:00
|
|
|
|
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
class ODbDataSourceAdministrationHelper;
|
2013-08-17 23:43:14 +02:00
|
|
|
// OUserAdminDlg
|
2004-08-02 14:54:59 +00:00
|
|
|
|
2015-06-15 17:03:57 +02:00
|
|
|
/** implements the user admin dialog
|
2004-08-02 14:54:59 +00:00
|
|
|
*/
|
2007-05-10 09:29:52 +00:00
|
|
|
class OUserAdminDlg : public SfxTabDialog, public IItemSetHelper, public IDatabaseSettingsDialog,public dbaui::OModuleClient
|
2004-08-02 14:54:59 +00:00
|
|
|
{
|
2007-07-06 07:26:19 +00:00
|
|
|
OModuleClient m_aModuleClient;
|
2014-09-24 18:50:37 +02:00
|
|
|
::std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
|
2004-08-02 14:54:59 +00:00
|
|
|
SfxItemSet* m_pItemSet;
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> m_xConnection;
|
2014-04-17 11:16:55 +02:00
|
|
|
bool m_bOwnConnection;
|
2004-08-02 14:54:59 +00:00
|
|
|
protected:
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void PageCreated(sal_uInt16 _nId, SfxTabPage& _rPage) SAL_OVERRIDE;
|
2004-08-02 14:54:59 +00:00
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
OUserAdminDlg( vcl::Window* _pParent
|
2004-08-02 14:54:59 +00:00
|
|
|
,SfxItemSet* _pItems
|
2013-01-04 09:12:44 +02:00
|
|
|
,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
|
2005-03-18 09:10:57 +00:00
|
|
|
,const ::com::sun::star::uno::Any& _aDataSourceName
|
|
|
|
,const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xConnection);
|
2004-08-02 14:54:59 +00:00
|
|
|
|
|
|
|
virtual ~OUserAdminDlg();
|
2015-01-16 15:29:28 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2004-08-02 14:54:59 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual const SfxItemSet* getOutputSet() const SAL_OVERRIDE;
|
|
|
|
virtual SfxItemSet* getWriteOutputSet() SAL_OVERRIDE;
|
2004-08-02 14:54:59 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual short Execute() SAL_OVERRIDE;
|
2004-08-02 14:54:59 +00:00
|
|
|
|
|
|
|
// forwards to ODbDataSourceAdministrationHelper
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getORB() const SAL_OVERRIDE;
|
|
|
|
virtual ::std::pair< ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >,sal_Bool> createConnection() SAL_OVERRIDE;
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDriver > getDriver() SAL_OVERRIDE;
|
|
|
|
virtual OUString getDatasourceType(const SfxItemSet& _rSet) const SAL_OVERRIDE;
|
|
|
|
virtual void clearPassword() SAL_OVERRIDE;
|
2014-04-17 11:16:55 +02:00
|
|
|
virtual bool saveDatasource() SAL_OVERRIDE;
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void setTitle(const OUString& _sTitle) SAL_OVERRIDE;
|
|
|
|
virtual void enableConfirmSettings( bool _bEnable ) SAL_OVERRIDE;
|
2004-08-02 14:54:59 +00:00
|
|
|
};
|
|
|
|
} // namespace dbaui
|
|
|
|
|
2013-11-05 02:18:53 +01:00
|
|
|
#endif // INCLUDED_DBACCESS_SOURCE_UI_INC_USERADMINDLG_HXX
|
2010-10-27 12:33:13 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|