• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KHTML

KHTMLView Class Reference

Renders and displays HTML in a QScrollView. More...

#include <khtmlview.h>

Inheritance diagram for KHTMLView:

Inheritance graph
[legend]

List of all members.


Signals

void cleared ()
void findAheadActive (bool)
void finishedLayout ()
void hideAccessKeys ()
void repaintAccessKeys ()
void zoomView (int)

Public Member Functions

void displayAccessKeys ()
int frameWidth () const
 KHTMLView (KHTMLPart *part, QWidget *parent, const char *name=0)
void layout ()
int marginHeight ()
int marginWidth () const
KHTMLPart * part () const
void print (bool quick)
void print ()
virtual void setHScrollBarMode (ScrollBarMode mode)
void setMarginHeight (int y)
void setMarginWidth (int x)
virtual void setVScrollBarMode (ScrollBarMode mode)
virtual ~KHTMLView ()

Protected Slots

void slotPaletteChanged ()
void slotScrollBarMoved ()

Protected Member Functions

void clear ()
virtual void closeEvent (QCloseEvent *)
void contentsContextMenuEvent (QContextMenuEvent *_ce)
void doAutoScroll ()
virtual void dragEnterEvent (QDragEnterEvent *)
virtual void drawContents (QPainter *)
virtual void drawContents (QPainter *p, int clipx, int clipy, int clipw, int cliph)
virtual void dropEvent (QDropEvent *)
virtual bool eventFilter (QObject *, QEvent *)
virtual void focusInEvent (QFocusEvent *)
virtual bool focusNextPrevChild (bool next)
virtual void focusOutEvent (QFocusEvent *)
virtual void hideEvent (QHideEvent *)
void keyPressEvent (QKeyEvent *_ke)
void keyReleaseEvent (QKeyEvent *_ke)
virtual void resizeEvent (QResizeEvent *event)
virtual void showEvent (QShowEvent *)
void timerEvent (QTimerEvent *)
virtual void viewportMouseDoubleClickEvent (QMouseEvent *)
virtual void viewportMouseMoveEvent (QMouseEvent *)
virtual void viewportMousePressEvent (QMouseEvent *)
virtual void viewportMouseReleaseEvent (QMouseEvent *)
virtual void viewportResizeEvent (QResizeEvent *)
virtual void viewportWheelEvent (QWheelEvent *)

Friends

void khtml::applyRule (DOM::CSSProperty *prop)

Detailed Description

Renders and displays HTML in a QScrollView.

Suitable for use as an application's main view.

Definition at line 78 of file khtmlview.h.


Constructor & Destructor Documentation

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

Constructs a KHTMLView.

Definition at line 473 of file khtmlview.cpp.

KHTMLView::~KHTMLView (  )  [virtual]

Definition at line 509 of file khtmlview.cpp.


Member Function Documentation

void KHTMLView::clear (  )  [protected]

Definition at line 545 of file khtmlview.cpp.

void KHTMLView::cleared (  )  [signal]

void KHTMLView::closeEvent ( QCloseEvent *  ev  )  [protected, virtual]

Definition at line 911 of file khtmlview.cpp.

void KHTMLView::contentsContextMenuEvent ( QContextMenuEvent *  _ce  )  [protected]

Reimplemented from QScrollView.

Definition at line 1749 of file khtmlview.cpp.

void KHTMLView::displayAccessKeys (  ) 

Display all accesskeys in small tooltips.

Definition at line 2229 of file khtmlview.cpp.

void KHTMLView::doAutoScroll (  )  [protected]

Definition at line 1795 of file khtmlview.cpp.

void KHTMLView::dragEnterEvent ( QDragEnterEvent *  ev  )  [protected, virtual]

Definition at line 3272 of file khtmlview.cpp.

void KHTMLView::drawContents ( QPainter *   )  [protected, virtual]

Definition at line 625 of file khtmlview.cpp.

void KHTMLView::drawContents ( QPainter *  p,
int  clipx,
int  clipy,
int  clipw,
int  cliph 
) [protected, virtual]

Reimplemented from QScrollView.

Definition at line 629 of file khtmlview.cpp.

void KHTMLView::dropEvent ( QDropEvent *  ev  )  [protected, virtual]

Definition at line 3285 of file khtmlview.cpp.

bool KHTMLView::eventFilter ( QObject *  o,
QEvent *  e 
) [protected, virtual]

Reimplemented from QScrollView.

Definition at line 1836 of file khtmlview.cpp.

void KHTMLView::findAheadActive ( bool   )  [signal]

void KHTMLView::finishedLayout (  )  [signal]

This signal is used for internal layouting.

Don't use it to check if rendering finished. Use KHTMLPart completed() signal instead.

