okular
#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"
Go to the source code of this file.
|
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 &) |
|
#define DOCINFO_GET_METHOD |
( |
|
key, |
|
|
|
name |
|
) |
| |
Value:static KJSObject docGet ## name( KJSContext *, void *object ) \
{ \
const
DocumentInfo *docinfo = doc->m_generator->generateDocumentInfo(); \
return KJSString( docinfo->get( key ) ); \
}
A DOM tree containing information about the document.
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 );
static KJSObject docGetDataObjects |
( |
KJSContext * |
ctx, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGetDocumentFileName |
( |
KJSContext * |
, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGetExternal |
( |
KJSContext * |
, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGetField |
( |
KJSContext * |
context, |
|
|
void * |
object, |
|
|
const KJSArguments & |
arguments |
|
) |
| |
|
static |
static KJSObject docGetFilesize |
( |
KJSContext * |
, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGetInfo |
( |
KJSContext * |
ctx, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGetNumPages |
( |
KJSContext * |
, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGetPageLabel |
( |
KJSContext * |
ctx, |
|
|
void * |
object, |
|
|
const KJSArguments & |
arguments |
|
) |
| |
|
static |
static KJSObject docGetPageNum |
( |
KJSContext * |
, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGetPageRotation |
( |
KJSContext * |
ctx, |
|
|
void * |
object, |
|
|
const KJSArguments & |
arguments |
|
) |
| |
|
static |
static KJSObject docGetPath |
( |
KJSContext * |
, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGetPermStatusReady |
( |
KJSContext * |
, |
|
|
void * |
|
|
) |
| |
|
static |
static KJSObject docGetURL |
( |
KJSContext * |
, |
|
|
void * |
object |
|
) |
| |
|
static |
static KJSObject docGotoNamedDest |
( |
KJSContext * |
ctx, |
|
|
void * |
object, |
|
|
const KJSArguments & |
arguments |
|
) |
| |
|
static |
static void docSetPageNum |
( |
KJSContext * |
ctx, |
|
|
void * |
object, |
|
|
KJSObject |
value |
|
) |
| |
|
static |
static KJSObject docSyncAnnotScan |
( |
KJSContext * |
, |
|
|
void * |
, |
|
|
const KJSArguments & |
|
|
) |
| |
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:25 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.