From ca183c40f7703f433abfe5d667356f22d1a1bbf0 Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Mon, 1 Jul 2002 15:42:35 +0000 Subject: #100125# PasteRTF: use InsertText(XTransferable) for EditEngine format --- sc/source/ui/view/viewfun4.cxx | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx index 5692756d412a..cb01e99e555a 100644 --- a/sc/source/ui/view/viewfun4.cxx +++ b/sc/source/ui/view/viewfun4.cxx @@ -2,9 +2,9 @@ * * $RCSfile: viewfun4.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: nn $ $Date: 2001-10-26 18:19:14 $ + * last change: $Author: nn $ $Date: 2002-07-01 16:42:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -150,15 +150,8 @@ void ScViewFunc::PasteRTF( USHORT nStartCol, USHORT nStartRow, EditView aEditView( pEngine, &aWin ); aEditView.SetOutputArea(Rectangle(0,0,100000,100000)); - if (bPasteIsDrop) - { - //! paste drag server content into EditEngine - //DropEvent aDropEvt; - //if (aEditView.QueryDrop( aDropEvt )) - // aEditView.Drop( aDropEvt ); - } - else - aEditView.PasteSpecial(); + // same method now for clipboard or drag&drop + aEditView.InsertText( rxTransferable, TRUE ); } ULONG nParCnt = pEngine->GetParagraphCount(); -- cgit