User: hr Date: 05/09/23 05:43:30 Modified: /dba/dbaccess/source/ui/querydesign/ QueryTabWinUndoAct.cxx
Log: INTEGRATION: CWS dba201b (1.8.146); FILE MERGED 2005/09/21 10:11:49 oj 1.8.146.2: RESYNC: (1.8-1.9); FILE MERGED 2005/07/06 10:36:26 oj 1.8.146.1: #123168# check if we are in undo mode File Changes: Directory: /dba/dbaccess/source/ui/querydesign/ =============================================== File [changed]: QueryTabWinUndoAct.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx?r1=1.9&r2=1.10 Delta lines: +6 -0 ------------------- --- QueryTabWinUndoAct.cxx 8 Sep 2005 16:26:17 -0000 1.9 +++ QueryTabWinUndoAct.cxx 23 Sep 2005 12:43:27 -0000 1.10 @@ -111,6 +111,7 @@ //------------------------------------------------------------------------------ void OTabFieldCellModifiedUndoAct::Undo() { + pOwner->EnterUndoMode(); OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!"); OSL_ENSURE(m_nColumnPostion < pOwner->GetColumnCount(),"Position outside the column count!"); if ( m_nColumnPostion != BROWSER_INVALIDID ) @@ -120,11 +121,13 @@ pOwner->SetCellContents(m_nCellIndex, nColumnId, m_strNextCellContents); m_strNextCellContents = strNext; } + pOwner->LeaveUndoMode(); } //------------------------------------------------------------------------------ void OTabFieldSizedUndoAct::Undo() { + pOwner->EnterUndoMode(); OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!"); if ( m_nColumnPostion != BROWSER_INVALIDID ) { @@ -133,10 +136,12 @@ pOwner->SetColWidth(nColumnId, m_nNextWidth); m_nNextWidth = nNextWidth; } + pOwner->LeaveUndoMode(); } // ----------------------------------------------------------------------------- void OTabFieldMovedUndoAct::Undo() { + pOwner->EnterUndoMode(); OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!"); if ( m_nColumnPostion != BROWSER_INVALIDID ) { @@ -146,6 +151,7 @@ pOwner->ColumnMoved(nId,FALSE); m_nColumnPostion = nOldPos; } + pOwner->LeaveUndoMode(); } // ----------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
