Tag: cws_src680_warnings01 User: sb Date: 06/05/23 17:01:13 Modified: /dba/dbaccess/source/ui/relationdesign/ RelationTableView.cxx
Log: RESYNC: (1.20-1.21); FILE MERGED File Changes: Directory: /dba/dbaccess/source/ui/relationdesign/ ================================================== File [changed]: RelationTableView.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/relationdesign/RelationTableView.cxx?r1=1.20.72.1&r2=1.20.72.2 Delta lines: +13 -4 -------------------- --- RelationTableView.cxx 24 Mar 2006 15:36:29 -0000 1.20.72.1 +++ RelationTableView.cxx 24 May 2006 00:01:10 -0000 1.20.72.2 @@ -122,7 +122,12 @@ #ifndef DBACCESS_JACCESS_HXX #include "JAccess.hxx" #endif +#ifndef _UNDO_HXX +#include <svtools/undo.hxx> +#endif +#ifndef _COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEEVENTID_HPP_ #include <com/sun/star/accessibility/AccessibleEventId.hpp> +#endif using namespace dbaui; using namespace ::dbtools; @@ -208,7 +213,7 @@ ::rtl::OUString strTabExistenceTest = pTabConnData->GetSourceWinName(); sal_Bool bInvalid = ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); strTabExistenceTest = pTabConnData->GetDestWinName(); - bInvalid |= ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); + bInvalid = bInvalid || ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); if (bInvalid) { // nein -> Pech gehabt, die Connection faellt weg @@ -473,8 +478,12 @@ OSQLMessageBox aDlg(this,ModuleRes(STR_QUERY_REL_DELETE_WINDOW),String(),WB_YES_NO|WB_DEF_YES,OSQLMessageBox::Warning); if(aDlg.Execute() == RET_YES) { + m_pView->getController()->getUndoMgr()->Clear(); OJoinTableView::RemoveTabWin( pTabWin ); + m_pView->getController()->InvalidateFeature(SID_RELATION_ADD_RELATION); + m_pView->getController()->InvalidateFeature(ID_BROWSER_UNDO); + m_pView->getController()->InvalidateFeature(ID_BROWSER_REDO); } } // ----------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
