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
|
|
|
|
|
|
|
#include <kparts/part.h>
|
2012-05-23 21:43:44 +00:00
|
|
|
#include <kpluginfactory.h>
|
2007-05-01 16:38:35 +00:00
|
|
|
#include <qicon.h>
|
2006-07-01 22:17:53 +00:00
|
|
|
#include <qlist.h>
|
2006-03-24 22:57:41 +00:00
|
|
|
#include <qpointer.h>
|
2007-03-27 00:00:41 +00:00
|
|
|
#include <qprocess.h>
|
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
|
|
|
|
2013-01-19 14:05:39 +00:00
|
|
|
#include "okular_part_export.h"
|
|
|
|
|
2006-07-03 10:15:55 +00:00
|
|
|
#include <QtDBus/QtDBus>
|
2004-10-12 11:08:09 +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
|
|
|
|
2006-03-24 21:31:46 +00:00
|
|
|
class KUrl;
|
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;
|
2007-01-13 00:18:44 +00:00
|
|
|
class KTemporaryFile;
|
2008-10-12 09:00:37 +00:00
|
|
|
class KAction;
|
2011-10-25 22:19:58 +00:00
|
|
|
class KMenu;
|
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;
|
2006-10-03 10:11:16 +00:00
|
|
|
class PageViewTopMessage;
|
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;
|
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
|
|
|
|
ViewerWidgetMode, // the part acts as a widget that can display all kinds of documents
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
*/
|
2013-01-19 14:05:39 +00:00
|
|
|
class OKULAR_PART_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)
|
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'.
|
|
|
|
**/
|
2012-05-23 21:43:44 +00:00
|
|
|
Part(QWidget* parentWidget, QObject* parent, const QVariantList& args, KComponentData componentData);
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
// Destructor
|
|
|
|
~Part();
|
|
|
|
|
|
|
|
// inherited from DocumentObserver
|
2007-09-09 10:50:36 +00:00
|
|
|
void notifySetup( const QVector< Okular::Page * > &pages, int setupFlags );
|
2007-01-13 00:33:50 +00:00
|
|
|
void notifyViewportChanged( bool smoothMove );
|
2007-01-13 17:28:54 +00:00
|
|
|
void notifyPageChanged( int page, int flags );
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
bool openDocument(const KUrl& url, uint page);
|
|
|
|
void startPresentation();
|
2007-05-24 20:39:35 +00:00
|
|
|
QStringList supportedMimeTypes() const;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
2007-07-25 10:08:38 +00:00
|
|
|
KUrl realUrl() const;
|
|
|
|
|
2011-11-05 09:18:08 +00:00
|
|
|
void showSourceLocation(const QString& fileName, int line, int column, bool showGraphically = true);
|
|
|
|
void clearLastShownSourceLocation();
|
2011-11-05 09:40:12 +00:00
|
|
|
bool isWatchFileModeEnabled() const;
|
2011-10-31 21:41:50 +00:00
|
|
|
void setWatchFileModeEnabled(bool enable);
|
2011-11-05 09:40:12 +00:00
|
|
|
bool areSourceLocationsShownGraphically() const;
|
2011-10-31 21:41:50 +00:00
|
|
|
void setShowSourceLocationsGraphically(bool show);
|
2011-09-10 17:15:52 +00:00
|
|
|
|
2007-01-13 00:33:50 +00:00
|
|
|
public slots: // dbus
|
|
|
|
Q_SCRIPTABLE Q_NOREPLY void goToPage(uint page);
|
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
|
|
|
|
2007-01-22 10:59:01 +00:00
|
|
|
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);
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
protected:
|
2012-05-23 21:43:44 +00:00
|
|
|
// reimplemented from KParts::ReadWritePart
|
2007-01-13 00:33:50 +00:00
|
|
|
bool openFile();
|
|
|
|
bool openUrl(const KUrl &url);
|
2011-10-23 10:07:38 +00:00
|
|
|
void guiActivateEvent(KParts::GUIActivateEvent *event);
|
2012-05-23 21:43:44 +00:00
|
|
|
public:
|
|
|
|
bool saveFile();
|
|
|
|
bool queryClose();
|
|
|
|
bool closeUrl();
|
|
|
|
bool closeUrl(bool promptToSave);
|
|
|
|
void setReadWrite(bool readwrite);
|
|
|
|
bool saveAs(const KUrl & saveUrl);
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
protected slots:
|
|
|
|
// connected to actions
|
|
|
|
void openUrlFromDocument(const KUrl &url);
|
2007-01-13 17:28:54 +00:00
|
|
|
void openUrlFromBookmarks(const KUrl &url);
|
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();
|
2011-10-25 22:19:58 +00:00
|
|
|
void slotAboutToShowContextMenu(KMenu *menu, QAction *action, QMenu *contextMenu);
|
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);
|
|
|
|
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();
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
// connected to Shell action (and browserExtension), not local one
|
|
|
|
void slotPrint();
|
2007-02-21 15:12:57 +00:00
|
|
|
void restoreDocument(const KConfigGroup &group);
|
2007-02-20 15:48:18 +00:00
|
|
|
void saveDocumentRestoreInfo(KConfigGroup &group);
|
2007-01-13 00:33:50 +00:00
|
|
|
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
|
|
|
|
|
|
|
private:
|
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 );
|
2007-07-29 00:55:17 +00:00
|
|
|
bool handleCompressed( QString &destpath, const QString &path, const QString &compressedMimetype );
|
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();
|
2012-09-25 19:26:44 +00:00
|
|
|
|
|
|
|
static int numberOfParts;
|
2007-06-17 09:45:59 +00:00
|
|
|
|
2007-01-13 00:33:50 +00:00
|
|
|
KTemporaryFile *m_tempfile;
|
|
|
|
|
|
|
|
// 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;
|
2007-01-13 00:33:50 +00:00
|
|
|
PageViewTopMessage * m_topMessage;
|
2007-02-25 00:07:59 +00:00
|
|
|
PageViewTopMessage * m_formsMessage;
|
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;
|
2007-01-13 00:33:50 +00:00
|
|
|
|
|
|
|
// document watcher (and reloader) variables
|
|
|
|
KDirWatch *m_watcher;
|
|
|
|
QTimer *m_dirtyHandler;
|
2012-11-30 22:24:19 +00:00
|
|
|
KUrl m_oldUrl;
|
2007-01-13 00:33:50 +00:00
|
|
|
Okular::DocumentViewport m_viewportDirty;
|
|
|
|
bool m_wasPresentationOpen;
|
2007-04-20 23:22:56 +00:00
|
|
|
int m_dirtyToolboxIndex;
|
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
|
2008-10-12 09:00:37 +00:00
|
|
|
KAction *m_gotoPage;
|
|
|
|
KAction *m_prevPage;
|
|
|
|
KAction *m_nextPage;
|
2010-09-03 21:30:30 +00:00
|
|
|
KAction *m_beginningOfDocument;
|
|
|
|
KAction *m_endOfDocument;
|
2008-10-12 09:00:37 +00:00
|
|
|
KAction *m_historyBack;
|
|
|
|
KAction *m_historyNext;
|
|
|
|
KAction *m_addBookmark;
|
2011-10-25 20:21:22 +00:00
|
|
|
KAction *m_renameBookmark;
|
2008-10-12 09:00:37 +00:00
|
|
|
KAction *m_prevBookmark;
|
|
|
|
KAction *m_nextBookmark;
|
|
|
|
KAction *m_copy;
|
|
|
|
KAction *m_selectAll;
|
|
|
|
KAction *m_find;
|
|
|
|
KAction *m_findNext;
|
2009-02-14 17:11:29 +00:00
|
|
|
KAction *m_findPrev;
|
2008-10-12 09:00:37 +00:00
|
|
|
KAction *m_saveAs;
|
|
|
|
KAction *m_saveCopyAs;
|
|
|
|
KAction *m_printPreview;
|
|
|
|
KAction *m_showProperties;
|
|
|
|
KAction *m_showEmbeddedFiles;
|
|
|
|
KAction *m_exportAs;
|
2007-01-13 00:33:50 +00:00
|
|
|
QAction *m_exportAsText;
|
2008-11-16 01:23:31 +00:00
|
|
|
QAction *m_exportAsDocArchive;
|
2008-10-12 09:00:37 +00:00
|
|
|
KAction *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;
|
2008-10-12 09:00:37 +00:00
|
|
|
KAction *m_aboutBackend;
|
|
|
|
KAction *m_reload;
|
2008-09-22 22:58:32 +00:00
|
|
|
QMenu *m_exportAsMenu;
|
2011-10-12 13:50:56 +00:00
|
|
|
KAction *m_closeFindBar;
|
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
|
|
|
|
2007-07-25 10:08:38 +00:00
|
|
|
KUrl m_realUrl;
|
|
|
|
|
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
|
|
|
|
2007-01-13 00:33:50 +00:00
|
|
|
private 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
|
|
|
|
2012-05-23 21:43:44 +00:00
|
|
|
class PartFactory : public KPluginFactory
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
PartFactory();
|
|
|
|
virtual ~PartFactory();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual QObject *create(const char *iface, QWidget *parentWidget, QObject *parent, const QVariantList &args, const QString &keyword);
|
|
|
|
};
|
|
|
|
|
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; */
|