[ooo-build-commit] Branch 'ooo/master' - svx/inc svx/source
Jan Holesovsky
kendy at kemper.freedesktop.org
Mon Jun 8 17:50:19 PDT 2009
svx/inc/svx/unotext.hxx | 2 +-
svx/source/unoedit/unotext.cxx | 13 ++++++++-----
2 files changed, 9 insertions(+), 6 deletions(-)
New commits:
commit 490a19cc491f03fdf911a61c22451c2cfcc92bda
Author: Release Engineers <releng at openoffice.org>
Date: Mon Jun 8 14:12:46 2009 +0000
#i10000# build fix
diff --git a/svx/inc/svx/unotext.hxx b/svx/inc/svx/unotext.hxx
index f3800fc..478180b 100644
--- a/svx/inc/svx/unotext.hxx
+++ b/svx/inc/svx/unotext.hxx
@@ -283,7 +283,7 @@ protected:
virtual sal_Bool _getOnePropertyStates(const SfxItemSet* pSet, const SfxItemPropertySimpleEntry* pMap, ::com::sun::star::beans::PropertyState& rState);
virtual void SAL_CALL _setPropertyToDefault( const ::rtl::OUString& PropertyName, sal_Int32 nPara = -1 ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual void _setPropertyToDefault( SvxTextForwarder* pForwarder, const SfxItemPropertyMap* pMap, sal_Int32 nPara ) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException );
+ virtual void _setPropertyToDefault( SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara ) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException );
void SetEditSource( SvxEditSource* _pEditSource ) throw();
virtual void getPropertyValue( const SfxItemPropertySimpleEntry* pMap, com::sun::star::uno::Any& rAny, const SfxItemSet& rSet ) throw(::com::sun::star::beans::UnknownPropertyException );
diff --git a/svx/source/unoedit/unotext.cxx b/svx/source/unoedit/unotext.cxx
index 17d8080..a568a54 100644
--- a/svx/source/unoedit/unotext.cxx
+++ b/svx/source/unoedit/unotext.cxx
@@ -1220,8 +1220,8 @@ void SvxUnoTextRangeBase::_setPropertyToDefault(const OUString& PropertyName, sa
if( pForwarder )
{
- const SfxItemPropertyMap* pMap = SfxItemPropertyMap::GetByName(maPropSet.getPropertyMap(), PropertyName );
- if( pMap )
+ const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMapEntry( PropertyName );
+ if ( pMap )
{
CheckSelection( maSelection, mpEditSource->GetTextForwarder() );
_setPropertyToDefault( pForwarder, pMap, nPara );
@@ -1232,7 +1232,7 @@ void SvxUnoTextRangeBase::_setPropertyToDefault(const OUString& PropertyName, sa
throw beans::UnknownPropertyException();
}
-void SvxUnoTextRangeBase::_setPropertyToDefault(SvxTextForwarder* pForwarder, const SfxItemPropertyMap* pMap, sal_Int32 nPara )
+void SvxUnoTextRangeBase::_setPropertyToDefault(SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara )
throw( beans::UnknownPropertyException, uno::RuntimeException )
{
do
@@ -1329,9 +1329,12 @@ void SAL_CALL SvxUnoTextRangeBase::setAllPropertiesToDefault( ) throw (uno::Run
if( pForwarder )
{
- for( const SfxItemPropertyMap* pMap = maPropSet.getPropertyMap(); pMap->pName; pMap++ )
+ PropertyEntryVector_t aEntries = mpPropSet->getPropertyMap()->getPropertyEntries();
+ PropertyEntryVector_t::const_iterator aIt = aEntries.begin();
+ while( aIt != aEntries.end() )
{
- _setPropertyToDefault( pForwarder, pMap, -1 );
+ _setPropertyToDefault( pForwarder, &(*aIt), -1 );
+ ++aIt;
}
}
}
More information about the ooo-build-commit
mailing list