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 .
|
|
|
|
*/
|
2008-03-07 10:25:55 +00:00
|
|
|
|
2017-10-23 22:42:52 +02:00
|
|
|
#include <textconnectionsettings.hxx>
|
|
|
|
#include <uiservices.hxx>
|
|
|
|
#include <dbu_reghelper.hxx>
|
|
|
|
#include <apitools.hxx>
|
|
|
|
#include <unoadmin.hxx>
|
|
|
|
#include <stringconstants.hxx>
|
|
|
|
#include <propertystorage.hxx>
|
2008-03-07 10:25:55 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/beans/XPropertySetInfo.hpp>
|
|
|
|
#include <com/sun/star/beans/PropertyAttribute.hpp>
|
2013-03-19 10:52:27 +02:00
|
|
|
#include <com/sun/star/sdb/XTextConnectionSettings.hpp>
|
2008-03-07 10:25:55 +00:00
|
|
|
|
2013-03-19 13:08:47 +02:00
|
|
|
#include <comphelper/processfactory.hxx>
|
2018-05-27 14:07:43 +02:00
|
|
|
#include <comphelper/proparrhlp.hxx>
|
2008-03-07 10:25:55 +00:00
|
|
|
#include <svtools/genericunodialog.hxx>
|
2018-10-06 15:54:11 +01:00
|
|
|
#include <toolkit/helper/vclunohelper.hxx>
|
2018-10-24 12:45:08 +01:00
|
|
|
#include <vcl/svapp.hxx>
|
2015-07-17 11:59:26 +09:00
|
|
|
#include <cppuhelper/implbase.hxx>
|
2008-03-07 10:25:55 +00:00
|
|
|
|
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
|
|
|
|
using ::com::sun::star::uno::Reference;
|
|
|
|
using ::com::sun::star::uno::XInterface;
|
|
|
|
using ::com::sun::star::uno::Any;
|
2013-03-19 13:08:47 +02:00
|
|
|
using ::com::sun::star::uno::XComponentContext;
|
2008-03-07 10:25:55 +00:00
|
|
|
using ::com::sun::star::beans::XPropertySetInfo;
|
|
|
|
using ::com::sun::star::uno::Sequence;
|
|
|
|
using ::com::sun::star::beans::Property;
|
2013-04-01 18:45:57 +02:00
|
|
|
|
2008-03-07 10:25:55 +00:00
|
|
|
namespace PropertyAttribute = ::com::sun::star::beans::PropertyAttribute;
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// OTextConnectionSettingsDialog
|
2008-03-07 10:25:55 +00:00
|
|
|
|
|
|
|
class OTextConnectionSettingsDialog;
|
2015-07-17 11:59:26 +09:00
|
|
|
typedef ::cppu::ImplInheritanceHelper< ODatabaseAdministrationDialog
|
2015-08-03 09:14:58 +02:00
|
|
|
, css::sdb::XTextConnectionSettings
|
2015-07-17 11:59:26 +09:00
|
|
|
> OTextConnectionSettingsDialog_BASE;
|
2008-03-07 10:25:55 +00:00
|
|
|
typedef ::comphelper::OPropertyArrayUsageHelper< OTextConnectionSettingsDialog > OTextConnectionSettingsDialog_PBASE;
|
|
|
|
|
|
|
|
class OTextConnectionSettingsDialog
|
|
|
|
:public OTextConnectionSettingsDialog_BASE
|
|
|
|
,public OTextConnectionSettingsDialog_PBASE
|
2015-08-03 09:14:58 +02:00
|
|
|
,public ::cppu::WeakImplHelper< css::sdb::XTextConnectionSettings >
|
2008-03-07 10:25:55 +00:00
|
|
|
{
|
|
|
|
PropertyValues m_aPropertyValues;
|
|
|
|
|
|
|
|
protected:
|
2015-09-07 09:33:18 +01:00
|
|
|
explicit OTextConnectionSettingsDialog( const Reference<XComponentContext>& _rContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~OTextConnectionSettingsDialog() override;
|
2008-03-07 10:25:55 +00:00
|
|
|
|
|
|
|
public:
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() override;
|
2014-03-11 13:02:59 +01:00
|
|
|
|
2017-01-19 17:58:58 +01:00
|
|
|
DECLARE_SERVICE_INFO();
|
|
|
|
/// @throws css::uno::RuntimeException
|
No need to keep these whitelisted functions decorated with SAL_CALL
The only effect SAL_CALL effectively has on LO-internal code is to change non-
static member functions from __thiscall to __cdecl in MSVC (where all other
functions are __cdecl by default, anyway). (For 3rd-party code, it could be
argued that SAL_CALL is useful on function declarations in the URE stable
interface other than non-static member functions, too, in case 3rd-party code
uses a compiler switch to change the default calling convention to something
other than __cdecl. But loplugin:salcall exempts the URE stable interface,
anyway.)
One could argue that SAL_CALL, even if today it effectively only affects non-
static member functions in MSVC, could be extended in the future to affect more
functions on more platforms. However, the current code would already not
support that. For example, 3af500580b1c82eabd60335c9ebc458a3f68850c
"loplugin:salcall fix functions" changed FrameControl_createInstance in
UnoControls/source/base/registercontrols.cxx to no longer be SAL_CALL, even
though its address (in ctl_component_getFacrory, in the same file) is passed to
cppuhelper::createSingleFactory as an argument of type
cppu::ComponentInstantiation, which is a pointer to SAL_CALL function.
Change-Id: I3acbf7314a3d7868ed70e35bb5c47bc11a0b7ff6
Reviewed-on: https://gerrit.libreoffice.org/46436
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-14 08:45:02 +01:00
|
|
|
static OUString getImplementationName_Static( );
|
2017-01-19 17:58:58 +01:00
|
|
|
/// @throws css::uno::RuntimeException
|
No need to keep these whitelisted functions decorated with SAL_CALL
The only effect SAL_CALL effectively has on LO-internal code is to change non-
static member functions from __thiscall to __cdecl in MSVC (where all other
functions are __cdecl by default, anyway). (For 3rd-party code, it could be
argued that SAL_CALL is useful on function declarations in the URE stable
interface other than non-static member functions, too, in case 3rd-party code
uses a compiler switch to change the default calling convention to something
other than __cdecl. But loplugin:salcall exempts the URE stable interface,
anyway.)
One could argue that SAL_CALL, even if today it effectively only affects non-
static member functions in MSVC, could be extended in the future to affect more
functions on more platforms. However, the current code would already not
support that. For example, 3af500580b1c82eabd60335c9ebc458a3f68850c
"loplugin:salcall fix functions" changed FrameControl_createInstance in
UnoControls/source/base/registercontrols.cxx to no longer be SAL_CALL, even
though its address (in ctl_component_getFacrory, in the same file) is passed to
cppuhelper::createSingleFactory as an argument of type
cppu::ComponentInstantiation, which is a pointer to SAL_CALL function.
Change-Id: I3acbf7314a3d7868ed70e35bb5c47bc11a0b7ff6
Reviewed-on: https://gerrit.libreoffice.org/46436
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-14 08:45:02 +01:00
|
|
|
static css::uno::Sequence< OUString > getSupportedServiceNames_Static( );
|
2017-01-19 17:58:58 +01:00
|
|
|
static css::uno::Reference< css::uno::XInterface >
|
No need to keep these whitelisted functions decorated with SAL_CALL
The only effect SAL_CALL effectively has on LO-internal code is to change non-
static member functions from __thiscall to __cdecl in MSVC (where all other
functions are __cdecl by default, anyway). (For 3rd-party code, it could be
argued that SAL_CALL is useful on function declarations in the URE stable
interface other than non-static member functions, too, in case 3rd-party code
uses a compiler switch to change the default calling convention to something
other than __cdecl. But loplugin:salcall exempts the URE stable interface,
anyway.)
One could argue that SAL_CALL, even if today it effectively only affects non-
static member functions in MSVC, could be extended in the future to affect more
functions on more platforms. However, the current code would already not
support that. For example, 3af500580b1c82eabd60335c9ebc458a3f68850c
"loplugin:salcall fix functions" changed FrameControl_createInstance in
UnoControls/source/base/registercontrols.cxx to no longer be SAL_CALL, even
though its address (in ctl_component_getFacrory, in the same file) is passed to
cppuhelper::createSingleFactory as an argument of type
cppu::ComponentInstantiation, which is a pointer to SAL_CALL function.
Change-Id: I3acbf7314a3d7868ed70e35bb5c47bc11a0b7ff6
Reviewed-on: https://gerrit.libreoffice.org/46436
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-14 08:45:02 +01:00
|
|
|
Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
|
2008-03-07 10:25:55 +00:00
|
|
|
DECLARE_PROPERTYCONTAINER_DEFAULTS( );
|
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) override;
|
|
|
|
virtual sal_Bool SAL_CALL convertFastPropertyValue( Any& rConvertedValue, Any& rOldValue, sal_Int32 nHandle, const Any& rValue) override;
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void SAL_CALL getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) const override;
|
2008-03-07 10:25:55 +00:00
|
|
|
|
2013-03-19 10:52:27 +02:00
|
|
|
// Overrides to resolve inheritance ambiguity
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL setPropertyValue(const OUString& p1, const css::uno::Any& p2) override
|
2013-03-19 10:52:27 +02:00
|
|
|
{ ODatabaseAdministrationDialog::setPropertyValue(p1, p2); }
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString& p1) override
|
2013-03-19 10:52:27 +02:00
|
|
|
{ return ODatabaseAdministrationDialog::getPropertyValue(p1); }
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL addPropertyChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2) override
|
2013-03-19 10:52:27 +02:00
|
|
|
{ ODatabaseAdministrationDialog::addPropertyChangeListener(p1, p2); }
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL removePropertyChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2) override
|
2013-03-19 10:52:27 +02:00
|
|
|
{ ODatabaseAdministrationDialog::removePropertyChangeListener(p1, p2); }
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL addVetoableChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2) override
|
2013-03-19 10:52:27 +02:00
|
|
|
{ ODatabaseAdministrationDialog::addVetoableChangeListener(p1, p2); }
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL removeVetoableChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2) override
|
2013-03-19 10:52:27 +02:00
|
|
|
{ ODatabaseAdministrationDialog::removeVetoableChangeListener(p1, p2); }
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL setTitle(const OUString& p1) override
|
2013-03-19 10:52:27 +02:00
|
|
|
{ ODatabaseAdministrationDialog::setTitle(p1); }
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual sal_Int16 SAL_CALL execute() override
|
2013-03-19 10:52:27 +02:00
|
|
|
{ return ODatabaseAdministrationDialog::execute(); }
|
|
|
|
|
2008-03-07 10:25:55 +00:00
|
|
|
protected:
|
|
|
|
// OGenericUnoDialog overridables
|
2019-09-15 20:41:25 +01:00
|
|
|
virtual std::unique_ptr<weld::DialogController> createDialog(const css::uno::Reference<css::awt::XWindow>& rParent) override;
|
2008-03-11 07:37:44 +00:00
|
|
|
using OTextConnectionSettingsDialog_BASE::getFastPropertyValue;
|
2008-03-07 10:25:55 +00:00
|
|
|
};
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// OTextConnectionSettingsDialog
|
2013-03-19 13:08:47 +02:00
|
|
|
OTextConnectionSettingsDialog::OTextConnectionSettingsDialog( const Reference<XComponentContext>& _rContext )
|
|
|
|
:OTextConnectionSettingsDialog_BASE( _rContext )
|
2008-03-07 10:25:55 +00:00
|
|
|
{
|
|
|
|
TextConnectionSettingsDialog::bindItemStorages( *m_pDatasourceItems, m_aPropertyValues );
|
|
|
|
}
|
|
|
|
|
|
|
|
OTextConnectionSettingsDialog::~OTextConnectionSettingsDialog()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-03-11 13:02:59 +01:00
|
|
|
css::uno::Sequence<sal_Int8>
|
|
|
|
OTextConnectionSettingsDialog::getImplementationId()
|
|
|
|
{
|
|
|
|
return css::uno::Sequence<sal_Int8>();
|
|
|
|
}
|
2008-03-07 10:25:55 +00:00
|
|
|
|
2013-03-19 13:08:47 +02:00
|
|
|
IMPLEMENT_SERVICE_INFO_IMPLNAME_STATIC(OTextConnectionSettingsDialog, "com.sun.star.comp.dbaccess.OTextConnectionSettingsDialog")
|
|
|
|
IMPLEMENT_SERVICE_INFO_SUPPORTS(OTextConnectionSettingsDialog)
|
|
|
|
IMPLEMENT_SERVICE_INFO_GETSUPPORTED1_STATIC(OTextConnectionSettingsDialog, "com.sun.star.sdb.TextConnectionSettings")
|
|
|
|
|
2015-08-03 09:14:58 +02:00
|
|
|
css::uno::Reference< css::uno::XInterface >
|
No need to keep these whitelisted functions decorated with SAL_CALL
The only effect SAL_CALL effectively has on LO-internal code is to change non-
static member functions from __thiscall to __cdecl in MSVC (where all other
functions are __cdecl by default, anyway). (For 3rd-party code, it could be
argued that SAL_CALL is useful on function declarations in the URE stable
interface other than non-static member functions, too, in case 3rd-party code
uses a compiler switch to change the default calling convention to something
other than __cdecl. But loplugin:salcall exempts the URE stable interface,
anyway.)
One could argue that SAL_CALL, even if today it effectively only affects non-
static member functions in MSVC, could be extended in the future to affect more
functions on more platforms. However, the current code would already not
support that. For example, 3af500580b1c82eabd60335c9ebc458a3f68850c
"loplugin:salcall fix functions" changed FrameControl_createInstance in
UnoControls/source/base/registercontrols.cxx to no longer be SAL_CALL, even
though its address (in ctl_component_getFacrory, in the same file) is passed to
cppuhelper::createSingleFactory as an argument of type
cppu::ComponentInstantiation, which is a pointer to SAL_CALL function.
Change-Id: I3acbf7314a3d7868ed70e35bb5c47bc11a0b7ff6
Reviewed-on: https://gerrit.libreoffice.org/46436
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-14 08:45:02 +01:00
|
|
|
OTextConnectionSettingsDialog::Create(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxORB)
|
2013-03-19 13:08:47 +02:00
|
|
|
{
|
|
|
|
return static_cast< XServiceInfo* >(new OTextConnectionSettingsDialog( comphelper::getComponentContext(_rxORB)));
|
|
|
|
}
|
2008-03-07 10:25:55 +00:00
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
Reference< XPropertySetInfo > SAL_CALL OTextConnectionSettingsDialog::getPropertySetInfo()
|
2008-03-07 10:25:55 +00:00
|
|
|
{
|
|
|
|
return createPropertySetInfo( getInfoHelper() );
|
|
|
|
}
|
|
|
|
|
|
|
|
::cppu::IPropertyArrayHelper& OTextConnectionSettingsDialog::getInfoHelper()
|
|
|
|
{
|
|
|
|
return *getArrayHelper();
|
|
|
|
}
|
|
|
|
|
|
|
|
::cppu::IPropertyArrayHelper* OTextConnectionSettingsDialog::createArrayHelper( ) const
|
|
|
|
{
|
|
|
|
Sequence< Property > aProps;
|
|
|
|
describeProperties( aProps );
|
|
|
|
|
|
|
|
// in addition to the properties registered by the base class, we have
|
|
|
|
// more properties which are not even handled by the PropertyContainer implementation,
|
|
|
|
// but whose values are stored in our item set
|
|
|
|
sal_Int32 nProp = aProps.getLength();
|
|
|
|
aProps.realloc( nProp + 6 );
|
|
|
|
|
|
|
|
aProps[ nProp++ ] = Property(
|
2017-01-30 16:38:54 +02:00
|
|
|
"HeaderLine",
|
2008-03-07 10:25:55 +00:00
|
|
|
PROPERTY_ID_HEADER_LINE,
|
|
|
|
::cppu::UnoType< sal_Bool >::get(),
|
|
|
|
PropertyAttribute::TRANSIENT
|
|
|
|
);
|
|
|
|
|
|
|
|
aProps[ nProp++ ] = Property(
|
2017-01-30 16:38:54 +02:00
|
|
|
"FieldDelimiter",
|
2008-03-07 10:25:55 +00:00
|
|
|
PROPERTY_ID_FIELD_DELIMITER,
|
2013-04-07 12:06:47 +02:00
|
|
|
::cppu::UnoType< OUString >::get(),
|
2008-03-07 10:25:55 +00:00
|
|
|
PropertyAttribute::TRANSIENT
|
|
|
|
);
|
|
|
|
|
|
|
|
aProps[ nProp++ ] = Property(
|
2017-01-30 16:38:54 +02:00
|
|
|
"StringDelimiter",
|
2008-03-07 10:25:55 +00:00
|
|
|
PROPERTY_ID_STRING_DELIMITER,
|
2013-04-07 12:06:47 +02:00
|
|
|
::cppu::UnoType< OUString >::get(),
|
2008-03-07 10:25:55 +00:00
|
|
|
PropertyAttribute::TRANSIENT
|
|
|
|
);
|
|
|
|
|
|
|
|
aProps[ nProp++ ] = Property(
|
2017-01-30 16:38:54 +02:00
|
|
|
"DecimalDelimiter",
|
2008-03-07 10:25:55 +00:00
|
|
|
PROPERTY_ID_DECIMAL_DELIMITER,
|
2013-04-07 12:06:47 +02:00
|
|
|
::cppu::UnoType< OUString >::get(),
|
2008-03-07 10:25:55 +00:00
|
|
|
PropertyAttribute::TRANSIENT
|
|
|
|
);
|
|
|
|
|
|
|
|
aProps[ nProp++ ] = Property(
|
2017-01-30 16:38:54 +02:00
|
|
|
"ThousandDelimiter",
|
2008-03-07 10:25:55 +00:00
|
|
|
PROPERTY_ID_THOUSAND_DELIMITER,
|
2013-04-07 12:06:47 +02:00
|
|
|
::cppu::UnoType< OUString >::get(),
|
2008-03-07 10:25:55 +00:00
|
|
|
PropertyAttribute::TRANSIENT
|
|
|
|
);
|
|
|
|
|
|
|
|
aProps[ nProp++ ] = Property(
|
2017-01-30 16:38:54 +02:00
|
|
|
"CharSet",
|
2008-03-07 10:25:55 +00:00
|
|
|
PROPERTY_ID_ENCODING,
|
2013-04-07 12:06:47 +02:00
|
|
|
::cppu::UnoType< OUString >::get(),
|
2008-03-07 10:25:55 +00:00
|
|
|
PropertyAttribute::TRANSIENT
|
|
|
|
);
|
|
|
|
|
|
|
|
return new ::cppu::OPropertyArrayHelper( aProps );
|
|
|
|
}
|
|
|
|
|
2019-09-15 20:41:25 +01:00
|
|
|
std::unique_ptr<weld::DialogController> OTextConnectionSettingsDialog::createDialog(const css::uno::Reference<css::awt::XWindow>& rParent)
|
2008-03-07 10:25:55 +00:00
|
|
|
{
|
2019-09-15 20:41:25 +01:00
|
|
|
return std::make_unique<TextConnectionSettingsDialog>(Application::GetFrameWeld(rParent), *m_pDatasourceItems);
|
2008-03-07 10:25:55 +00:00
|
|
|
}
|
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
void SAL_CALL OTextConnectionSettingsDialog::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const Any& _rValue )
|
2008-03-07 10:25:55 +00:00
|
|
|
{
|
|
|
|
PropertyValues::const_iterator pos = m_aPropertyValues.find( _nHandle );
|
|
|
|
if ( pos != m_aPropertyValues.end() )
|
|
|
|
{
|
|
|
|
pos->second->setPropertyValue( _rValue );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
OTextConnectionSettingsDialog::setFastPropertyValue_NoBroadcast( _nHandle, _rValue );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
sal_Bool SAL_CALL OTextConnectionSettingsDialog::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue)
|
2008-03-07 10:25:55 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bModified = false;
|
2008-03-07 10:25:55 +00:00
|
|
|
|
|
|
|
PropertyValues::const_iterator pos = m_aPropertyValues.find( _nHandle );
|
|
|
|
if ( pos != m_aPropertyValues.end() )
|
|
|
|
{
|
|
|
|
// we're lazy here ...
|
|
|
|
_rConvertedValue = _rValue;
|
|
|
|
pos->second->getPropertyValue( _rOldValue );
|
2014-04-17 11:16:55 +02:00
|
|
|
bModified = true;
|
2008-03-07 10:25:55 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
bModified = OTextConnectionSettingsDialog::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
|
|
|
|
}
|
|
|
|
|
|
|
|
return bModified;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL OTextConnectionSettingsDialog::getFastPropertyValue( Any& _rValue, sal_Int32 _nHandle ) const
|
|
|
|
{
|
|
|
|
PropertyValues::const_iterator pos = m_aPropertyValues.find( _nHandle );
|
|
|
|
if ( pos != m_aPropertyValues.end() )
|
|
|
|
{
|
|
|
|
pos->second->getPropertyValue( _rValue );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
OTextConnectionSettingsDialog::getFastPropertyValue( _rValue, _nHandle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace dbaui
|
|
|
|
|
2017-12-08 15:58:41 +02:00
|
|
|
extern "C" void createRegistryInfo_OTextConnectionSettingsDialog()
|
2008-03-07 10:25:55 +00:00
|
|
|
{
|
|
|
|
static ::dbaui::OMultiInstanceAutoRegistration< ::dbaui::OTextConnectionSettingsDialog > aAutoRegistration;
|
|
|
|
}
|
|
|
|
|
2010-10-12 15:59:03 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|