okular/generators/fictionbook/generator_fb.cpp
Alex Richardson 2f9246ae42 Port to new JSON plugin loading system
This means Okular can now work without ksycoca and KDELibs4Support.

REVIEW: 126193
2016-01-04 15:59:07 +01:00

32 lines
1.3 KiB
C++

/***************************************************************************
* Copyright (C) 2007 by Tobias Koenig <tokoe@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#include "generator_fb.h"
#include "converter.h"
#include <KAboutData>
#include <KLocalizedString>
#include <kconfigdialog.h>
OKULAR_EXPORT_PLUGIN(FictionBookGenerator, "libokularGenerator_fb.json")
FictionBookGenerator::FictionBookGenerator( QObject *parent, const QVariantList &args )
: Okular::TextDocumentGenerator( new FictionBook::Converter, QStringLiteral("okular_fictionbook_generator_settings"), parent, args )
{
}
void FictionBookGenerator::addPages( KConfigDialog* dlg )
{
Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget();
dlg->addPage( widget, generalSettings(), i18n("FictionBook"), QStringLiteral("okular-fb2"), i18n("FictionBook Backend Configuration") );
}
#include "generator_fb.moc"