diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-10-17 11:33:49 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-10-17 11:33:49 +0000 |
commit | 65514b5285fb6be798fb11c8b431d10b306ae3a1 (patch) | |
tree | 2f5bb46f3b83047f52f34271dbf7501624654ad8 /svx | |
parent | f864580279feecb6426cd5425a8f305aa3fd0f28 (diff) |
#92924#: gcc-3.0.1 needs lvalue
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/editeng/impedit.cxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/svx/source/editeng/impedit.cxx b/svx/source/editeng/impedit.cxx index f213e6d25124..1d82a2009285 100644 --- a/svx/source/editeng/impedit.cxx +++ b/svx/source/editeng/impedit.cxx @@ -2,9 +2,9 @@ * * $RCSfile: impedit.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: mt $ $Date: 2001-08-20 12:30:55 $ + * last change: $Author: hr $ $Date: 2001-10-17 12:33:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -976,14 +976,16 @@ sal_Bool ImpEditView::PostKeyEvent( const KeyEvent& rKeyEvent ) { if ( !bReadOnly ) { - CutCopy( GetWindow()->GetClipboard(), sal_True ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + CutCopy( aClipBoard, sal_True ); bDone = sal_True; } } break; case KEYFUNC_COPY: { - CutCopy( GetWindow()->GetClipboard(), sal_False ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + CutCopy( aClipBoard, sal_False ); bDone = TRUE; } break; @@ -992,7 +994,8 @@ sal_Bool ImpEditView::PostKeyEvent( const KeyEvent& rKeyEvent ) if ( !bReadOnly && IsPasteEnabled() ) { pEditEngine->pImpEditEngine->UndoActionStart( EDITUNDO_PASTE ); - Paste( GetWindow()->GetClipboard(), pEditEngine->pImpEditEngine->GetStatus().AllowPasteSpecial() ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + Paste( aClipBoard, pEditEngine->pImpEditEngine->GetStatus().AllowPasteSpecial() ); pEditEngine->pImpEditEngine->UndoActionEnd( EDITUNDO_PASTE ); bDone = sal_True; } @@ -1023,11 +1026,13 @@ sal_Bool ImpEditView::MouseButtonUp( const MouseEvent& rMouseEvent ) if ( rMouseEvent.IsMiddle() && !bReadOnly && ( GetWindow()->GetSettings().GetMouseSettings().GetMiddleButtonAction() == MOUSE_MIDDLE_PASTESELECTION ) ) { - Paste( GetWindow()->GetSelection() ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + Paste( aClipBoard ); } else if ( rMouseEvent.IsLeft() && GetEditSelection().HasRange() ) { - CutCopy( GetWindow()->GetSelection(), FALSE ); + Reference<com::sun::star::datatransfer::clipboard::XClipboard> aClipBoard(GetWindow()->GetClipboard()); + CutCopy( aClipBoard, FALSE ); } return pEditEngine->pImpEditEngine->MouseButtonUp( rMouseEvent, GetEditViewPtr() ); |