mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-17 23:11:48 +00:00
2f9246ae42
This means Okular can now work without ksycoca and KDELibs4Support. REVIEW: 126193
33 lines
1.3 KiB
C++
33 lines
1.3 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2013 by Azat Khuzhin <a3at.mail@gmail.com> *
|
|
* *
|
|
* 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_txt.h"
|
|
#include "converter.h"
|
|
|
|
#include <KAboutData>
|
|
#include <klocalizedstring.h>
|
|
#include <KConfigDialog>
|
|
|
|
OKULAR_EXPORT_PLUGIN(TxtGenerator, "libokularGenerator_txt.json")
|
|
|
|
TxtGenerator::TxtGenerator(QObject *parent, const QVariantList &args)
|
|
: Okular::TextDocumentGenerator(new Txt::Converter, QStringLiteral("okular_txt_generator_settings") , parent, args)
|
|
{
|
|
}
|
|
|
|
void TxtGenerator::addPages( KConfigDialog* dlg )
|
|
{
|
|
Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget();
|
|
|
|
dlg->addPage( widget, generalSettings(), i18n("Txt"), QStringLiteral("text-plain"), i18n("Txt Backend Configuration") );
|
|
}
|
|
|
|
#include "generator_txt.moc"
|