summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/adminpages.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-01 21:50:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-08-02 09:45:11 +0200
commit620fff54ca9cd04459cc5d963ef94d4438129fe4 (patch)
tree302a6dc387edf44c582fd659ec3b6603c82f6532 /dbaccess/source/ui/dlg/adminpages.cxx
parent6aaf6c4c5ad096ed11fc524ebe0540ba0a41c053 (diff)
weld OAuthentificationPageSetup
Change-Id: Ib5de669f22abeaae3716918702066ce608910874 Reviewed-on: https://gerrit.libreoffice.org/76830 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/dlg/adminpages.cxx')
-rw-r--r--dbaccess/source/ui/dlg/adminpages.cxx46
1 files changed, 0 insertions, 46 deletions
diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx
index 0a9104692e07..37f5428cadb2 100644
--- a/dbaccess/source/ui/dlg/adminpages.cxx
+++ b/dbaccess/source/ui/dlg/adminpages.cxx
@@ -124,11 +124,6 @@ namespace dbaui
callModifiedHdl(&rCtrl);
}
- IMPL_LINK(OGenericAdministrationPage, OnControlModifiedClick, Button*, rCtrl, void)
- {
- callModifiedHdl(&rCtrl);
- }
-
IMPL_LINK(OGenericAdministrationPage, ControlModifiedCheckBoxHdl, CheckBox&, rCtrl, void)
{
callModifiedHdl(&rCtrl);
@@ -301,47 +296,6 @@ namespace dbaui
}
}
- IMPL_LINK_NOARG(OGenericAdministrationPage, OnTestConnectionClickHdl, Button*, void)
- {
- OSL_ENSURE(m_pAdminDialog,"No Admin dialog set! ->GPF");
- bool bSuccess = false;
- if ( m_pAdminDialog )
- {
- m_pAdminDialog->saveDatasource();
- OGenericAdministrationPage::implInitControls(*m_pItemSetHelper->getOutputSet(), true);
- bool bShowMessage = true;
- try
- {
- std::pair< Reference<XConnection>,bool> aConnectionPair = m_pAdminDialog->createConnection();
- bShowMessage = aConnectionPair.second;
- bSuccess = aConnectionPair.first.is();
- ::comphelper::disposeComponent(aConnectionPair.first);
- }
- catch(Exception&)
- {
- }
- if ( bShowMessage )
- {
- MessageType eImage = MessageType::Info;
- OUString aMessage,sTitle;
- sTitle = DBA_RES(STR_CONNECTION_TEST);
- if ( bSuccess )
- {
- aMessage = DBA_RES(STR_CONNECTION_SUCCESS);
- }
- else
- {
- eImage = MessageType::Error;
- aMessage = DBA_RES(STR_CONNECTION_NO_SUCCESS);
- }
- OSQLMessageBox aMsg(GetFrameWeld(), sTitle, aMessage, MessBoxStyle::Ok, eImage);
- aMsg.run();
- }
- if ( !bSuccess )
- m_pAdminDialog->clearPassword();
- }
- }
-
IMPL_LINK_NOARG(OGenericAdministrationPage, OnTestConnectionButtonClickHdl, weld::Button&, void)
{
OSL_ENSURE(m_pAdminDialog,"No Admin dialog set! ->GPF");