Lines Matching refs:pStyleSheet
204 SfxStyleSheet* pStyleSheet = (SfxStyleSheet*) in GetStyleState() local
207 if ( pStyleSheet ) in GetStyleState()
208 rSet.Put( SfxTemplateItem( nSlotId, pStyleSheet->GetName() ) ); in GetStyleState()
218 SfxStyleSheet* pStyleSheet = (SfxStyleSheet*)pStylePool-> in GetStyleState() local
221 if ( pStyleSheet ) in GetStyleState()
299 SfxStyleSheetBase* pStyleSheet = NULL; in ExecuteStyle() local
344 pStyleSheet = &(pStylePool->Make( aStyleName, eFamily, in ExecuteStyle()
347 if ( pStyleSheet && pStyleSheet->HasParentSupport() ) in ExecuteStyle()
348 pStyleSheet->SetParent(aRefName); in ExecuteStyle()
383 pStyleSheet = pStylePool->Find( aStyleName, eFamily ); in ExecuteStyle()
385 aOldData.InitFromStyle( pStyleSheet ); in ExecuteStyle()
404 pStyleSheet = pStylePool->Find( aStyleName, eFamily ); in ExecuteStyle()
406 if ( pStyleSheet ) in ExecuteStyle()
409 SetActualStyleSheet( pStyleSheet ); in ExecuteStyle()
416 if ( !bWaterCan && pStyleSheet ) in ExecuteStyle()
436 if ( nSlotId == SID_STYLE_APPLY && pScMod->GetIsWaterCan() && pStyleSheet ) in ExecuteStyle()
437 ((ScStyleSheetPool*)pStylePool)->SetActualStyleSheet( pStyleSheet ); in ExecuteStyle()
447 if ( pStyleSheet ) in ExecuteStyle()
449 pTabViewShell->RemoveStyleSheetInUse( pStyleSheet ); in ExecuteStyle()
450 pStylePool->Remove( pStyleSheet ); in ExecuteStyle()
463 if ( pStyleSheet && !pScMod->GetIsWaterCan() ) in ExecuteStyle()
466 pTabViewShell->SetStyleSheetToMarked( (SfxStyleSheet*)pStyleSheet ); in ExecuteStyle()
519 if ( pStyleSheet && pSheetInUse && pStyleSheet == pSheetInUse ) in ExecuteStyle()
523 if ( pStyleSheet ) in ExecuteStyle()
532 pStylePool->Remove(pStyleSheet); in ExecuteStyle()
536 pStyleSheet = &pStylePool->Make( aStyleName, eFamily, in ExecuteStyle()
541 if ( pSheetInUse && pStyleSheet->HasParentSupport() ) in ExecuteStyle()
542 pStyleSheet->SetParent( pSheetInUse->GetName() ); in ExecuteStyle()
551 pStyleSheet->GetItemSet().Put( aAttrSet ); in ExecuteStyle()
552 pTabViewShell->UpdateStyleSheetInUse( pStyleSheet ); in ExecuteStyle()
560 pStyleSheet = (SfxStyleSheet*)pTabViewShell->GetStyleSheetFromMarked(); in ExecuteStyle()
562 if ( pStyleSheet ) in ExecuteStyle()
564 aOldData.InitFromStyle( pStyleSheet ); in ExecuteStyle()
573 pStyleSheet->GetItemSet().Put( aAttrSet ); in ExecuteStyle()
574 pTabViewShell->UpdateStyleSheetInUse( pStyleSheet ); in ExecuteStyle()
582 aNewData.InitFromStyle( pStyleSheet ); in ExecuteStyle()
600 nRetMask = ( NULL != pStyleSheet ); in ExecuteStyle()
601 if ( pStyleSheet ) in ExecuteStyle()
603 if ( pDoc->RemovePageStyleInUse( pStyleSheet->GetName() ) ) in ExecuteStyle()
609 pStylePool->Remove( pStyleSheet ); in ExecuteStyle()
620 nRetMask = ( NULL != pStyleSheet ); in ExecuteStyle()
621 if ( pStyleSheet && !pScMod->GetIsWaterCan() ) in ExecuteStyle()
664 if ( pStyleSheet ) in ExecuteStyle()
665 pStylePool->Remove( pStyleSheet ); in ExecuteStyle()
668 pStyleSheet = &pStylePool->Make( aStyleName, eFamily, in ExecuteStyle()
672 pStyleSheet->GetItemSet().Put( aAttrSet ); in ExecuteStyle()
679 aNewData.InitFromStyle( pStyleSheet ); in ExecuteStyle()
700 if ( pStyleSheet ) in ExecuteStyle()
704 SfxStyleFamily eFam = pStyleSheet->GetFamily(); in ExecuteStyle()
712 SfxItemSet aOldSet = pStyleSheet->GetItemSet(); in ExecuteStyle()
713 String aOldName = pStyleSheet->GetName(); in ExecuteStyle()
724 SfxItemSet& rSet = pStyleSheet->GetItemSet(); in ExecuteStyle()
793 pDlg = pFact->CreateScStyleDlg( pParent, *pStyleSheet, nRsc, nRsc ); in ExecuteStyle()
804 nRetMask = pStyleSheet->GetMask(); in ExecuteStyle()
813 SfxItemSet& rNewSet = pStyleSheet->GetItemSet(); in ExecuteStyle()
838 pDoc->GetPool()->CellStyleCreated( pStyleSheet->GetName() ); in ExecuteStyle()
844 String aNewName = pStyleSheet->GetName(); in ExecuteStyle()
852 pDoc->ModifyStyleSheet( *pStyleSheet, *pOutSet ); in ExecuteStyle()
864 pTabViewShell->UpdateStyleSheetInUse( pStyleSheet ); in ExecuteStyle()
868 aNewData.InitFromStyle( pStyleSheet ); in ExecuteStyle()
875 pStylePool->Remove( pStyleSheet ); in ExecuteStyle()
902 pTabViewShell->SetStyleSheetToMarked( (SfxStyleSheet*)pStyleSheet ); in ExecuteStyle()