KHTML
khtmlview.cpp File Reference
#include "khtmlview.h"
#include "khtmlview.moc"
#include "khtml_part.h"
#include "khtml_events.h"
#include <qx11info_x11.h>
#include "html/html_documentimpl.h"
#include "html/html_inlineimpl.h"
#include "html/html_formimpl.h"
#include "html/htmltokenizer.h"
#include "editing/editor.h"
#include "rendering/render_arena.h"
#include "rendering/render_canvas.h"
#include "rendering/render_frames.h"
#include "rendering/render_replaced.h"
#include "rendering/render_form.h"
#include "rendering/render_layer.h"
#include "rendering/render_line.h"
#include "rendering/render_table.h"
#include "rendering/render_text.h"
#include "xml/dom2_eventsimpl.h"
#include "css/cssstyleselector.h"
#include "css/csshelper.h"
#include "misc/htmlhashes.h"
#include "misc/helper.h"
#include "misc/loader.h"
#include "khtml_settings.h"
#include "khtml_printsettings.h"
#include "khtmlpart_p.h"
#include <kcursor.h>
#include <kdebug.h>
#include <kglobalsettings.h>
#include <kdialog.h>
#include <kiconloader.h>
#include <klocale.h>
#include <knotification.h>
#include <kdeprintdialog.h>
#include <kconfig.h>
#include <kstandarddirs.h>
#include <kstandardshortcut.h>
#include <kstringhandler.h>
#include <kconfiggroup.h>
#include <QtGui/QBitmap>
#include <QtGui/QLabel>
#include <QtCore/QObject>
#include <QtGui/QPainter>
#include <QtCore/QHash>
#include <QtGui/QToolTip>
#include <QtCore/QString>
#include <QtGui/QTextDocument>
#include <QtCore/QTimer>
#include <QtCore/QAbstractEventDispatcher>
#include <QtCore/QVector>
#include <QtGui/QAbstractScrollArea>
#include <QtGui/QPrinter>
#include <QtGui/QPrintDialog>
#include <limits.h>
#include <X11/Xlib.h>
#include <fixx11h.h>
Go to the source code of this file.
Namespaces | |
namespace | khtml |
Defines | |
#define | protected public |
Functions | |
static QMap< NodeImpl *, QString > | buildLabels (NodeImpl *start) |
static bool | findImageMapRect (HTMLImageElementImpl *img, const QPoint &scrollOfs, const QPoint &p, QRect &r, QString &s) |
static QString | getElementText (NodeImpl *start, bool after) |
static void | handleWidget (QWidget *w, KHTMLView *view, bool recurse=true) |
static DOM::Position | positionOfLineBegin (const DOM::Position &pos) |
static DOM::Position | positionOfLineBoundary (const DOM::Position &pos, bool toEnd) |
static DOM::Position | positionOfLineEnd (const DOM::Position &pos) |
static void | setInPaintEventFlag (QWidget *w, bool b=true, bool recurse=true) |
static bool | targetOpensNewWindow (KHTMLPart *part, QString target) |
Variables | |
static const int | sFirstLayoutDelay = 760 |
static const int | sLayoutAttemptDelay = 400 |
static const int | sLayoutAttemptIncrement = 20 |
static const int | sMaxMissedDeadlines = 12 |
static const int | sParsingLayoutsIncrement = 60 |
static const int | sParsingLayoutsInterval = 420 |
static const int | sSmoothScrollMinStaticPixels = 320*200 |
static const int | sSmoothScrollTick = 14 |
static const int | sSmoothScrollTime = 140 |
static const int | sWayTooMany = -1 |
Define Documentation
#define protected public |
Definition at line 53 of file khtmlview.cpp.
Function Documentation
Definition at line 2869 of file khtmlview.cpp.
static bool findImageMapRect | ( | HTMLImageElementImpl * | img, | |
const QPoint & | scrollOfs, | |||
const QPoint & | p, | |||
QRect & | r, | |||
QString & | s | |||
) | [static] |
calculates the client-side image map rectangle for the given image element
- Parameters:
-
img image element scrollOfs scroll offset of viewport in content coordinates p position to be probed in viewport coordinates r returns the bounding rectangle in content coordinates s returns the title string
- Returns:
- true if an appropriate area was found -- only in this case r and s are valid, false otherwise
Definition at line 453 of file khtmlview.cpp.
Definition at line 2818 of file khtmlview.cpp.
Definition at line 2074 of file khtmlview.cpp.
static DOM::Position positionOfLineBegin | ( | const DOM::Position & | pos | ) | [inline, static] |
Definition at line 4412 of file khtmlview.cpp.
static DOM::Position positionOfLineBoundary | ( | const DOM::Position & | pos, | |
bool | toEnd | |||
) | [static] |
Definition at line 4405 of file khtmlview.cpp.
static DOM::Position positionOfLineEnd | ( | const DOM::Position & | pos | ) | [inline, static] |
Definition at line 4417 of file khtmlview.cpp.
Definition at line 2144 of file khtmlview.cpp.
Definition at line 1296 of file khtmlview.cpp.
Variable Documentation
const int sFirstLayoutDelay = 760 [static] |
Definition at line 116 of file khtmlview.cpp.
const int sLayoutAttemptDelay = 400 [static] |
Definition at line 118 of file khtmlview.cpp.
const int sLayoutAttemptIncrement = 20 [static] |
Definition at line 124 of file khtmlview.cpp.
const int sMaxMissedDeadlines = 12 [static] |
Definition at line 131 of file khtmlview.cpp.
const int sParsingLayoutsIncrement = 60 [static] |
Definition at line 125 of file khtmlview.cpp.
const int sParsingLayoutsInterval = 420 [static] |
Definition at line 117 of file khtmlview.cpp.
const int sSmoothScrollMinStaticPixels = 320*200 [static] |
Definition at line 129 of file khtmlview.cpp.
const int sSmoothScrollTick = 14 [static] |
Definition at line 128 of file khtmlview.cpp.
const int sSmoothScrollTime = 140 [static] |
Definition at line 127 of file khtmlview.cpp.
const int sWayTooMany = -1 [static] |
Definition at line 132 of file khtmlview.cpp.