Changeset View
Changeset View
Standalone View
Standalone View
core/generator.cpp
Show All 18 Lines | |||||
19 | #include <qeventloop.h> | 19 | #include <qeventloop.h> | ||
20 | #include <QtPrintSupport/QPrinter> | 20 | #include <QtPrintSupport/QPrinter> | ||
21 | 21 | | |||
22 | #include <QtCore/QDebug> | 22 | #include <QtCore/QDebug> | ||
23 | #include <QIcon> | 23 | #include <QIcon> | ||
24 | #include <QMimeDatabase> | 24 | #include <QMimeDatabase> | ||
25 | #include <QTimer> | 25 | #include <QTimer> | ||
26 | #include <KLocalizedString> | 26 | #include <KLocalizedString> | ||
27 | | ||||
28 | #ifdef HAVE_KWALLET | ||||
27 | #include <kwallet.h> | 29 | #include <kwallet.h> | ||
30 | #endif | ||||
28 | 31 | | |||
29 | #include "document.h" | 32 | #include "document.h" | ||
30 | #include "document_p.h" | 33 | #include "document_p.h" | ||
31 | #include "page.h" | 34 | #include "page.h" | ||
32 | #include "page_p.h" | 35 | #include "page_p.h" | ||
33 | #include "textpage.h" | 36 | #include "textpage.h" | ||
34 | #include "utils.h" | 37 | #include "utils.h" | ||
35 | 38 | | |||
▲ Show 20 Lines • Show All 370 Lines • ▼ Show 20 Line(s) | |||||
406 | 409 | | |||
407 | bool Generator::exportTo( const QString&, const ExportFormat& ) | 410 | bool Generator::exportTo( const QString&, const ExportFormat& ) | ||
408 | { | 411 | { | ||
409 | return false; | 412 | return false; | ||
410 | } | 413 | } | ||
411 | 414 | | |||
412 | void Generator::walletDataForFile( const QString &fileName, QString *walletName, QString *walletFolder, QString *walletKey ) const | 415 | void Generator::walletDataForFile( const QString &fileName, QString *walletName, QString *walletFolder, QString *walletKey ) const | ||
413 | { | 416 | { | ||
417 | #ifdef HAVE_KWALLET | ||||
414 | *walletKey = fileName.section( QLatin1Char('/'), -1, -1); | 418 | *walletKey = fileName.section( QLatin1Char('/'), -1, -1); | ||
415 | *walletName = KWallet::Wallet::NetworkWallet(); | 419 | *walletName = KWallet::Wallet::NetworkWallet(); | ||
416 | *walletFolder = QStringLiteral("KPdf"); | 420 | *walletFolder = QStringLiteral("KPdf"); | ||
421 | #endif | ||||
417 | } | 422 | } | ||
418 | 423 | | |||
419 | bool Generator::hasFeature( GeneratorFeature feature ) const | 424 | bool Generator::hasFeature( GeneratorFeature feature ) const | ||
420 | { | 425 | { | ||
421 | Q_D( const Generator ); | 426 | Q_D( const Generator ); | ||
422 | return d->m_features.contains( feature ); | 427 | return d->m_features.contains( feature ); | ||
423 | } | 428 | } | ||
424 | 429 | | |||
▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines |