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 "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 | FIX_QT_BROKEN_QWIDGET_SCROLL |
| #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 | sParsingLayoutsIncrement = 60 |
| static const int | sParsingLayoutsInterval = 420 |
| static const int | sSmoothScrollTick = 14 |
| static const int | sSmoothScrollTime = 140 |
Define Documentation
| #define FIX_QT_BROKEN_QWIDGET_SCROLL |
Definition at line 98 of file khtmlview.cpp.
| #define protected public |
Definition at line 52 of file khtmlview.cpp.
Function Documentation
Definition at line 2894 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 500 of file khtmlview.cpp.
Definition at line 2843 of file khtmlview.cpp.
Definition at line 2119 of file khtmlview.cpp.
| static DOM::Position positionOfLineBegin | ( | const DOM::Position & | pos | ) | [inline, static] |
Definition at line 4414 of file khtmlview.cpp.
| static DOM::Position positionOfLineBoundary | ( | const DOM::Position & | pos, | |
| bool | toEnd | |||
| ) | [static] |
Definition at line 4407 of file khtmlview.cpp.
| static DOM::Position positionOfLineEnd | ( | const DOM::Position & | pos | ) | [inline, static] |
Definition at line 4419 of file khtmlview.cpp.
Definition at line 2189 of file khtmlview.cpp.
Definition at line 1337 of file khtmlview.cpp.
Variable Documentation
Definition at line 3170 of file khtmlview.cpp.
const int sFirstLayoutDelay = 760 [static] |
Definition at line 118 of file khtmlview.cpp.
const int sLayoutAttemptDelay = 400 [static] |
Definition at line 120 of file khtmlview.cpp.
const int sLayoutAttemptIncrement = 20 [static] |
Definition at line 126 of file khtmlview.cpp.
const int sParsingLayoutsIncrement = 60 [static] |
Definition at line 127 of file khtmlview.cpp.
const int sParsingLayoutsInterval = 420 [static] |
Definition at line 119 of file khtmlview.cpp.
const int sSmoothScrollTick = 14 [static] |
Definition at line 130 of file khtmlview.cpp.
const int sSmoothScrollTime = 140 [static] |
Definition at line 129 of file khtmlview.cpp.
KDE 4.1 API Reference