okular
#include <part.h>
|
| Part (QWidget *parentWidget, QObject *parent, const QVariantList &args, KComponentData componentData) |
|
| ~Part () |
|
bool | areSourceLocationsShownGraphically () const |
|
void | clearLastShownSourceLocation () |
|
bool | closeUrl () |
|
bool | closeUrl (bool promptToSave) |
|
bool | isWatchFileModeEnabled () const |
|
void | notifyPageChanged (int page, int flags) |
|
void | notifySetup (const QVector< Okular::Page * > &pages, int setupFlags) |
|
void | notifyViewportChanged (bool smoothMove) |
|
bool | openDocument (const KUrl &url, uint page) |
|
bool | openNewFilesInTabs () const |
|
bool | queryClose () |
|
KUrl | realUrl () const |
|
bool | saveAs (const KUrl &saveUrl) |
|
bool | saveFile () |
|
void | setReadWrite (bool readwrite) |
|
void | setShowSourceLocationsGraphically (bool show) |
|
void | setWatchFileModeEnabled (bool enable) |
|
void | showSourceLocation (const QString &fileName, int line, int column, bool showGraphically=true) |
|
void | startPresentation () |
|
QStringList | supportedMimeTypes () const |
|
| DocumentObserver () |
|
virtual | ~DocumentObserver () |
|
virtual bool | canUnloadPixmap (int page) const |
|
virtual void | notifyContentsCleared (int flags) |
|
virtual void | notifyCurrentPageChanged (int previous, int current) |
|
virtual void | notifyVisibleRectsChanged () |
|
virtual void | notifyZoom (int factor) |
|
virtual | ~KDocumentViewer () |
|
virtual void | goToPage (uint page)=0 |
|
virtual | ~ViewerInterface () |
|
void | openSourceReference (const QString &absFileName, int line, int column) |
|
void | viewerMenuStateChange (bool enabled) |
|
This is a "Part".
It that does all the real work in a KPart application.
Main Part
- Author
- Wilco Greven greve.nosp@m.n@kd.nosp@m.e.org
- Version
- 0.2
Definition at line 96 of file part.h.
Okular::Part::Part |
( |
QWidget * |
parentWidget, |
|
|
QObject * |
parent, |
|
|
const QVariantList & |
args, |
|
|
KComponentData |
componentData |
|
) |
| |
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'.
Definition at line 301 of file part.cpp.
bool Okular::Part::areSourceLocationsShownGraphically |
( |
| ) |
const |
|
virtual |
void Okular::Part::cannotQuit |
( |
| ) |
|
|
protectedslot |
void Okular::Part::clearLastShownSourceLocation |
( |
| ) |
|
|
virtual |
void Okular::Part::close |
( |
| ) |
|
|
protectedslot |
bool Okular::Part::closeUrl |
( |
| ) |
|
bool Okular::Part::closeUrl |
( |
bool |
promptToSave | ) |
|
QString Okular::Part::currentDocument |
( |
| ) |
|
|
slot |
uint Okular::Part::currentPage |
( |
| ) |
|
|
slot |
void Okular::Part::displayInfoMessage |
( |
const QString & |
message, |
|
|
KMessageWidget::MessageType |
messageType = KMessageWidget::Information , |
|
|
int |
duration = -1 |
|
) |
| |
|
protected |
QString Okular::Part::documentMetaData |
( |
const QString & |
metaData | ) |
const |
|
slot |
void Okular::Part::enableCloseAction |
( |
bool |
enable | ) |
|
|
signal |
void Okular::Part::enablePrintAction |
( |
bool |
enable | ) |
|
|
signal |
void Okular::Part::enableStartWithPrint |
( |
| ) |
|
|
slot |
void Okular::Part::enableTOC |
( |
bool |
enable | ) |
|
|
protectedslot |
void Okular::Part::errorMessage |
( |
const QString & |
message, |
|
|
int |
duration = 0 |
|
) |
| |
|
slot |
void Okular::Part::goToPage |
( |
uint |
page | ) |
|
|
slot |
void Okular::Part::guiActivateEvent |
( |
KParts::GUIActivateEvent * |
event | ) |
|
|
protected |
void Okular::Part::handleDroppedUrls |
( |
const KUrl::List & |
urls | ) |
|
|
protectedslot |
bool Okular::Part::isWatchFileModeEnabled |
( |
| ) |
const |
|
virtual |
void Okular::Part::loadCancelled |
( |
const QString & |
reason | ) |
|
|
protectedslot |
void Okular::Part::mimeTypeChanged |
( |
KMimeType::Ptr |
mimeType | ) |
|
|
signal |
void Okular::Part::noticeMessage |
( |
const QString & |
message, |
|
|
int |
duration = -1 |
|
) |
| |
|
slot |
void Okular::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.
Definition at line 1117 of file part.cpp.
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.
Definition at line 1101 of file part.cpp.
void Okular::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.
Definition at line 1112 of file part.cpp.
bool Okular::Part::openDocument |
( |
const KUrl & |
url, |
|
|
uint |
page |
|
) |
| |
|
virtual |
void Okular::Part::openDocument |
( |
const QString & |
doc | ) |
|
|
slot |
bool Okular::Part::openFile |
( |
| ) |
|
|
protected |
bool Okular::Part::openNewFilesInTabs |
( |
| ) |
const |
|
virtual |
void Okular::Part::openSourceReference |
( |
const QString & |
absFileName, |
|
|
int |
line, |
|
|
int |
column |
|
) |
| |
|
signal |
bool Okular::Part::openUrl |
( |
const KUrl & |
url | ) |
|
|
protected |
void Okular::Part::openUrlFromBookmarks |
( |
const KUrl & |
url | ) |
|
|
protectedslot |
void Okular::Part::openUrlFromDocument |
( |
const KUrl & |
url | ) |
|
|
protectedslot |
uint Okular::Part::pages |
( |
| ) |
|
|
slot |
void Okular::Part::psTransformEnded |
( |
int |
exit, |
|
|
QProcess::ExitStatus |
status |
|
) |
| |
|
slot |
bool Okular::Part::queryClose |
( |
| ) |
|
KUrl Okular::Part::realUrl |
( |
| ) |
const |
void Okular::Part::reload |
( |
| ) |
|
|
slot |
void Okular::Part::restoreDocument |
( |
const KConfigGroup & |
group | ) |
|
|
slot |
bool Okular::Part::saveAs |
( |
const KUrl & |
saveUrl | ) |
|
void Okular::Part::saveDocumentRestoreInfo |
( |
KConfigGroup & |
group | ) |
|
|
slot |
bool Okular::Part::saveFile |
( |
| ) |
|
void Okular::Part::setReadWrite |
( |
bool |
readwrite | ) |
|
void Okular::Part::setShowSourceLocationsGraphically |
( |
bool |
b | ) |
|
|
virtual |
void Okular::Part::setWatchFileModeEnabled |
( |
bool |
b | ) |
|
|
virtual |
void Okular::Part::setWindowTitleFromDocument |
( |
| ) |
|
|
protectedslot |
void Okular::Part::showSourceLocation |
( |
const QString & |
fileName, |
|
|
int |
line, |
|
|
int |
column, |
|
|
bool |
showGraphically = true |
|
) |
| |
|
virtual |
Show the specified source location centrally in the viewer.
- Parameters
-
fileName | source file name |
line | in the source file, starts from 0 |
column | in the source file, starts from 0 |
showGraphically | controls whether the given source location will be shown graphically in the viewer (if that feature is globally activated) |
Implements Okular::ViewerInterface.
Definition at line 919 of file part.cpp.
void Okular::Part::slotAboutBackend |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotAboutToShowContextMenu |
( |
KMenu * |
menu, |
|
|
QAction * |
action, |
|
|
QMenu * |
contextMenu |
|
) |
| |
|
protectedslot |
void Okular::Part::slotAddBookmark |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotDoFileDirty |
( |
| ) |
|
|
slot |
void Okular::Part::slotExportAs |
( |
QAction * |
act | ) |
|
|
protectedslot |
void Okular::Part::slotFileDirty |
( |
const QString & |
path | ) |
|
|
slot |
void Okular::Part::slotFind |
( |
| ) |
|
|
slot |
void Okular::Part::slotFindNext |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotFindPrev |
( |
| ) |
|
|
protectedslot |
KConfigDialog * Okular::Part::slotGeneratorPreferences |
( |
| ) |
|
|
slot |
void Okular::Part::slotGetNewStuff |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotGotoFirst |
( |
| ) |
|
|
slot |
void Okular::Part::slotGotoLast |
( |
| ) |
|
|
slot |
void Okular::Part::slotGoToPage |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotHideFindBar |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotHidePresentation |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotHistoryBack |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotHistoryNext |
( |
| ) |
|
|
protectedslot |
bool Okular::Part::slotImportPSFile |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotJobFinished |
( |
KJob * |
job | ) |
|
|
protectedslot |
void Okular::Part::slotJobStarted |
( |
KIO::Job * |
job | ) |
|
|
protectedslot |
void Okular::Part::slotNewConfig |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotNextBookmark |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotNextPage |
( |
| ) |
|
|
slot |
void Okular::Part::slotPreferences |
( |
| ) |
|
|
slot |
void Okular::Part::slotPreviousBookmark |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotPreviousPage |
( |
| ) |
|
|
slot |
void Okular::Part::slotPrint |
( |
| ) |
|
|
slot |
void Okular::Part::slotPrintPreview |
( |
| ) |
|
|
slot |
void Okular::Part::slotRebuildBookmarkMenu |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotReload |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotRenameBookmarkFromMenu |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotRenameCurrentViewportBookmark |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotSaveCopyAs |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotSaveFileAs |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotShowBottomBar |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotShowEmbeddedFiles |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotShowFindBar |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotShowLeftPanel |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotShowPresentation |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotShowProperties |
( |
| ) |
|
|
protectedslot |
void Okular::Part::slotTogglePresentation |
( |
| ) |
|
|
slot |
void Okular::Part::startPresentation |
( |
| ) |
|
|
virtual |
void Okular::Part::updateBookmarksActions |
( |
| ) |
|
|
protectedslot |
void Okular::Part::updateViewActions |
( |
| ) |
|
|
protectedslot |
void Okular::Part::urlsDropped |
( |
const KUrl::List & |
urls | ) |
|
|
signal |
void Okular::Part::viewerMenuStateChange |
( |
bool |
enabled | ) |
|
|
signal |
void Okular::Part::warningMessage |
( |
const QString & |
message, |
|
|
int |
duration = -1 |
|
) |
| |
|
slot |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:26 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.