# class KHTMLView | Render and display HTML in a QScrollView. More...
Definition | `#include <khtmlview.h>`
Inherits | QScrollView (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KHTMLView ( KHTMLPart *part, QWidget *parent, const char *name=0 )
- virtual ~KHTMLView ()
- KHTMLPart * part () const
- int frameWidth () const
- bool gotoNextLink ()
- bool gotoPrevLink ()
- void toggleActLink (bool)
- void setMarginWidth (int x)
- int marginWidth () const
- void setMarginHeight (int y)
- int marginHeight ()
- virtual void setVScrollBarMode ( ScrollBarMode mode )
- virtual void setHScrollBarMode ( ScrollBarMode mode )
- void print ()
- void paint (QPainter *p, const QRect &rc, int yOff = 0, bool *more = 0)
- void layout (bool force = false)

#### Signals

- void cleared ()

#### Public Static Methods

- static const QList<KHTMLView> * viewList ()

#### Protected Methods

- void clear ()
- virtual void resizeEvent ( QResizeEvent * event )
- virtual void showEvent ( QShowEvent * )
- virtual void hideEvent ( QHideEvent *)
- virtual bool focusNextPrevChild ( bool next )
- virtual void drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph )
- virtual void viewportMousePressEvent ( QMouseEvent * )
- virtual void viewportMouseDoubleClickEvent ( QMouseEvent * )
- virtual void viewportMouseMoveEvent (QMouseEvent *)
- virtual void viewportMouseReleaseEvent (QMouseEvent *)
- void keyPressEvent ( QKeyEvent *_ke )
- void keyReleaseEvent ( QKeyEvent *_ke )
- void doAutoScroll ()

## Detailed Description

Render and display HTML in a QScrollView.

Suitable for use as an application's main view.

KHTMLView ( KHTMLPart *part, QWidget *parent, const char *name=0 ) | ### KHTMLView

Construct a KHTMLView.

~KHTMLView () | ### ~KHTMLView

[virtual]

KHTMLPart * part () | ### part

[const]

Retrieve a pointer to the KHTMLPart that is rendering the page.

int frameWidth () | ### frameWidth

[const]

bool gotoNextLink () | ### gotoNextLink

Move the view towards the next link and draw a cursor around it

bool gotoPrevLink () | ### gotoPrevLink

Move the view towards the next link and draw a cursor around it

void toggleActLink (bool) | ### toggleActLink

visualize that the item under the cursor has been pressed (true) or released(false)

void setMarginWidth (int x) | ### setMarginWidth

Set a margin in x direction.

int marginWidth () | ### marginWidth

[const]

Retrieve the margin width.

A return value of -1 means the default value will be used.

void setMarginHeight (int y) | ### setMarginHeight

int marginHeight () | ### marginHeight

void setVScrollBarMode ( ScrollBarMode mode ) | ### setVScrollBarMode

[virtual]

Reimplemented from QScrollView.

void setHScrollBarMode ( ScrollBarMode mode ) | ### setHScrollBarMode

[virtual]

Reimplemented from QScrollView.

void print () | ### print

Print the HTML document.

void paint (QPainter *p, const QRect &rc, int yOff = 0, bool *more = 0) | ### paint

Paint the HTML document to a QPainter. The document will be scaled to match the width of rc and clipped to fit in the height. yOff determines the vertical offset in the document to start with. more, if nonzero will be set to true if the documents extends beyond the rc or false if everything below yOff was painted.

void layout (bool force = false) | ### layout

const QList<KHTMLView> * viewList () | ### viewList

[static]

void cleared () | ### cleared

[signal]

void clear () | ### clear

[protected]

void resizeEvent ( QResizeEvent * event ) | ### resizeEvent

[protected virtual]

Reimplemented from QScrollView.

void showEvent ( QShowEvent * ) | ### showEvent

[protected virtual]

void hideEvent ( QHideEvent *) | ### hideEvent

[protected virtual]

bool focusNextPrevChild ( bool next ) | ### focusNextPrevChild

[protected virtual]

Reimplemented from QScrollView.

void drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph ) | ### drawContents

[protected virtual]

Reimplemented from QScrollView.

void viewportMousePressEvent ( QMouseEvent * ) | ### viewportMousePressEvent

[protected virtual]

Reimplemented from QScrollView.

void viewportMouseDoubleClickEvent ( QMouseEvent * ) | ### viewportMouseDoubleClickEvent

[protected virtual]

This function emits the doubleClick() signal when the user double clicks a <a href=...> tag.

Reimplemented from QScrollView.

void viewportMouseMoveEvent (QMouseEvent *) | ### viewportMouseMoveEvent

[protected virtual]

This function is called when the user moves the mouse.

Reimplemented from QScrollView.

void viewportMouseReleaseEvent (QMouseEvent *) | ### viewportMouseReleaseEvent

[protected virtual]

this function is called when the user releases a mouse button.

Reimplemented from QScrollView.

void keyPressEvent ( QKeyEvent *_ke ) | ### keyPressEvent

[protected]

void keyReleaseEvent ( QKeyEvent *_ke ) | ### keyReleaseEvent

[protected]

void doAutoScroll () | ### doAutoScroll

[protected]

Scroll the view

Generated by: root@i386.ports.openbsd.org on Wed Apr 25 13:58:52 2001, using kdoc 2.0a53.