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 .
|
|
|
|
*/
|
2001-01-26 15:14:21 +00:00
|
|
|
|
2013-08-19 00:41:12 +03:00
|
|
|
#include <config_features.h>
|
2001-01-26 15:14:21 +00:00
|
|
|
#include "detailpages.hxx"
|
2004-08-02 14:45:26 +00:00
|
|
|
#include "sqlmessage.hxx"
|
2007-11-01 14:12:32 +00:00
|
|
|
#include "dsmeta.hxx"
|
|
|
|
#include "advancedsettings.hxx"
|
|
|
|
#include "DbAdminImpl.hxx"
|
|
|
|
#include "dsitems.hxx"
|
|
|
|
#include "dbfindex.hxx"
|
|
|
|
#include "localresaccess.hxx"
|
2008-10-01 12:28:29 +00:00
|
|
|
#include "dsnItem.hxx"
|
2007-11-01 14:12:32 +00:00
|
|
|
|
|
|
|
#include "dbaccess_helpid.hrc"
|
2002-08-19 07:01:32 +00:00
|
|
|
#include "dbu_dlg.hrc"
|
2007-11-01 14:12:32 +00:00
|
|
|
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/itemset.hxx>
|
|
|
|
#include <svl/stritem.hxx>
|
|
|
|
#include <svl/eitem.hxx>
|
|
|
|
#include <svl/intitem.hxx>
|
2001-01-26 15:14:21 +00:00
|
|
|
#include <vcl/msgbox.hxx>
|
2004-01-07 14:45:18 +00:00
|
|
|
#include <vcl/mnemonic.hxx>
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/cjkoptions.hxx>
|
2013-08-19 00:41:12 +03:00
|
|
|
#if HAVE_FEATURE_JAVA
|
2004-08-02 14:45:26 +00:00
|
|
|
#include <jvmaccess/virtualmachine.hxx>
|
2013-04-04 22:46:53 +02:00
|
|
|
#endif
|
2004-08-02 14:45:26 +00:00
|
|
|
#include <connectivity/CommonTools.hxx>
|
|
|
|
#include "DriverSettings.hxx"
|
|
|
|
#include "dbadmin.hxx"
|
|
|
|
#include <comphelper/types.hxx>
|
2008-03-07 10:22:51 +00:00
|
|
|
|
2001-01-26 15:14:21 +00:00
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
using namespace ::com::sun::star::sdbc;
|
|
|
|
using namespace ::com::sun::star::beans;
|
|
|
|
using namespace ::com::sun::star::lang;
|
|
|
|
using namespace ::com::sun::star::container;
|
|
|
|
using namespace ::dbtools;
|
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
OCommonBehaviourTabPage::OCommonBehaviourTabPage(vcl::Window* pParent, const OString& rId,
|
2014-08-15 10:54:09 +01:00
|
|
|
const OUString& rUIXMLDescription, const SfxItemSet& _rCoreAttrs,
|
2014-07-27 13:56:58 +02:00
|
|
|
sal_uInt32 nControlFlags)
|
|
|
|
|
|
|
|
:OGenericAdministrationPage(pParent, rId, rUIXMLDescription, _rCoreAttrs)
|
|
|
|
,m_pOptionsLabel(NULL)
|
|
|
|
,m_pOptions(NULL)
|
|
|
|
,m_pCharsetLabel(NULL)
|
|
|
|
,m_pCharset(NULL)
|
|
|
|
,m_pAutoRetrievingEnabled(NULL)
|
|
|
|
,m_pAutoIncrementLabel(NULL)
|
|
|
|
,m_pAutoIncrement(NULL)
|
|
|
|
,m_pAutoRetrievingLabel(NULL)
|
|
|
|
,m_pAutoRetrieving(NULL)
|
|
|
|
,m_nControlFlags(nControlFlags)
|
|
|
|
{
|
|
|
|
|
|
|
|
if ((m_nControlFlags & CBTP_USE_OPTIONS) == CBTP_USE_OPTIONS)
|
|
|
|
{
|
|
|
|
m_pOptionsLabel = get<FixedText>("optionslabel");
|
|
|
|
m_pOptionsLabel->Show();
|
|
|
|
m_pOptions = get<Edit>("options");
|
|
|
|
m_pOptions->Show();
|
|
|
|
m_pOptions->SetModifyHdl(getControlModifiedLink());
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((m_nControlFlags & CBTP_USE_CHARSET) == CBTP_USE_CHARSET)
|
|
|
|
{
|
2014-10-01 17:17:29 +01:00
|
|
|
FixedText* pDataConvertLabel = get<FixedText>("charsetheader");
|
|
|
|
pDataConvertLabel->Show();
|
2014-07-27 13:56:58 +02:00
|
|
|
m_pCharsetLabel = get<FixedText>("charsetlabel");
|
|
|
|
m_pCharsetLabel->Show();
|
|
|
|
m_pCharset = get<CharSetListBox>("charset");
|
|
|
|
m_pCharset->Show();
|
|
|
|
m_pCharset->SetSelectHdl(getControlModifiedLink());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-01-26 15:14:21 +00:00
|
|
|
OCommonBehaviourTabPage::~OCommonBehaviourTabPage()
|
2015-01-16 15:29:28 +02:00
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-01-16 15:29:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OCommonBehaviourTabPage::dispose()
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2015-04-11 17:41:38 +01:00
|
|
|
m_pOptionsLabel.disposeAndClear();
|
|
|
|
m_pOptions.disposeAndClear();
|
|
|
|
m_pCharsetLabel.disposeAndClear();
|
|
|
|
m_pCharset.disposeAndClear();
|
|
|
|
m_pAutoIncrementLabel.disposeAndClear();
|
|
|
|
m_pAutoIncrement.disposeAndClear();
|
|
|
|
m_pAutoRetrievingEnabled.disposeAndClear();
|
|
|
|
m_pAutoRetrievingLabel.disposeAndClear();
|
|
|
|
m_pAutoRetrieving.disposeAndClear();
|
2015-01-16 15:29:28 +02:00
|
|
|
OGenericAdministrationPage::dispose();
|
2002-07-26 08:35:39 +00:00
|
|
|
}
|
2007-01-15 13:33:58 +00:00
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
void OCommonBehaviourTabPage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList)
|
|
|
|
{
|
|
|
|
if ((m_nControlFlags & CBTP_USE_OPTIONS) == CBTP_USE_OPTIONS)
|
|
|
|
{
|
|
|
|
_rControlList.push_back(new ODisableWrapper<FixedText>(m_pOptionsLabel));
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((m_nControlFlags & CBTP_USE_CHARSET) == CBTP_USE_CHARSET)
|
|
|
|
{
|
|
|
|
_rControlList.push_back(new ODisableWrapper<FixedText>(m_pCharsetLabel));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void OCommonBehaviourTabPage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList)
|
|
|
|
{
|
|
|
|
if ((m_nControlFlags & CBTP_USE_OPTIONS) == CBTP_USE_OPTIONS)
|
|
|
|
_rControlList.push_back(new OSaveValueWrapper<Edit>(m_pOptions));
|
|
|
|
|
|
|
|
if ((m_nControlFlags & CBTP_USE_CHARSET) == CBTP_USE_CHARSET)
|
|
|
|
_rControlList.push_back(new OSaveValueWrapper<ListBox>(m_pCharset));
|
|
|
|
}
|
2002-03-14 14:14:36 +00:00
|
|
|
|
2014-04-17 11:16:55 +02:00
|
|
|
void OCommonBehaviourTabPage::implInitControls(const SfxItemSet& _rSet, bool _bSaveValue)
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
|
|
|
// check whether or not the selection is invalid or readonly (invalid implies readonly, but not vice versa)
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bValid, bReadonly;
|
2001-01-26 15:14:21 +00:00
|
|
|
getFlags(_rSet, bValid, bReadonly);
|
|
|
|
|
|
|
|
// collect the items
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rSet, pOptionsItem, SfxStringItem, DSID_ADDITIONALOPTIONS, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pCharsetItem, SfxStringItem, DSID_CHARSET, true);
|
2001-01-26 15:14:21 +00:00
|
|
|
|
|
|
|
// forward the values to the controls
|
|
|
|
if (bValid)
|
|
|
|
{
|
|
|
|
if ((m_nControlFlags & CBTP_USE_OPTIONS) == CBTP_USE_OPTIONS)
|
|
|
|
{
|
|
|
|
m_pOptions->SetText(pOptionsItem->GetValue());
|
|
|
|
m_pOptions->ClearModifyFlag();
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((m_nControlFlags & CBTP_USE_CHARSET) == CBTP_USE_CHARSET)
|
|
|
|
{
|
2008-03-07 10:22:51 +00:00
|
|
|
m_pCharset->SelectEntryByIanaName( pCharsetItem->GetValue() );
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
}
|
2004-08-02 14:45:26 +00:00
|
|
|
OGenericAdministrationPage::implInitControls(_rSet, _bSaveValue);
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
2014-03-26 15:34:49 +02:00
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool OCommonBehaviourTabPage::FillItemSet(SfxItemSet* _rSet)
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bChangedSomething = false;
|
2001-01-26 15:14:21 +00:00
|
|
|
|
|
|
|
if ((m_nControlFlags & CBTP_USE_OPTIONS) == CBTP_USE_OPTIONS)
|
|
|
|
{
|
2014-06-10 17:23:12 +02:00
|
|
|
fillString(*_rSet,m_pOptions,DSID_ADDITIONALOPTIONS,bChangedSomething);
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if ((m_nControlFlags & CBTP_USE_CHARSET) == CBTP_USE_CHARSET)
|
|
|
|
{
|
2014-06-10 17:23:12 +02:00
|
|
|
if ( m_pCharset->StoreSelectedCharSet( *_rSet, DSID_CHARSET ) )
|
2014-04-17 11:16:55 +02:00
|
|
|
bChangedSomething = true;
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return bChangedSomething;
|
|
|
|
}
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// ODbaseDetailsPage
|
2014-09-23 11:20:40 +02:00
|
|
|
ODbaseDetailsPage::ODbaseDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs )
|
2014-08-06 00:00:02 +02:00
|
|
|
:OCommonBehaviourTabPage(pParent, "DbasePage", "dbaccess/ui/dbasepage.ui", _rCoreAttrs, CBTP_USE_CHARSET)
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2014-08-06 00:00:02 +02:00
|
|
|
get(m_pShowDeleted, "showDelRowsCheckbutton");
|
|
|
|
get(m_pFT_Message, "specMessageLabel");
|
|
|
|
get(m_pIndexes, "indiciesButton");
|
|
|
|
set_height_request(300);
|
2005-09-23 11:29:50 +00:00
|
|
|
|
2014-08-06 00:00:02 +02:00
|
|
|
m_pIndexes->SetClickHdl(LINK(this, ODbaseDetailsPage, OnButtonClicked));
|
|
|
|
m_pShowDeleted->SetClickHdl(LINK(this, ODbaseDetailsPage, OnButtonClicked));
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2015-03-09 14:29:30 +02:00
|
|
|
ODbaseDetailsPage::~ODbaseDetailsPage()
|
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-03-09 14:29:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void ODbaseDetailsPage::dispose()
|
|
|
|
{
|
|
|
|
m_pShowDeleted.clear();
|
|
|
|
m_pFT_Message.clear();
|
|
|
|
m_pIndexes.clear();
|
|
|
|
OCommonBehaviourTabPage::dispose();
|
|
|
|
}
|
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateDbase( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<ODbaseDetailsPage>::Create( pParent, *_rAttrSet );
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2014-04-17 11:16:55 +02:00
|
|
|
void ODbaseDetailsPage::implInitControls(const SfxItemSet& _rSet, bool _bSaveValue)
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
|
|
|
// check whether or not the selection is invalid or readonly (invalid implies readonly, but not vice versa)
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bValid, bReadonly;
|
2001-01-26 15:14:21 +00:00
|
|
|
getFlags(_rSet, bValid, bReadonly);
|
|
|
|
|
|
|
|
// get the DSN string (needed for the index dialog)
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rSet, pUrlItem, SfxStringItem, DSID_CONNECTURL, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pTypesItem, DbuTypeCollectionItem, DSID_TYPECOLLECTION, true);
|
2008-10-01 12:28:29 +00:00
|
|
|
::dbaccess::ODsnTypeCollection* pTypeCollection = pTypesItem ? pTypesItem->getCollection() : NULL;
|
2013-02-20 04:33:49 +01:00
|
|
|
if (pTypeCollection && pUrlItem && pUrlItem->GetValue().getLength())
|
2001-01-26 15:14:21 +00:00
|
|
|
m_sDsn = pTypeCollection->cutPrefix(pUrlItem->GetValue());
|
|
|
|
|
|
|
|
// get the other relevant items
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rSet, pDeletedItem, SfxBoolItem, DSID_SHOWDELETEDROWS, true);
|
2001-01-26 15:14:21 +00:00
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
if ( bValid )
|
|
|
|
{
|
2014-08-06 00:00:02 +02:00
|
|
|
m_pShowDeleted->Check( pDeletedItem->GetValue() );
|
|
|
|
m_pFT_Message->Show(m_pShowDeleted->IsChecked());
|
2004-08-02 14:45:26 +00:00
|
|
|
}
|
2001-01-26 15:14:21 +00:00
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
OCommonBehaviourTabPage::implInitControls(_rSet, _bSaveValue);
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool ODbaseDetailsPage::FillItemSet( SfxItemSet* _rSet )
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bChangedSomething = OCommonBehaviourTabPage::FillItemSet(_rSet);
|
2001-01-26 15:14:21 +00:00
|
|
|
|
2014-08-06 00:00:02 +02:00
|
|
|
fillBool(*_rSet,m_pShowDeleted,DSID_SHOWDELETEDROWS,bChangedSomething);
|
2001-01-26 15:14:21 +00:00
|
|
|
return bChangedSomething;
|
|
|
|
}
|
|
|
|
|
|
|
|
IMPL_LINK( ODbaseDetailsPage, OnButtonClicked, Button*, pButton )
|
|
|
|
{
|
2014-08-06 00:00:02 +02:00
|
|
|
if (m_pIndexes == pButton)
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2015-03-31 23:04:14 +01:00
|
|
|
ScopedVclPtrInstance< ODbaseIndexDialog > aIndexDialog(this, m_sDsn);
|
2015-02-11 14:42:23 +02:00
|
|
|
aIndexDialog->Execute();
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
else
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2014-08-06 00:00:02 +02:00
|
|
|
m_pFT_Message->Show(m_pShowDeleted->IsChecked());
|
2001-01-26 15:14:21 +00:00
|
|
|
// it was one of the checkboxes -> we count as modified from now on
|
|
|
|
callModifiedHdl();
|
|
|
|
}
|
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
return 0;
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// OAdoDetailsPage
|
2014-09-23 11:20:40 +02:00
|
|
|
OAdoDetailsPage::OAdoDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs )
|
2014-08-06 21:07:00 +02:00
|
|
|
:OCommonBehaviourTabPage(pParent, "AutoCharset", "dbaccess/ui/autocharsetpage.ui", _rCoreAttrs, CBTP_USE_CHARSET )
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2005-09-23 11:29:50 +00:00
|
|
|
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateAdo( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<OAdoDetailsPage>::Create( pParent, *_rAttrSet );
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// OOdbcDetailsPage
|
2014-09-23 11:20:40 +02:00
|
|
|
OOdbcDetailsPage::OOdbcDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs )
|
2014-08-06 12:50:18 +02:00
|
|
|
:OCommonBehaviourTabPage(pParent, "ODBC", "dbaccess/ui/odbcpage.ui", _rCoreAttrs, CBTP_USE_CHARSET | CBTP_USE_OPTIONS)
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2014-08-06 12:50:18 +02:00
|
|
|
get(m_pUseCatalog, "useCatalogCheckbutton");
|
|
|
|
m_pUseCatalog->SetToggleHdl(getControlModifiedLink());
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2015-03-09 14:29:30 +02:00
|
|
|
OOdbcDetailsPage::~OOdbcDetailsPage()
|
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-03-09 14:29:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OOdbcDetailsPage::dispose()
|
|
|
|
{
|
|
|
|
m_pUseCatalog.clear();
|
|
|
|
OCommonBehaviourTabPage::dispose();
|
|
|
|
}
|
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateODBC( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<OOdbcDetailsPage>::Create( pParent, *_rAttrSet );
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool OOdbcDetailsPage::FillItemSet( SfxItemSet* _rSet )
|
2001-04-20 12:38:06 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bChangedSomething = OCommonBehaviourTabPage::FillItemSet(_rSet);
|
2014-08-06 12:50:18 +02:00
|
|
|
fillBool(*_rSet,m_pUseCatalog,DSID_USECATALOG,bChangedSomething);
|
2001-04-20 12:38:06 +00:00
|
|
|
return bChangedSomething;
|
|
|
|
}
|
2014-04-17 11:16:55 +02:00
|
|
|
void OOdbcDetailsPage::implInitControls(const SfxItemSet& _rSet, bool _bSaveValue)
|
2001-04-20 12:38:06 +00:00
|
|
|
{
|
|
|
|
// check whether or not the selection is invalid or readonly (invalid implies readonly, but not vice versa)
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bValid, bReadonly;
|
2001-04-20 12:38:06 +00:00
|
|
|
getFlags(_rSet, bValid, bReadonly);
|
|
|
|
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rSet, pUseCatalogItem, SfxBoolItem, DSID_USECATALOG, true);
|
2001-04-20 12:38:06 +00:00
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
if ( bValid )
|
2014-08-06 12:50:18 +02:00
|
|
|
m_pUseCatalog->Check(pUseCatalogItem->GetValue());
|
2001-04-20 12:38:06 +00:00
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
OCommonBehaviourTabPage::implInitControls(_rSet, _bSaveValue);
|
2001-04-20 12:38:06 +00:00
|
|
|
}
|
2013-08-17 23:43:14 +02:00
|
|
|
// OOdbcDetailsPage
|
2014-09-23 11:20:40 +02:00
|
|
|
OUserDriverDetailsPage::OUserDriverDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs )
|
2014-08-15 10:39:43 +01:00
|
|
|
: OCommonBehaviourTabPage(pParent, "UserDetailsPage", "dbaccess/ui/userdetailspage.ui", _rCoreAttrs,
|
|
|
|
CBTP_USE_CHARSET | CBTP_USE_OPTIONS)
|
2003-03-19 16:57:12 +00:00
|
|
|
{
|
2014-08-15 10:39:43 +01:00
|
|
|
get(m_pFTHostname, "hostnameft");
|
|
|
|
get(m_pEDHostname, "hostname");
|
|
|
|
get(m_pPortNumber, "portnumberft");
|
|
|
|
get(m_pNFPortNumber, "portnumber");
|
|
|
|
m_pNFPortNumber->SetUseThousandSep(false);
|
|
|
|
get(m_pUseCatalog, "usecatalog");
|
|
|
|
m_pUseCatalog->SetToggleHdl(getControlModifiedLink());
|
2003-03-19 16:57:12 +00:00
|
|
|
}
|
|
|
|
|
2015-03-09 14:29:30 +02:00
|
|
|
OUserDriverDetailsPage::~OUserDriverDetailsPage()
|
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-03-09 14:29:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OUserDriverDetailsPage::dispose()
|
|
|
|
{
|
|
|
|
m_pFTHostname.clear();
|
|
|
|
m_pEDHostname.clear();
|
|
|
|
m_pPortNumber.clear();
|
|
|
|
m_pNFPortNumber.clear();
|
|
|
|
m_pUseCatalog.clear();
|
|
|
|
OCommonBehaviourTabPage::dispose();
|
|
|
|
}
|
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateUser( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2003-03-19 16:57:12 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<OUserDriverDetailsPage>::Create( pParent, *_rAttrSet );
|
2003-03-19 16:57:12 +00:00
|
|
|
}
|
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool OUserDriverDetailsPage::FillItemSet( SfxItemSet* _rSet )
|
2003-03-19 16:57:12 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bChangedSomething = OCommonBehaviourTabPage::FillItemSet(_rSet);
|
2004-08-02 14:45:26 +00:00
|
|
|
|
2014-08-15 10:39:43 +01:00
|
|
|
fillInt32(*_rSet,m_pNFPortNumber,DSID_CONN_PORTNUMBER,bChangedSomething);
|
|
|
|
fillString(*_rSet,m_pEDHostname,DSID_CONN_HOSTNAME,bChangedSomething);
|
|
|
|
fillBool(*_rSet,m_pUseCatalog,DSID_USECATALOG,bChangedSomething);
|
2004-08-02 14:45:26 +00:00
|
|
|
|
2003-03-19 16:57:12 +00:00
|
|
|
return bChangedSomething;
|
|
|
|
}
|
2004-08-02 14:45:26 +00:00
|
|
|
void OUserDriverDetailsPage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList)
|
|
|
|
{
|
|
|
|
OCommonBehaviourTabPage::fillControls(_rControlList);
|
2014-08-15 10:39:43 +01:00
|
|
|
_rControlList.push_back(new OSaveValueWrapper<Edit>(m_pEDHostname));
|
|
|
|
_rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pUseCatalog));
|
|
|
|
_rControlList.push_back(new OSaveValueWrapper<NumericField>(m_pNFPortNumber));
|
2004-08-02 14:45:26 +00:00
|
|
|
}
|
|
|
|
void OUserDriverDetailsPage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList)
|
|
|
|
{
|
|
|
|
OCommonBehaviourTabPage::fillWindows(_rControlList);
|
2014-08-15 10:39:43 +01:00
|
|
|
_rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTHostname));
|
|
|
|
_rControlList.push_back(new ODisableWrapper<FixedText>(m_pPortNumber));
|
2004-08-02 14:45:26 +00:00
|
|
|
}
|
2014-04-17 11:16:55 +02:00
|
|
|
void OUserDriverDetailsPage::implInitControls(const SfxItemSet& _rSet, bool _bSaveValue)
|
2003-03-19 16:57:12 +00:00
|
|
|
{
|
|
|
|
// check whether or not the selection is invalid or readonly (invalid implies readonly, but not vice versa)
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bValid, bReadonly;
|
2003-03-19 16:57:12 +00:00
|
|
|
getFlags(_rSet, bValid, bReadonly);
|
|
|
|
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rSet, pUseCatalogItem, SfxBoolItem, DSID_USECATALOG, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pHostName, SfxStringItem, DSID_CONN_HOSTNAME, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pPortNumber, SfxInt32Item, DSID_CONN_PORTNUMBER, true);
|
2004-08-02 14:45:26 +00:00
|
|
|
|
|
|
|
if ( bValid )
|
|
|
|
{
|
2014-08-15 10:39:43 +01:00
|
|
|
m_pEDHostname->SetText(pHostName->GetValue());
|
|
|
|
m_pEDHostname->ClearModifyFlag();
|
2003-03-19 16:57:12 +00:00
|
|
|
|
2014-08-15 10:39:43 +01:00
|
|
|
m_pNFPortNumber->SetValue(pPortNumber->GetValue());
|
|
|
|
m_pNFPortNumber->ClearModifyFlag();
|
2004-08-02 14:45:26 +00:00
|
|
|
|
2014-08-15 10:39:43 +01:00
|
|
|
m_pUseCatalog->Check(pUseCatalogItem->GetValue());
|
2004-08-02 14:45:26 +00:00
|
|
|
}
|
2003-03-19 16:57:12 +00:00
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
OCommonBehaviourTabPage::implInitControls(_rSet, _bSaveValue);
|
|
|
|
}
|
2013-08-17 23:43:14 +02:00
|
|
|
// OMySQLODBCDetailsPage
|
2014-09-23 11:20:40 +02:00
|
|
|
OMySQLODBCDetailsPage::OMySQLODBCDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs )
|
2014-08-06 21:07:00 +02:00
|
|
|
:OCommonBehaviourTabPage(pParent, "AutoCharset", "dbaccess/ui/autocharsetpage.ui", _rCoreAttrs, CBTP_USE_CHARSET )
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
|
|
|
}
|
2003-03-19 16:57:12 +00:00
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateMySQLODBC( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<OMySQLODBCDetailsPage>::Create( pParent, *_rAttrSet );
|
2003-03-19 16:57:12 +00:00
|
|
|
}
|
2004-08-02 14:45:26 +00:00
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// OMySQLJDBCDetailsPage
|
2014-09-23 11:20:40 +02:00
|
|
|
OGeneralSpecialJDBCDetailsPage::OGeneralSpecialJDBCDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs ,sal_uInt16 _nPortId, bool bShowSocket )
|
2014-08-06 12:22:12 +02:00
|
|
|
:OCommonBehaviourTabPage(pParent, "GeneralSpecialJDBCDetails", "dbaccess/ui/generalspecialjdbcdetailspage.ui", _rCoreAttrs, CBTP_USE_CHARSET)
|
2004-08-02 14:45:26 +00:00
|
|
|
,m_nPortId(_nPortId)
|
2008-03-05 15:59:53 +00:00
|
|
|
,m_bUseClass(true)
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2014-08-06 12:22:12 +02:00
|
|
|
get(m_pEDHostname, "hostNameEntry");
|
|
|
|
get(m_pNFPortNumber, "portNumberSpinbutton");
|
2014-08-15 09:30:32 +01:00
|
|
|
m_pNFPortNumber->SetUseThousandSep(false);
|
2014-08-06 12:22:12 +02:00
|
|
|
get(m_pFTSocket, "socketLabel");
|
|
|
|
get(m_pEDSocket, "socketEntry");
|
|
|
|
get(m_pFTDriverClass, "driverClassLabel");
|
|
|
|
get(m_pEDDriverClass, "jdbcDriverClassEntry");
|
|
|
|
get(m_pTestJavaDriver, "testDriverClassButton");
|
|
|
|
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rCoreAttrs, pUrlItem, SfxStringItem, DSID_CONNECTURL, true);
|
|
|
|
SFX_ITEMSET_GET(_rCoreAttrs, pTypesItem, DbuTypeCollectionItem, DSID_TYPECOLLECTION, true);
|
2009-07-03 12:24:35 +00:00
|
|
|
::dbaccess::ODsnTypeCollection* pTypeCollection = pTypesItem ? pTypesItem->getCollection() : NULL;
|
2013-02-20 04:33:49 +01:00
|
|
|
if (pTypeCollection && pUrlItem && pUrlItem->GetValue().getLength() )
|
2009-07-03 12:24:35 +00:00
|
|
|
{
|
|
|
|
m_sDefaultJdbcDriverName = pTypeCollection->getJavaDriverClass(pUrlItem->GetValue());
|
|
|
|
}
|
2013-02-20 04:33:49 +01:00
|
|
|
if ( m_sDefaultJdbcDriverName.getLength() )
|
2008-03-05 15:59:53 +00:00
|
|
|
{
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pEDDriverClass->SetModifyHdl(getControlModifiedLink());
|
|
|
|
m_pEDDriverClass->SetModifyHdl(LINK(this, OGeneralSpecialJDBCDetailsPage, OnEditModified));
|
|
|
|
m_pTestJavaDriver->SetClickHdl(LINK(this,OGeneralSpecialJDBCDetailsPage,OnTestJavaClickHdl));
|
2008-03-05 15:59:53 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_bUseClass = false;
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pFTDriverClass->Show(false);
|
|
|
|
m_pEDDriverClass->Show(false);
|
|
|
|
m_pTestJavaDriver->Show(false);
|
2008-03-05 15:59:53 +00:00
|
|
|
}
|
|
|
|
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pFTSocket->Show(bShowSocket && !m_bUseClass);
|
|
|
|
m_pEDSocket->Show(bShowSocket && !m_bUseClass);
|
2002-11-21 14:27:11 +00:00
|
|
|
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pEDHostname->SetModifyHdl(getControlModifiedLink());
|
|
|
|
m_pNFPortNumber->SetModifyHdl(getControlModifiedLink());
|
|
|
|
m_pEDSocket->SetModifyHdl(getControlModifiedLink());
|
2002-11-21 14:27:11 +00:00
|
|
|
}
|
2004-08-02 14:45:26 +00:00
|
|
|
|
2015-03-09 14:29:30 +02:00
|
|
|
OGeneralSpecialJDBCDetailsPage::~OGeneralSpecialJDBCDetailsPage()
|
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-03-09 14:29:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OGeneralSpecialJDBCDetailsPage::dispose()
|
|
|
|
{
|
|
|
|
m_pEDHostname.clear();
|
|
|
|
m_pNFPortNumber.clear();
|
|
|
|
m_pFTSocket.clear();
|
|
|
|
m_pEDSocket.clear();
|
|
|
|
m_pFTDriverClass.clear();
|
|
|
|
m_pEDDriverClass.clear();
|
|
|
|
m_pTestJavaDriver.clear();
|
|
|
|
OCommonBehaviourTabPage::dispose();
|
|
|
|
}
|
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool OGeneralSpecialJDBCDetailsPage::FillItemSet( SfxItemSet* _rSet )
|
2002-11-21 14:27:11 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bChangedSomething = OCommonBehaviourTabPage::FillItemSet(_rSet);
|
2008-03-05 15:59:53 +00:00
|
|
|
if ( m_bUseClass )
|
2014-08-06 12:22:12 +02:00
|
|
|
fillString(*_rSet,m_pEDDriverClass,DSID_JDBCDRIVERCLASS,bChangedSomething);
|
|
|
|
fillString(*_rSet,m_pEDHostname,DSID_CONN_HOSTNAME,bChangedSomething);
|
|
|
|
fillString(*_rSet,m_pEDSocket,DSID_CONN_SOCKET,bChangedSomething);
|
|
|
|
fillInt32(*_rSet,m_pNFPortNumber,m_nPortId,bChangedSomething );
|
2002-11-21 14:27:11 +00:00
|
|
|
|
|
|
|
return bChangedSomething;
|
|
|
|
}
|
2014-04-17 11:16:55 +02:00
|
|
|
void OGeneralSpecialJDBCDetailsPage::implInitControls(const SfxItemSet& _rSet, bool _bSaveValue)
|
2002-11-21 14:27:11 +00:00
|
|
|
{
|
|
|
|
// check whether or not the selection is invalid or readonly (invalid implies readonly, but not vice versa)
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bValid, bReadonly;
|
2002-11-21 14:27:11 +00:00
|
|
|
getFlags(_rSet, bValid, bReadonly);
|
|
|
|
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rSet, pDrvItem, SfxStringItem, DSID_JDBCDRIVERCLASS, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pHostName, SfxStringItem, DSID_CONN_HOSTNAME, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pPortNumber, SfxInt32Item, m_nPortId, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pSocket, SfxStringItem, DSID_CONN_SOCKET, true);
|
2002-11-21 14:27:11 +00:00
|
|
|
|
|
|
|
if ( bValid )
|
|
|
|
{
|
2008-03-05 15:59:53 +00:00
|
|
|
if ( m_bUseClass )
|
|
|
|
{
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pEDDriverClass->SetText(pDrvItem->GetValue());
|
|
|
|
m_pEDDriverClass->ClearModifyFlag();
|
2008-03-05 15:59:53 +00:00
|
|
|
}
|
2002-11-21 14:27:11 +00:00
|
|
|
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pEDHostname->SetText(pHostName->GetValue());
|
|
|
|
m_pEDHostname->ClearModifyFlag();
|
2002-11-21 14:27:11 +00:00
|
|
|
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pNFPortNumber->SetValue(pPortNumber->GetValue());
|
|
|
|
m_pNFPortNumber->ClearModifyFlag();
|
2008-06-30 14:12:18 +00:00
|
|
|
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pEDSocket->SetText(pSocket->GetValue());
|
|
|
|
m_pEDSocket->ClearModifyFlag();
|
2002-11-21 14:27:11 +00:00
|
|
|
}
|
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
OCommonBehaviourTabPage::implInitControls(_rSet, _bSaveValue);
|
|
|
|
|
|
|
|
// to get the correcxt value when saveValue was called by base class
|
2014-08-06 12:22:12 +02:00
|
|
|
if ( m_bUseClass && m_pEDDriverClass->GetText().trim().isEmpty() )
|
2002-11-21 14:27:11 +00:00
|
|
|
{
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pEDDriverClass->SetText(m_sDefaultJdbcDriverName);
|
|
|
|
m_pEDDriverClass->SetModifyFlag();
|
2002-11-21 14:27:11 +00:00
|
|
|
}
|
|
|
|
}
|
2006-06-20 02:06:46 +00:00
|
|
|
IMPL_LINK(OGeneralSpecialJDBCDetailsPage, OnTestJavaClickHdl, PushButton*, /*_pButton*/)
|
2002-11-21 14:27:11 +00:00
|
|
|
{
|
2004-08-02 14:45:26 +00:00
|
|
|
OSL_ENSURE(m_pAdminDialog,"No Admin dialog set! ->GPF");
|
2008-03-05 15:59:53 +00:00
|
|
|
OSL_ENSURE(m_bUseClass,"Who called me?");
|
|
|
|
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bSuccess = false;
|
2013-08-19 00:41:12 +03:00
|
|
|
#if HAVE_FEATURE_JAVA
|
2004-08-02 14:45:26 +00:00
|
|
|
try
|
2002-12-09 08:11:54 +00:00
|
|
|
{
|
2014-08-06 12:22:12 +02:00
|
|
|
if ( !m_pEDDriverClass->GetText().trim().isEmpty() )
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2013-01-04 09:12:44 +02:00
|
|
|
// TODO change jvmaccess
|
2013-01-16 15:16:05 +02:00
|
|
|
::rtl::Reference< jvmaccess::VirtualMachine > xJVM = ::connectivity::getJavaVM( m_pAdminDialog->getORB() );
|
2014-08-06 12:22:12 +02:00
|
|
|
m_pEDDriverClass->SetText(m_pEDDriverClass->GetText().trim()); // fdo#68341
|
|
|
|
bSuccess = ::connectivity::existsJavaClassByName(xJVM,m_pEDDriverClass->GetText());
|
2004-08-02 14:45:26 +00:00
|
|
|
}
|
2002-12-09 08:11:54 +00:00
|
|
|
}
|
2004-08-02 14:45:26 +00:00
|
|
|
catch(Exception&)
|
2002-11-21 14:27:11 +00:00
|
|
|
{
|
|
|
|
}
|
2013-04-04 22:46:53 +02:00
|
|
|
#endif
|
2011-11-30 17:20:20 +01:00
|
|
|
const sal_uInt16 nMessage = bSuccess ? STR_JDBCDRIVER_SUCCESS : STR_JDBCDRIVER_NO_SUCCESS;
|
2011-11-30 17:12:44 +01:00
|
|
|
const OSQLMessageBox::MessageType mt = bSuccess ? OSQLMessageBox::Info : OSQLMessageBox::Error;
|
2015-03-31 23:04:14 +01:00
|
|
|
ScopedVclPtrInstance< OSQLMessageBox > aMsg( this, OUString( ModuleRes( nMessage ) ), OUString(), WB_OK | WB_DEF_OK, mt );
|
2015-02-11 14:42:23 +02:00
|
|
|
aMsg->Execute();
|
2004-08-02 14:45:26 +00:00
|
|
|
return 0L;
|
|
|
|
}
|
|
|
|
IMPL_LINK(OGeneralSpecialJDBCDetailsPage, OnEditModified, Edit*, _pEdit)
|
|
|
|
{
|
2014-08-06 12:22:12 +02:00
|
|
|
if ( m_bUseClass && _pEdit == m_pEDDriverClass )
|
|
|
|
m_pTestJavaDriver->Enable( !m_pEDDriverClass->GetText().trim().isEmpty() );
|
2004-08-02 14:45:26 +00:00
|
|
|
|
|
|
|
// tell the listener we were modified
|
2002-11-21 14:27:11 +00:00
|
|
|
callModifiedHdl();
|
2004-08-02 14:45:26 +00:00
|
|
|
return 0L;
|
|
|
|
}
|
2002-11-21 14:27:11 +00:00
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// MySQLNativePage
|
2014-09-23 11:20:40 +02:00
|
|
|
MySQLNativePage::MySQLNativePage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs )
|
2014-08-03 13:44:00 +02:00
|
|
|
:OCommonBehaviourTabPage(pParent, "MysqlNativePage", "dbaccess/ui/mysqlnativepage.ui", _rCoreAttrs, CBTP_USE_CHARSET )
|
2015-04-20 14:00:04 +01:00
|
|
|
,m_aMySQLSettings ( VclPtr<MySQLNativeSettings>::Create(*get<VclVBox>("MySQLSettingsContainer"), getControlModifiedLink()) )
|
2014-08-03 13:44:00 +02:00
|
|
|
{
|
|
|
|
get(m_pSeparator1, "connectionheader");
|
|
|
|
get(m_pSeparator2, "userheader");
|
|
|
|
get(m_pUserNameLabel, "usernamelabel");
|
|
|
|
get(m_pUserName, "username");
|
|
|
|
get(m_pPasswordRequired, "passwordrequired");
|
2009-02-16 07:31:09 +00:00
|
|
|
|
2014-08-03 13:44:00 +02:00
|
|
|
m_pUserName->SetModifyHdl(getControlModifiedLink());
|
CWS-TOOLING: integrate CWS dba32g
2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength
2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed
2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang
2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance
2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control
2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance
2009-09-05 00:11:40 +0200 fs r275835 : #i10000#
2009-09-04 23:25:50 +0200 fs r275834 : #i10000#
2009-09-04 23:23:47 +0200 fs r275833 : #i10000#
2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution
2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57)
2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0
2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore
2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56)
2009-09-02 13:48:12 +0200 fs r275708 : removed useless include
2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi
2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries
2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting
2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack.
2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag
2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required
2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page
2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends
2009-08-31 15:52:34 +0200 fs r275612 : #i104410#
2009-08-31 12:29:05 +0200 fs r275596 : #i104364#
2009-08-31 12:28:56 +0200 fs r275595 : #i104364#
2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting
2009-08-31 11:41:37 +0200 fs r275592 : #i104649#
2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI
2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option
2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI
2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI
2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option
2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column
2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings
2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked)
2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings
2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data
2009-08-28 11:00:31 +0200 fs r275521 : #i104580#
2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed
2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI
2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents
2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT
2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein
2009-08-27 13:23:07 +0200 fs r275475 : #i103882#
2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble
2009-08-27 11:55:34 +0200 fs r275465 : #i104544#
do not allow re-entrance for impl_ensureControl_nothrow
Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from
the grid control implementation), but to ensure it won't happen, again, I added some safety herein.
2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo
2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo
2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations
2009-08-26 14:18:13 +0200 fs r275422 : #i10000#
2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths
2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver
2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later)
2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource
2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost
2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error
2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException
2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2
2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL
2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL
2009-08-24 14:49:07 +0200 fs r275318 : #i10000#
2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character
2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled
2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns
2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells
2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns
2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells
2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation
2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK
2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming
2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners
2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper
2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting
2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells
2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring:
If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT).
However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE.
2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird
2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from)
2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios
2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come.
2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models
2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f
2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
|
|
|
|
2015-01-16 15:29:28 +02:00
|
|
|
m_aMySQLSettings->Show();
|
|
|
|
}
|
|
|
|
|
|
|
|
MySQLNativePage::~MySQLNativePage()
|
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-01-16 15:29:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void MySQLNativePage::dispose()
|
|
|
|
{
|
|
|
|
m_aMySQLSettings.disposeAndClear();
|
2015-03-09 14:29:30 +02:00
|
|
|
m_pSeparator1.clear();
|
|
|
|
m_pSeparator2.clear();
|
|
|
|
m_pUserNameLabel.clear();
|
|
|
|
m_pUserName.clear();
|
|
|
|
m_pPasswordRequired.clear();
|
2015-01-16 15:29:28 +02:00
|
|
|
OCommonBehaviourTabPage::dispose();
|
2009-02-16 07:31:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void MySQLNativePage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList)
|
|
|
|
{
|
CWS-TOOLING: integrate CWS dba32g
2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength
2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed
2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang
2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance
2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control
2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance
2009-09-05 00:11:40 +0200 fs r275835 : #i10000#
2009-09-04 23:25:50 +0200 fs r275834 : #i10000#
2009-09-04 23:23:47 +0200 fs r275833 : #i10000#
2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution
2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57)
2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0
2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore
2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56)
2009-09-02 13:48:12 +0200 fs r275708 : removed useless include
2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi
2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries
2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting
2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack.
2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag
2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required
2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page
2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends
2009-08-31 15:52:34 +0200 fs r275612 : #i104410#
2009-08-31 12:29:05 +0200 fs r275596 : #i104364#
2009-08-31 12:28:56 +0200 fs r275595 : #i104364#
2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting
2009-08-31 11:41:37 +0200 fs r275592 : #i104649#
2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI
2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option
2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI
2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI
2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option
2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column
2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings
2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked)
2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings
2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data
2009-08-28 11:00:31 +0200 fs r275521 : #i104580#
2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed
2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI
2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents
2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT
2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein
2009-08-27 13:23:07 +0200 fs r275475 : #i103882#
2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble
2009-08-27 11:55:34 +0200 fs r275465 : #i104544#
do not allow re-entrance for impl_ensureControl_nothrow
Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from
the grid control implementation), but to ensure it won't happen, again, I added some safety herein.
2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo
2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo
2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations
2009-08-26 14:18:13 +0200 fs r275422 : #i10000#
2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths
2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver
2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later)
2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource
2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost
2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error
2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException
2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2
2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL
2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL
2009-08-24 14:49:07 +0200 fs r275318 : #i10000#
2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character
2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled
2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns
2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells
2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns
2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells
2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation
2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK
2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming
2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners
2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper
2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting
2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells
2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring:
If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT).
However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE.
2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird
2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from)
2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios
2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come.
2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models
2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f
2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
|
|
|
OCommonBehaviourTabPage::fillControls( _rControlList );
|
2015-01-16 15:29:28 +02:00
|
|
|
m_aMySQLSettings->fillControls( _rControlList );
|
2009-02-16 07:31:09 +00:00
|
|
|
|
2014-08-03 13:44:00 +02:00
|
|
|
_rControlList.push_back(new OSaveValueWrapper<Edit>(m_pUserName));
|
|
|
|
_rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pPasswordRequired));
|
2009-02-16 07:31:09 +00:00
|
|
|
}
|
|
|
|
void MySQLNativePage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList)
|
|
|
|
{
|
CWS-TOOLING: integrate CWS dba32g
2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength
2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed
2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang
2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance
2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control
2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance
2009-09-05 00:11:40 +0200 fs r275835 : #i10000#
2009-09-04 23:25:50 +0200 fs r275834 : #i10000#
2009-09-04 23:23:47 +0200 fs r275833 : #i10000#
2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution
2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57)
2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0
2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore
2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56)
2009-09-02 13:48:12 +0200 fs r275708 : removed useless include
2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi
2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries
2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting
2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack.
2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag
2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required
2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page
2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends
2009-08-31 15:52:34 +0200 fs r275612 : #i104410#
2009-08-31 12:29:05 +0200 fs r275596 : #i104364#
2009-08-31 12:28:56 +0200 fs r275595 : #i104364#
2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting
2009-08-31 11:41:37 +0200 fs r275592 : #i104649#
2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI
2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option
2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI
2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI
2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option
2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column
2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings
2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked)
2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings
2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data
2009-08-28 11:00:31 +0200 fs r275521 : #i104580#
2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed
2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI
2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents
2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT
2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein
2009-08-27 13:23:07 +0200 fs r275475 : #i103882#
2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble
2009-08-27 11:55:34 +0200 fs r275465 : #i104544#
do not allow re-entrance for impl_ensureControl_nothrow
Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from
the grid control implementation), but to ensure it won't happen, again, I added some safety herein.
2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo
2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo
2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations
2009-08-26 14:18:13 +0200 fs r275422 : #i10000#
2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths
2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver
2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later)
2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource
2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost
2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error
2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException
2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2
2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL
2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL
2009-08-24 14:49:07 +0200 fs r275318 : #i10000#
2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character
2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled
2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns
2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells
2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns
2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells
2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation
2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK
2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming
2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners
2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper
2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting
2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells
2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring:
If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT).
However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE.
2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird
2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from)
2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios
2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come.
2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models
2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f
2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
|
|
|
OCommonBehaviourTabPage::fillWindows( _rControlList );
|
2015-01-16 15:29:28 +02:00
|
|
|
m_aMySQLSettings->fillWindows( _rControlList);
|
2009-02-16 07:31:09 +00:00
|
|
|
|
2014-08-03 13:44:00 +02:00
|
|
|
_rControlList.push_back(new ODisableWrapper<FixedText>(m_pSeparator1));
|
|
|
|
_rControlList.push_back(new ODisableWrapper<FixedText>(m_pSeparator2));
|
|
|
|
_rControlList.push_back(new ODisableWrapper<FixedText>(m_pUserNameLabel));
|
2009-02-16 07:31:09 +00:00
|
|
|
}
|
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool MySQLNativePage::FillItemSet( SfxItemSet* _rSet )
|
2009-02-16 07:31:09 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bChangedSomething = OCommonBehaviourTabPage::FillItemSet( _rSet );
|
2009-02-16 07:31:09 +00:00
|
|
|
|
2015-01-16 15:29:28 +02:00
|
|
|
bChangedSomething |= m_aMySQLSettings->FillItemSet( _rSet );
|
2009-02-16 07:31:09 +00:00
|
|
|
|
2014-08-03 13:44:00 +02:00
|
|
|
if ( m_pUserName->IsValueChangedFromSaved() )
|
2009-02-16 07:31:09 +00:00
|
|
|
{
|
2014-08-03 13:44:00 +02:00
|
|
|
_rSet->Put( SfxStringItem( DSID_USER, m_pUserName->GetText() ) );
|
2014-06-10 17:23:12 +02:00
|
|
|
_rSet->Put( SfxStringItem( DSID_PASSWORD, OUString()));
|
2014-03-26 15:34:49 +02:00
|
|
|
bChangedSomething = true;
|
2009-02-16 07:31:09 +00:00
|
|
|
}
|
2014-08-03 13:44:00 +02:00
|
|
|
fillBool(*_rSet,m_pPasswordRequired,DSID_PASSWORDREQUIRED,bChangedSomething);
|
2009-02-16 07:31:09 +00:00
|
|
|
|
|
|
|
return bChangedSomething;
|
|
|
|
}
|
2014-04-17 11:16:55 +02:00
|
|
|
void MySQLNativePage::implInitControls(const SfxItemSet& _rSet, bool _bSaveValue)
|
2009-02-16 07:31:09 +00:00
|
|
|
{
|
|
|
|
// check whether or not the selection is invalid or readonly (invalid implies readonly, but not vice versa)
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bValid, bReadonly;
|
2009-02-16 07:31:09 +00:00
|
|
|
getFlags(_rSet, bValid, bReadonly);
|
|
|
|
|
2015-01-16 15:29:28 +02:00
|
|
|
m_aMySQLSettings->implInitControls( _rSet );
|
CWS-TOOLING: integrate CWS dba32g
2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength
2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed
2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang
2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance
2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control
2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance
2009-09-05 00:11:40 +0200 fs r275835 : #i10000#
2009-09-04 23:25:50 +0200 fs r275834 : #i10000#
2009-09-04 23:23:47 +0200 fs r275833 : #i10000#
2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution
2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57)
2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0
2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore
2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56)
2009-09-02 13:48:12 +0200 fs r275708 : removed useless include
2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi
2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries
2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting
2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack.
2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag
2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required
2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page
2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends
2009-08-31 15:52:34 +0200 fs r275612 : #i104410#
2009-08-31 12:29:05 +0200 fs r275596 : #i104364#
2009-08-31 12:28:56 +0200 fs r275595 : #i104364#
2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting
2009-08-31 11:41:37 +0200 fs r275592 : #i104649#
2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI
2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option
2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI
2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI
2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option
2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column
2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings
2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked)
2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings
2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data
2009-08-28 11:00:31 +0200 fs r275521 : #i104580#
2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed
2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI
2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents
2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT
2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein
2009-08-27 13:23:07 +0200 fs r275475 : #i103882#
2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble
2009-08-27 11:55:34 +0200 fs r275465 : #i104544#
do not allow re-entrance for impl_ensureControl_nothrow
Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from
the grid control implementation), but to ensure it won't happen, again, I added some safety herein.
2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo
2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo
2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations
2009-08-26 14:18:13 +0200 fs r275422 : #i10000#
2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths
2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver
2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later)
2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource
2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost
2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error
2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException
2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2
2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL
2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL
2009-08-24 14:49:07 +0200 fs r275318 : #i10000#
2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character
2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled
2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns
2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells
2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns
2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells
2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation
2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK
2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming
2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners
2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper
2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting
2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells
2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring:
If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT).
However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE.
2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird
2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from)
2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios
2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come.
2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models
2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f
2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
|
|
|
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rSet, pUidItem, SfxStringItem, DSID_USER, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pAllowEmptyPwd, SfxBoolItem, DSID_PASSWORDREQUIRED, true);
|
2009-02-16 07:31:09 +00:00
|
|
|
|
|
|
|
if ( bValid )
|
|
|
|
{
|
2014-08-03 13:44:00 +02:00
|
|
|
m_pUserName->SetText(pUidItem->GetValue());
|
|
|
|
m_pUserName->ClearModifyFlag();
|
|
|
|
m_pPasswordRequired->Check(pAllowEmptyPwd->GetValue());
|
2009-02-16 07:31:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
OCommonBehaviourTabPage::implInitControls(_rSet, _bSaveValue);
|
|
|
|
}
|
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateMySQLJDBC( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<OGeneralSpecialJDBCDetailsPage>::Create( pParent, *_rAttrSet,DSID_MYSQL_PORTNUMBER );
|
2002-11-21 14:27:11 +00:00
|
|
|
}
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateMySQLNATIVE( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2008-03-05 15:59:53 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<MySQLNativePage>::Create( pParent, *_rAttrSet );
|
2008-03-05 15:59:53 +00:00
|
|
|
}
|
2004-08-02 14:45:26 +00:00
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateOracleJDBC( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2002-11-21 14:27:11 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<OGeneralSpecialJDBCDetailsPage>::Create( pParent, *_rAttrSet,DSID_ORACLE_PORTNUMBER, false);
|
2002-11-21 14:27:11 +00:00
|
|
|
}
|
2001-01-26 15:14:21 +00:00
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// OLDAPDetailsPage
|
2014-09-23 11:20:40 +02:00
|
|
|
OLDAPDetailsPage::OLDAPDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs )
|
2014-08-06 22:02:43 +02:00
|
|
|
:OCommonBehaviourTabPage(pParent, "LDAP", "dbaccess/ui/ldappage.ui", _rCoreAttrs, 0)
|
2001-05-23 13:16:42 +00:00
|
|
|
{
|
2014-08-06 22:02:43 +02:00
|
|
|
get(m_pETBaseDN, "baseDNEntry");
|
|
|
|
get(m_pCBUseSSL, "useSSLCheckbutton");
|
|
|
|
get(m_pNFPortNumber, "portNumberSpinbutton");
|
2014-08-15 09:30:32 +01:00
|
|
|
m_pNFPortNumber->SetUseThousandSep(false);
|
2014-08-06 22:02:43 +02:00
|
|
|
get(m_pNFRowCount, "LDAPRowCountspinbutton");
|
|
|
|
|
|
|
|
m_pETBaseDN->SetModifyHdl(getControlModifiedLink());
|
|
|
|
m_pCBUseSSL->SetToggleHdl(getControlModifiedLink());
|
|
|
|
m_pNFPortNumber->SetModifyHdl(getControlModifiedLink());
|
|
|
|
m_pNFRowCount->SetModifyHdl(getControlModifiedLink());
|
2001-05-31 10:37:57 +00:00
|
|
|
|
2014-08-06 22:02:43 +02:00
|
|
|
m_pNFRowCount->SetUseThousandSep(false);
|
2004-03-17 09:51:53 +00:00
|
|
|
m_iNormalPort = 389;
|
|
|
|
m_iSSLPort = 636;
|
2014-08-06 22:02:43 +02:00
|
|
|
m_pCBUseSSL->SetClickHdl(LINK(this, OLDAPDetailsPage,OnCheckBoxClick));
|
2001-05-23 13:16:42 +00:00
|
|
|
}
|
|
|
|
|
2015-03-09 14:29:30 +02:00
|
|
|
OLDAPDetailsPage::~OLDAPDetailsPage()
|
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-03-09 14:29:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OLDAPDetailsPage::dispose()
|
|
|
|
{
|
|
|
|
m_pETBaseDN.clear();
|
|
|
|
m_pCBUseSSL.clear();
|
|
|
|
m_pNFPortNumber.clear();
|
|
|
|
m_pNFRowCount.clear();
|
|
|
|
OCommonBehaviourTabPage::dispose();
|
|
|
|
}
|
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateLDAP( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2001-05-23 13:16:42 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<OLDAPDetailsPage>::Create( pParent, *_rAttrSet );
|
2001-05-23 13:16:42 +00:00
|
|
|
}
|
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool OLDAPDetailsPage::FillItemSet( SfxItemSet* _rSet )
|
2001-05-23 13:16:42 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bChangedSomething = OCommonBehaviourTabPage::FillItemSet(_rSet);
|
2001-05-23 13:16:42 +00:00
|
|
|
|
2014-08-06 22:02:43 +02:00
|
|
|
fillString(*_rSet,m_pETBaseDN,DSID_CONN_LDAP_BASEDN,bChangedSomething);
|
|
|
|
fillInt32(*_rSet,m_pNFPortNumber,DSID_CONN_LDAP_PORTNUMBER,bChangedSomething);
|
|
|
|
fillInt32(*_rSet,m_pNFRowCount,DSID_CONN_LDAP_ROWCOUNT,bChangedSomething);
|
|
|
|
fillBool(*_rSet,m_pCBUseSSL,DSID_CONN_LDAP_USESSL,bChangedSomething);
|
2001-05-23 13:16:42 +00:00
|
|
|
return bChangedSomething;
|
|
|
|
}
|
2004-03-17 09:51:53 +00:00
|
|
|
IMPL_LINK( OLDAPDetailsPage, OnCheckBoxClick, CheckBox*, pCheckBox )
|
|
|
|
{
|
|
|
|
callModifiedHdl();
|
2014-08-06 22:02:43 +02:00
|
|
|
if ( pCheckBox == m_pCBUseSSL)
|
2004-03-17 09:51:53 +00:00
|
|
|
{
|
2014-08-06 22:02:43 +02:00
|
|
|
if ( m_pCBUseSSL->IsChecked() )
|
2004-03-17 09:51:53 +00:00
|
|
|
{
|
2014-08-06 22:02:43 +02:00
|
|
|
m_iNormalPort = static_cast<sal_Int32>(m_pNFPortNumber->GetValue());
|
|
|
|
m_pNFPortNumber->SetValue(m_iSSLPort);
|
2004-03-17 09:51:53 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2014-08-06 22:02:43 +02:00
|
|
|
m_iSSLPort = static_cast<sal_Int32>(m_pNFPortNumber->GetValue());
|
|
|
|
m_pNFPortNumber->SetValue(m_iNormalPort);
|
2004-03-17 09:51:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-17 11:16:55 +02:00
|
|
|
void OLDAPDetailsPage::implInitControls(const SfxItemSet& _rSet, bool _bSaveValue)
|
2001-05-23 13:16:42 +00:00
|
|
|
{
|
|
|
|
// check whether or not the selection is invalid or readonly (invalid implies readonly, but not vice versa)
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bValid, bReadonly;
|
2001-05-23 13:16:42 +00:00
|
|
|
getFlags(_rSet, bValid, bReadonly);
|
|
|
|
|
2014-02-19 21:49:02 +01:00
|
|
|
SFX_ITEMSET_GET(_rSet, pBaseDN, SfxStringItem, DSID_CONN_LDAP_BASEDN, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pUseSSL, SfxBoolItem, DSID_CONN_LDAP_USESSL, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pPortNumber, SfxInt32Item, DSID_CONN_LDAP_PORTNUMBER, true);
|
|
|
|
SFX_ITEMSET_GET(_rSet, pRowCount, SfxInt32Item, DSID_CONN_LDAP_ROWCOUNT, true);
|
2001-05-23 13:16:42 +00:00
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
if ( bValid )
|
2001-05-29 12:11:52 +00:00
|
|
|
{
|
2014-08-06 22:02:43 +02:00
|
|
|
m_pETBaseDN->SetText(pBaseDN->GetValue());
|
|
|
|
m_pNFPortNumber->SetValue(pPortNumber->GetValue());
|
|
|
|
m_pNFRowCount->SetValue(pRowCount->GetValue());
|
|
|
|
m_pCBUseSSL->Check(pUseSSL->GetValue());
|
2001-05-29 12:11:52 +00:00
|
|
|
}
|
2001-05-23 13:16:42 +00:00
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
OCommonBehaviourTabPage::implInitControls(_rSet, _bSaveValue);
|
2001-05-23 13:16:42 +00:00
|
|
|
}
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// OTextDetailsPage
|
2014-09-23 11:20:40 +02:00
|
|
|
OTextDetailsPage::OTextDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs )
|
2014-07-27 13:56:58 +02:00
|
|
|
:OCommonBehaviourTabPage(pParent, "EmptyPage", "dbaccess/ui/emptypage.ui", _rCoreAttrs, 0)
|
2004-10-27 12:03:20 +00:00
|
|
|
{
|
2005-09-23 11:29:50 +00:00
|
|
|
|
2015-04-20 14:00:04 +01:00
|
|
|
m_pTextConnectionHelper = VclPtr<OTextConnectionHelper>::Create( get<VclVBox>("EmptyPage"), TC_EXTENSION | TC_HEADER | TC_SEPARATORS | TC_CHARSET );
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
OTextDetailsPage::~OTextDetailsPage()
|
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-01-16 15:29:28 +02:00
|
|
|
}
|
2005-09-23 11:29:50 +00:00
|
|
|
|
2015-01-16 15:29:28 +02:00
|
|
|
void OTextDetailsPage::dispose()
|
|
|
|
{
|
2015-04-11 17:41:38 +01:00
|
|
|
m_pTextConnectionHelper.disposeAndClear();
|
2015-01-16 15:29:28 +02:00
|
|
|
OCommonBehaviourTabPage::dispose();
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateText( vcl::Window* pParent, const SfxItemSet* _rAttrSet )
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<OTextDetailsPage>::Create( pParent, *_rAttrSet );
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
2004-08-02 14:45:26 +00:00
|
|
|
void OTextDetailsPage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList)
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2004-08-02 14:45:26 +00:00
|
|
|
OCommonBehaviourTabPage::fillControls(_rControlList);
|
2004-10-27 12:03:20 +00:00
|
|
|
m_pTextConnectionHelper->fillControls(_rControlList);
|
|
|
|
|
2004-08-02 14:45:26 +00:00
|
|
|
}
|
|
|
|
void OTextDetailsPage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList)
|
|
|
|
{
|
|
|
|
OCommonBehaviourTabPage::fillWindows(_rControlList);
|
2004-10-27 12:03:20 +00:00
|
|
|
m_pTextConnectionHelper->fillWindows(_rControlList);
|
|
|
|
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
2014-04-17 11:16:55 +02:00
|
|
|
void OTextDetailsPage::implInitControls(const SfxItemSet& _rSet, bool _bSaveValue)
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
|
|
|
// first check whether or not the selection is invalid or readonly (invalid implies readonly, but not vice versa)
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bValid, bReadonly;
|
2001-01-26 15:14:21 +00:00
|
|
|
getFlags(_rSet, bValid, bReadonly);
|
|
|
|
|
2008-03-07 10:22:51 +00:00
|
|
|
m_pTextConnectionHelper->implInitControls(_rSet, bValid);
|
2004-08-02 14:45:26 +00:00
|
|
|
OCommonBehaviourTabPage::implInitControls(_rSet, _bSaveValue);
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool OTextDetailsPage::FillItemSet( SfxItemSet* rSet )
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
bool bChangedSomething = OCommonBehaviourTabPage::FillItemSet(rSet);
|
2014-06-10 17:23:12 +02:00
|
|
|
bChangedSomething = m_pTextConnectionHelper->FillItemSet(*rSet, bChangedSomething);
|
2001-01-26 15:14:21 +00:00
|
|
|
return bChangedSomething;
|
|
|
|
}
|
|
|
|
|
2014-04-17 11:16:55 +02:00
|
|
|
bool OTextDetailsPage::prepareLeave()
|
2001-01-26 15:14:21 +00:00
|
|
|
{
|
2007-05-10 09:25:22 +00:00
|
|
|
return m_pTextConnectionHelper->prepareLeave();
|
2001-01-26 15:14:21 +00:00
|
|
|
}
|
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateGeneratedValuesPage( vcl::Window* _pParent, const SfxItemSet* _rAttrSet )
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<GeneratedValuesPage>::Create( _pParent, *_rAttrSet );
|
2004-08-02 14:45:26 +00:00
|
|
|
}
|
2007-11-01 14:12:32 +00:00
|
|
|
|
2015-04-17 13:51:33 +01:00
|
|
|
VclPtr<SfxTabPage> ODriversSettings::CreateSpecialSettingsPage( vcl::Window* _pParent, const SfxItemSet* _rAttrSet )
|
2004-08-02 14:45:26 +00:00
|
|
|
{
|
2014-06-11 14:34:46 +02:00
|
|
|
OUString eType = ODbDataSourceAdministrationHelper::getDatasourceType( *_rAttrSet );
|
2007-11-01 14:12:32 +00:00
|
|
|
DataSourceMetaData aMetaData( eType );
|
2015-04-17 13:51:33 +01:00
|
|
|
return VclPtr<SpecialSettingsPage>::Create( _pParent, *_rAttrSet, aMetaData );
|
2004-08-02 14:45:26 +00:00
|
|
|
}
|
2001-01-26 15:14:21 +00:00
|
|
|
} // namespace dbaui
|
2010-10-12 15:59:03 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|