Lines Matching refs:pStyle
123 void lcl_DocStyleChanged( ScDocument* pDoc, SfxStyleSheetBase* pStyle, sal_Bool bRemoved ) in lcl_DocStyleChanged() argument
132 pDoc->StyleSheetChanged( pStyle, bRemoved, &aVDev, nPPTX, nPPTY, aZoom, aZoom ); in lcl_DocStyleChanged()
149 SfxStyleSheetBase* pStyle = NULL; in DoChange() local
153 pStyle = pStlPool->Find( rName, eStyleFamily ); in DoChange()
154 DBG_ASSERT( pStyle, "style not found" ); in DoChange()
156 if ( pStyle && !bDelete ) in DoChange()
159 pStyle->SetName( aNewName ); in DoChange()
165 pStyle = &pStlPool->Make( aNewName, eStyleFamily, SFXSTYLEBIT_USERDEF ); in DoChange()
171 if ( pStyle ) in DoChange()
176 lcl_DocStyleChanged( pDoc, pStyle, sal_True ); // TRUE: remove usage of style in DoChange()
181 pStlPool->Remove( pStyle ); in DoChange()
188 if ( aNewParent != pStyle->GetParent() ) in DoChange()
189 pStyle->SetParent( aNewParent ); in DoChange()
191 SfxItemSet& rStyleSet = pStyle->GetItemSet(); in DoChange()
199 lcl_DocStyleChanged( pDoc, pStyle, sal_False ); // cell styles: row heights in DoChange()
209 pDoc->ModifyStyleSheet( *pStyle, *pNewSet ); in DoChange()