.TH "KHTMLView" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KHTMLView \- Renders and displays HTML in a \fBQScrollView\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <khtmlview.h>\fP
.PP
Inherits \fBQScrollView\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBfinishedLayout\fP ()"
.br
.ti -1c
.RI "void \fBcleared\fP ()"
.br
.ti -1c
.RI "void \fBzoomView\fP (int)"
.br
.ti -1c
.RI "void \fBhideAccessKeys\fP ()"
.br
.ti -1c
.RI "void \fBrepaintAccessKeys\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKHTMLView\fP (\fBKHTMLPart\fP *part, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fBKHTMLPart\fP * \fBpart\fP () const "
.br
.ti -1c
.RI "int \fBframeWidth\fP () const "
.br
.ti -1c
.RI "void \fBsetMarginWidth\fP (int x)"
.br
.ti -1c
.RI "int \fBmarginWidth\fP () const "
.br
.ti -1c
.RI "void \fBsetMarginHeight\fP (int y)"
.br
.ti -1c
.RI "int \fBmarginHeight\fP ()"
.br
.ti -1c
.RI "virtual void \fBsetVScrollBarMode\fP (ScrollBarMode mode)"
.br
.ti -1c
.RI "virtual void \fBsetHScrollBarMode\fP (ScrollBarMode mode)"
.br
.ti -1c
.RI "void \fBprint\fP ()"
.br
.ti -1c
.RI "void \fBprint\fP (bool quick)"
.br
.ti -1c
.RI "void \fBlayout\fP ()"
.br
.ti -1c
.RI "void \fBdisplayAccessKeys\fP ()"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBslotPaletteChanged\fP ()"
.br
.ti -1c
.RI "void \fBslotScrollBarMoved\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBclear\fP ()"
.br
.ti -1c
.RI "virtual void \fBresizeEvent\fP (\fBQResizeEvent\fP *event)"
.br
.ti -1c
.RI "virtual void \fBshowEvent\fP (\fBQShowEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBhideEvent\fP (\fBQHideEvent\fP *)"
.br
.ti -1c
.RI "virtual bool \fBfocusNextPrevChild\fP (bool next)"
.br
.ti -1c
.RI "virtual void \fBdrawContents\fP (\fBQPainter\fP *p, int clipx, int clipy, int clipw, int cliph)"
.br
.ti -1c
.RI "virtual void \fBdrawContents\fP (\fBQPainter\fP *)"
.br
.ti -1c
.RI "virtual void \fBviewportMousePressEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBfocusInEvent\fP (\fBQFocusEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBfocusOutEvent\fP (\fBQFocusEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBviewportMouseDoubleClickEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBviewportMouseMoveEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBviewportMouseReleaseEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBviewportResizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBviewportWheelEvent\fP (\fBQWheelEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBdragEnterEvent\fP (\fBQDragEnterEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBdropEvent\fP (\fBQDropEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBcloseEvent\fP (\fBQCloseEvent\fP *)"
.br
.ti -1c
.RI "virtual bool \fBeventFilter\fP (\fBQObject\fP *, \fBQEvent\fP *)"
.br
.ti -1c
.RI "void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *_ke)"
.br
.ti -1c
.RI "void \fBkeyReleaseEvent\fP (\fBQKeyEvent\fP *_ke)"
.br
.ti -1c
.RI "void \fBcontentsContextMenuEvent\fP (\fBQContextMenuEvent\fP *_ce)"
.br
.ti -1c
.RI "void \fBdoAutoScroll\fP ()"
.br
.ti -1c
.RI "void \fBtimerEvent\fP (\fBQTimerEvent\fP *)"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBDOM::HTMLDocumentImpl\fP"
.br
.ti -1c
.RI "class \fBDOM::HTMLTitleElementImpl\fP"
.br
.ti -1c
.RI "class \fBDOM::HTMLGenericFormElementImpl\fP"
.br
.ti -1c
.RI "class \fBDOM::HTMLFormElementImpl\fP"
.br
.ti -1c
.RI "class \fBDOM::HTMLAnchorElementImpl\fP"
.br
.ti -1c
.RI "class \fBDOM::HTMLInputElementImpl\fP"
.br
.ti -1c
.RI "class \fBDOM::DocumentImpl\fP"
.br
.ti -1c
.RI "class \fBKHTMLPart\fP"
.br
.ti -1c
.RI "class \fBkhtml::RenderCanvas\fP"
.br
.ti -1c
.RI "class \fBkhtml::RenderObject\fP"
.br
.ti -1c
.RI "class \fBkhtml::RenderLineEdit\fP"
.br
.ti -1c
.RI "class \fBkhtml::RenderPartObject\fP"
.br
.ti -1c
.RI "class \fBkhtml::RenderWidget\fP"
.br
.ti -1c
.RI "class \fBkhtml::CSSStyleSelector\fP"
.br
.ti -1c
.RI "class \fBkhtml::LineEditWidget\fP"
.br
.ti -1c
.RI "class \fBKJS::WindowFunc\fP"
.br
.ti -1c
.RI "class \fBKJS::ExternalFunc\fP"
.br
.ti -1c
.RI "void \fBkhtml::applyRule\fP (DOM::CSSProperty *\fBprop\fP)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Renders and displays HTML in a \fBQScrollView\fP. 

Suitable for use as an application's main view. 
.PP
Definition at line 77 of file khtmlview.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KHTMLView::KHTMLView (\fBKHTMLPart\fP * part, \fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructs a KHTMLView. 
.PP
Definition at line 458 of file khtmlview.cpp.
.PP
References QScrollView::contentsMoving(), QScrollView::enableClipper(), part(), KImageIO::registerFormats(), QScrollView::setHScrollBarMode(), QScrollView::setResizePolicy(), QScrollView::setVScrollBarMode(), KHTMLPart::show(), and QScrollView::viewport().
.SH "Member Function Documentation"
.PP 
.SS "\fBKHTMLPart\fP* KHTMLView::part () const\fC [inline]\fP"
.PP
Returns a pointer to the \fBKHTMLPart\fP that is rendering the page. 
.PP
Definition at line 112 of file khtmlview.h.
.PP
Referenced by khtml::CSSStyleSelector::CSSStyleSelector(), and KHTMLView().
.SS "void KHTMLView::setMarginWidth (int x)"
.PP
Sets a margin in x direction. 
.PP
Definition at line 729 of file khtmlview.cpp.
.SS "int KHTMLView::marginWidth () const\fC [inline]\fP"
.PP
Returns the margin width. 
.PP
A return value of -1 means the default value will be used. 
.PP
Definition at line 126 of file khtmlview.h.
.SS "int KHTMLView::marginHeight ()\fC [inline]\fP"
.PP
Returns the margin height. 
.PP
A return value of -1 means the default value will be used. 
.PP
Definition at line 138 of file khtmlview.h.
.SS "void KHTMLView::setVScrollBarMode (ScrollBarMode mode)\fC [virtual]\fP"
.PP
Sets verticals scrollbar mode. 
.PP
Reimplemented for internal reasons. 
.PP
Reimplemented from \fBQScrollView\fP.
.PP
Definition at line 2526 of file khtmlview.cpp.
.PP
References QScrollView::setVScrollBarMode().
.SS "void KHTMLView::setHScrollBarMode (ScrollBarMode mode)\fC [virtual]\fP"
.PP
Sets horizontal scrollbar mode. 
.PP
Reimplemented for internal reasons. 
.PP
Reimplemented from \fBQScrollView\fP.
.PP
Definition at line 2536 of file khtmlview.cpp.
.PP
References QScrollView::setHScrollBarMode().
.SS "void KHTMLView::print ()"
.PP
Prints the HTML document. 
.PP
Definition at line 2295 of file khtmlview.cpp.
.SS "void KHTMLView::print (bool quick)"
.PP
Prints the HTML document. 
.PP
\fBParameters:\fP
.RS 4
\fIquick\fP if true, fully automated printing, without print dialog 
.RE
.PP

.PP
Definition at line 2300 of file khtmlview.cpp.
.PP
References QString::arg(), QPainter::begin(), QPainter::boundingRect(), KStringHandler::csqueeze(), QPainter::drawText(), QPainter::end(), endl(), QPainter::fontMetrics(), KLocale::formatDate(), QPaintDeviceMetrics::height(), QString::isEmpty(), kdDebug(), KGlobal::locale(), QPainter::resetXForm(), QPainter::scale(), QPainter::setClipRect(), QPainter::setFont(), QPainter::setPen(), QPainter::translate(), QScrollView::viewport(), QPaintDeviceMetrics::width(), KHTMLPart::xmlDocImpl(), and KHTMLPart::zoomFactor().
.SS "void KHTMLView::layout ()"
.PP
ensure the display is up to date 
.PP
Definition at line 741 of file khtmlview.cpp.
.PP
References displayAccessKeys(), endl(), QScrollView::horizontalScrollBar(), KHTMLPart::isCaretMode(), KHTMLPart::isEditable(), kdDebug(), QScrollView::setHScrollBarMode(), QScrollView::setVScrollBarMode(), QScrollView::verticalScrollBar(), QScrollView::visibleHeight(), QScrollView::visibleWidth(), and KHTMLPart::xmlDocImpl().
.SS "void KHTMLView::displayAccessKeys ()"
.PP
Display all accesskeys in small tooltips. 
.PP
Definition at line 2137 of file khtmlview.cpp.
.PP
References QScrollView::addChild(), QScrollView::contentsHeight(), QScrollView::contentsWidth(), QRect::height(), KMIN, QRect::left(), DOM::DOMString::length(), DOM::DOMString::string(), QRect::top(), QScrollView::viewport(), QRect::width(), and KHTMLPart::xmlDocImpl().
.PP
Referenced by layout().

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
