diff options
author | jp <jp@openoffice.org> | 2001-09-11 13:57:42 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2001-09-11 13:57:42 +0000 |
commit | 64708a5251e418e86b30ad6a801ad275b7e10977 (patch) | |
tree | fce772426d152ac37da195616ffe5c3093849ce2 /sw/source/ui/wrtsh/wrtundo.cxx | |
parent | ad770812336bc54167d6a2c776213a35e812451c (diff) |
Task #91678#: 'selection clipbord' implemented
Diffstat (limited to 'sw/source/ui/wrtsh/wrtundo.cxx')
-rw-r--r-- | sw/source/ui/wrtsh/wrtundo.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sw/source/ui/wrtsh/wrtundo.cxx b/sw/source/ui/wrtsh/wrtundo.cxx index 1fd117e95021..df2546bb0ad0 100644 --- a/sw/source/ui/wrtsh/wrtundo.cxx +++ b/sw/source/ui/wrtsh/wrtundo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: wrtundo.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: tl $ $Date: 2001-04-09 07:28:55 $ + * last change: $Author: jp $ $Date: 2001-09-11 14:57:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,6 +83,9 @@ #ifndef _SWUNDO_HXX #include <swundo.hxx> // fuer Undo-Ids #endif +#ifndef _SWDTFLVR_HXX +#include <swdtflvr.hxx> +#endif #ifndef _WRTSH_HRC #include <wrtsh.hrc> @@ -115,6 +118,7 @@ void SwWrtShell::Do( DoType eDoType, USHORT nCnt ) } EndAllAction(); + BOOL bCreateXSelection = FALSE; const FASTBOOL bFrmSelected = IsFrmSelected() || IsObjSelected(); if ( IsSelection() ) { @@ -125,15 +129,23 @@ void SwWrtShell::Do( DoType eDoType, USHORT nCnt ) // bei Cursor setzen fnKillSel = &SwWrtShell::ResetSelect; fnSetCrsr = &SwWrtShell::SetCrsrKillSel; + bCreateXSelection = TRUE; } else if ( bFrmSelected ) + { EnterSelFrmMode(); + bCreateXSelection = TRUE; + } else if( (CNT_GRF | CNT_OLE ) & GetCntType() ) { SelectObj( GetCharRect().Pos() ); EnterSelFrmMode(); + bCreateXSelection = TRUE; } + if( bCreateXSelection ) + SwTransferable::CreateSelection( *this ); + // Bug 32918: nach loeschen der Numerierung bleibt die Obj. Leiste stehen // Warum wird hier nicht immer ein CallChgLink gerufen? CallChgLnk(); @@ -213,6 +225,9 @@ String SwWrtShell::GetRepeatString() const /************************************************************************* $Log: not supported by cvs2svn $ + Revision 1.2 2001/04/09 07:28:55 tl + Undo/Redo controller modifications + Revision 1.1.1.1 2000/09/18 17:14:53 hr initial import |