.TH "KHTMLView" 3 "28 Jan 2004" "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 \fBcleared\fP ()"
.br
.ti -1c
.RI "void \fBzoomView\fP (int)"
.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
.RI "\fIConstructs a KHTMLView. \fP"
.ti -1c
.RI "\fBKHTMLPart\fP * \fBpart\fP () const "
.br
.RI "\fIReturns a pointer to the \fBKHTMLPart\fP that is rendering the page. \fP"
.ti -1c
.RI "int \fBframeWidth\fP () const "
.br
.ti -1c
.RI "void \fBsetMarginWidth\fP (int x)"
.br
.RI "\fISets a margin in x direction. \fP"
.ti -1c
.RI "int \fBmarginWidth\fP () const "
.br
.RI "\fIReturns the margin width. \fP"
.ti -1c
.RI "void \fBsetMarginHeight\fP (int y)"
.br
.ti -1c
.RI "int \fBmarginHeight\fP ()"
.br
.RI "\fIReturns the margin height. \fP"
.ti -1c
.RI "virtual void \fBsetVScrollBarMode\fP (ScrollBarMode mode)"
.br
.RI "\fISets verticals scrollbar mode. \fP"
.ti -1c
.RI "virtual void \fBsetHScrollBarMode\fP (ScrollBarMode mode)"
.br
.RI "\fISets horizontal scrollbar mode. \fP"
.ti -1c
.RI "void \fBprint\fP ()"
.br
.RI "\fIPrints the HTML document. \fP"
.ti -1c
.RI "void \fBlayout\fP ()"
.br
.RI "\fIensure the display is up to date \fP"
.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 \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 "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::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::DocumentImpl\fP"
.br
.ti -1c
.RI "class \fBKHTMLPart\fP"
.br
.ti -1c
.RI "class \fBkhtml::RenderRoot\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 \fBKJS::WindowFunc\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 71 of file khtmlview.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KHTMLView::KHTMLView (\fBKHTMLPart\fP * part, \fBQWidget\fP * parent, const char * name = 0)"
.PP
Constructs a KHTMLView. Definition at line 255 of file khtmlview.cpp.
.PP
References QScrollView::contentsMoving(), QScrollView::enableClipper(), KStdAccel::name(), KImageIO::registerFormats(), QScrollView::setHScrollBarMode(), QScrollView::setResizePolicy(), QScrollView::setVScrollBarMode(), 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. Definition at line 103 of file khtmlview.h.
.PP
Referenced by khtml::CSSStyleSelector::CSSStyleSelector().
.SS "void KHTMLView::setMarginWidth (int x)"
.PP
Sets a margin in x direction. Definition at line 417 of file khtmlview.cpp.
.SS "int KHTMLView::marginWidth () const\fC [inline]\fP"
.PP
Returns the margin width. A return value of -1 means the default value will be used. Definition at line 117 of file khtmlview.h.
.SS "int KHTMLView::marginHeight ()\fC [inline]\fP"
.PP
Returns the margin height. A return value of -1 means the default value will be used. Definition at line 129 of file khtmlview.h.
.SS "void KHTMLView::setVScrollBarMode (ScrollBarMode mode)\fC [virtual]\fP"
.PP
Sets verticals scrollbar mode. Reimplemented for internal reasons. Reimplemented from \fBQScrollView\fP.
.PP
Definition at line 1375 of file khtmlview.cpp.
.PP
References QScrollView::setVScrollBarMode().
.SS "void KHTMLView::setHScrollBarMode (ScrollBarMode mode)\fC [virtual]\fP"
.PP
Sets horizontal scrollbar mode. Reimplemented for internal reasons. Reimplemented from \fBQScrollView\fP.
.PP
Definition at line 1385 of file khtmlview.cpp.
.PP
References QScrollView::setHScrollBarMode().
.SS "void KHTMLView::print ()"
.PP
Prints the HTML document. Definition at line 1157 of file khtmlview.cpp.
.PP
References QString::arg(), QPainter::begin(), QPainter::boundingRect(), KStringHandler::csqueeze(), QDate::currentDate(), QPainter::drawText(), QPainter::end(), QPainter::fontMetrics(), KLocale::formatDate(), QPaintDeviceMetrics::height(), QString::isEmpty(), 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 Definition at line 429 of file khtmlview.cpp.
.PP
References QScrollView::setHScrollBarMode(), QScrollView::setVScrollBarMode(), QScrollView::visibleHeight(), QScrollView::visibleWidth(), and KHTMLPart::xmlDocImpl().

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