|
|
|
@ -81,7 +81,7 @@ TQString KRecGlobal::exportFormatEndings() const {
|
|
|
|
|
KTrader::OfferList::iterator it = offers.begin();
|
|
|
|
|
while ( it!=offers.end() ) {
|
|
|
|
|
out += " *.";
|
|
|
|
|
out += ( *it )->property( "X-KDE-ExportSuffix" ).toStringList().join( " *." );
|
|
|
|
|
out += ( *it )->property( "X-TDE-ExportSuffix" ).toStringList().join( " *." );
|
|
|
|
|
++it;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -92,8 +92,8 @@ KRecExportItem* KRecGlobal::getExportItemForEnding( const TQString &ending ) {
|
|
|
|
|
KTrader::OfferList offers = KTrader::self()->query( "KRec/exportplugin" );
|
|
|
|
|
KTrader::OfferList::iterator it = offers.begin();
|
|
|
|
|
while ( it!=offers.end() ) {
|
|
|
|
|
kdDebug(60005) << ( *it )->property( "X-KDE-ExportSuffix" ).toStringList() << endl;
|
|
|
|
|
if ( ( *it )->property( "X-KDE-ExportSuffix" ).toStringList().grep( ending ).count() ) {
|
|
|
|
|
kdDebug(60005) << ( *it )->property( "X-TDE-ExportSuffix" ).toStringList() << endl;
|
|
|
|
|
if ( ( *it )->property( "X-TDE-ExportSuffix" ).toStringList().grep( ending ).count() ) {
|
|
|
|
|
kdDebug(60005) << "Ending(" << ending << ") found" << endl;
|
|
|
|
|
return KParts::ComponentFactory::createInstanceFromService<KRecExportItem>( ( *it ), this, "exportplugin" );
|
|
|
|
|
} else kdDebug(60005) << "Doesn't contain " << ending << endl;
|
|
|
|
|