2004-08-26 21:17:24 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2002 by Wilco Greven <greven@kde.org> *
|
|
|
|
* Copyright (C) 2003-2004 by Christophe Devriese *
|
|
|
|
* <Christophe.Devriese@student.kuleuven.ac.be> *
|
|
|
|
* Copyright (C) 2003 by Andy Goossens <andygoossens@telenet.be> *
|
|
|
|
* Copyright (C) 2003 by Laurent Montel <montel@kde.org> *
|
|
|
|
* Copyright (C) 2004 by Dominique Devriese <devriese@kde.org> *
|
2007-01-26 18:54:41 +00:00
|
|
|
* Copyright (C) 2004-2007 by Albert Astals Cid <aacid@kde.org> *
|
2004-08-26 21:17:24 +00:00
|
|
|
* *
|
|
|
|
* 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. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2006-09-21 08:45:36 +00:00
|
|
|
#ifndef _PART_H_
|
|
|
|
#define _PART_H_
|
2002-08-30 09:14:01 +00:00
|
|
|
|
2016-07-15 19:05:38 +00:00
|
|
|
#include <QIcon>
|
|
|
|
#include <QList>
|
|
|
|
#include <QPointer>
|
|
|
|
#include <QProcess>
|
|
|
|
#include <QtDBus>
|
2015-01-29 19:55:57 +00:00
|
|
|
#include <QUrl>
|
2016-07-15 19:05:38 +00:00
|
|
|
|
|
|
|
#include <KCompressionDevice>
|
|
|
|
#include <KIO/Job>
|
|
|
|
#include <KMessageWidget>
|
|
|
|
#include <KParts/ReadWritePart>
|
|
|
|
#include <KPluginFactory>
|
|
|
|
|
2005-01-02 14:55:14 +00:00
|
|
|
#include "core/observer.h"
|
2005-07-15 18:20:57 +00:00
|
|
|
#include "core/document.h"
|
2007-01-04 00:20:50 +00:00
|
|
|
#include "kdocumentviewer.h"
|
2011-09-10 17:15:52 +00:00
|
|
|
#include "interfaces/viewerinterface.h"
|
2006-06-05 14:55:36 +00:00
|
|
|
|
2014-10-27 21:35:06 +00:00
|
|
|
#include "okularpart_export.h"
|
2013-01-19 14:05:39 +00:00
|
|
|
|
2006-07-01 22:17:53 +00:00
|
|
|
class QAction;
|
2002-08-30 09:14:01 +00:00
|
|
|
class QWidget;
|
2007-10-15 23:01:27 +00:00
|
|
|
class QPrinter;
|
2008-09-22 22:58:32 +00:00
|
|
|
class QMenu;
|
2002-08-30 09:14:01 +00:00
|
|
|
|
2013-06-08 14:29:24 +00:00
|
|
|
class KConfigDialog;
|
2007-02-20 15:48:18 +00:00
|
|
|
class KConfigGroup;
|
2004-12-01 22:18:27 +00:00
|
|
|
class KDirWatch;
|
2002-08-30 09:14:01 +00:00
|
|
|
class KToggleAction;
|
2006-05-15 22:18:52 +00:00
|
|
|
class KToggleFullScreenAction;
|
2003-09-15 21:57:19 +00:00
|
|
|
class KSelectAction;
|
2004-09-11 15:59:32 +00:00
|
|
|
class KAboutData;
|
2014-09-17 22:30:39 +00:00
|
|
|
class QTemporaryFile;
|
2014-08-13 10:45:40 +00:00
|
|
|
class QAction;
|
2011-10-23 10:07:38 +00:00
|
|
|
namespace KParts { class GUIActivateEvent; }
|
2002-08-30 09:14:01 +00:00
|
|
|
|
2007-03-17 22:58:41 +00:00
|
|
|
class FindBar;
|
2004-09-07 22:35:33 +00:00
|
|
|
class ThumbnailList;
|
2006-10-15 19:37:14 +00:00
|
|
|
class PageSizeLabel;
|
2004-09-23 17:16:04 +00:00
|
|
|
class PageView;
|
2005-01-28 11:04:03 +00:00
|
|
|
class PresentationWidget;
|
2006-10-15 15:59:22 +00:00
|
|
|
class ProgressWidget;
|
2004-09-16 21:27:34 +00:00
|
|
|
class SearchWidget;
|
2007-08-06 17:24:10 +00:00
|
|
|
class Sidebar;
|
2006-02-18 12:06:52 +00:00
|
|
|
class TOC;
|
|
|
|
class MiniBar;
|
2012-02-02 18:55:40 +00:00
|
|
|
class MiniBarLogic;
|
2008-06-07 21:08:41 +00:00
|
|
|
class FileKeeper;
|
2008-09-22 22:58:32 +00:00
|
|
|
class Reviews;
|
|
|
|
class BookmarkList;
|
2015-08-22 20:15:32 +00:00
|
|
|
class DrawingToolActions;
|
2015-05-27 13:56:56 +00:00
|
|
|
class Layers;
|
2004-09-08 12:41:14 +00:00
|
|
|
|
2007-01-13 00:33:50 +00:00
|
|
|
namespace Okular
|
|
|
|
{
|
2004-10-09 08:10:56 +00:00
|
|
|
|
|
|
|
class BrowserExtension;
|
2009-10-26 20:59:24 +00:00
|
|
|
class ExportFormat;
|
2004-10-09 08:10:56 +00:00
|
|
|
|
2011-11-02 20:29:31 +00:00
|
|
|
/**
|
|
|
|
* Describes the possible embedding modes of the part
|
|
|
|
*
|
|
|
|
* @since 0.14 (KDE 4.8)
|
|
|
|
*/
|
|
|
|
enum EmbedMode
|
|
|
|
{
|
|
|
|
UnknownEmbedMode,
|
|
|
|
NativeShellMode, // embedded in the native Okular' shell
|
|
|
|
PrintPreviewMode, // embedded to show the print preview of a document
|
|
|
|
KHTMLPartMode, // embedded in KHTML
|
2014-03-02 12:59:49 +00:00
|
|
|
ViewerWidgetMode // the part acts as a widget that can display all kinds of documents
|
2011-11-02 20:29:31 +00:00
|
|
|
};
|
|
|
|
|
2004-10-09 08:10:56 +00:00
|
|
|
/**
|
|
|
|
* This is a "Part". It that does all the real work in a KPart
|
|
|
|
* application.
|
|
|
|
*
|
|
|
|
* @short Main Part
|
|
|
|
* @author Wilco Greven <greven@kde.org>
|
|
|
|
* @version 0.2
|
|
|
|
*/
|
2014-10-27 21:35:06 +00:00
|
|
|
class OKULARPART_EXPORT Part : public KParts::ReadWritePart, public Okular::DocumentObserver, public KDocumentViewer, public Okular::ViewerInterface
|
2002-08-30 09:14:01 +00:00
|
|
|
{
|
2007-01-13 00:33:50 +00:00
|
|
|
Q_OBJECT
|
2007-01-22 10:59:01 +00:00
|
|
|
Q_CLASSINFO("D-Bus Interface", "org.kde.okular")
|
|
|
|
Q_INTERFACES(KDocumentViewer)
|
2011-09-10 19:04:44 +00:00
|
|
|
Q_INTERFACES(Okular::ViewerInterface)
|
2016-07-15 19:05:38 +00:00
|
|
|
|
2013-01-19 14:05:39 +00:00
|
|
|
friend class PartTest;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2007-01-22 10:59:01 +00:00
|
|
|
public:
|
2007-01-13 00:33:50 +00:00
|
|
|
// Default constructor
|
2011-10-05 20:50:12 +00:00
|
|
|
/**
|
|
|
|
* If one element of 'args' contains one of the strings "Print/Preview" or "ViewerWidget",
|
|
|
|
* the part will be set up in the corresponding mode. Additionally, it is possible to specify
|
|
|
|
* which config file should be used by adding a string containing "ConfigFileName=<file name>"
|
|
|
|
* to 'args'.
|
|
|
|
**/
|
2014-08-10 12:42:51 +00:00
|
|
|
Part(QWidget* parentWidget, QObject* parent, const QVariantList& args);
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
// Destructor
|
|
|
|
~Part();
|
|
|
|
|
|
|
|
// inherited from DocumentObserver
|
2017-03-02 19:39:24 +00:00
|
|
|
void notifySetup( const QVector< Okular::Page * > &pages, int setupFlags ) override;
|
|
|
|
void notifyViewportChanged( bool smoothMove ) override;
|
|
|
|
void notifyPageChanged( int page, int flags ) override;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
bool openDocument(const QUrl &url, uint page) override;
|
|
|
|
void startPresentation() override;
|
|
|
|
QStringList supportedMimeTypes() const override;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2015-01-29 19:55:57 +00:00
|
|
|
QUrl realUrl() const;
|
2007-07-25 10:08:38 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void showSourceLocation(const QString& fileName, int line, int column, bool showGraphically = true) override;
|
|
|
|
void clearLastShownSourceLocation() override;
|
|
|
|
bool isWatchFileModeEnabled() const override;
|
|
|
|
void setWatchFileModeEnabled(bool enable) override;
|
|
|
|
bool areSourceLocationsShownGraphically() const override;
|
|
|
|
void setShowSourceLocationsGraphically(bool show) override;
|
|
|
|
bool openNewFilesInTabs() const override;
|
2011-09-10 17:15:52 +00:00
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
public Q_SLOTS: // dbus
|
2017-03-02 19:39:24 +00:00
|
|
|
Q_SCRIPTABLE Q_NOREPLY void goToPage(uint page) override;
|
2007-07-29 14:36:49 +00:00
|
|
|
Q_SCRIPTABLE Q_NOREPLY void openDocument( const QString &doc );
|
2007-01-13 00:33:50 +00:00
|
|
|
Q_SCRIPTABLE uint pages();
|
|
|
|
Q_SCRIPTABLE uint currentPage();
|
2007-07-29 14:36:49 +00:00
|
|
|
Q_SCRIPTABLE QString currentDocument();
|
2009-05-30 17:00:16 +00:00
|
|
|
Q_SCRIPTABLE QString documentMetaData( const QString &metaData ) const;
|
2007-01-13 00:33:50 +00:00
|
|
|
Q_SCRIPTABLE void slotPreferences();
|
|
|
|
Q_SCRIPTABLE void slotFind();
|
|
|
|
Q_SCRIPTABLE void slotPrintPreview();
|
|
|
|
Q_SCRIPTABLE void slotPreviousPage();
|
|
|
|
Q_SCRIPTABLE void slotNextPage();
|
|
|
|
Q_SCRIPTABLE void slotGotoFirst();
|
|
|
|
Q_SCRIPTABLE void slotGotoLast();
|
2007-08-26 14:40:29 +00:00
|
|
|
Q_SCRIPTABLE void slotTogglePresentation();
|
2008-09-22 22:18:07 +00:00
|
|
|
Q_SCRIPTABLE Q_NOREPLY void reload();
|
2013-03-11 21:52:25 +00:00
|
|
|
Q_SCRIPTABLE Q_NOREPLY void enableStartWithPrint();
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
Q_SIGNALS:
|
2007-01-13 00:33:50 +00:00
|
|
|
void enablePrintAction(bool enable);
|
2011-09-10 17:15:52 +00:00
|
|
|
void openSourceReference(const QString& absFileName, int line, int column);
|
2011-10-23 09:17:04 +00:00
|
|
|
void viewerMenuStateChange(bool enabled);
|
2012-09-04 18:04:01 +00:00
|
|
|
void enableCloseAction(bool enable);
|
2014-09-11 13:18:05 +00:00
|
|
|
void mimeTypeChanged(QMimeType mimeType);
|
2014-08-13 11:07:44 +00:00
|
|
|
void urlsDropped( const QList<QUrl>& urls );
|
2015-03-16 23:20:11 +00:00
|
|
|
void fitWindowToPage( const QSize& pageViewPortSize, const QSize& pageSize );
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
protected:
|
2012-05-23 21:43:44 +00:00
|
|
|
// reimplemented from KParts::ReadWritePart
|
2017-03-02 19:39:24 +00:00
|
|
|
bool openFile() override;
|
|
|
|
bool openUrl(const QUrl &url) override;
|
|
|
|
void guiActivateEvent(KParts::GUIActivateEvent *event) override;
|
2014-08-10 18:36:41 +00:00
|
|
|
void displayInfoMessage( const QString &message, KMessageWidget::MessageType messageType = KMessageWidget::Information, int duration = -1 );
|
2012-05-23 21:43:44 +00:00
|
|
|
public:
|
2017-03-02 19:39:24 +00:00
|
|
|
bool saveFile() override;
|
|
|
|
bool queryClose() override;
|
|
|
|
bool closeUrl() override;
|
|
|
|
bool closeUrl(bool promptToSave) override;
|
|
|
|
void setReadWrite(bool readwrite) override;
|
|
|
|
bool saveAs(const QUrl & saveUrl) override;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
protected Q_SLOTS:
|
2007-01-13 00:33:50 +00:00
|
|
|
// connected to actions
|
2015-01-29 19:55:57 +00:00
|
|
|
void openUrlFromDocument(const QUrl &url);
|
|
|
|
void openUrlFromBookmarks(const QUrl &url);
|
2014-08-13 11:07:44 +00:00
|
|
|
void handleDroppedUrls( const QList<QUrl>& urls );
|
2007-01-13 00:33:50 +00:00
|
|
|
void slotGoToPage();
|
|
|
|
void slotHistoryBack();
|
|
|
|
void slotHistoryNext();
|
2007-05-01 14:43:30 +00:00
|
|
|
void slotAddBookmark();
|
2011-10-25 22:19:58 +00:00
|
|
|
void slotRenameBookmarkFromMenu();
|
2012-03-26 18:01:01 +00:00
|
|
|
void slotRenameCurrentViewportBookmark();
|
2007-01-13 00:33:50 +00:00
|
|
|
void slotPreviousBookmark();
|
|
|
|
void slotNextBookmark();
|
|
|
|
void slotFindNext();
|
2009-02-14 17:11:29 +00:00
|
|
|
void slotFindPrev();
|
2007-01-13 00:33:50 +00:00
|
|
|
void slotSaveFileAs();
|
2008-03-11 23:40:59 +00:00
|
|
|
void slotSaveCopyAs();
|
2007-01-13 00:33:50 +00:00
|
|
|
void slotGetNewStuff();
|
|
|
|
void slotNewConfig();
|
|
|
|
void slotShowMenu(const Okular::Page *page, const QPoint &point);
|
2017-03-23 00:32:48 +00:00
|
|
|
void slotShowTOCMenu(const Okular::DocumentViewport &vp, const QPoint &point, const QString &title);
|
2007-01-13 00:33:50 +00:00
|
|
|
void slotShowProperties();
|
|
|
|
void slotShowEmbeddedFiles();
|
|
|
|
void slotShowLeftPanel();
|
2010-10-29 21:47:17 +00:00
|
|
|
void slotShowBottomBar();
|
2007-01-13 00:33:50 +00:00
|
|
|
void slotShowPresentation();
|
|
|
|
void slotHidePresentation();
|
|
|
|
void slotExportAs(QAction *);
|
|
|
|
bool slotImportPSFile();
|
2007-03-07 18:15:00 +00:00
|
|
|
void slotAboutBackend();
|
2007-05-06 11:23:26 +00:00
|
|
|
void slotReload();
|
2007-01-13 00:33:50 +00:00
|
|
|
void close();
|
|
|
|
void cannotQuit();
|
2007-03-17 22:58:41 +00:00
|
|
|
void slotShowFindBar();
|
|
|
|
void slotHideFindBar();
|
2010-08-20 16:07:36 +00:00
|
|
|
void slotJobStarted(KIO::Job *job);
|
2010-08-20 16:20:17 +00:00
|
|
|
void slotJobFinished(KJob *job);
|
2007-06-05 21:25:41 +00:00
|
|
|
void loadCancelled(const QString &reason);
|
|
|
|
void setWindowTitleFromDocument();
|
2007-01-13 00:33:50 +00:00
|
|
|
// can be connected to widget elements
|
|
|
|
void updateViewActions();
|
2007-05-01 14:43:30 +00:00
|
|
|
void updateBookmarksActions();
|
2007-01-13 00:33:50 +00:00
|
|
|
void enableTOC(bool enable);
|
2008-02-05 17:36:04 +00:00
|
|
|
void slotRebuildBookmarkMenu();
|
2015-05-27 13:56:56 +00:00
|
|
|
void enableLayers( bool enable );
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
public Q_SLOTS:
|
2007-01-13 00:33:50 +00:00
|
|
|
// connected to Shell action (and browserExtension), not local one
|
|
|
|
void slotPrint();
|
|
|
|
void slotFileDirty( const QString& );
|
|
|
|
void slotDoFileDirty();
|
2007-03-27 00:00:41 +00:00
|
|
|
void psTransformEnded(int, QProcess::ExitStatus);
|
2013-06-08 14:29:24 +00:00
|
|
|
KConfigDialog * slotGeneratorPreferences();
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2014-05-10 08:26:29 +00:00
|
|
|
void errorMessage( const QString &message, int duration = 0 );
|
|
|
|
void warningMessage( const QString &message, int duration = -1 );
|
|
|
|
void noticeMessage( const QString &message, int duration = -1 );
|
|
|
|
|
2015-03-16 23:20:11 +00:00
|
|
|
void moveSplitter( const int sideWidgetSize );
|
|
|
|
|
2007-01-13 00:33:50 +00:00
|
|
|
private:
|
2016-10-29 10:23:14 +00:00
|
|
|
bool aboutToShowContextMenu(QMenu *menu, QAction *action, QMenu *contextMenu);
|
2017-03-23 00:22:08 +00:00
|
|
|
void showMenu(const Okular::Page *page, const QPoint &point, const QString &bookmarkTitle = QString(), const Okular::DocumentViewport &vp = DocumentViewport());
|
2016-10-29 10:23:14 +00:00
|
|
|
bool eventFilter(QObject * watched, QEvent * event) override;
|
2014-09-11 13:18:05 +00:00
|
|
|
Document::OpenResult doOpenFile(const QMimeType &mime, const QString &fileNameToOpen, bool *isCompressedFile);
|
2014-08-13 21:51:48 +00:00
|
|
|
|
2011-10-12 19:36:01 +00:00
|
|
|
void setupViewerActions();
|
2011-10-24 20:30:05 +00:00
|
|
|
void setViewerShortcuts();
|
2011-10-12 19:36:01 +00:00
|
|
|
void setupActions();
|
|
|
|
|
2007-11-26 21:43:54 +00:00
|
|
|
void setupPrint( QPrinter &printer );
|
|
|
|
void doPrint( QPrinter &printer );
|
2016-07-11 21:52:42 +00:00
|
|
|
bool handleCompressed(QString &destpath, const QString &path, KCompressionDevice::CompressionType compressionType );
|
2007-01-13 17:28:54 +00:00
|
|
|
void rebuildBookmarkMenu( bool unplugActions = true );
|
2007-03-07 18:15:00 +00:00
|
|
|
void updateAboutBackendAction();
|
2007-06-17 09:45:59 +00:00
|
|
|
void unsetDummyMode();
|
2012-03-26 18:01:01 +00:00
|
|
|
void slotRenameBookmark( const DocumentViewport &viewport );
|
2013-03-11 21:52:25 +00:00
|
|
|
void resetStartArguments();
|
2016-07-15 19:05:38 +00:00
|
|
|
|
2012-09-25 19:26:44 +00:00
|
|
|
static int numberOfParts;
|
2007-06-17 09:45:59 +00:00
|
|
|
|
2014-09-17 22:30:39 +00:00
|
|
|
QTemporaryFile *m_tempfile;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
// the document
|
|
|
|
Okular::Document * m_document;
|
|
|
|
QString m_temporaryLocalFile;
|
2012-05-30 16:33:07 +00:00
|
|
|
bool isDocumentArchive;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
// main widgets
|
2007-08-06 17:24:10 +00:00
|
|
|
Sidebar *m_sidebar;
|
2007-01-13 00:33:50 +00:00
|
|
|
SearchWidget *m_searchWidget;
|
2007-03-17 22:58:41 +00:00
|
|
|
FindBar * m_findBar;
|
2014-05-09 15:19:50 +00:00
|
|
|
KMessageWidget * m_topMessage;
|
|
|
|
KMessageWidget * m_formsMessage;
|
2014-05-10 08:26:29 +00:00
|
|
|
KMessageWidget * m_infoMessage;
|
2007-01-13 00:33:50 +00:00
|
|
|
QPointer<ThumbnailList> m_thumbnailList;
|
|
|
|
QPointer<PageView> m_pageView;
|
|
|
|
QPointer<TOC> m_toc;
|
2012-02-02 18:55:40 +00:00
|
|
|
QPointer<MiniBarLogic> m_miniBarLogic;
|
2007-01-13 00:33:50 +00:00
|
|
|
QPointer<MiniBar> m_miniBar;
|
2012-01-31 18:48:20 +00:00
|
|
|
QPointer<MiniBar> m_pageNumberTool;
|
2010-10-29 21:47:17 +00:00
|
|
|
QPointer<QWidget> m_bottomBar;
|
2007-01-13 00:33:50 +00:00
|
|
|
QPointer<PresentationWidget> m_presentationWidget;
|
|
|
|
QPointer<ProgressWidget> m_progressWidget;
|
|
|
|
QPointer<PageSizeLabel> m_pageSizeLabel;
|
2008-09-22 22:58:32 +00:00
|
|
|
QPointer<Reviews> m_reviewsWidget;
|
|
|
|
QPointer<BookmarkList> m_bookmarkList;
|
2015-05-27 13:56:56 +00:00
|
|
|
QPointer<Layers> m_layers;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
// document watcher (and reloader) variables
|
|
|
|
KDirWatch *m_watcher;
|
|
|
|
QTimer *m_dirtyHandler;
|
2015-01-29 19:55:57 +00:00
|
|
|
QUrl m_oldUrl;
|
2007-01-13 00:33:50 +00:00
|
|
|
Okular::DocumentViewport m_viewportDirty;
|
|
|
|
bool m_wasPresentationOpen;
|
2015-09-15 23:18:17 +00:00
|
|
|
QWidget *m_dirtyToolboxItem;
|
2007-11-01 17:52:47 +00:00
|
|
|
bool m_wasSidebarVisible;
|
2011-12-27 23:49:44 +00:00
|
|
|
bool m_wasSidebarCollapsed;
|
2008-03-17 23:02:33 +00:00
|
|
|
bool m_fileWasRemoved;
|
2011-06-25 22:14:04 +00:00
|
|
|
Rotation m_dirtyPageRotation;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
// Remember the search history
|
|
|
|
QStringList m_searchHistory;
|
|
|
|
|
|
|
|
// actions
|
2014-08-09 23:08:54 +00:00
|
|
|
QAction *m_gotoPage;
|
|
|
|
QAction *m_prevPage;
|
|
|
|
QAction *m_nextPage;
|
|
|
|
QAction *m_beginningOfDocument;
|
|
|
|
QAction *m_endOfDocument;
|
|
|
|
QAction *m_historyBack;
|
|
|
|
QAction *m_historyNext;
|
|
|
|
QAction *m_addBookmark;
|
|
|
|
QAction *m_renameBookmark;
|
|
|
|
QAction *m_prevBookmark;
|
|
|
|
QAction *m_nextBookmark;
|
|
|
|
QAction *m_copy;
|
|
|
|
QAction *m_selectAll;
|
|
|
|
QAction *m_find;
|
|
|
|
QAction *m_findNext;
|
|
|
|
QAction *m_findPrev;
|
|
|
|
QAction *m_saveAs;
|
|
|
|
QAction *m_saveCopyAs;
|
|
|
|
QAction *m_printPreview;
|
|
|
|
QAction *m_showProperties;
|
|
|
|
QAction *m_showEmbeddedFiles;
|
|
|
|
QAction *m_exportAs;
|
2007-01-13 00:33:50 +00:00
|
|
|
QAction *m_exportAsText;
|
2008-11-16 01:23:31 +00:00
|
|
|
QAction *m_exportAsDocArchive;
|
2014-08-09 23:08:54 +00:00
|
|
|
QAction *m_showPresentation;
|
2007-01-13 00:33:50 +00:00
|
|
|
KToggleAction* m_showMenuBarAction;
|
|
|
|
KToggleAction* m_showLeftPanel;
|
2010-10-29 21:47:17 +00:00
|
|
|
KToggleAction* m_showBottomBar;
|
2007-01-13 00:33:50 +00:00
|
|
|
KToggleFullScreenAction* m_showFullScreenAction;
|
2014-08-09 23:08:54 +00:00
|
|
|
QAction *m_aboutBackend;
|
|
|
|
QAction *m_reload;
|
2008-09-22 22:58:32 +00:00
|
|
|
QMenu *m_exportAsMenu;
|
2014-08-09 23:08:54 +00:00
|
|
|
QAction *m_closeFindBar;
|
2015-08-22 20:15:32 +00:00
|
|
|
DrawingToolActions *m_presentationDrawingActions;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
bool m_actionsSearched;
|
|
|
|
BrowserExtension *m_bExtension;
|
|
|
|
|
|
|
|
QList<Okular::ExportFormat> m_exportFormats;
|
2007-01-13 17:28:54 +00:00
|
|
|
QList<QAction*> m_bookmarkActions;
|
2007-01-13 00:33:50 +00:00
|
|
|
bool m_cliPresentation;
|
2013-03-11 21:52:25 +00:00
|
|
|
bool m_cliPrint;
|
2007-05-01 14:43:30 +00:00
|
|
|
QString m_addBookmarkText;
|
2007-05-01 16:38:35 +00:00
|
|
|
QIcon m_addBookmarkIcon;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2009-03-22 18:38:38 +00:00
|
|
|
EmbedMode m_embedMode;
|
2007-06-05 20:49:00 +00:00
|
|
|
|
2015-01-29 19:55:57 +00:00
|
|
|
QUrl m_realUrl;
|
2007-07-25 10:08:38 +00:00
|
|
|
|
2007-08-28 23:17:00 +00:00
|
|
|
KXMLGUIClient *m_generatorGuiClient;
|
2008-06-07 21:08:41 +00:00
|
|
|
FileKeeper *m_keeper;
|
2007-08-28 23:17:00 +00:00
|
|
|
|
2014-05-10 08:26:29 +00:00
|
|
|
// Timer for m_infoMessage
|
|
|
|
QTimer *m_infoTimer;
|
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
private Q_SLOTS:
|
2013-05-28 21:55:10 +00:00
|
|
|
void slotAnnotationPreferences();
|
2011-10-23 13:22:58 +00:00
|
|
|
void slotHandleActivatedSourceReference(const QString& absFileName, int line, int col, bool *handled);
|
2004-10-09 08:10:56 +00:00
|
|
|
};
|
2002-09-02 21:56:00 +00:00
|
|
|
|
2009-10-26 20:59:24 +00:00
|
|
|
}
|
|
|
|
|
2002-08-30 09:14:01 +00:00
|
|
|
#endif
|
|
|
|
|
2008-03-17 23:02:33 +00:00
|
|
|
/* kate: replace-tabs on; indent-width 4; */
|