edtdd.cxx (efeef26f) edtdd.cxx (69a74367)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 256 unchanged lines hidden (view full) ---

265 SW_MOD()->pDragDrop->SetCleanUp( sal_False );
266
267 return nRet;
268}
269
270
271sal_uInt16 SwEditWin::GetDropDestination( const Point& rPixPnt, SdrObject ** ppObj )
272{
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 256 unchanged lines hidden (view full) ---

265 SW_MOD()->pDragDrop->SetCleanUp( sal_False );
266
267 return nRet;
268}
269
270
271sal_uInt16 SwEditWin::GetDropDestination( const Point& rPixPnt, SdrObject ** ppObj )
272{
273 SwWrtShell &rSh = rView.GetWrtShell();
274 const Point aDocPt( PixelToLogic( rPixPnt ) );
275 if( rSh.ChgCurrPam( aDocPt ) || rSh.IsOverReadOnlyPos( aDocPt ) )
276 return 0;
273 SwWrtShell &rSh = rView.GetWrtShell();
274 const Point aDocPt( PixelToLogic( rPixPnt ) );
275 if( rSh.ChgCurrPam( aDocPt )
276 || rSh.IsOverReadOnlyPos( aDocPt )
277 || rSh.DocPtInsideInputFld( aDocPt ) )
278 return 0;
277
279
278 SdrObject *pObj = NULL;
279 const ObjCntType eType = rSh.GetObjCntType( aDocPt, pObj );
280 SdrObject *pObj = NULL;
281 const ObjCntType eType = rSh.GetObjCntType( aDocPt, pObj );
280
281 //Drop auf OutlinerView (TextEdit im Drawing) soll diese selbst entscheiden!
282 if( pObj )
283 {
284 OutlinerView* pOLV = rSh.GetDrawView()->GetTextEditOutlinerView();
285 if ( pOLV )
286 {
287 Rectangle aRect( pOLV->GetOutputArea() );

--- 236 unchanged lines hidden ---
282
283 //Drop auf OutlinerView (TextEdit im Drawing) soll diese selbst entscheiden!
284 if( pObj )
285 {
286 OutlinerView* pOLV = rSh.GetDrawView()->GetTextEditOutlinerView();
287 if ( pOLV )
288 {
289 Rectangle aRect( pOLV->GetOutputArea() );

--- 236 unchanged lines hidden ---