• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

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 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 sSmoothScrollMinStaticPixels = 320*200
static const int sSmoothScrollTick = 14
static const int sSmoothScrollTime = 140

Define Documentation

#define FIX_QT_BROKEN_QWIDGET_SCROLL

Definition at line 99 of file khtmlview.cpp.

#define protected   public

Definition at line 53 of file khtmlview.cpp.


Function Documentation

static QMap< NodeImpl*, QString > buildLabels ( NodeImpl *  start  )  [static]

Definition at line 2884 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 502 of file khtmlview.cpp.

static QString getElementText ( NodeImpl *  start,
bool  after 
) [static]

Definition at line 2833 of file khtmlview.cpp.

static void handleWidget ( QWidget *  w,
KHTMLView *  view,
bool  recurse = true 
) [static]

Definition at line 2108 of file khtmlview.cpp.

static DOM::Position positionOfLineBegin ( const DOM::Position &  pos  )  [inline, static]

Definition at line 4427 of file khtmlview.cpp.

static DOM::Position positionOfLineBoundary ( const DOM::Position &  pos,
bool  toEnd 
) [static]

Definition at line 4420 of file khtmlview.cpp.

static DOM::Position positionOfLineEnd ( const DOM::Position &  pos  )  [inline, static]

Definition at line 4432 of file khtmlview.cpp.

static void setInPaintEventFlag ( QWidget *  w,
bool  b = true,
bool  recurse = true 
) [static]

Definition at line 2178 of file khtmlview.cpp.

static bool targetOpensNewWindow ( KHTMLPart *  part,
QString  target 
) [static]

Definition at line 1341 of file khtmlview.cpp.


Variable Documentation

const QPointer<QObject> obj

Definition at line 3160 of file khtmlview.cpp.

const int sFirstLayoutDelay = 760 [static]

Definition at line 119 of file khtmlview.cpp.

const int sLayoutAttemptDelay = 400 [static]

Definition at line 121 of file khtmlview.cpp.

const int sLayoutAttemptIncrement = 20 [static]

Definition at line 127 of file khtmlview.cpp.

const int sParsingLayoutsIncrement = 60 [static]

Definition at line 128 of file khtmlview.cpp.

const int sParsingLayoutsInterval = 420 [static]

Definition at line 120 of file khtmlview.cpp.

const int sSmoothScrollMinStaticPixels = 320*200 [static]

Definition at line 132 of file khtmlview.cpp.

const int sSmoothScrollTick = 14 [static]

Definition at line 131 of file khtmlview.cpp.

const int sSmoothScrollTime = 140 [static]

Definition at line 130 of file khtmlview.cpp.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal