• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdegraphics
  • Sitemap
  • Contact Us
 

okular

Part Class Reference

#include <part.h>

Inheritance diagram for Part:

Inheritance graph
[legend]

List of all members.


Detailed Description

This is a "Part".

It that does all the real work in a KPart application.

Main Part

Author:
Wilco Greven <greven@kde.org>
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

Part::Part ( QWidget *  parentWidget,
QObject *  parent,
const QVariantList &  args 
)

Definition at line 123 of file part.cpp.

Part::~Part (  ) 

Definition at line 486 of file part.cpp.


Member Function Documentation

uint Part::observerId (  )  const [inline, virtual]

Must return an unique ID for each observer (used for notifications).

Implements Okular::DocumentObserver.

Definition at line 85 of file part.h.

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.

Definition at line 629 of file part.cpp.

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.

Definition at line 639 of file part.cpp.

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.

Definition at line 651 of file part.cpp.

bool Part::openDocument ( const KUrl &  url,
uint  page 
) [virtual]

Open the document at the specified url at page page.

Implements KDocumentViewer.

Definition at line 508 of file part.cpp.

void Part::startPresentation (  )  [virtual]

Start the presentation mode.

Implements KDocumentViewer.

Definition at line 521 of file part.cpp.

QStringList Part::supportedMimeTypes (  )  const [virtual]

Return a list with the supported mimetypes.

Implements KDocumentViewer.

Definition at line 527 of file part.cpp.

KUrl Part::realUrl (  )  const

Definition at line 533 of file part.cpp.

void Part::goToPage ( uint  page  )  [virtual, slot]

Change to page the currently shown page.

Implements KDocumentViewer.

Definition at line 662 of file part.cpp.

void Part::openDocument ( const QString &  doc  )  [slot]

Definition at line 669 of file part.cpp.

uint Part::pages (  )  [slot]

Definition at line 675 of file part.cpp.

uint Part::currentPage (  )  [slot]

Definition at line 681 of file part.cpp.

QString Part::currentDocument (  )  [slot]

Definition at line 687 of file part.cpp.

void Part::slotPreferences (  )  [slot]

Definition at line 1250 of file part.cpp.

void Part::slotFind (  )  [slot]

Definition at line 1196 of file part.cpp.

void Part::slotPrintPreview (  )  [slot]

Definition at line 1318 of file part.cpp.

void Part::slotPreviousPage (  )  [slot]

Definition at line 1105 of file part.cpp.

void Part::slotNextPage (  )  [slot]

Definition at line 1112 of file part.cpp.

void Part::slotGotoFirst (  )  [slot]

Definition at line 1119 of file part.cpp.

void Part::slotGotoLast (  )  [slot]

Definition at line 1126 of file part.cpp.

void Part::slotTogglePresentation (  )  [slot]

Definition at line 1463 of file part.cpp.

void Part::enablePrintAction ( bool  enable  )  [signal]

bool Part::openFile (  )  [protected]

Definition at line 729 of file part.cpp.

bool Part::openUrl ( const KUrl &  url  )  [protected]

Definition at line 824 of file part.cpp.

bool Part::closeUrl (  )  [protected]

Definition at line 841 of file part.cpp.

void Part::openUrlFromDocument ( const KUrl &  url  )  [protected, slot]

Definition at line 542 of file part.cpp.

void Part::openUrlFromBookmarks ( const KUrl &  url  )  [protected, slot]

Definition at line 551 of file part.cpp.

void Part::slotGoToPage (  )  [protected, slot]

Definition at line 1097 of file part.cpp.

void Part::slotHistoryBack (  )  [protected, slot]

Definition at line 1133 of file part.cpp.

void Part::slotHistoryNext (  )  [protected, slot]

Definition at line 1139 of file part.cpp.

void Part::slotAddBookmark (  )  [protected, slot]

Definition at line 1145 of file part.cpp.

void Part::slotPreviousBookmark (  )  [protected, slot]

