• 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
Macros | Functions | Variables
kjs_document.cpp File Reference
#include "kjs_document_p.h"
#include <qwidget.h>
#include <kjs/kjsobject.h>
#include <kjs/kjsprototype.h>
#include <kjs/kjsarguments.h>
#include <kdebug.h>
#include <assert.h>
#include "../document_p.h"
#include "../page.h"
#include "../form.h"
#include "kjs_data_p.h"
#include "kjs_field_p.h"
Include dependency graph for kjs_document.cpp:

Go to the source code of this file.

Macros

#define DOCINFO_GET_METHOD(key, name)
 
#define KEY_GET(key, property)
 

Functions

static KJSObject docGetDataObjects (KJSContext *ctx, void *object)
 
static KJSObject docGetDocumentFileName (KJSContext *, void *object)
 
static KJSObject docGetExternal (KJSContext *, void *object)
 
static KJSObject docGetField (KJSContext *context, void *object, const KJSArguments &arguments)
 
static KJSObject docGetFilesize (KJSContext *, void *object)
 
static KJSObject docGetInfo (KJSContext *ctx, void *object)
 
static KJSObject docGetNumPages (KJSContext *, void *object)
 
static KJSObject docGetPageLabel (KJSContext *ctx, void *object, const KJSArguments &arguments)
 
static KJSObject docGetPageNum (KJSContext *, void *object)
 
static KJSObject docGetPageRotation (KJSContext *ctx, void *object, const KJSArguments &arguments)
 
static KJSObject docGetPath (KJSContext *, void *object)
 
static KJSObject docGetPermStatusReady (KJSContext *, void *)
 
static KJSObject docGetURL (KJSContext *, void *object)
 
static KJSObject docGotoNamedDest (KJSContext *ctx, void *object, const KJSArguments &arguments)
 
static void docSetPageNum (KJSContext *ctx, void *object, KJSObject value)
 
static KJSObject docSyncAnnotScan (KJSContext *, void *, const KJSArguments &)
 

Variables

static KJSPrototype * g_docProto
 

Macro Definition Documentation

#define DOCINFO_GET_METHOD (   key,
  name 
)
Value:
static KJSObject docGet ## name( KJSContext *, void *object ) \
{ \
DocumentPrivate *doc = reinterpret_cast< DocumentPrivate* >( object ); \
const DocumentInfo *docinfo = doc->m_generator->generateDocumentInfo(); \
return KJSString( docinfo->get( key ) ); \
}
Okular::DocumentPrivate
Definition: document_p.h:83
Okular::DocumentInfo
A DOM tree containing information about the document.
Definition: document.h:1073

Definition at line 162 of file kjs_document.cpp.

#define KEY_GET (   key,
  property 
)
Value:
do { \
const QString data = docinfo->get( key ); \
if ( !data.isEmpty() ) \
{ \
const KJSString newval( data ); \
obj.setProperty( ctx, property, newval ); \
obj.setProperty( ctx, QString( property ).toLower(), newval ); \
} \
} while ( 0 );

Function Documentation

static KJSObject docGetDataObjects ( KJSContext *  ctx,
void *  object 
)
static

Definition at line 101 of file kjs_document.cpp.

static KJSObject docGetDocumentFileName ( KJSContext *  ,
void *  object 
)
static

Definition at line 63 of file kjs_document.cpp.

static KJSObject docGetExternal ( KJSContext *  ,
void *  object 
)
static

Definition at line 121 of file kjs_document.cpp.

static KJSObject docGetField ( KJSContext *  context,
void *  object,
const KJSArguments &  arguments 
)
static

Definition at line 180 of file kjs_document.cpp.

static KJSObject docGetFilesize ( KJSContext *  ,
void *  object 
)
static

Definition at line 71 of file kjs_document.cpp.

static KJSObject docGetInfo ( KJSContext *  ctx,
void *  object 
)
static

Definition at line 133 of file kjs_document.cpp.

static KJSObject docGetNumPages ( KJSContext *  ,
void *  object 
)
static

Definition at line 33 of file kjs_document.cpp.

static KJSObject docGetPageLabel ( KJSContext *  ctx,
void *  object,
const KJSArguments &  arguments 
)
static

Definition at line 204 of file kjs_document.cpp.

static KJSObject docGetPageNum ( KJSContext *  ,
void *  object 
)
static

Definition at line 41 of file kjs_document.cpp.

static KJSObject docGetPageRotation ( KJSContext *  ctx,
void *  object,
const KJSArguments &  arguments 
)
static

Definition at line 214 of file kjs_document.cpp.

static KJSObject docGetPath ( KJSContext *  ,
void *  object 
)
static

Definition at line 79 of file kjs_document.cpp.

static KJSObject docGetPermStatusReady ( KJSContext *  ,
void *   
)
static

Definition at line 95 of file kjs_document.cpp.

static KJSObject docGetURL ( KJSContext *  ,
void *  object 
)
static

Definition at line 87 of file kjs_document.cpp.

static KJSObject docGotoNamedDest ( KJSContext *  ctx,
void *  object,
const KJSArguments &  arguments 
)
static

Definition at line 224 of file kjs_document.cpp.

static void docSetPageNum ( KJSContext *  ctx,
void *  object,
KJSObject  value 
)
static

Definition at line 49 of file kjs_document.cpp.

static KJSObject docSyncAnnotScan ( KJSContext *  ,
void *  ,
const KJSArguments &   
)
static

Definition at line 241 of file kjs_document.cpp.

Variable Documentation

KJSPrototype* g_docProto
static

Definition at line 30 of file kjs_document.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 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