void KHTMLView::focusInEvent ( QFocusEvent *  e  )  [protected, virtual]

Definition at line 3298 of file khtmlview.cpp.

bool KHTMLView::focusNextPrevChild ( bool  next  )  [protected, virtual]

Definition at line 1776 of file khtmlview.cpp.

void KHTMLView::focusOutEvent ( QFocusEvent *  e  )  [protected, virtual]

Definition at line 3328 of file khtmlview.cpp.

int KHTMLView::frameWidth (  )  const [inline]

Definition at line 115 of file khtmlview.h.

void KHTMLView::hideAccessKeys (  )  [signal]

void KHTMLView::hideEvent ( QHideEvent *  e  )  [protected, virtual]

Definition at line 572 of file khtmlview.cpp.

void KHTMLView::keyPressEvent ( QKeyEvent *  _ke  )  [protected]

Definition at line 1426 of file khtmlview.cpp.

void KHTMLView::keyReleaseEvent ( QKeyEvent *  _ke  )  [protected]

Definition at line 1697 of file khtmlview.cpp.

void KHTMLView::layout (  ) 

ensure the display is up to date

Definition at line 781 of file khtmlview.cpp.

int KHTMLView::marginHeight (  )  [inline]

Returns the margin height.

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

Definition at line 139 of file khtmlview.h.

int KHTMLView::marginWidth (  )  const [inline]

Returns the margin width.

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

Definition at line 127 of file khtmlview.h.

KHTMLPart* KHTMLView::part (  )  const [inline]

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

Definition at line 113 of file khtmlview.h.

void KHTMLView::print ( bool  quick  ) 

Prints the HTML document.

Parameters:
quick if true, fully automated printing, without print dialog

Definition at line 2745 of file khtmlview.cpp.

void KHTMLView::print (  ) 

Prints the HTML document.

Definition at line 2740 of file khtmlview.cpp.

void KHTMLView::repaintAccessKeys (  )  [signal]

void KHTMLView::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

Definition at line 586 of file khtmlview.cpp.

void KHTMLView::setHScrollBarMode ( ScrollBarMode  mode  )  [virtual]

Sets horizontal scrollbar mode.

Reimplemented for internal reasons.

Reimplemented from QScrollView.

Definition at line 2999 of file khtmlview.cpp.

void KHTMLView::setMarginHeight ( int  y  ) 

Definition at line 775 of file khtmlview.cpp.

void KHTMLView::setMarginWidth ( int  x  ) 

Sets a margin in x direction.

Definition at line 769 of file khtmlview.cpp.

void KHTMLView::setVScrollBarMode ( ScrollBarMode  mode  )  [virtual]

Sets verticals scrollbar mode.

Reimplemented for internal reasons.

Reimplemented from QScrollView.

Definition at line 2989 of file khtmlview.cpp.

void KHTMLView::showEvent ( QShowEvent *  e  )  [protected, virtual]

Definition at line 579 of file khtmlview.cpp.

void KHTMLView::slotPaletteChanged (  )  [protected, slot]

Definition at line 2935 of file khtmlview.cpp.

void KHTMLView::slotScrollBarMoved (  )  [protected, slot]

Definition at line 3373 of file khtmlview.cpp.

void KHTMLView::timerEvent ( QTimerEvent *  e  )  [protected]

Definition at line 3395 of file khtmlview.cpp.

void KHTMLView::viewportMouseDoubleClickEvent ( QMouseEvent *  _mouse  )  [protected, virtual]

Definition at line 1042 of file khtmlview.cpp.

void KHTMLView::viewportMouseMoveEvent ( QMouseEvent *  _mouse  )  [protected, virtual]

Definition at line 1120 of file khtmlview.cpp.

void KHTMLView::viewportMousePressEvent ( QMouseEvent *  _mouse  )  [protected, virtual]

Definition at line 922 of file khtmlview.cpp.

void KHTMLView::viewportMouseReleaseEvent ( QMouseEvent *  _mouse  )  [protected, virtual]

Definition at line 1300 of file khtmlview.cpp.

void KHTMLView::viewportResizeEvent ( QResizeEvent *  e  )  [protected, virtual]

Reimplemented from QScrollView.

Definition at line 604 of file khtmlview.cpp.

void KHTMLView::viewportWheelEvent ( QWheelEvent *  e  )  [protected, virtual]

Definition at line 3231 of file khtmlview.cpp.

void KHTMLView::zoomView ( int   )  [signal]


Friends And Related Function Documentation

void khtml::applyRule ( DOM::CSSProperty *  prop  )  [friend]


The documentation for this class was generated from the following files:
  • khtmlview.h
  • khtmlview.cpp

KHTML

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal