2010-10-12 15:59:03 +02: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 15:22:05 +00:00
|
|
|
|
|
|
|
#include "dbu_reghelper.hxx"
|
2014-04-13 22:40:55 +02:00
|
|
|
#include "uiservices.hxx"
|
2004-08-02 15:22:05 +00:00
|
|
|
#include "UserSettingsDlg.hxx"
|
|
|
|
#include "UserAdminDlg.hxx"
|
2013-03-19 13:08:47 +02:00
|
|
|
#include <comphelper/processfactory.hxx>
|
2004-08-02 15:22:05 +00:00
|
|
|
|
|
|
|
using namespace dbaui;
|
|
|
|
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OUserSettingsDialog()
|
|
|
|
{
|
|
|
|
static OMultiInstanceAutoRegistration< OUserSettingsDialog > aAutoRegistration;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
using namespace ::com::sun::star::lang;
|
|
|
|
using namespace ::com::sun::star::beans;
|
|
|
|
|
2013-03-19 13:08:47 +02:00
|
|
|
OUserSettingsDialog::OUserSettingsDialog(const Reference< XComponentContext >& _rxORB)
|
2004-08-02 15:22:05 +00:00
|
|
|
:ODatabaseAdministrationDialog(_rxORB)
|
|
|
|
{
|
|
|
|
}
|
2013-08-17 23:43:14 +02:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
Sequence<sal_Int8> SAL_CALL OUserSettingsDialog::getImplementationId( ) throw(RuntimeException, std::exception)
|
2004-08-02 15:22:05 +00:00
|
|
|
{
|
2014-03-10 13:08:29 +01:00
|
|
|
return css::uno::Sequence<sal_Int8>();
|
2004-08-02 15:22:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Reference< XInterface > SAL_CALL OUserSettingsDialog::Create(const Reference< XMultiServiceFactory >& _rxFactory)
|
|
|
|
{
|
2013-03-19 13:08:47 +02:00
|
|
|
return *(new OUserSettingsDialog( comphelper::getComponentContext(_rxFactory) ));
|
2004-08-02 15:22:05 +00:00
|
|
|
}
|
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
OUString SAL_CALL OUserSettingsDialog::getImplementationName() throw(RuntimeException, std::exception)
|
2004-08-02 15:22:05 +00:00
|
|
|
{
|
|
|
|
return getImplementationName_Static();
|
|
|
|
}
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString OUserSettingsDialog::getImplementationName_Static() throw(RuntimeException)
|
2004-08-02 15:22:05 +00:00
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString("org.openoffice.comp.dbu.OUserSettingsDialog");
|
2004-08-02 15:22:05 +00:00
|
|
|
}
|
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
::comphelper::StringSequence SAL_CALL OUserSettingsDialog::getSupportedServiceNames() throw(RuntimeException, std::exception)
|
2004-08-02 15:22:05 +00:00
|
|
|
{
|
|
|
|
return getSupportedServiceNames_Static();
|
|
|
|
}
|
|
|
|
|
|
|
|
::comphelper::StringSequence OUserSettingsDialog::getSupportedServiceNames_Static() throw(RuntimeException)
|
|
|
|
{
|
|
|
|
::comphelper::StringSequence aSupported(1);
|
2013-11-04 14:00:40 +02:00
|
|
|
aSupported[0] = "com.sun.star.sdb.UserAdministrationDialog";
|
2004-08-02 15:22:05 +00:00
|
|
|
return aSupported;
|
|
|
|
}
|
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
Reference<XPropertySetInfo> SAL_CALL OUserSettingsDialog::getPropertySetInfo() throw(RuntimeException, std::exception)
|
2004-08-02 15:22:05 +00:00
|
|
|
{
|
|
|
|
Reference<XPropertySetInfo> xInfo( createPropertySetInfo( getInfoHelper() ) );
|
|
|
|
return xInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
::cppu::IPropertyArrayHelper& OUserSettingsDialog::getInfoHelper()
|
|
|
|
{
|
2015-04-13 12:35:57 +02:00
|
|
|
return *getArrayHelper();
|
2004-08-02 15:22:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
::cppu::IPropertyArrayHelper* OUserSettingsDialog::createArrayHelper( ) const
|
|
|
|
{
|
|
|
|
Sequence< Property > aProps;
|
|
|
|
describeProperties(aProps);
|
|
|
|
return new ::cppu::OPropertyArrayHelper(aProps);
|
|
|
|
}
|
2013-08-17 23:43:14 +02:00
|
|
|
|
2015-04-17 12:10:27 +01:00
|
|
|
VclPtr<Dialog> OUserSettingsDialog::createDialog(vcl::Window* _pParent)
|
2004-08-02 15:22:05 +00:00
|
|
|
{
|
2015-04-17 12:10:27 +01:00
|
|
|
return VclPtr<OUserAdminDlg>::Create(_pParent, m_pDatasourceItems, m_aContext, m_aInitialSelection, m_xActiveConnection);
|
2004-08-02 15:22:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace dbaui
|
|
|
|
|
2010-10-12 15:59:03 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|