1 /***************************************************************************
2 * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
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 ***************************************************************************/
10 #ifndef _KDOCUMENTVIEWER_H_
11 #define _KDOCUMENTVIEWER_H_
13 #include <QtCore/QStringList>
18 * @short Abstract interface for a document viewer
20 * This interface describe briefly the basic functions of a document viewer.
25 virtual ~KDocumentViewer() {}
28 * Open the document at the specified @p url at page @p page.
30 virtual bool openDocument( const KUrl
& url
, uint page
) = 0;
33 * Change to @p page the currently shown page.
35 virtual void goToPage( uint page
) = 0;
38 * Start the presentation mode.
40 virtual void startPresentation() = 0;
43 * Return a list with the supported mimetypes.
45 virtual QStringList
supportedMimeTypes() const = 0;
48 Q_DECLARE_INTERFACE( KDocumentViewer
, "org.kde.kdocumentviewer/0.1" )