KHTMLView Class Reference
Renders and displays HTML in a QScrollView. More...
#include <khtmlview.h>
Inheritance diagram for KHTMLView:


Signals | |
void | finishedLayout () |
void | cleared () |
void | zoomView (int) |
void | hideAccessKeys () |
void | repaintAccessKeys () |
Public Member Functions | |
KHTMLView (KHTMLPart *part, QWidget *parent, const char *name=0) | |
KHTMLPart * | part () const |
int | frameWidth () const |
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 | print (bool quick) |
void | layout () |
void | displayAccessKeys () |
Protected Slots | |
void | slotPaletteChanged () |
void | slotScrollBarMoved () |
Protected Member Functions | |
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 | drawContents (QPainter *) |
virtual void | viewportMousePressEvent (QMouseEvent *) |
virtual void | focusInEvent (QFocusEvent *) |
virtual void | focusOutEvent (QFocusEvent *) |
virtual void | viewportMouseDoubleClickEvent (QMouseEvent *) |
virtual void | viewportMouseMoveEvent (QMouseEvent *) |
virtual void | viewportMouseReleaseEvent (QMouseEvent *) |
virtual void | viewportResizeEvent (QResizeEvent *) |
virtual void | viewportWheelEvent (QWheelEvent *) |
virtual void | dragEnterEvent (QDragEnterEvent *) |
virtual void | dropEvent (QDropEvent *) |
virtual void | closeEvent (QCloseEvent *) |
virtual bool | eventFilter (QObject *, QEvent *) |
void | keyPressEvent (QKeyEvent *_ke) |
void | keyReleaseEvent (QKeyEvent *_ke) |
void | contentsContextMenuEvent (QContextMenuEvent *_ce) |
void | doAutoScroll () |
void | timerEvent (QTimerEvent *) |
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 77 of file khtmlview.h.
Constructor & Destructor Documentation
|
Constructs a KHTMLView.
Definition at line 458 of file khtmlview.cpp. References KHTMLView(), and KImageIO::registerFormats(). Referenced by KHTMLView(). |
Member Function Documentation
|
Returns a pointer to the KHTMLPart that is rendering the page.
Definition at line 112 of file khtmlview.h. Referenced by khtml::CSSStyleSelector::CSSStyleSelector(). |
|
Sets a margin in x direction.
Definition at line 729 of file khtmlview.cpp. References setMarginWidth(). Referenced by setMarginWidth(). |
|
Returns the margin width. A return value of -1 means the default value will be used. Definition at line 126 of file khtmlview.h. |
|
Returns the margin height. A return value of -1 means the default value will be used. Definition at line 138 of file khtmlview.h. |
|
Sets verticals scrollbar mode. Reimplemented for internal reasons. Definition at line 2532 of file khtmlview.cpp. References setVScrollBarMode(). Referenced by setVScrollBarMode(). |
|
Sets horizontal scrollbar mode. Reimplemented for internal reasons. Definition at line 2542 of file khtmlview.cpp. References setHScrollBarMode(). Referenced by setHScrollBarMode(). |
|
Prints the HTML document.
Definition at line 2301 of file khtmlview.cpp. |
|
Prints the HTML document.
Definition at line 2306 of file khtmlview.cpp. References endl(), KLocale::formatDate(), kdDebug(), KGlobal::locale(), QPainter::scale(), QPainter::translate(), KHTMLPart::xmlDocImpl(), and KHTMLPart::zoomFactor(). |
|
ensure the display is up to date
Definition at line 741 of file khtmlview.cpp. References displayAccessKeys(), endl(), KHTMLPart::isCaretMode(), KHTMLPart::isEditable(), kdDebug(), and KHTMLPart::xmlDocImpl(). |
|
Display all accesskeys in small tooltips.
Definition at line 2143 of file khtmlview.cpp. References KMIN, DOM::DOMString::length(), DOM::DOMString::string(), and KHTMLPart::xmlDocImpl(). Referenced by layout(). |
The documentation for this class was generated from the following files: