Changeset View
Changeset View
Standalone View
Standalone View
core/script/kjs_ocg_p.h
- This file was copied from core/script/kjs_app_p.h.
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | * Copyright (C) 2008 by Pino Toscano <pino@kde.org> * | 2 | * Copyright (C) 2019 by João Netto <joaonetto901@gmail.com> * | ||
3 | * Copyright (C) 2008 by Harri Porten <porten@kde.org> * | | |||
4 | * * | 3 | * * | ||
5 | * This program is free software; you can redistribute it and/or modify * | 4 | * 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 * | 5 | * 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 * | 6 | * the Free Software Foundation; either version 2 of the License, or * | ||
8 | * (at your option) any later version. * | 7 | * (at your option) any later version. * | ||
9 | ***************************************************************************/ | 8 | ***************************************************************************/ | ||
10 | 9 | | |||
11 | #ifndef OKULAR_SCRIPT_KJS_APP_P_H | 10 | #ifndef OKULAR_SCRIPT_KJS_OCG_P_H | ||
12 | #define OKULAR_SCRIPT_KJS_APP_P_H | 11 | #define OKULAR_SCRIPT_KJS_OCG_P_H | ||
13 | 12 | | |||
14 | class KJSContext; | 13 | class KJSContext; | ||
15 | class KJSObject; | 14 | class KJSObject; | ||
15 | class QAbstractItemModel; | ||||
16 | 16 | | |||
17 | namespace Okular { | 17 | namespace Okular { | ||
18 | 18 | | |||
19 | class DocumentPrivate; | 19 | class JSOCG | ||
20 | | ||||
21 | class JSApp | | |||
22 | { | 20 | { | ||
23 | public: | 21 | public: | ||
24 | static void initType( KJSContext *ctx ); | 22 | static void initType( KJSContext *ctx ); | ||
25 | static KJSObject object( KJSContext *ctx, DocumentPrivate *doc ); | 23 | static KJSObject object( KJSContext *ctx ); | ||
24 | static KJSObject wrapOCGObject( KJSContext *ctx, QAbstractItemModel *model, int i, int j ); | ||||
25 | static void clearCachedFields(); | ||||
26 | }; | 26 | }; | ||
27 | 27 | | |||
28 | } | 28 | } | ||
29 | 29 | | |||
30 | #endif | 30 | #endif | ||
31 | No newline at end of file |