mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
Add stubs for about data for the backends that don't have one, but have translations.
I remember all the maintainers to fill them only after the KDE 4.0 unfreeze :) CCMAIL: okular-devel@kde.org svn path=/trunk/KDE/kdegraphics/okular/; revision=741068
This commit is contained in:
parent
ba7d0732c1
commit
10503cf472
|
@ -26,6 +26,7 @@
|
|||
#include <qvector.h>
|
||||
#include <qstack.h>
|
||||
|
||||
#include <kaboutdata.h>
|
||||
#include <kdebug.h>
|
||||
#include <klocale.h>
|
||||
|
||||
|
@ -34,6 +35,17 @@ OKULAR_EXPORT_PLUGIN(DviGenerator)
|
|||
DviGenerator::DviGenerator() : Okular::Generator(),
|
||||
m_docInfo( 0 ), m_docSynopsis( 0 ), ready( false ), m_dviRenderer( 0 )
|
||||
{
|
||||
// ### TODO fill after the KDE 4.0 unfreeze
|
||||
KAboutData *about = new KAboutData(
|
||||
"okular_dvi",
|
||||
"okular_dvi",
|
||||
KLocalizedString(),
|
||||
"0.1",
|
||||
KLocalizedString(),
|
||||
KAboutData::License_GPL,
|
||||
KLocalizedString()
|
||||
);
|
||||
setAboutData( about );
|
||||
setFeature( TextExtraction );
|
||||
}
|
||||
|
||||
|
|
|
@ -11,9 +11,22 @@
|
|||
|
||||
#include "converter.h"
|
||||
|
||||
#include <kaboutdata.h>
|
||||
|
||||
OKULAR_EXPORT_PLUGIN(FictionBookGenerator)
|
||||
|
||||
FictionBookGenerator::FictionBookGenerator()
|
||||
: Okular::TextDocumentGenerator( new FictionBook::Converter )
|
||||
{
|
||||
// ### TODO fill after the KDE 4.0 unfreeze
|
||||
KAboutData *about = new KAboutData(
|
||||
"okular_fictionbook",
|
||||
"okular_fictionbook",
|
||||
KLocalizedString(),
|
||||
"0.1",
|
||||
KLocalizedString(),
|
||||
KAboutData::License_GPL,
|
||||
KLocalizedString()
|
||||
);
|
||||
setAboutData( about );
|
||||
}
|
||||
|
|
|
@ -11,9 +11,22 @@
|
|||
|
||||
#include "converter.h"
|
||||
|
||||
#include <kaboutdata.h>
|
||||
|
||||
OKULAR_EXPORT_PLUGIN(KOOOGenerator)
|
||||
|
||||
KOOOGenerator::KOOOGenerator()
|
||||
: Okular::TextDocumentGenerator( new OOO::Converter )
|
||||
{
|
||||
// ### TODO fill after the KDE 4.0 unfreeze
|
||||
KAboutData *about = new KAboutData(
|
||||
"okular_ooo",
|
||||
"okular_ooo",
|
||||
KLocalizedString(),
|
||||
"0.1",
|
||||
KLocalizedString(),
|
||||
KAboutData::License_GPL,
|
||||
KLocalizedString()
|
||||
);
|
||||
setAboutData( about );
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <QtGui/QPrinter>
|
||||
#include <QtGui/QTextDocument>
|
||||
|
||||
#include <kaboutdata.h>
|
||||
#include <klocale.h>
|
||||
|
||||
#include <okular/core/page.h>
|
||||
|
@ -51,6 +52,17 @@ static void calculateBoundingRect( QTextDocument *document, int startPosition, i
|
|||
PluckerGenerator::PluckerGenerator()
|
||||
: Generator()
|
||||
{
|
||||
// ### TODO fill after the KDE 4.0 unfreeze
|
||||
KAboutData *about = new KAboutData(
|
||||
"okular_plucker",
|
||||
"okular_plucker",
|
||||
KLocalizedString(),
|
||||
"0.1",
|
||||
KLocalizedString(),
|
||||
KAboutData::License_GPL,
|
||||
KLocalizedString()
|
||||
);
|
||||
setAboutData( about );
|
||||
setFeature( Threaded );
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <qtextstream.h>
|
||||
#include <QtGui/QPrinter>
|
||||
|
||||
#include <kaboutdata.h>
|
||||
#include <klocale.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <kpassworddialog.h>
|
||||
|
@ -293,6 +294,17 @@ PDFGenerator::PDFGenerator()
|
|||
pixmapRequest( 0 ), docInfoDirty( true ), docSynopsisDirty( true ),
|
||||
docEmbeddedFilesDirty( true )
|
||||
{
|
||||
// ### TODO fill after the KDE 4.0 unfreeze
|
||||
KAboutData *about = new KAboutData(
|
||||
"okular_poppler",
|
||||
"okular_poppler",
|
||||
KLocalizedString(),
|
||||
"0.1",
|
||||
KLocalizedString(),
|
||||
KAboutData::License_GPL,
|
||||
KLocalizedString()
|
||||
);
|
||||
setAboutData( about );
|
||||
setFeature( TextExtraction );
|
||||
setFeature( FontInfo );
|
||||
#ifdef HAVE_POPPLER_0_6
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <qsize.h>
|
||||
#include <QtGui/QPrinter>
|
||||
|
||||
#include <kaboutdata.h>
|
||||
#include <kconfigdialog.h>
|
||||
#include <kdebug.h>
|
||||
#include <kmimetype.h>
|
||||
|
@ -36,6 +37,18 @@ GSGenerator::GSGenerator() :
|
|||
m_docInfo(0),
|
||||
m_request(0)
|
||||
{
|
||||
// ### TODO fill after the KDE 4.0 unfreeze
|
||||
KAboutData *about = new KAboutData(
|
||||
"okular_ghostscript",
|
||||
"okular_ghostscript",
|
||||
KLocalizedString(),
|
||||
"0.1",
|
||||
KLocalizedString(),
|
||||
KAboutData::License_GPL,
|
||||
KLocalizedString()
|
||||
);
|
||||
setAboutData(about);
|
||||
|
||||
GSRendererThread *renderer = GSRendererThread::getCreateRenderer();
|
||||
if (!renderer->isRunning()) renderer->start();
|
||||
connect(renderer, SIGNAL(imageDone(QImage *, Okular::PixmapRequest *)),
|
||||
|
|
Loading…
Reference in a new issue