okular
Part Class Reference
#include <part.h>
Inheritance diagram for Part:

Detailed Description
This is a "Part".It that does all the real work in a KPart application.
Main Part
- Version:
- 0.2
Definition at line 71 of file part.h.
Public Slots | |
| Q_SCRIPTABLE Q_NOREPLY void | goToPage (uint page) |
| Q_SCRIPTABLE Q_NOREPLY void | openDocument (const QString &doc) |
| Q_SCRIPTABLE uint | pages () |
| Q_SCRIPTABLE uint | currentPage () |
| Q_SCRIPTABLE QString | currentDocument () |
| 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 () |
| Q_SCRIPTABLE void | slotTogglePresentation () |
| void | slotPrint () |
| void | restoreDocument (const KConfigGroup &group) |
| void | saveDocumentRestoreInfo (KConfigGroup &group) |
| void | slotFileDirty (const QString &) |
| void | slotDoFileDirty () |
| void | psTransformEnded (int, QProcess::ExitStatus) |
Signals | |
| void | enablePrintAction (bool enable) |
Public Member Functions | |
| Part (QWidget *parentWidget, QObject *parent, const QVariantList &args) | |
| ~Part () | |
| uint | observerId () const |
| void | notifySetup (const QVector< Okular::Page * > &pages, int setupFlags) |
| void | notifyViewportChanged (bool smoothMove) |
| void | notifyPageChanged (int page, int flags) |
| bool | openDocument (const KUrl &url, uint page) |
| void | startPresentation () |
| QStringList | supportedMimeTypes () const |
| KUrl | realUrl () const |
Protected Slots | |
| void | openUrlFromDocument (const KUrl &url) |
| void | openUrlFromBookmarks (const KUrl &url) |
| void | slotGoToPage () |
| void | slotHistoryBack () |
| void | slotHistoryNext () |
| void | slotAddBookmark () |
| void | slotPreviousBookmark () |
| void | slotNextBookmark () |
| void | slotFindNext () |
| void | slotSaveFileAs () |
| void | slotGetNewStuff () |
| void | slotNewConfig () |
| void | slotNewGeneratorConfig () |
| void | slotShowMenu (const Okular::Page *page, const QPoint &point) |
| void | slotShowProperties () |
| void | slotShowEmbeddedFiles () |
| void | slotShowLeftPanel () |
| void | slotShowPresentation () |
| void | slotHidePresentation () |
| void | slotExportAs (QAction *) |
| bool | slotImportPSFile () |
| void | slotAboutBackend () |
| void | slotReload () |
| void | close () |
| void | cannotQuit () |
| void | slotShowFindBar () |
| void | slotHideFindBar () |
| void | setMimeTypes (KIO::Job *job) |
| void | loadCancelled (const QString &reason) |
| void | setWindowTitleFromDocument () |
| void | updateViewActions () |
| void | updateBookmarksActions () |
| void | enableTOC (bool enable) |
| void | slotRebuildBookmarkMenu () |
Protected Member Functions | |
| bool | openFile () |
| bool | openUrl (const KUrl &url) |
| bool | closeUrl () |
Constructor & Destructor Documentation
Member Function Documentation
| uint Part::observerId | ( | ) | const [inline, virtual] |
Must return an unique ID for each observer (used for notifications).
Implements Okular::DocumentObserver.
| void Part::notifySetup | ( | const QVector< Okular::Page * > & | pages, | |
| int | setupFlags | |||
| ) | [virtual] |
This method is called whenever the document is initialized or reconstructed.
- Parameters:
-
pages The vector of pages of the document. setupFlags the flags with the information about the setup
Reimplemented from Okular::DocumentObserver.
| void Part::notifyViewportChanged | ( | bool | smoothMove | ) | [virtual] |
This method is called whenever the viewport has been changed.
- Parameters:
-
smoothMove If true, the move shall be animated.
Reimplemented from Okular::DocumentObserver.
| void Part::notifyPageChanged | ( | int | page, | |
| int | flags | |||
| ) | [virtual] |
This method is called whenever the content on page described by the passed flags has been changed.
Reimplemented from Okular::DocumentObserver.
| bool Part::openDocument | ( | const KUrl & | url, | |
| uint | page | |||
| ) | [virtual] |
| void Part::startPresentation | ( | ) | [virtual] |
| QStringList Part::supportedMimeTypes | ( | ) | const [virtual] |
| void Part::goToPage | ( | uint | page | ) | [virtual, slot] |
| void Part::enablePrintAction | ( | bool | enable | ) | [signal] |
| void Part::openUrlFromDocument | ( | const KUrl & | url | ) | [protected, slot] |
| void Part::openUrlFromBookmarks | ( | const KUrl & | url | ) | [protected, slot] |
| void Part::slotShowMenu | ( | const Okular::Page * | page, | |
| const QPoint & | point | |||
| ) | [protected, slot] |
| void Part::slotExportAs | ( | QAction * | act | ) | [protected, slot] |
| void Part::setMimeTypes | ( | KIO::Job * | job | ) | [protected, slot] |
| void Part::loadCancelled | ( | const QString & | reason | ) | [protected, slot] |
| void Part::setWindowTitleFromDocument | ( | ) | [protected, slot] |
| void Part::restoreDocument | ( | const KConfigGroup & | group | ) | [slot] |
| void Part::saveDocumentRestoreInfo | ( | KConfigGroup & | group | ) | [slot] |
| void Part::slotFileDirty | ( | const QString & | fileName | ) | [slot] |
| void Part::psTransformEnded | ( | int | exit, | |
| QProcess::ExitStatus | status | |||
| ) | [slot] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference