It was causing problems (Windows build fails) now that we enabled -Wweak-vtables (and probably before didn't work that much before, guessing that's why we had that if (doc) in openFile) This is the simplest solution, invokeMethod is not great but we already use it, so it's not too terrible The openDocument function was unused so remove it. The other two solutions are: * Make KDocumentViewer be part of okularcore and then link the okularcore to the okular binary, not nice * Make another dynamic library that just contains the KDocumentViewer class, but i'd rather not add yet another library we have to install and take care ofremotes/origin/work/carl/mobile-drawer-improvement
parent
e0f45add55
commit
f9841b0f8a
4 changed files with 6 additions and 85 deletions
@ -1,58 +0,0 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2007 by Pino Toscano <pino@kde.org> * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
***************************************************************************/ |
||||
|
||||
#ifndef _KDOCUMENTVIEWER_H_ |
||||
#define _KDOCUMENTVIEWER_H_ |
||||
|
||||
#include "okularpart_export.h" |
||||
|
||||
#include <QStringList> |
||||
|
||||
class QUrl; |
||||
|
||||
/**
|
||||
* @short Abstract interface for a document viewer |
||||
* |
||||
* This interface describes the basic functions of a document viewer. |
||||
*/ |
||||
class OKULARPART_EXPORT KDocumentViewer |
||||
{ |
||||
public: |
||||
KDocumentViewer() |
||||
{ |
||||
} |
||||
virtual ~KDocumentViewer(); |
||||
|
||||
KDocumentViewer(const KDocumentViewer &) = delete; |
||||
KDocumentViewer &operator=(const KDocumentViewer &) = delete; |
||||
|
||||
/**
|
||||
* Open the document at the specified @p url at page @p page. |
||||
*/ |
||||
virtual bool openDocument(const QUrl &url, uint page) = 0; |
||||
|
||||
/**
|
||||
* Change to @p page the currently shown page. |
||||
*/ |
||||
virtual void goToPage(uint page) = 0; |
||||
|
||||
/**
|
||||
* Start the presentation mode. |
||||
*/ |
||||
virtual void startPresentation() = 0; |
||||
|
||||
/**
|
||||
* Return a list with the supported mimetypes. |
||||
*/ |
||||
virtual QStringList supportedMimeTypes() const = 0; |
||||
}; |
||||
|
||||
Q_DECLARE_INTERFACE(KDocumentViewer, "org.kde.kdocumentviewer/0.1") |
||||
|
||||
#endif |
||||
Loading…
Reference in new issue