SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / extensions.h
blobd99a038e9eba82f9f8dae4a8872b1d9680ebcbb6
1 /***************************************************************************
2 * Copyright (C) 2002 by Wilco Greven <greven@kde.org> *
3 * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
11 #ifndef _EXTENSIONS_H_
12 #define _EXTENSIONS_H_
14 #include <kparts/browserextension.h>
16 class Part;
18 class BrowserExtension : public KParts::BrowserExtension
20 Q_OBJECT
22 public:
23 BrowserExtension(Part*);
25 public slots:
26 // Automatically detected by the host.
27 void print();
29 private:
30 Part *m_part;
33 class OkularLiveConnectExtension : public KParts::LiveConnectExtension
35 Q_OBJECT
37 public:
38 OkularLiveConnectExtension( Part *parent );
40 // from LiveConnectExtension
41 virtual bool get( const unsigned long objid, const QString &field, Type &type,
42 unsigned long &retobjid, QString &value );
43 virtual bool put( const unsigned long objid, const QString &field, const QString &value );
44 virtual bool call( const unsigned long objid, const QString &func, const QStringList &args,
45 Type &type, unsigned long &retobjid, QString &value );
47 private:
48 QString eval( const QString &script );
49 void postMessage( const QStringList &args );
51 bool m_inEval;
52 QString m_evalRes;
54 #endif
56 /* kate: replace-tabs on; indent-width 4; */