Definition at line 1159 of file part.cpp.

void Part::slotNextBookmark (  )  [protected, slot]

Definition at line 1177 of file part.cpp.

void Part::slotFindNext (  )  [protected, slot]

Definition at line 1211 of file part.cpp.

void Part::slotSaveFileAs (  )  [protected, slot]

Definition at line 1220 of file part.cpp.

void Part::slotGetNewStuff (  )  [protected, slot]

Definition at line 1240 of file part.cpp.

void Part::slotNewConfig (  )  [protected, slot]

Definition at line 1266 of file part.cpp.

void Part::slotNewGeneratorConfig (  )  [protected, slot]

Definition at line 1297 of file part.cpp.

void Part::slotShowMenu ( const Okular::Page *  page,
const QPoint &  point 
) [protected, slot]

Definition at line 1352 of file part.cpp.

void Part::slotShowProperties (  )  [protected, slot]

Definition at line 1430 of file part.cpp.

void Part::slotShowEmbeddedFiles (  )  [protected, slot]

Definition at line 1438 of file part.cpp.

void Part::slotShowLeftPanel (  )  [protected, slot]

Definition at line 902 of file part.cpp.

void Part::slotShowPresentation (  )  [protected, slot]

Definition at line 1446 of file part.cpp.

void Part::slotHidePresentation (  )  [protected, slot]

Definition at line 1456 of file part.cpp.

void Part::slotExportAs ( QAction *  act  )  [protected, slot]

Definition at line 1485 of file part.cpp.

bool Part::slotImportPSFile (  )  [protected, slot]

Definition at line 693 of file part.cpp.

void Part::slotAboutBackend (  )  [protected, slot]

Definition at line 1474 of file part.cpp.

void Part::slotReload (  )  [protected, slot]

Definition at line 1503 of file part.cpp.

void Part::close (  )  [protected, slot]

Definition at line 885 of file part.cpp.

void Part::cannotQuit (  )  [protected, slot]

Definition at line 896 of file part.cpp.

void Part::slotShowFindBar (  )  [protected, slot]

Definition at line 1044 of file part.cpp.

void Part::slotHideFindBar (  )  [protected, slot]

Definition at line 1050 of file part.cpp.

void Part::setMimeTypes ( KIO::Job *  job  )  [protected, slot]

Definition at line 567 of file part.cpp.

void Part::loadCancelled ( const QString &  reason  )  [protected, slot]

Definition at line 576 of file part.cpp.

void Part::setWindowTitleFromDocument (  )  [protected, slot]

Definition at line 596 of file part.cpp.

void Part::updateViewActions (  )  [protected, slot]

Definition at line 973 of file part.cpp.

void Part::updateBookmarksActions (  )  [protected, slot]

Definition at line 1008 of file part.cpp.

void Part::enableTOC ( bool  enable  )  [protected, slot]

Definition at line 1034 of file part.cpp.

void Part::slotRebuildBookmarkMenu (  )  [protected, slot]

Definition at line 1039 of file part.cpp.

void Part::slotPrint (  )  [slot]

Definition at line 1513 of file part.cpp.

void Part::restoreDocument ( const KConfigGroup &  group  )  [slot]

Definition at line 1614 of file part.cpp.

void Part::saveDocumentRestoreInfo ( KConfigGroup &  group  )  [slot]

Definition at line 1626 of file part.cpp.

void Part::slotFileDirty ( const QString &  fileName  )  [slot]

Definition at line 912 of file part.cpp.

void Part::slotDoFileDirty (  )  [slot]

Definition at line 926 of file part.cpp.

void Part::psTransformEnded ( int  exit,
QProcess::ExitStatus  status 
) [slot]

Definition at line 1633 of file part.cpp.


The documentation for this class was generated from the following files:
  • part.h
  • part.cpp

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdegraphics

Skip menu "kdegraphics"
  • okular
Generated for kdegraphics by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal