• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
Namespaces | Macros | Functions | Variables
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/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 <QtGui/QPainter>
#include <QtCore/QHash>
#include <QtGui/QToolTip>
#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

Macros

#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 = 520
static const int sLayoutAttemptDelay = 300
static const int sLayoutAttemptIncrement = 20
static const int sMaxMissedDeadlines = 12
static const int sParsingLayoutsIncrement = 60
static const int sParsingLayoutsInterval = 380
static const int sSmoothScrollMinStaticPixels = 320*200
static const int sSmoothScrollTick = 16
static const int sSmoothScrollTime = 128
static const int sWayTooMany = -1

Macro Definition Documentation

#define protected   public

Definition at line 53 of file khtmlview.cpp.


Function Documentation

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

Definition at line 2737 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:
imgimage element
scrollOfsscroll offset of viewport in content coordinates
pposition to be probed in viewport coordinates
rreturns the bounding rectangle in content coordinates
sreturns 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.

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

Definition at line 2686 of file khtmlview.cpp.

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

Definition at line 1940 of file khtmlview.cpp.

static DOM::Position positionOfLineBegin ( const DOM::Position &  pos)
inlinestatic

Definition at line 4244 of file khtmlview.cpp.

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

Definition at line 4237 of file khtmlview.cpp.

static DOM::Position positionOfLineEnd ( const DOM::Position &  pos)
inlinestatic

Definition at line 4249 of file khtmlview.cpp.

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

Definition at line 2005 of file khtmlview.cpp.

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

Definition at line 1287 of file khtmlview.cpp.


Variable Documentation

const int sFirstLayoutDelay = 520
static

Definition at line 115 of file khtmlview.cpp.

const int sLayoutAttemptDelay = 300
static

Definition at line 117 of file khtmlview.cpp.

const int sLayoutAttemptIncrement = 20
static

Definition at line 123 of file khtmlview.cpp.

const int sMaxMissedDeadlines = 12
static

Definition at line 130 of file khtmlview.cpp.

const int sParsingLayoutsIncrement = 60
static

Definition at line 124 of file khtmlview.cpp.

const int sParsingLayoutsInterval = 380
static

Definition at line 116 of file khtmlview.cpp.

const int sSmoothScrollMinStaticPixels = 320*200
static

Definition at line 128 of file khtmlview.cpp.

const int sSmoothScrollTick = 16
static

Definition at line 127 of file khtmlview.cpp.

const int sSmoothScrollTime = 128
static

Definition at line 126 of file khtmlview.cpp.

const int sWayTooMany = -1
static

Definition at line 131 of file khtmlview.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:51:08 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal