Lines Matching refs:pFmt
129 SwCharFmt* pFmt = 0; in lcl_FindCharFmt() local
132 pFmt = rDoc.FindCharFmtByName( rName ); in lcl_FindCharFmt()
133 if( !pFmt && rName == *SwStyleNameMapper::GetTextUINameArray()[ RES_POOLCOLL_STANDARD - in lcl_FindCharFmt()
137 pFmt = (SwCharFmt*)rDoc.GetDfltCharFmt(); in lcl_FindCharFmt()
140 if( !pFmt && bCreate ) in lcl_FindCharFmt()
144 pFmt = rDoc.GetCharFmtFromPool(nId); in lcl_FindCharFmt()
149 if(pFmt) in lcl_FindCharFmt()
152 SwFmt* p = pFmt->DerivedFrom(); in lcl_FindCharFmt()
161 return pFmt; in lcl_FindCharFmt()
218 SwFrmFmt* pFmt = 0; in lcl_FindFrmFmt() local
221 pFmt = rDoc.FindFrmFmtByName( rName ); in lcl_FindFrmFmt()
222 if( !pFmt && bCreate ) in lcl_FindFrmFmt()
226 pFmt = rDoc.GetFrmFmtFromPool(nId); in lcl_FindFrmFmt()
232 if(pFmt) in lcl_FindFrmFmt()
235 if( pFmt->DerivedFrom() && !pFmt->DerivedFrom()->IsDefault() ) in lcl_FindFrmFmt()
236 pStyle->PresetParent( pFmt->DerivedFrom()->GetName() ); in lcl_FindFrmFmt()
243 return pFmt; in lcl_FindFrmFmt()
490 SwFmt* pFmt = 0; in GetParent() local
495 pFmt = rDoc.FindCharFmtByName( aName ); in GetParent()
500 pFmt = rDoc.FindTxtFmtCollByName( aName ); in GetParent()
505 pFmt = rDoc.FindFrmFmtByName( aName ); in GetParent()
516 if( !pFmt ) // noch nicht vorhanden, also dflt. Parent in GetParent()
525 SwFmt* p = pFmt->DerivedFrom(); in GetParent()
960 SwFmt* pFmt = 0, *pParent = 0; in SetParent() local
965 if( 0 != ( pFmt = pCharFmt ) && rStr.Len() ) in SetParent()
971 if( 0 != ( pFmt = pColl ) && rStr.Len() ) in SetParent()
977 if( 0 != ( pFmt = pFrmFmt ) && rStr.Len() ) in SetParent()
989 if( pFmt && pFmt->DerivedFrom() && in SetParent()
990 pFmt->DerivedFrom()->GetName() != rStr ) in SetParent()
994 bRet = pFmt->SetDerivedFrom( pParent ); in SetParent()
1213 SwFmt* pFmt = 0; in SetItemSet() local
1222 pFmt = pCharFmt; in SetItemSet()
1325 pFmt = pColl; in SetItemSet()
1361 pFmt = pFrmFmt; in SetItemSet()
1378 pFmt = &pNewDsc->GetMaster(); in SetItemSet()
1424 if( pFmt && rSet.Count()) in SetItemSet()
1437 *pFmt ); in SetItemSet()
1466 rDoc.ChgFmt(*pFmt, aSet); // alles gesetzten Putten in SetItemSet()
1636 SwFmt* pFmt = 0; in FillStyleSheet() local
1655 pFmt = pCharFmt; in FillStyleSheet()
1656 if( !bCreate && !pFmt ) in FillStyleSheet()
1682 pFmt = pColl; in FillStyleSheet()
1704 pFmt = pFrmFmt; in FillStyleSheet()
1705 if( !bCreate && !pFmt ) in FillStyleSheet()
1777 if( pFmt ) in FillStyleSheet()
1778 nPoolId = pFmt->GetPoolFmtId(); in FillStyleSheet()
1781 if( pFmt == rDoc.GetDfltCharFmt() ) in FillStyleSheet()
1796 if( pFmt ) in FillStyleSheet()
1800 nHelpId = pFmt->GetPoolHelpId(); in FillStyleSheet()
1801 if( pFmt->GetPoolHlpFileId() != UCHAR_MAX ) in FillStyleSheet()
1802 aHelpFile = *rDoc.GetDocPattern( pFmt->GetPoolHlpFileId() ); in FillStyleSheet()
1806 if( RES_CONDTXTFMTCOLL == pFmt->Which() ) in FillStyleSheet()
2328 SwCharFmt* pFmt = lcl_FindCharFmt(rDoc, rName, 0, sal_False ); in Remove() local
2329 if(pFmt) in Remove()
2330 rDoc.DelCharFmt(pFmt); in Remove()
2342 SwFrmFmt* pFmt = lcl_FindFrmFmt(rDoc, rName, 0, sal_False ); in Remove() local
2343 if(pFmt) in Remove()
2344 rDoc.DelFrmFmt(pFmt); in Remove()
2377 SwFmt* pFmt = 0, *pParent = 0; in SetParent() local
2381 if( 0 != ( pFmt = lcl_FindCharFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2386 if( 0 != ( pFmt = lcl_FindParaFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2391 if( 0 != ( pFmt = lcl_FindFrmFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2404 if( pFmt && pFmt->DerivedFrom() && in SetParent()
2405 pFmt->DerivedFrom()->GetName() != rParent ) in SetParent()
2409 bRet = pFmt->SetDerivedFrom( pParent ); in SetParent()
2418 mxStyleSheet->PresetFollow( ((SwTxtFmtColl*)pFmt)-> in SetParent()
2570 SwCharFmt* pFmt = (*rDoc.GetCharFmts())[ i ]; in First() local
2571 if( pFmt->IsDefault() && pFmt != rDoc.GetDfltCharFmt() ) in First()
2574 const sal_Bool bUsed = bIsSearchUsed && (bOrganizer || rDoc.IsUsed(*pFmt)); in First()
2578 const sal_uInt16 nId = rDoc.GetDfltCharFmt() == pFmt ? in First()
2580 pFmt->GetPoolFmtId(); in First()
2597 aLst.Append( cCHAR, pFmt == rDoc.GetDfltCharFmt() in First()
2600 : pFmt->GetName() ); in First()
2790 SwFrmFmt* pFmt = (*rDoc.GetFrmFmts())[ i ]; in First() local
2792 if(pFmt->IsDefault() || pFmt->IsAuto()) in First()
2797 const sal_uInt16 nId = pFmt->GetPoolFmtId(); in First()
2798 sal_Bool bUsed = bIsSearchUsed && ( bOrganizer || rDoc.IsUsed(*pFmt)); in First()
2810 aLst.Append( cFRAME, pFmt->GetName() ); in First()