diff options
Diffstat (limited to 'idl/source/objects/slot.cxx')
-rw-r--r-- | idl/source/objects/slot.cxx | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 8742c12cb489..cedd9be220f5 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -1495,83 +1495,6 @@ sal_uInt16 SvMetaSlot::WriteSlotMap( const rtl::OString& rShellName, sal_uInt16 return nSCount; } -void SvMetaSlot::WriteSrc( SvIdlDataBase & rBase, SvStream & rOutStm, - Table * pTable ) -{ - if (!GetToolBoxConfig() && !GetAccelConfig() && !GetMenuConfig() && !GetStatusBarConfig() ) - return; - - sal_uLong nSId = GetSlotId().GetValue(); - if( !pTable->IsKeyValid( nSId ) ) - { - pTable->Insert( nSId, this ); - rOutStm << "SfxSlotInfo " - << rtl::OString::valueOf(static_cast<sal_Int32>(nSId)).getStr() - << endl << '{' << endl; - - WriteTab( rOutStm, 1 ); - rtl::OString aStr = GetConfigName().getString(); - if( aStr.isEmpty() ) - aStr = GetName().getString(); - - rOutStm << "SlotName = \"" << aStr.getStr() << "\";" << endl; - - aStr = GetHelpText().getString(); - if( !aStr.isEmpty() ) - { - WriteTab( rOutStm, 1 ); - rOutStm << "HelpText = \"" << aStr.getStr() << "\";" << endl; - } - - rOutStm << "};" << endl; - } - - SvMetaTypeEnum * pEnum = PTR_CAST( SvMetaTypeEnum, GetType() ); - if( GetPseudoSlots() && pEnum ) - { - for( sal_uLong n = 0; n < pEnum->Count(); n++ ) - { - rtl::OString aValName = pEnum->GetObject( n )->GetName().getString(); - rtl::OStringBuffer aBuf; - if( !GetPseudoPrefix().isEmpty() ) - aBuf.append(GetPseudoPrefix()); - else - aBuf.append(GetSlotId().getString()); - aBuf.append('_'); - aBuf.append(aValName.copy(pEnum->GetPrefix().getLength())); - - rtl::OString aSId = aBuf.makeStringAndClear(); - - sal_uLong nSId2; - sal_Bool bIdOk = sal_False; - if( rBase.FindId( aSId, &nSId2 ) ) - { - aSId = rtl::OString::valueOf(static_cast<sal_Int32>(nSId2)); - bIdOk = sal_True; - } - - // if id not found, write always - if( !bIdOk || !pTable->IsKeyValid( nSId2 ) ) - { - pTable->Insert( nSId2, this ); - rOutStm << "SfxSlotInfo " << aSId.getStr() - << endl << '{' << endl; - - WriteTab( rOutStm, 1 ); - rOutStm << "SlotName = \"" << aValName.getStr() << "\";" << endl; - - rtl::OString aStr = GetHelpText().getString(); - if (!aStr.isEmpty()) - { - WriteTab( rOutStm, 1 ); - rOutStm << "HelpText = \"" << aStr.getStr() << "\";" << endl; - } - rOutStm << "};" << endl; - } - } - } -} - void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm, Table * pTable ) { |