Lines Matching refs:pSh
177 *pSh; in InsertEnv() local
189 pSh = pNewView->GetWrtShellPtr(); in InsertEnv()
199 ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_JAKETADRESS); in InsertEnv()
200 ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_SENDADRESS); in InsertEnv()
212 SfxPrinter* pTempPrinter = pSh->getIDocumentDeviceAccess()->getPrinter( true ); in InsertEnv()
223 IDocumentDeviceAccess* pIDDA = pSh->getIDocumentDeviceAccess(); in InsertEnv()
270 … aItem.SetValue((sal_uInt8)pSh->getIDocumentDeviceAccess()->getPrinter(true)->GetPaperBin()); in InsertEnv()
274 SwWrtShell *pTmp = nMode == ENV_INSERT ? pOldSh : pSh; in InsertEnv()
288 pSh = pOldSh; in InsertEnv()
291 pSh->EnterStdMode(); in InsertEnv()
293 pSh->StartUndo(UNDO_UI_INSERT_ENVELOPE, NULL); in InsertEnv()
294 pSh->StartAllAction(); in InsertEnv()
295 pSh->SttEndDoc(sal_True); in InsertEnv()
300 pFollow = pSh->GetPageDesc(pSh->GetCurPageDesc()).GetFollow(); in InsertEnv()
303 if ( !pSh->SttNxtPg(sal_True) ) in InsertEnv()
304 pSh->EndPg(sal_True); in InsertEnv()
305 pSh->DelRight(); in InsertEnv()
307 if( pSh->GotoFly( rSendMark ) ) in InsertEnv()
309 pSh->EnterSelFrmMode(); in InsertEnv()
310 pSh->DelRight(); in InsertEnv()
312 if ( pSh->GotoFly( rAddrMark ) ) in InsertEnv()
314 pSh->EnterSelFrmMode(); in InsertEnv()
315 pSh->DelRight(); in InsertEnv()
317 pSh->SttEndDoc(sal_True); in InsertEnv()
321 pFollow = &pSh->GetPageDesc(pSh->GetCurPageDesc()); in InsertEnv()
324 if ( pSh->IsCrsrInTbl() ) in InsertEnv()
326 pSh->SplitNode(); in InsertEnv()
327 pSh->Right( CRSR_SKIP_CHARS, sal_False, 1, sal_False ); in InsertEnv()
328 SfxItemSet aBreakSet( pSh->GetAttrPool(), RES_BREAK, RES_BREAK, 0 ); in InsertEnv()
330 pSh->SetTblAttr( aBreakSet ); in InsertEnv()
333 pSh->InsertPageBreak(0, sal_False); in InsertEnv()
334 pSh->SttEndDoc(sal_True); in InsertEnv()
338 pFollow = &pSh->GetPageDesc(pSh->GetCurPageDesc()); in InsertEnv()
340 pSh->StartAllAction(); in InsertEnv()
341 pSh->DoUndo(sal_False); in InsertEnv()
347 ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_JAKETADRESS); in InsertEnv()
348 ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_SENDADRESS); in InsertEnv()
352 SET_CURR_SHELL(pSh); in InsertEnv()
353 pSh->SetNewDoc(); // Performanceprobleme vermeiden in InsertEnv()
358 pSh->GetPageObjs( aFlyArr ); in InsertEnv()
361 SwPageDesc* pDesc = pSh->GetPageDescFromPool(RES_POOLPAGE_JAKET); in InsertEnv()
364 Printer *pPrt = pSh->getIDocumentDeviceAccess()->getPrinter( true ); in InsertEnv()
432 pSh->FindPageDescByName( pDesc->GetName(), in InsertEnv()
437 pSh->ChgPageDesc( nPos, *pDesc); in InsertEnv()
438 pSh->ChgCurPageDesc(*pDesc); in InsertEnv()
441 SwFlyFrmAttrMgr aMgr(sal_False, pSh, FRMMGR_TYPE_ENVELP); in InsertEnv()
453 pSh->SttEndDoc(sal_True); in InsertEnv()
458 pSh->EnterSelFrmMode(); in InsertEnv()
459 pSh->SetFlyName( rSendMark ); in InsertEnv()
460 pSh->UnSelectFrm(); in InsertEnv()
461 pSh->LeaveSelFrmMode(); in InsertEnv()
462 pSh->SetTxtFmtColl( pSend ); in InsertEnv()
463 InsertLabEnvText( *pSh, aFldMgr, rItem.aSendText ); in InsertEnv()
468 pSh->SttEndDoc(sal_True); in InsertEnv()
473 pSh->EnterSelFrmMode(); in InsertEnv()
474 pSh->SetFlyName( rAddrMark ); in InsertEnv()
475 pSh->UnSelectFrm(); in InsertEnv()
476 pSh->LeaveSelFrmMode(); in InsertEnv()
477 pSh->SetTxtFmtColl( pAddr ); in InsertEnv()
478 InsertLabEnvText(*pSh, aFldMgr, rItem.aAddrText); in InsertEnv()
482 pSh->SetPageObjsNewPage(aFlyArr, 1); in InsertEnv()
485 pSh->SttEndDoc(sal_True); in InsertEnv()
487 pSh->EndAllAction(); in InsertEnv()
490 pSh->DoUndo(sal_True); in InsertEnv()
492 pSh->EndUndo(UNDO_UI_INSERT_ENVELOPE); in InsertEnv()
510 ShowDBObj(*pNewView, pSh->GetDBData()); in InsertEnv()