diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-27 10:00:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-27 12:59:47 +0000 |
commit | 5a0fd87d15ad0da5035337a8a1b90c4e32f855dd (patch) | |
tree | 8c31127a17bc6c54cc63feca719ecf139258fcd8 /idl/source/objects | |
parent | 9cd7d08b4a0c9ab81c2ce9872ff78baa5a065c7f (diff) |
remove WriteSrc, WriteCxx and WriteHxx
I can't see that WriteSrc, WriteCxx WriteHxx are anything other than unused
archaic remnants of the past.
Diffstat (limited to 'idl/source/objects')
-rw-r--r-- | idl/source/objects/basobj.cxx | 8 | ||||
-rw-r--r-- | idl/source/objects/module.cxx | 31 | ||||
-rw-r--r-- | idl/source/objects/object.cxx | 87 | ||||
-rw-r--r-- | idl/source/objects/slot.cxx | 77 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 4 |
5 files changed, 0 insertions, 207 deletions
diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx index 9a55bfc68326..8ad1b08a5281 100644 --- a/idl/source/objects/basobj.cxx +++ b/idl/source/objects/basobj.cxx @@ -119,14 +119,6 @@ void SvMetaObject::Write( SvIdlDataBase &, SvStream &, sal_uInt16 /*nTab */, { } -void SvMetaObject::WriteCxx( SvIdlDataBase &, SvStream &, sal_uInt16 /*nTab */ ) -{ -} - -void SvMetaObject::WriteHxx( SvIdlDataBase &, SvStream &, sal_uInt16 /*nTab */ ) -{ -} - SV_IMPL_META_FACTORY1( SvMetaName, SvMetaObject ); SvMetaName::SvMetaName() { diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx index ab40dcd4e97c..c261d4c76dd3 100644 --- a/idl/source/objects/module.cxx +++ b/idl/source/objects/module.cxx @@ -507,35 +507,4 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm, } } -void SvMetaModule::WriteSrc( SvIdlDataBase & rBase, SvStream & rOutStm, - Table * pTable ) -{ - if( !aSlotIdFile.getString().isEmpty() ) - rOutStm << "//#include <" << aSlotIdFile.getString().getStr() << '>' << endl; - for( sal_uLong n = 0; n < aClassList.Count(); n++ ) - { - aClassList.GetObject( n )->WriteSrc( rBase, rOutStm, pTable ); - } -} - -void SvMetaModule::WriteHxx( SvIdlDataBase & rBase, SvStream & rOutStm, - sal_uInt16 nTab ) -{ - for( sal_uLong n = 0; n < aClassList.Count(); n++ ) - { - SvMetaClass * pClass = aClassList.GetObject( n ); - pClass->WriteHxx( rBase, rOutStm, nTab ); - } -} - -void SvMetaModule::WriteCxx( SvIdlDataBase & rBase, SvStream & rOutStm, - sal_uInt16 nTab ) -{ - for( sal_uLong n = 0; n < aClassList.Count(); n++ ) - { - SvMetaClass * pClass = aClassList.GetObject( n ); - pClass->WriteCxx( rBase, rOutStm, nTab ); - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx index 033e5a2c68e6..b95b0a031b54 100644 --- a/idl/source/objects/object.cxx +++ b/idl/source/objects/object.cxx @@ -661,91 +661,4 @@ void SvMetaClass::WriteHelpIds( SvIdlDataBase & rBase, SvStream & rOutStm, } } -void SvMetaClass::WriteSrc( SvIdlDataBase & rBase, SvStream & rOutStm, - Table * pTable ) -{ - for( sal_uLong n=0; n<aAttrList.Count(); n++ ) - { - SvMetaAttribute * pAttr = aAttrList.GetObject( n ); - pAttr->WriteSrc( rBase, rOutStm, pTable ); - } -} - -void SvMetaClass::WriteHxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 ) -{ - rtl::OString aSuperName(RTL_CONSTASCII_STRINGPARAM("SvDispatch")); - if( GetSuperClass() ) - aSuperName = GetSuperClass()->GetName().getString(); - const char * pSup = aSuperName.getStr(); - - rOutStm - << "class " << GetSvName().getStr() - << ": public " << pSup << endl - << '{' << endl - << "protected:" << endl - << "\tvirtual SvGlobalName GetTypeName() const;" << endl - << "\tvirtual sal_Bool FillTypeLibInfo( SvGlobalName *, sal_uInt16 * pMajor," << endl - << "\t sal_uInt16 * pMinor ) const;" << endl - << "\tvirtual sal_Bool FillTypeLibInfo( ByteString * pName, sal_uInt16 * pMajor," << endl; - rOutStm - << "\t sal_uInt16 * pMinor ) const;" << endl - << "\tvirtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) = 0;" << endl - << "public:" << endl - << "\t static SvGlobalName ClassName()" << endl - << "\t { return SvGlobalName( " << rtl::OUStringToOString(GetUUId().GetctorName(), RTL_TEXTENCODING_UTF8).getStr() << " ); }" << endl - << "};" << endl; -} - -void SvMetaClass::WriteCxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 ) -{ - rtl::OString aSuperName(RTL_CONSTASCII_STRINGPARAM("SvDispatch")); - if( GetSuperClass() ) - aSuperName = GetSuperClass()->GetName().getString(); - const char * pSup = aSuperName.getStr(); - - rtl::OString name = GetSvName(); - // GetTypeName - rOutStm << "SvGlobalName " << name.getStr() << "::GetTypeName() const" << endl - << '{' << endl - << "\treturn ClassName();" << endl - << '}' << endl; - - SvMetaModule * pMod = GetModule(); - // FillTypeLibInfo - rOutStm << "sal_Bool " << name.getStr() << "::FillTypeLibInfo( SvGlobalName * pGN," << endl - << "\t sal_uInt16 * pMajor," << endl - << "\t sal_uInt16 * pMinor ) const" << endl - << '{' << endl - << "\tSvGlobalName aN( " << rtl::OUStringToOString(pMod->GetUUId().GetctorName(), RTL_TEXTENCODING_UTF8).getStr() << " );" << endl; - rOutStm << "\t*pGN = aN;" << endl - << "\t*pMajor = " - << rtl::OString::valueOf(static_cast<sal_Int32>(pMod->GetVersion().GetMajorVersion())).getStr() - << ';' << endl - << "\t*pMinor = " - << rtl::OString::valueOf(static_cast<sal_Int32>(pMod->GetVersion().GetMinorVersion())).getStr() - << ';' << endl - << "\treturn sal_True;" << endl - << '}' << endl; - - // FillTypeLibInfo - rOutStm << "sal_Bool " << name.getStr() << "::FillTypeLibInfo( ByteString * pName," - << "\t sal_uInt16 * pMajor," << endl - << "\t sal_uInt16 * pMinor ) const" << endl; - rOutStm << '{' << endl - << "\t*pName = \"" << pMod->GetTypeLibFileName().getStr() << "\";" << endl - << "\t*pMajor = " - << rtl::OString::valueOf(static_cast<sal_Int32>(pMod->GetVersion().GetMajorVersion())).getStr() - << ';' << endl - << "\t*pMinor = " - << rtl::OString::valueOf(static_cast<sal_Int32>(pMod->GetVersion().GetMinorVersion())).getStr() - << ';' << endl - << "\treturn sal_True;" << endl - << '}' << endl; - - rOutStm << "void " << name.getStr() << "::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )" << endl - << '{' << endl - << "\t" << pSup << "::Notify( rBC, rHint );" << endl - << '}' << endl; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 ) { diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index 391cdaba8c43..5b53d96009b8 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -740,10 +740,6 @@ void SvMetaAttribute::Insert (SvSlotElementList&, const rtl::OString&, SvIdlData { } -void SvMetaAttribute::WriteSrc( SvIdlDataBase &, SvStream &, Table * ) -{ -} - void SvMetaAttribute::WriteHelpId( SvIdlDataBase &, SvStream &, Table * ) { } |