summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-12-12 15:37:20 +0000
committerOliver Specht <os@openoffice.org>2002-12-12 15:37:20 +0000
commita509b9e81741f48ad5be0bb8db1dd35a6f9d2d66 (patch)
treeeae9c52f4e2422b44aafb9977c43c32ffb168b9e /sw
parentd0d6fb90aaa72db2729fbf34c323b8dffecd3615 (diff)
#106222# Request::Done() calls added
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/shells/basesh.cxx5
-rw-r--r--sw/source/ui/shells/txtcrsr.cxx8
-rw-r--r--sw/source/ui/uiview/view2.cxx29
3 files changed, 16 insertions, 26 deletions
diff --git a/sw/source/ui/shells/basesh.cxx b/sw/source/ui/shells/basesh.cxx
index 0ad5d38a5300..c39f8c84ac0d 100644
--- a/sw/source/ui/shells/basesh.cxx
+++ b/sw/source/ui/shells/basesh.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: basesh.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: os $ $Date: 2002-10-09 11:31:40 $
+ * last change: $Author: os $ $Date: 2002-12-12 16:37:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -449,6 +449,7 @@ void SwBaseShell::ExecDelete(SfxRequest &rReq)
DBG_ERROR("falscher Dispatcher");
return;
}
+ rReq.Done();
}
/*--------------------------------------------------------------------
diff --git a/sw/source/ui/shells/txtcrsr.cxx b/sw/source/ui/shells/txtcrsr.cxx
index 1846f744b868..bcec59355d91 100644
--- a/sw/source/ui/shells/txtcrsr.cxx
+++ b/sw/source/ui/shells/txtcrsr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtcrsr.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: fme $ $Date: 2002-12-02 10:29:56 $
+ * last change: $Author: os $ $Date: 2002-12-12 16:36:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -227,6 +227,7 @@ void SwTextShell::ExecMovePage(SfxRequest &rReq)
case FN_END_OF_PAGE: rSh.EndPg ( FN_END_OF_PAGE_SEL == nSlot ); break;
default: ASSERT(FALSE, falscher Dispatcher); return;
}
+ rReq.Done();
}
@@ -243,6 +244,7 @@ void SwTextShell::ExecMoveCol(SfxRequest &rReq)
case FN_END_OF_PREV_COLUMN: rSh.EndOfPrevColumn ( FALSE ); break;
default: ASSERT(FALSE, falscher Dispatcher); return;
}
+ rReq.Done();
}
void SwTextShell::ExecMoveLingu(SfxRequest &rReq)
@@ -285,6 +287,7 @@ void SwTextShell::ExecMoveLingu(SfxRequest &rReq)
break;
default: ASSERT(FALSE, falscher Dispatcher); return;
}
+ rReq.Done();
}
void SwTextShell::ExecMoveMisc(SfxRequest &rReq)
@@ -376,6 +379,7 @@ void SwTextShell::ExecMoveMisc(SfxRequest &rReq)
if( bSetRetVal )
rReq.SetReturnValue(SfxBoolItem( nSlot, bRet ));
+ rReq.Done();
}
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx
index 176aa30e5079..38dd92366721 100644
--- a/sw/source/ui/uiview/view2.cxx
+++ b/sw/source/ui/uiview/view2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: view2.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: mba $ $Date: 2002-11-26 09:12:50 $
+ * last change: $Author: os $ $Date: 2002-12-12 16:37:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -332,6 +332,7 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
USHORT nSlot = rReq.GetSlot();
const SfxItemSet* pArgs = rReq.GetArgs();
const SfxPoolItem* pItem;
+ BOOL bIgnore = FALSE;
switch( nSlot )
{
case SID_CREATE_SW_DRAWVIEW:
@@ -377,7 +378,6 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
USHORT nOn = ((const SfxBoolItem*)pItem)->GetValue() ? REDLINE_ON : 0;
USHORT nMode = pWrtShell->GetRedlineMode();
pWrtShell->SetRedlineMode( (nMode & ~REDLINE_ON) | nOn);
- rReq.Done();
}
}
break;
@@ -410,10 +410,9 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
USHORT nMode = pWrtShell->GetRedlineMode();
pWrtShell->SetRedlineMode( (nMode & ~REDLINE_ON) | nOn);
rReq.AppendItem( SfxBoolItem( FN_REDLINE_PROTECT, ((nMode&REDLINE_ON)==0) ) );
- rReq.Done();
}
else
- rReq.Ignore();
+ bIgnore = TRUE;
}
break;
case FN_REDLINE_SHOW:
@@ -427,7 +426,6 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
nMode |= REDLINE_SHOW_DELETE;
pWrtShell->SetRedlineMode( nMode );
- rReq.Done();
}
break;
case FN_REDLINE_ACCEPT:
@@ -474,18 +472,15 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
break;
case FN_ESCAPE:
{
- BOOL bDone = FALSE;
if ( pWrtShell->HasDrawView() && pWrtShell->GetDrawView()->IsDragObj() )
{
pWrtShell->BreakDrag();
pWrtShell->EnterSelFrmMode();
- bDone = TRUE;
}
else if ( pWrtShell->IsDrawCreate() )
{
GetDrawFuncPtr()->BreakCreate();
AttrChangedNotify(pWrtShell); // ggf Shellwechsel...
- bDone = TRUE;
}
else if ( pWrtShell->HasSelection() || IsDrawMode() )
{
@@ -507,13 +502,10 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
pWrtShell->EnterStdMode();
AttrChangedNotify(pWrtShell); // ggf Shellwechsel...
}
-
- bDone = TRUE;
}
else if ( GetEditWin().GetApplyTemplate() )
{
GetEditWin().SetApplyTemplate(SwApplyTemplate());
- bDone = TRUE;
}
else if( ((SfxObjectShell*)GetDocShell())->GetInPlaceObject() &&
((SfxObjectShell*)GetDocShell())->GetInPlaceObject()->GetIPClient() )
@@ -521,12 +513,10 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
ErrCode nErr = GetDocShell()->DoInPlaceActivate( FALSE );
if ( nErr )
ErrorHandler::HandleError( nErr );
- bDone = TRUE;
}
else if ( GetEditWin().IsChainMode() )
{
GetEditWin().SetChainMode( FALSE );
- bDone = TRUE;
}
else if( pWrtShell->GetFlyFrmFmt() )
{
@@ -536,19 +526,13 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
pWrtShell->HideCrsr();
pWrtShell->EnterSelFrmMode();
}
-
- bDone = TRUE;
}
else
{
SfxBoolItem aItem( SID_WIN_FULLSCREEN, FALSE );
GetViewFrame()->GetDispatcher()->Execute( SID_WIN_FULLSCREEN, SFX_CALLMODE_RECORD, &aItem, 0L );
+ bIgnore = TRUE;
}
-
- if ( bDone )
- rReq.Done();
- else
- rReq.Ignore();
}
break;
case SID_ATTR_BORDER_INNER:
@@ -767,13 +751,14 @@ void __EXPORT SwView::Execute(SfxRequest &rReq)
const SwDBData& rData = GetWrtShell().GetDBDesc();
SW_MOD()->ShowDBObj(*this, rData, FALSE);
}
- rReq.Done();
}
break;
default:
ASSERT(!this, falscher Dispatcher);
return;
}
+ if(!bIgnore)
+ rReq.Done();
}
/*--------------------------------------------------------------------