From 247c5f73eb0427a1e77e52dd2842f5f7d6073781 Mon Sep 17 00:00:00 2001 From: Mikhail Voytenko Date: Fri, 7 Jan 2011 17:14:47 +0100 Subject: removetooltypes: #i112600# remove tooltypes --- sfx2/source/config/evntconf.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'sfx2/source/config') diff --git a/sfx2/source/config/evntconf.cxx b/sfx2/source/config/evntconf.cxx index 46a723b092..918d5098dc 100644 --- a/sfx2/source/config/evntconf.cxx +++ b/sfx2/source/config/evntconf.cxx @@ -67,7 +67,7 @@ using namespace com::sun::star; SfxEventNamesList& SfxEventNamesList::operator=( const SfxEventNamesList& rTbl ) { DelDtor(); - for (USHORT n=0; nmnId != pOther->mnId || pOwn->maEventName != pOther->maEventName || pOwn->maUIName != pOther->maUIName ) - return FALSE; + return sal_False; } - return TRUE; + return sal_True; } @@ -126,25 +126,25 @@ SfxPoolItem* SfxEventNamesItem::Clone( SfxItemPool *) const return new SfxEventNamesItem(*this); } -SfxPoolItem* SfxEventNamesItem::Create(SvStream &, USHORT) const +SfxPoolItem* SfxEventNamesItem::Create(SvStream &, sal_uInt16) const { DBG_ERROR("not streamable!"); return new SfxEventNamesItem(Which()); } -SvStream& SfxEventNamesItem::Store(SvStream &rStream, USHORT ) const +SvStream& SfxEventNamesItem::Store(SvStream &rStream, sal_uInt16 ) const { DBG_ERROR("not streamable!"); return rStream; } -USHORT SfxEventNamesItem::GetVersion( USHORT ) const +sal_uInt16 SfxEventNamesItem::GetVersion( sal_uInt16 ) const { DBG_ERROR("not streamable!"); return 0; } -void SfxEventNamesItem::AddEvent( const String& rName, const String& rUIName, USHORT nID ) +void SfxEventNamesItem::AddEvent( const String& rName, const String& rUIName, sal_uInt16 nID ) { aEventsList.Insert( new SfxEventName( nID, rName, rUIName.Len() ? rUIName : rName ) ); } @@ -288,7 +288,7 @@ void SfxEventConfiguration::ConfigureEvent( rtl::OUString aName, const SvxMacro& } // ------------------------------------------------------------------------------------------------------- -SvxMacro* SfxEventConfiguration::ConvertToMacro( const com::sun::star::uno::Any& rElement, SfxObjectShell* pDoc, BOOL bBlowUp ) +SvxMacro* SfxEventConfiguration::ConvertToMacro( const com::sun::star::uno::Any& rElement, SfxObjectShell* pDoc, sal_Bool bBlowUp ) { return SfxEvents_Impl::ConvertToMacro( rElement, pDoc, bBlowUp ); } -- cgit v1.2.3