| # khtml Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# KHTMLPartIface Class Reference

DCOP interface for KHTML. More...

`#include <khtml_iface.h>`

Collaboration diagram for KHTMLPartIface:

[legend]
List of all members.

## DCOP Member Functions
bool | closeURL ()
void | setJScriptEnabled (bool enable)
| Enable/disable Javascript support.
bool | jScriptEnabled () const
| Returns `true` if Javascript support is enabled or `false` otherwise.
void | setMetaRefreshEnabled (bool enable)
| Enable/disable the automatic forwarding by <meta http-equiv="refresh" ....>.
bool | metaRefreshEnabled () const
| Returns `true` if automtaic forwarding is enabled.
void | setDNDEnabled (bool b)
| Enables or disables Drag'n'Drop support.
bool | dndEnabled () const
| Returns whether Dragn'n'Drop support is enabled or not.
void | setJavaEnabled (bool enable)
| Enables/disables Java applet support.
bool | javaEnabled () const
| Return if Java applet support is enabled/disabled.
void | setPluginsEnabled (bool enable)
| Enables or disables plugins via, default is enabled.
bool | pluginsEnabled () const
| Returns trie if plugins are enabled/disabled.
void | setAutoloadImages (bool enable)
| Specifies whether images contained in the document should be loaded automatically or not.
bool | autoloadImages () const
| Returns whether images contained in the document are loaded automatically or not.
void | setOnlyLocalReferences (bool enable)
| Security option.
bool | onlyLocalReferences () const
| Returnd whether references should be loaded ( default false ).
bool | setEncoding (const QString &name)
| Sets the encoding the page uses.
QString | encoding () const
| Returns the encoding the page currently uses.
void | setUserStyleSheet (const QString &styleSheet)
| Sets a user defined style sheet to be used on top of the HTML 4 default style sheet.
void | setFixedFont (const QString &name)
| Sets the fixed font style.
bool | gotoAnchor (const QString &name)
| Finds the anchor named `name`.
QString | selectedText () const
| Returns the text the user has marked.
void | selectAll ()
| Marks all text in the document as selected.
QString | lastModified () const
| Last-modified date (in raw string format), if received in the [HTTP] headers.
void | debugRenderTree ()
void | viewDocumentSource ()
void | viewFrameSource ()
void | saveBackground (const QString &url)
void | saveDocument (const QString &url)
QString | evalJS (const QString &script)
## Public Member Functions
| KHTMLPartIface (KHTMLPart *)

## Detailed Description

DCOP interface for KHTML.

Definition at line 31 of file khtml_iface.h.

## Member Function Documentation

void KHTMLPartIface::setJScriptEnabled | ( | bool | enable | ) |

| Enable/disable Javascript support. Note that this will in either case permanently override the default usersetting. If you want to have the default UserSettings, don't call this method. Definition at line 14 of file khtml_iface.cc.

bool KHTMLPartIface::jScriptEnabled | ( |  | ) | const

| Returns `true` if Javascript support is enabled or `false` otherwise. Definition at line 19 of file khtml_iface.cc.

void KHTMLPartIface::setMetaRefreshEnabled | ( | bool | enable | ) |

| Enable/disable the automatic forwarding by <meta http-equiv="refresh" ....>. Definition at line 84 of file khtml_iface.cc.

bool KHTMLPartIface::metaRefreshEnabled | ( |  | ) | const

| Returns `true` if automtaic forwarding is enabled. Definition at line 34 of file khtml_iface.cc.

void KHTMLPartIface::setDNDEnabled | ( | bool | b | ) |

| Enables or disables Drag'n'Drop support. A drag operation is started if the users drags a link. Definition at line 39 of file khtml_iface.cc.

bool KHTMLPartIface::dndEnabled | ( |  | ) | const

| Returns whether Dragn'n'Drop support is enabled or not. Definition at line 44 of file khtml_iface.cc.

void KHTMLPartIface::setJavaEnabled | ( | bool | enable | ) |

| Enables/disables Java applet support. Note that calling this function will permanently override the User settings about Java applet support. Not calling this function is the only way to let the default settings apply. Definition at line 49 of file khtml_iface.cc.

bool KHTMLPartIface::javaEnabled | ( |  | ) | const

| Return if Java applet support is enabled/disabled. Definition at line 54 of file khtml_iface.cc.

void KHTMLPartIface::setPluginsEnabled | ( | bool | enable | ) |

| Enables or disables plugins via, default is enabled. Definition at line 59 of file khtml_iface.cc.

bool KHTMLPartIface::pluginsEnabled | ( |  | ) | const

| Returns trie if plugins are enabled/disabled. Definition at line 64 of file khtml_iface.cc.

void KHTMLPartIface::setAutoloadImages | ( | bool | enable | ) |

| Specifies whether images contained in the document should be loaded automatically or not. Note: Request will be ignored if called before begin(). Definition at line 69 of file khtml_iface.cc.

bool KHTMLPartIface::autoloadImages | ( |  | ) | const

| Returns whether images contained in the document are loaded automatically or not. Note: that the returned information is unrelieable as long as no begin() was called. Definition at line 74 of file khtml_iface.cc.

void KHTMLPartIface::setOnlyLocalReferences | ( | bool | enable | ) |

| Security option. Specify whether only local references ( stylesheets, images, scripts, subdocuments ) should be loaded. ( default false - everything is loaded, if the more specific options allow ) Definition at line 79 of file khtml_iface.cc.

bool KHTMLPartIface::onlyLocalReferences | ( |  | ) | const

| Returnd whether references should be loaded ( default false ). Definition at line 89 of file khtml_iface.cc.

bool KHTMLPartIface::setEncoding | ( | const QString & | name | ) |

| Sets the encoding the page uses. This can be different from the charset. The widget will try to reload the current page in the new encoding, if url() is not empty. Definition at line 94 of file khtml_iface.cc.

QString KHTMLPartIface::encoding | ( |  | ) | const

| Returns the encoding the page currently uses. Note that the encoding might be different from the charset. Definition at line 99 of file khtml_iface.cc.

void KHTMLPartIface::setUserStyleSheet | ( | const QString & | styleSheet | ) |

| Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. This gives a wide range of possibilities to change the layout of the page. Definition at line 157 of file khtml_iface.cc.

void KHTMLPartIface::setFixedFont | ( | const QString & | name | ) |

  | Sets the fixed font style. Parameters:
  name | The font name to use for fixed text, e.g. the `<pre>` tag.
Definition at line 104 of file khtml_iface.cc.

bool KHTMLPartIface::gotoAnchor | ( | const QString & | name | ) |

| Finds the anchor named `name`. If the anchor is found, the widget scrolls to the closest position. Returns `if` the anchor has been found. Definition at line 109 of file khtml_iface.cc.

QString KHTMLPartIface::selectedText | ( |  | ) | const

| Returns the text the user has marked. Definition at line 162 of file khtml_iface.cc.

void KHTMLPartIface::selectAll | ( |  | ) |

| Marks all text in the document as selected. Definition at line 114 of file khtml_iface.cc.

QString KHTMLPartIface::lastModified | ( |  | ) | const

| Last-modified date (in raw string format), if received in the [HTTP] headers. Definition at line 119 of file khtml_iface.cc.

The documentation for this class was generated from the following files:

- khtml_iface.h
- khtml_iface.cc

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:35:03 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001