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

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
kdocumentviewer.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef _KDOCUMENTVIEWER_H_
11 #define _KDOCUMENTVIEWER_H_
12 
13 #include <QtCore/QStringList>
14 
15 class KUrl;
16 
22 class KDocumentViewer
23 {
24  public:
25  virtual ~KDocumentViewer() {}
26 
30  virtual bool openDocument( const KUrl& url, uint page ) = 0;
31 
35  virtual void goToPage( uint page ) = 0;
36 
40  virtual void startPresentation() = 0;
41 
45  virtual QStringList supportedMimeTypes() const = 0;
46 };
47 
48 Q_DECLARE_INTERFACE( KDocumentViewer, "org.kde.kdocumentviewer/0.1" )
49 
50 #endif
KDocumentViewer::supportedMimeTypes
virtual QStringList supportedMimeTypes() const =0
Return a list with the supported mimetypes.
KDocumentViewer::startPresentation
virtual void startPresentation()=0
Start the presentation mode.
KDocumentViewer
Abstract interface for a document viewer.
Definition: kdocumentviewer.h:22
KDocumentViewer::goToPage
virtual void goToPage(uint page)=0
Change to page the currently shown page.
KDocumentViewer::openDocument
virtual bool openDocument(const KUrl &url, uint page)=0
Open the document at the specified url at page page.
KDocumentViewer::~KDocumentViewer
virtual ~KDocumentViewer()
Definition: kdocumentviewer.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

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

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal