Lines Matching refs:pOldSh

157 void lcl_CopyCollAttr(SwWrtShell* pOldSh, SwWrtShell* pNewSh, sal_uInt16 nCollId)  in lcl_CopyCollAttr()  argument
159 sal_uInt16 nCollCnt = pOldSh->GetTxtFmtCollCount(); in lcl_CopyCollAttr()
162 if(nCollId == (pColl = &pOldSh->GetTxtFmtColl(nCnt))->GetPoolFmtId()) in lcl_CopyCollAttr()
176 SwWrtShell *pOldSh, in InsertEnv() local
181 pOldSh = pMyDocSh ? pMyDocSh->GetWrtShell() : 0; in InsertEnv()
197 if ( pOldSh ) in InsertEnv()
199 ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_JAKETADRESS); in InsertEnv()
200 ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_SENDADRESS); in InsertEnv()
213 if(pOldSh ) in InsertEnv()
215 const SwPageDesc& rCurPageDesc = pOldSh->GetPageDesc(pOldSh->GetCurPageDesc()); in InsertEnv()
220 IDocumentDeviceAccess* pIDDA_old = pOldSh->getIDocumentDeviceAccess(); in InsertEnv()
232 Window *pParent = pOldSh ? pOldSh->GetWin() : 0; in InsertEnv()
242 pDlg = pFact->CreateSwEnvDlg( pParent, aSet, pOldSh, pTempPrinter, !bEnvChange, DLG_ENV ); in InsertEnv()
268 ASSERT(pOldSh, "Kein Dokument - war 'Einfuegen' nicht disabled???"); in InsertEnv()
271 pOldSh->GetPageDescFromPool(RES_POOLPAGE_JAKET)->GetMaster().SetFmtAttr(aItem); in InsertEnv()
274 SwWrtShell *pTmp = nMode == ENV_INSERT ? pOldSh : pSh; in InsertEnv()
284 SetView(&pOldSh->GetView()); // Pointer auf oberste View restaurieren in InsertEnv()
288 pSh = pOldSh; in InsertEnv()
345 if ( pOldSh ) in InsertEnv()
347 ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_JAKETADRESS); in InsertEnv()
348 ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_SENDADRESS); in InsertEnv()
531 if (pOldSh) in InsertEnv()
532 SetView(&pOldSh->GetView()); in InsertEnv()