Lines Matching refs:pWrtShell

210 	: pWrtShell( &rSh ),  in SwTransferable()
252 pWrtShell = 0; in ~SwTransferable()
394 if( !HasFormat( nFormat ) || ( pClpDocFac == NULL && pWrtShell == NULL ) ) in GetData()
399 SelectionType nSelectionType = pWrtShell->GetSelectionType(); in GetData()
404 const bool bPending(pWrtShell->BasicActionPend()); in GetData()
410 if( !pWrtShell->GetDrawObjGraphic( FORMAT_GDIMETAFILE, *pClpGraphic )) in GetData()
413 if( !pWrtShell->GetDrawObjGraphic( FORMAT_BITMAP, *pClpBitmap )) in GetData()
418 if( pWrtShell->GetURLFromButton( sURL, sDesc ) ) in GetData()
429 pWrtShell->Copy( pTmpDoc ); in GetData()
437 if( nSelectionType & nsSelectionType::SEL_TXT && !pWrtShell->HasMark() ) in GetData()
444 pWrtShell->GetView().GetDocShell() && in GetData()
445 !pWrtShell->GetView().GetDocShell()->IsReadOnly(); in GetData()
446 if( pWrtShell->GetContentAtPos( aPos, aCntntAtPos, bSelect ) ) in GetData()
453 pWrtShell->SelectTxtAttr( RES_TXTATR_INETFMT ); in GetData()
456 if( pWrtShell->IsFrmSelected() ) in GetData()
458 SfxItemSet aSet( pWrtShell->GetAttrPool(), RES_URL, RES_URL ); in GetData()
459 pWrtShell->GetFlyFrmAttr( aSet ); in GetData()
756 if(!pWrtShell) in DeleteSelection()
759 const int nSelection = pWrtShell->GetSelectionType(); in DeleteSelection()
760 pWrtShell->StartUndo( UNDO_DELETE ); in DeleteSelection()
762 pWrtShell->IntelligentCut( nSelection ); in DeleteSelection()
763 pWrtShell->DelRight(); in DeleteSelection()
764 pWrtShell->EndUndo( UNDO_DELETE ); in DeleteSelection()
772 if(!pWrtShell) in PrepareForCopy()
776 const int nSelection = pWrtShell->GetSelectionType(); in PrepareForCopy()
780 if( !pWrtShell->GetDrawObjGraphic( FORMAT_GDIMETAFILE, *pClpGraphic )) in PrepareForCopy()
783 if( !pWrtShell->GetDrawObjGraphic( FORMAT_BITMAP, *pClpBitmap )) in PrepareForCopy()
788 pWrtShell->Copy( pDoc ); in PrepareForCopy()
797 const Graphic* pGrf = pWrtShell->GetGraphic(); in PrepareForCopy()
806 pWrtShell->GetGrfNms( &sGrfNm, 0 ); in PrepareForCopy()
814 pWrtShell->Copy( pDoc ); in PrepareForCopy()
820 … aObjDesc.maSize = OutputDevice::LogicToLogic( pWrtShell->GetObjSize(), MAP_TWIP, MAP_100TH_MM ); in PrepareForCopy()
829 else if ( pWrtShell->IsSelection() || pWrtShell->IsFrmSelected() || in PrepareForCopy()
830 pWrtShell->IsObjSelected() ) in PrepareForCopy()
833 if( pWrtShell->ShouldWait() ) in PrepareForCopy()
834 pWait = new SwWait( *pWrtShell->GetView().GetDocShell(), true ); in PrepareForCopy()
842 if( pWrtShell->IsAddMode() && pWrtShell->SwCrsrShell::HasSelection() ) in PrepareForCopy()
843 pWrtShell->CreateCrsr(); in PrepareForCopy()
848 pWrtShell->Copy( pTmpDoc ); in PrepareForCopy()
874 if( pWrtShell->IsObjSelected() ) in PrepareForCopy()
879 if (pWrtShell->IntelligentCut(nSelection, sal_False) != SwWrtShell::NO_WORD) in PrepareForCopy()
883 int bDDELink = pWrtShell->IsSelection(); in PrepareForCopy()
887 bDDELink = pWrtShell->HasWholeTabSelection(); in PrepareForCopy()
895 if( !pWrtShell->IsObjSelected() ) in PrepareForCopy()
900 if( pWrtShell->IsSelection() ) in PrepareForCopy()
915 if( !pWrtShell->GetDrawObjGraphic( FORMAT_GDIMETAFILE, *pClpGraphic )) in PrepareForCopy()
918 if( !pWrtShell->GetDrawObjGraphic( FORMAT_BITMAP, *pClpBitmap )) in PrepareForCopy()
923 if( pWrtShell->GetURLFromButton( sURL, sDesc ) ) in PrepareForCopy()
939 0 != ( pDShell = pWrtShell->GetDoc()->GetDocShell()) && in PrepareForCopy()
943 refDdeLink = new SwTrnsfrDdeLink( *this, *pWrtShell ); in PrepareForCopy()
961 if( pWrtShell->IsFrmSelected() ) in PrepareForCopy()
963 SfxItemSet aSet( pWrtShell->GetAttrPool(), RES_URL, RES_URL ); in PrepareForCopy()
964 pWrtShell->GetFlyFrmAttr( aSet ); in PrepareForCopy()
988 CopyToClipboard( &pWrtShell->GetView().GetEditWin() ); in Copy()
997 if(!pWrtShell) in CalculateAndCopy()
999 SwWait aWait( *pWrtShell->GetView().GetDocShell(), true ); in CalculateAndCopy()
1001 String aStr( pWrtShell->Calculate() ); in CalculateAndCopy()
1005 pWrtShell->Copy(pDoc, & aStr); in CalculateAndCopy()
1009 CopyToClipboard( &pWrtShell->GetView().GetEditWin() ); in CalculateAndCopy()
1019 if(!pWrtShell) in CopyGlossary()
1021 SwWait aWait( *pWrtShell->GetView().GetDocShell(), true ); in CopyGlossary()
1059 CopyToClipboard( &pWrtShell->GetView().GetEditWin() ); in CopyGlossary()
3072 if(!pWrtShell) in SetDataForDragAndDrop()
3075 const int nSelection = pWrtShell->GetSelectionType(); in SetDataForDragAndDrop()
3080 const Graphic* pGrf = pWrtShell->GetGraphic(); in SetDataForDragAndDrop()
3089 pWrtShell->GetGrfNms( &sGrfNm, 0 ); in SetDataForDragAndDrop()
3100 else if ( pWrtShell->IsSelection() || pWrtShell->IsFrmSelected() || in SetDataForDragAndDrop()
3101 pWrtShell->IsObjSelected() ) in SetDataForDragAndDrop()
3103 if( pWrtShell->IsObjSelected() ) in SetDataForDragAndDrop()
3109 pWrtShell->IntelligentCut( nSelection, sal_False )) in SetDataForDragAndDrop()
3121 if( !pWrtShell->IsObjSelected() ) in SetDataForDragAndDrop()
3126 if( pWrtShell->IsSelection() ) in SetDataForDragAndDrop()
3141 if( !pWrtShell->GetDrawObjGraphic( FORMAT_GDIMETAFILE, *pClpGraphic )) in SetDataForDragAndDrop()
3144 if( !pWrtShell->GetDrawObjGraphic( FORMAT_BITMAP, *pClpBitmap )) in SetDataForDragAndDrop()
3149 if( pWrtShell->GetURLFromButton( sURL, sDesc ) ) in SetDataForDragAndDrop()
3171 else if( nSelection & nsSelectionType::SEL_TXT && !pWrtShell->HasMark() ) in SetDataForDragAndDrop()
3177 if( pWrtShell->GetContentAtPos( aPos, aCntntAtPos ) ) in SetDataForDragAndDrop()
3189 if( pWrtShell->IsFrmSelected() ) in SetDataForDragAndDrop()
3191 SfxItemSet aSet( pWrtShell->GetAttrPool(), RES_URL, RES_URL ); in SetDataForDragAndDrop()
3192 pWrtShell->GetFlyFrmAttr( aSet ); in SetDataForDragAndDrop()
3211 if(!pWrtShell) in StartDrag()
3213 bOldIdle = pWrtShell->GetViewOptions()->IsIdle(); in StartDrag()
3216 ((SwViewOption *)pWrtShell->GetViewOptions())->SetIdle( sal_False ); in StartDrag()
3218 if( pWrtShell->IsSelFrmMode() ) in StartDrag()
3219 pWrtShell->ShowCrsr(); in StartDrag()
3226 SwDocShell* pDShell = pWrtShell->GetView().GetDocShell(); in StartDrag()
3227 if( ( pDShell && pDShell->IsReadOnly() ) || pWrtShell->HasReadonlySel() ) in StartDrag()
3243 pWrtShell->StartAllAction(); in DragFinished()
3244 pWrtShell->StartUndo( UNDO_UI_DRAG_AND_MOVE ); in DragFinished()
3245 if ( pWrtShell->IsTableMode() ) in DragFinished()
3246 pWrtShell->DeleteTblSel(); in DragFinished()
3249 if ( !(pWrtShell->IsSelFrmMode() || pWrtShell->IsObjSelected()) ) in DragFinished()
3251 pWrtShell->IntelligentCut( pWrtShell->GetSelectionType(), sal_True ); in DragFinished()
3252 pWrtShell->DelRight(); in DragFinished()
3254 pWrtShell->EndUndo( UNDO_UI_DRAG_AND_MOVE ); in DragFinished()
3255 pWrtShell->EndAllAction(); in DragFinished()
3259 const int nSelection = pWrtShell->GetSelectionType(); in DragFinished()
3263 pWrtShell->EnterSelFrmMode(); in DragFinished()
3267 pWrtShell->GetView().GetEditWin().DragFinished(); in DragFinished()
3269 if( pWrtShell->IsSelFrmMode() ) in DragFinished()
3270 pWrtShell->HideCrsr(); in DragFinished()
3272 pWrtShell->ShowCrsr(); in DragFinished()
3282 ((SwViewOption *)pWrtShell->GetViewOptions())->SetIdle( bOldIdle ); in DragFinished()
3643 ((!pMod->pXSelection->pWrtShell) || (pMod->pXSelection->pWrtShell == &rSh)) && in ClearSelection()