• 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
  • core
  • script
kjs_spell.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
3  * Copyright (C) 2008 by Harri Porten <porten@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 #include "kjs_spell_p.h"
12 
13 #include <kjs/kjsobject.h>
14 #include <kjs/kjsprototype.h>
15 
16 #include <QtCore/QString>
17 
18 using namespace Okular;
19 
20 static KJSPrototype *g_spellProto;
21 
22 // Spell.available
23 static KJSObject spellGetAvailable( KJSContext *, void * )
24 {
25  return KJSBoolean( false );
26 }
27 
28 void JSSpell::initType( KJSContext *ctx )
29 {
30  static bool initialized = false;
31  if ( initialized )
32  return;
33  initialized = true;
34 
35  g_spellProto = new KJSPrototype();
36  g_spellProto->defineProperty( ctx, QString( "available" ), spellGetAvailable );
37 }
38 
39 KJSObject JSSpell::object( KJSContext *ctx )
40 {
41  return g_spellProto->constructObject( ctx, 0 );
42 }
g_spellProto
static KJSPrototype * g_spellProto
Definition: kjs_spell.cpp:20
Okular::JSSpell::initType
static void initType(KJSContext *ctx)
Definition: kjs_spell.cpp:28
kjs_spell_p.h
spellGetAvailable
static KJSObject spellGetAvailable(KJSContext *, void *)
Definition: kjs_spell.cpp:23
Okular::JSSpell::object
static KJSObject object(KJSContext *ctx)
Definition: kjs_spell.cpp:39
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