reversed the semantics of the SuppressVersionColumns checkbox

This commit is contained in:
Frank Schönheit 2000-12-11 15:33:15 +00:00
parent 7ceb7cb507
commit b4dd47d913

View file

@ -2,9 +2,9 @@
* *
* $RCSfile: adminpages.cxx,v $ * $RCSfile: adminpages.cxx,v $
* *
* $Revision: 1.22 $ * $Revision: 1.23 $
* *
* last change: $Author: fs $ $Date: 2000-12-07 15:04:40 $ * last change: $Author: fs $ $Date: 2000-12-11 16:33:15 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
@ -86,6 +86,9 @@
#ifndef _SV_MSGBOX_HXX #ifndef _SV_MSGBOX_HXX
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
#endif #endif
#ifndef _SV_WAITOBJ_HXX
#include <vcl/waitobj.hxx>
#endif
#ifndef _DBAUI_DATASOURCEITEMS_HXX_ #ifndef _DBAUI_DATASOURCEITEMS_HXX_
#include "dsitems.hxx" #include "dsitems.hxx"
#endif #endif
@ -1599,7 +1602,7 @@ void OTableSubscriptionPage::implInitControls(const SfxItemSet& _rSet, sal_Bool
m_bInitializingControls = sal_False; m_bInitializingControls = sal_False;
if (!bValid) if (!bValid)
m_aSuppressVersionColumns.Check(bSuppressVersionColumns); m_aSuppressVersionColumns.Check(!bSuppressVersionColumns);
if (_bSaveValue) if (_bSaveValue)
m_aSuppressVersionColumns.SaveValue(); m_aSuppressVersionColumns.SaveValue();
@ -1671,6 +1674,7 @@ void OTableSubscriptionPage::ActivatePage(const SfxItemSet& _rSet)
SQLExceptionInfo aErrorInfo; SQLExceptionInfo aErrorInfo;
try try
{ {
WaitObject aWaitCursor(this);
m_xCurrentConnection = m_aTablesList.UpdateTableList(sURL, aConnectionParams); m_xCurrentConnection = m_aTablesList.UpdateTableList(sURL, aConnectionParams);
} }
catch (SQLContext& e) { aErrorInfo = SQLExceptionInfo(e); } catch (SQLContext& e) { aErrorInfo = SQLExceptionInfo(e); }
@ -1788,7 +1792,7 @@ sal_Bool OTableSubscriptionPage::FillItemSet( SfxItemSet& _rCoreAttrs )
_rCoreAttrs.Put( OStringListItem(DSID_TABLEFILTER, aTableFilter) ); _rCoreAttrs.Put( OStringListItem(DSID_TABLEFILTER, aTableFilter) );
if (m_aSuppressVersionColumns.IsChecked() != m_aSuppressVersionColumns.GetSavedValue()) if (m_aSuppressVersionColumns.IsChecked() != m_aSuppressVersionColumns.GetSavedValue())
_rCoreAttrs.Put( SfxBoolItem(DSID_SUPPRESSVERSIONCL, m_aSuppressVersionColumns.IsChecked()) ); _rCoreAttrs.Put( SfxBoolItem(DSID_SUPPRESSVERSIONCL, !m_aSuppressVersionColumns.IsChecked()) );
return sal_True; return sal_True;
} }
@ -1825,6 +1829,9 @@ IMPL_LINK( OTableSubscriptionPage, OnRadioButtonClicked, Button*, pButton )
/************************************************************************* /*************************************************************************
* history: * history:
* $Log: not supported by cvs2svn $ * $Log: not supported by cvs2svn $
* Revision 1.22 2000/12/07 15:04:40 fs
* #81490# reset the password when changing the user
*
* Revision 1.21 2000/12/07 14:27:53 fs * Revision 1.21 2000/12/07 14:27:53 fs
* #80939# clear the tables list when cancelling the password dialog * #80939# clear the tables list when cancelling the password dialog
* *