View | Details | Raw Unified | Return to issue 120619
Collapse All | Expand All

(-)sc/source/ui/unoobj/styleuno.cxx (-4 / +25 lines)
Lines 1531-1538 Link Here
1531
		for (sal_Int32 i = 0; i < nCount; i++)
1531
		for (sal_Int32 i = 0; i < nCount; i++)
1532
		{
1532
		{
1533
            const SfxItemPropertySimpleEntry*  pEntry = pPropertyMap->getByName( pNames[i] );
1533
            const SfxItemPropertySimpleEntry*  pEntry = pPropertyMap->getByName( pNames[i] );
1534
            SetOnePropertyValue( pNames[i], pEntry, &pValues[i] );
1534
            SetOnePropertyValueWithoutUpdate( pNames[i], pEntry, &pValues[i] );
1535
		}
1535
		}
1536
        StyleSheetChanged();
1536
	}
1537
	}
1537
}
1538
}
1538
1539
Lines 1694-1699 Link Here
1694
	SfxStyleSheetBase* pStyle = GetStyle_Impl();
1695
	SfxStyleSheetBase* pStyle = GetStyle_Impl();
1695
    if ( pStyle && pEntry )
1696
    if ( pStyle && pEntry )
1696
	{
1697
	{
1698
        SetOnePropertyValueWithoutUpdate( rPropertyName, pEntry, pValue );
1699
        StyleSheetChanged();
1700
    }
1701
}
1702
1703
void ScStyleObj::SetOnePropertyValueWithoutUpdate( const ::rtl::OUString& rPropertyName, 
1704
                                                   const SfxItemPropertySimpleEntry* pEntry, const uno::Any* pValue )
1705
    throw(lang::IllegalArgumentException, uno::RuntimeException)
1706
{
1707
    SfxStyleSheetBase* pStyle = GetStyle_Impl();
1708
    if (!pStyle || !pEntry)
1709
    {
1710
        return;
1711
    }
1712
1697
		//	#70909# cell styles cannot be modified if any sheet is protected
1713
		//	#70909# cell styles cannot be modified if any sheet is protected
1698
		if ( eFamily == SFX_STYLE_FAMILY_PARA && lcl_AnyTabProtected( *pDocShell->GetDocument() ) )
1714
		if ( eFamily == SFX_STYLE_FAMILY_PARA && lcl_AnyTabProtected( *pDocShell->GetDocument() ) )
1699
			throw uno::RuntimeException();
1715
			throw uno::RuntimeException();
Lines 1733-1740 Link Here
1733
		}
1749
		}
1734
		if (!bDone)
1750
		if (!bDone)
1735
		{
1751
		{
1736
            if ( pEntry )
1737
            {
1738
                if ( IsScItemWid( pEntry->nWID ) )
1752
                if ( IsScItemWid( pEntry->nWID ) )
1739
			    {
1753
			    {
1740
				    if (pValue)
1754
				    if (pValue)
Lines 1941-1952 Link Here
1941
                    }
1955
                    }
1942
                }
1956
                }
1943
            }
1957
            }
1944
		}
1945
1958
1959
}
1960
1961
void ScStyleObj::StyleSheetChanged()
1962
{
1963
    SfxStyleSheetBase* pStyle = GetStyle_Impl();
1964
    if ( pStyle && pDocShell )
1965
    {
1946
		//!	DocFunc-Funktion??
1966
		//!	DocFunc-Funktion??
1947
		//!	Undo ?????????????
1967
		//!	Undo ?????????????
1948
1968
1949
		ScDocument* pDoc = pDocShell->GetDocument();
1969
		ScDocument* pDoc = pDocShell->GetDocument();
1970
1950
		if ( eFamily == SFX_STYLE_FAMILY_PARA )
1971
		if ( eFamily == SFX_STYLE_FAMILY_PARA )
1951
		{
1972
		{
1952
			//	Zeilenhoehen anpassen...
1973
			//	Zeilenhoehen anpassen...
(-)sc/inc/styleuno.hxx (-2 / +6 lines)
Lines 227-234 Link Here
227
    void                    SetOnePropertyValue(    const ::rtl::OUString& rPropertyName, 
227
    void                    SetOnePropertyValue(    const ::rtl::OUString& rPropertyName, 
228
                                                    const SfxItemPropertySimpleEntry* pEntry,
228
                                                    const SfxItemPropertySimpleEntry* pEntry,
229
													const ::com::sun::star::uno::Any* pValue )
229
													const ::com::sun::star::uno::Any* pValue )
230
											throw(::com::sun::star::lang::IllegalArgumentException,
230
        throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
231
													::com::sun::star::uno::RuntimeException);
231
    void                    SetOnePropertyValueWithoutUpdate( const ::rtl::OUString& rPropertyName, 
232
                                                              const SfxItemPropertySimpleEntry* pEntry, 
233
                                                              const ::com::sun::star::uno::Any* pValue )
234
        throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
235
    void                    StyleSheetChanged();
232
236
233
	ScStyleObj(); // disabled
237
	ScStyleObj(); // disabled
234
public:
238
public:

Return to issue 120619