mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 19:02:53 +00:00
47 lines
1.7 KiB
C++
47 lines
1.7 KiB
C++
![]() |
/***************************************************************************
|
||
|
* Copyright (C) 2008 by Ely Levy <elylevy@cs.huji.ac.il> *
|
||
|
* *
|
||
|
* 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_epub.h"
|
||
|
|
||
|
#include "converter.h"
|
||
|
|
||
|
#include <kaboutdata.h>
|
||
|
#include <kconfigdialog.h>
|
||
|
|
||
|
static KAboutData createAboutData()
|
||
|
{
|
||
|
KAboutData aboutData(
|
||
|
"okular_epub",
|
||
|
"okular_epub",
|
||
|
ki18n("EPub Backend"),
|
||
|
"0.2.3",
|
||
|
ki18n("An EPub backend"),
|
||
|
KAboutData::License_GPL,
|
||
|
ki18n("© 2008 Ely Levy")
|
||
|
);
|
||
|
aboutData.addAuthor(ki18n("Ely Levy"), KLocalizedString(),
|
||
|
"elylevy@cs.huji.ac.il");
|
||
|
|
||
|
return aboutData;
|
||
|
}
|
||
|
|
||
|
OKULAR_EXPORT_PLUGIN( EPubGenerator, createAboutData() )
|
||
|
|
||
|
EPubGenerator::EPubGenerator( QObject *parent, const QVariantList &args )
|
||
|
: Okular::TextDocumentGenerator( new Epub::Converter, "okular_epub_generator_settings", parent, args )
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void EPubGenerator::addPages( KConfigDialog* dlg )
|
||
|
{
|
||
|
Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget();
|
||
|
|
||
|
dlg->addPage( widget, generalSettings(), i18n("EPub"), "application-epub+zip", i18n("EPub Backend Configuration") );
|
||
|
}
|