• 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
extensions.h
Go to the documentation of this file.
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  ***************************************************************************/
10 
11 #ifndef _EXTENSIONS_H_
12 #define _EXTENSIONS_H_
13 
14 #include <kparts/browserextension.h>
15 
16 namespace Okular
17 {
18 
19 class Part;
20 
21 class BrowserExtension : public KParts::BrowserExtension
22 {
23  Q_OBJECT
24 
25  public:
26  BrowserExtension(Part*);
27 
28  public slots:
29  // Automatically detected by the host.
30  void print();
31 
32  private:
33  Part *m_part;
34 };
35 
36 class OkularLiveConnectExtension : public KParts::LiveConnectExtension
37 {
38  Q_OBJECT
39 
40  public:
41  OkularLiveConnectExtension( Part *parent );
42 
43  // from LiveConnectExtension
44  virtual bool get( const unsigned long objid, const QString &field, Type &type,
45  unsigned long &retobjid, QString &value );
46  virtual bool put( const unsigned long objid, const QString &field, const QString &value );
47  virtual bool call( const unsigned long objid, const QString &func, const QStringList &args,
48  Type &type, unsigned long &retobjid, QString &value );
49 
50  private:
51  QString eval( const QString &script );
52  void postMessage( const QStringList &args );
53 
54  bool m_inEval;
55  QString m_evalRes;
56 };
57 
58 }
59 
60 #endif
61 
62 /* kate: replace-tabs on; indent-width 4; */
Okular::OkularLiveConnectExtension
Definition: extensions.h:36
Okular::BrowserExtension::print
void print()
Definition: extensions.cpp:30
Okular::Part
This is a "Part".
Definition: part.h:96
Okular::OkularLiveConnectExtension::put
virtual bool put(const unsigned long objid, const QString &field, const QString &value)
Definition: extensions.cpp:64
Okular::OkularLiveConnectExtension::OkularLiveConnectExtension
OkularLiveConnectExtension(Part *parent)
Definition: extensions.cpp:42
Okular::OkularLiveConnectExtension::call
virtual bool call(const unsigned long objid, const QString &func, const QStringList &args, Type &type, unsigned long &retobjid, QString &value)
Definition: extensions.cpp:78
Okular::BrowserExtension::BrowserExtension
BrowserExtension(Part *)
Definition: extensions.cpp:22
Okular::BrowserExtension
Definition: extensions.h:21
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