2009-07-24 15:05:24 +02:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
cwebframe.h
|
|
|
|
|
2011-03-21 01:04:10 +01:00
|
|
|
(c) 2000-2011 Benoît Minisini <gambas@users.sourceforge.net>
|
2009-07-24 15:05:24 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2009-08-17 12:41:51 +02:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2009-07-24 15:05:24 +02:00
|
|
|
any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2011-06-03 02:51:09 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA.
|
2009-07-24 15:05:24 +02:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __CWEBFRAME_H
|
|
|
|
#define __CWEBFRAME_H
|
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
#include <QUrl>
|
|
|
|
#include <QWebFrame>
|
|
|
|
#include <QWebPage>
|
|
|
|
|
|
|
|
#ifndef __CWEBFRAME_CPP
|
|
|
|
|
|
|
|
extern GB_DESC CWebFrameChildrenDesc[];
|
|
|
|
extern GB_DESC CWebFrameDesc[];
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define THIS ((CWEBFRAME *)_object)
|
|
|
|
#define FRAME (THIS->frame)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
GB_BASE ob;
|
|
|
|
QWebFrame *frame;
|
|
|
|
}
|
|
|
|
CWEBFRAME;
|
|
|
|
|
|
|
|
CWEBFRAME *CWEBFRAME_get(QWebFrame *frame);
|
2011-08-25 03:24:14 +02:00
|
|
|
void CWEBFRAME_eval(QWebFrame *frame, const QString &javascript);
|
2009-07-24 15:05:24 +02:00
|
|
|
|
|
|
|
#endif
|