Lines Matching refs:pSh
266 SwFldMgr::SwFldMgr(SwWrtShell* pSh ) : in SwFldMgr() argument
269 pWrtShell(pSh), in SwFldMgr()
288 SwWrtShell *pSh = pWrtShell ? pWrtShell : lcl_GetShell(); in CanInsertRefMark() local
289 DBG_ASSERT(pSh, "no SwWrtShell found"); in CanInsertRefMark()
290 if(pSh) in CanInsertRefMark()
292 sal_uInt16 nCnt = pSh->GetCrsrCnt(); in CanInsertRefMark()
295 if( 1 < nCnt && !pSh->SwCrsrShell::HasSelection() ) in CanInsertRefMark()
298 bRet = 2 > nCnt && 0 == pSh->GetRefMark( rStr ); in CanInsertRefMark()
309 SwWrtShell * pSh = pWrtShell ? pWrtShell : lcl_GetShell(); in RemoveFldType() local
310 DBG_ASSERT(pSh, "no SwWrtShell found"); in RemoveFldType()
311 if( pSh ) in RemoveFldType()
312 pSh->RemoveFldType(nResId, rName); in RemoveFldType()
317 SwWrtShell * pSh = pWrtShell ? pWrtShell : lcl_GetShell(); in GetFldTypeCount() local
318 DBG_ASSERT(pSh, "no SwWrtShell found"); in GetFldTypeCount()
319 return pSh ? pSh->GetFldTypeCount(nResId) : 0; in GetFldTypeCount()
325 SwWrtShell * pSh = pWrtShell ? pWrtShell : lcl_GetShell(); in GetFldType() local
326 DBG_ASSERT(pSh, "no SwWrtShell found"); in GetFldType()
327 return pSh ? pSh->GetFldType(nId, nResId) : 0; in GetFldType()
333 SwWrtShell * pSh = pWrtShell ? pWrtShell : lcl_GetShell(); in GetFldType() local
334 DBG_ASSERT(pSh, "no SwWrtShell found"); in GetFldType()
335 return pSh ? pSh->GetFldType(nResId, rName) : 0; in GetFldType()
344 SwWrtShell *pSh = pWrtShell ? pWrtShell : ::lcl_GetShell(); in GetCurFld() local
345 if ( pSh ) in GetCurFld()
346 pCurFld = pSh->GetCurFld( true ); in GetCurFld()
507 SwWrtShell *pSh = pWrtShell ? pWrtShell : lcl_GetShell(); in GetSubTypes() local
508 DBG_ASSERT(pSh, "no SwWrtShell found"); in GetSubTypes()
509 if(pSh) in GetSubTypes()
519 pSh->GetRefMarks( &rToFill ); in GetSubTypes()
539 const sal_uInt16 nCount = pSh->GetFldTypeCount(); in GetSubTypes()
542 SwFieldType* pFldType = pSh->GetFldType( i ); in GetSubTypes()
805 SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell(); in GoNextPrev() local
806 if(!pSh) in GoNextPrev()
813 pTyp = pSh->GetFldType( 0, RES_INPUTFLD ); in GoNextPrev()
821 return pSh->MoveFldType( 0, (bNext ? true : false), RES_DBFLD ); in GoNextPrev()
824 return (pTyp && pSh) in GoNextPrev()
825 ? pSh->MoveFldType( pTyp, (bNext ? true : false) ) in GoNextPrev()
836 SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell(); in InsertFldType() local
837 DBG_ASSERT(pSh, "no SwWrtShell found"); in InsertFldType()
838 if(pSh) in InsertFldType()
839 pSh->InsertFldType(rType); in InsertFldType()
867 SwWrtShell* pCurShell = rData.pSh; in InsertFld()
1486 SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell(); in UpdateCurFld() local
1487 DBG_ASSERT(pSh, "no SwWrtShell found"); in UpdateCurFld()
1488 if(!pSh) in UpdateCurFld()
1490 pSh->StartAllAction(); in UpdateCurFld()
1596 pSh->SetModified(); in UpdateCurFld()
1622 pSh->SetModified(); in UpdateCurFld()
1626 pSh->SwEditShell::UpdateFlds(*pTmpFld); in UpdateCurFld()
1633 pSh->EndAllAction(); in UpdateCurFld()
1639 void SwFldMgr::EvalExpFlds(SwWrtShell* pSh) in EvalExpFlds() argument
1641 if (pSh == NULL) in EvalExpFlds()
1642 pSh = pWrtShell ? pWrtShell : ::lcl_GetShell(); in EvalExpFlds()
1644 if(pSh) in EvalExpFlds()
1646 pSh->StartAllAction(); in EvalExpFlds()
1647 pSh->UpdateExpFlds(sal_True); in EvalExpFlds()
1648 pSh->EndAllAction(); in EvalExpFlds()
1653 SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell(); in GetCurrLanguage() local
1654 if( pSh ) in GetCurrLanguage()
1655 return pSh->GetCurLang(); in GetCurrLanguage()