class KHTMLView

QScrollView. More...

Definition#include <khtmlview.h>
InheritsQScrollView [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Public Static Methods

Protected Methods


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 )

Construct a KHTMLView.

 ~KHTMLView ()

[virtual]

KHTMLPartpart ()

[const]

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

int  frameWidth ()

[const]

bool  gotoNextLink ()

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

bool  gotoPrevLink ()

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

void  toggleActLink (bool)

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

void  setMarginWidth (int x)

Set a margin in x direction.

int  marginWidth ()

[const]

Retrieve the margin width.

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

void  setMarginHeight (int y)

int  marginHeight ()

void  setVScrollBarMode ( ScrollBarMode mode )

[virtual]

void  setHScrollBarMode ( ScrollBarMode mode )

[virtual]

void  print ()

Print the HTML document.

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

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)

const QList<KHTMLView> * viewList ()

[static]

void  cleared ()

[signal]

void  clear ()

[protected: ]

void  resizeEvent ( QResizeEvent * event )

[protected: virtual]

void  showEvent ( QShowEvent * )

[protected: virtual]

void  hideEvent ( QHideEvent *)

[protected: virtual]

bool  focusNextPrevChild ( bool next )

[protected: virtual]

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

[protected: virtual]

void  viewportMousePressEvent ( QMouseEvent * )

[protected: virtual]

void  viewportMouseDoubleClickEvent ( QMouseEvent * )

[protected: virtual]

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

void  viewportMouseMoveEvent (QMouseEvent *)

[protected: virtual]

This function is called when the user moves the mouse.

void  viewportMouseReleaseEvent (QMouseEvent *)

[protected: virtual]

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

void  keyPressEvent ( QKeyEvent *_ke )

[protected: ]

void  keyReleaseEvent ( QKeyEvent *_ke )

[protected: ]

void  doAutoScroll ()

[protected: ]

Scroll the view


Generated by: marc@yogi on Tue Mar 27 13:08:56 2001, using kdoc 2.0a48.