--- sc/source/ui/unoobj/styleuno.cxx (revision 1374898) +++ sc/source/ui/unoobj/styleuno.cxx (working copy) @@ -1531,8 +1531,9 @@ for (sal_Int32 i = 0; i < nCount; i++) { const SfxItemPropertySimpleEntry* pEntry = pPropertyMap->getByName( pNames[i] ); - SetOnePropertyValue( pNames[i], pEntry, &pValues[i] ); + SetOnePropertyValueWithoutUpdate( pNames[i], pEntry, &pValues[i] ); } + StyleSheetChanged(); } } @@ -1694,6 +1695,21 @@ SfxStyleSheetBase* pStyle = GetStyle_Impl(); if ( pStyle && pEntry ) { + SetOnePropertyValueWithoutUpdate( rPropertyName, pEntry, pValue ); + StyleSheetChanged(); + } +} + +void ScStyleObj::SetOnePropertyValueWithoutUpdate( const ::rtl::OUString& rPropertyName, + const SfxItemPropertySimpleEntry* pEntry, const uno::Any* pValue ) + throw(lang::IllegalArgumentException, uno::RuntimeException) +{ + SfxStyleSheetBase* pStyle = GetStyle_Impl(); + if (!pStyle || !pEntry) + { + return; + } + // #70909# cell styles cannot be modified if any sheet is protected if ( eFamily == SFX_STYLE_FAMILY_PARA && lcl_AnyTabProtected( *pDocShell->GetDocument() ) ) throw uno::RuntimeException(); @@ -1733,8 +1749,6 @@ } if (!bDone) { - if ( pEntry ) - { if ( IsScItemWid( pEntry->nWID ) ) { if (pValue) @@ -1941,12 +1955,19 @@ } } } - } +} + +void ScStyleObj::StyleSheetChanged() +{ + SfxStyleSheetBase* pStyle = GetStyle_Impl(); + if ( pStyle && pDocShell ) + { //! DocFunc-Funktion?? //! Undo ????????????? ScDocument* pDoc = pDocShell->GetDocument(); + if ( eFamily == SFX_STYLE_FAMILY_PARA ) { // Zeilenhoehen anpassen... --- sc/inc/styleuno.hxx (revision 1373256) +++ sc/inc/styleuno.hxx (working copy) @@ -227,8 +227,12 @@ void SetOnePropertyValue( const ::rtl::OUString& rPropertyName, const SfxItemPropertySimpleEntry* pEntry, const ::com::sun::star::uno::Any* pValue ) - throw(::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + void SetOnePropertyValueWithoutUpdate( const ::rtl::OUString& rPropertyName, + const SfxItemPropertySimpleEntry* pEntry, + const ::com::sun::star::uno::Any* pValue ) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + void StyleSheetChanged(); ScStyleObj(); // disabled public: