SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / kdocumentviewer.h
blob2f77610d7aaaeccc73600bcc4bc4b4d4feebcd99
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 ***************************************************************************/
10 #ifndef _KDOCUMENTVIEWER_H_
11 #define _KDOCUMENTVIEWER_H_
13 #include <QtCore/QStringList>
15 class KUrl;
17 /**
18 * @short Abstract interface for a document viewer
20 * This interface describe briefly the basic functions of a document viewer.
22 class KDocumentViewer
24 public:
25 virtual ~KDocumentViewer() {}
27 /**
28 * Open the document at the specified @p url at page @p page.
30 virtual bool openDocument( const KUrl& url, uint page ) = 0;
32 /**
33 * Change to @p page the currently shown page.
35 virtual void goToPage( uint page ) = 0;
37 /**
38 * Start the presentation mode.
40 virtual void startPresentation() = 0;
42 /**
43 * Return a list with the supported mimetypes.
45 virtual QStringList supportedMimeTypes() const = 0;
48 Q_DECLARE_INTERFACE( KDocumentViewer, "org.kde.kdocumentviewer/0.1" )
50 #endif