Reactivate some generator

This commit is contained in:
Montel Laurent 2014-10-02 13:43:03 +02:00
parent 5b88e93891
commit 89bb5562ac
5 changed files with 7 additions and 4 deletions

View file

@ -108,9 +108,9 @@ endif(TIFF_FOUND)
add_subdirectory(xps)
#add_subdirectory(ooo)
add_subdirectory(ooo)
#add_subdirectory(fictionbook)
add_subdirectory(fictionbook)
add_subdirectory(comicbook)

View file

@ -763,7 +763,7 @@ bool Converter::convertLink( const QDomElement &element )
mLocalLinks.insert( href.mid( 1 ), QPair<int, int>( startPosition, endPosition ) );
} else {
// external link
Okular::BrowseAction *action = new Okular::BrowseAction( href );
Okular::BrowseAction *action = new Okular::BrowseAction( QUrl(href) );
emit addAction( action, startPosition, endPosition );
}

View file

@ -43,3 +43,5 @@ void FictionBookGenerator::addPages( KConfigDialog* dlg )
dlg->addPage( widget, generalSettings(), i18n("FictionBook"), "okular-fb2", i18n("FictionBook Backend Configuration") );
}
#include "generator_fb.moc"

View file

@ -553,7 +553,7 @@ bool Converter::convertLink( QTextCursor *cursor, const QDomElement &element, co
int endPosition = cursor->position();
Okular::Action *action = new Okular::BrowseAction( element.attribute( "href" ) );
Okular::Action *action = new Okular::BrowseAction( QUrl(element.attribute( "href" )) );
emit addAction( action, startPosition, endPosition );
return true;

View file

@ -51,3 +51,4 @@ void KOOOGenerator::walletDataForFile( const QString &fileName, QString *walletN
*walletName = KWallet::Wallet::LocalWallet();
*walletFolder = KWallet::Wallet::PasswordFolder();
}
#include "generator_ooo.moc"