• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

Public Slots | Signals | Public Member Functions | Properties | List of all members
KHTMLPartIface Class Reference

#include <khtml_iface.h>

Inheritance diagram for KHTMLPartIface:
QDBusAbstractAdaptor

Public Slots

void activateNode ()
 
bool autoloadImages () const
 
bool closeUrl ()
 
void debugDOMTree ()
 
void debugRenderTree ()
 
bool dndEnabled () const
 
QString encoding () const
 
QString evalJS (const QString &script)
 
bool gotoAnchor (const QString &name)
 
bool javaEnabled () const
 
bool jScriptEnabled () const
 
QString lastModified () const
 
bool metaRefreshEnabled () const
 
bool nextAnchor ()
 
bool onlyLocalReferences () const
 
bool pluginsEnabled () const
 
bool prevAnchor ()
 
Q_NOREPLY void print (bool quick)
 
void saveBackground (const QString &url)
 
void saveDocument (const QString &url)
 
void selectAll ()
 
QString selectedText () const
 
void setAutoloadImages (bool enable)
 
void setDndEnabled (bool b)
 
bool setEncoding (const QString &name)
 
void setFixedFont (const QString &name)
 
void setJavaEnabled (bool enable)
 
void setJScriptEnabled (bool enable)
 
void setMetaRefreshEnabled (bool enable)
 
void setOnlyLocalReferences (bool enable)
 
void setPluginsEnabled (bool enable)
 
void setUserStyleSheet (const QString &styleSheet)
 
void stopAnimations ()
 
QString url () const
 
void viewDocumentSource ()
 
void viewFrameSource ()
 

Signals

void configurationChanged ()
 

Public Member Functions

 KHTMLPartIface (KHTMLPart *)
 
virtual ~KHTMLPartIface ()
 

Properties

bool autoloadImages
 
bool dndEnabled
 
QString encoding
 
bool javaEnabled
 
bool jScriptEnabled
 
QString lastModified
 
bool metaRefreshEnabled
 
bool onlyLocalReferences
 
bool pluginsEnabled
 
QString url
 

Detailed Description

D-BUS interface for KHTML.

Definition at line 32 of file khtml_iface.h.

Constructor & Destructor Documentation

◆ KHTMLPartIface()

KHTMLPartIface::KHTMLPartIface ( KHTMLPart *  _part)

Definition at line 29 of file khtml_iface.cc.

◆ ~KHTMLPartIface()

KHTMLPartIface::~KHTMLPartIface ( )
virtual

Definition at line 34 of file khtml_iface.cc.

Member Function Documentation

◆ activateNode

void KHTMLPartIface::activateNode ( )
slot

Activate the node that currently has the focus (emulates pressing Return)

Definition at line 149 of file khtml_iface.cc.

◆ autoloadImages

bool KHTMLPartIface::autoloadImages ( ) const
slot

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 98 of file khtml_iface.cc.

◆ closeUrl

bool KHTMLPartIface::closeUrl ( )
slot

Definition at line 53 of file khtml_iface.cc.

◆ configurationChanged

void KHTMLPartIface::configurationChanged ( )
signal

◆ debugDOMTree

void KHTMLPartIface::debugDOMTree ( )
slot

Definition at line 173 of file khtml_iface.cc.

◆ debugRenderTree

void KHTMLPartIface::debugRenderTree ( )
slot

Definition at line 168 of file khtml_iface.cc.

◆ dndEnabled

bool KHTMLPartIface::dndEnabled ( ) const
slot

Returns whether Dragn'n'Drop support is enabled or not.

Definition at line 68 of file khtml_iface.cc.

◆ encoding

QString KHTMLPartIface::encoding ( ) const
slot

Returns the encoding the page currently uses.

Note that the encoding might be different from the charset.

Definition at line 123 of file khtml_iface.cc.

◆ evalJS

QString KHTMLPartIface::evalJS ( const QString &  script)
slot

Evaluate a given piece of Javascript code.

Definition at line 226 of file khtml_iface.cc.

◆ gotoAnchor

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

Finds the anchor named name.

If the anchor is found, the widget scrolls to the closest position. Returns true if the anchor has been found.

Definition at line 134 of file khtml_iface.cc.

◆ javaEnabled

bool KHTMLPartIface::javaEnabled ( ) const
slot

Return if Java applet support is enabled/disabled.

Definition at line 78 of file khtml_iface.cc.

◆ jScriptEnabled

bool KHTMLPartIface::jScriptEnabled ( ) const
slot

Returns true if Javascript support is enabled or false otherwise.

Definition at line 48 of file khtml_iface.cc.

◆ lastModified

QString KHTMLPartIface::lastModified ( ) const
slot

Last-modified date (in raw string format), if received in the [HTTP] headers.

Definition at line 163 of file khtml_iface.cc.

◆ metaRefreshEnabled

bool KHTMLPartIface::metaRefreshEnabled ( ) const
slot

Returns true if automtaic forwarding is enabled.

Definition at line 58 of file khtml_iface.cc.

◆ nextAnchor

bool KHTMLPartIface::nextAnchor ( )
slot

Go to next Anchor.

This is useful to navigate from outside of the navigator.

Definition at line 139 of file khtml_iface.cc.

◆ onlyLocalReferences

bool KHTMLPartIface::onlyLocalReferences ( ) const
slot

Returns whether references should be loaded ( default false )

Definition at line 113 of file khtml_iface.cc.

◆ pluginsEnabled

bool KHTMLPartIface::pluginsEnabled ( ) const
slot

Returns trie if plugins are enabled/disabled.

Definition at line 88 of file khtml_iface.cc.

◆ prevAnchor

bool KHTMLPartIface::prevAnchor ( )
slot

Go to previous Anchor.

Definition at line 144 of file khtml_iface.cc.

◆ print

void KHTMLPartIface::print ( bool  quick)
slot

Print the contents of the current html view.

Parameters
quickif true, fully automated printing, without the print dialog.

Definition at line 231 of file khtml_iface.cc.

◆ saveBackground

void KHTMLPartIface::saveBackground ( const QString &  url)
slot

Definition at line 188 of file khtml_iface.cc.

◆ saveDocument

void KHTMLPartIface::saveDocument ( const QString &  url)
slot

Definition at line 199 of file khtml_iface.cc.

◆ selectAll

void KHTMLPartIface::selectAll ( )
slot

Marks all text in the document as selected.

Definition at line 158 of file khtml_iface.cc.

◆ selectedText

QString KHTMLPartIface::selectedText ( ) const
slot

Returns the text the user has marked.

Definition at line 216 of file khtml_iface.cc.

◆ setAutoloadImages

void KHTMLPartIface::setAutoloadImages ( bool  enable)
slot

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 93 of file khtml_iface.cc.

◆ setDndEnabled

void KHTMLPartIface::setDndEnabled ( bool  b)
slot

Enables or disables Drag'n'Drop support.

A drag operation is started if the users drags a link.

Definition at line 63 of file khtml_iface.cc.

◆ setEncoding

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

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 118 of file khtml_iface.cc.

◆ setFixedFont

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

Sets the fixed font style.

Parameters
nameThe font name to use for fixed text, e.g. the <pre> tag.

Definition at line 128 of file khtml_iface.cc.

◆ setJavaEnabled

void KHTMLPartIface::setJavaEnabled ( bool  enable)
slot

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 73 of file khtml_iface.cc.

◆ setJScriptEnabled

void KHTMLPartIface::setJScriptEnabled ( bool  enable)
slot

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 43 of file khtml_iface.cc.

◆ setMetaRefreshEnabled

void KHTMLPartIface::setMetaRefreshEnabled ( bool  enable)
slot

Enable/disable the automatic forwarding by <meta http-equiv="refresh" ....

>

Definition at line 108 of file khtml_iface.cc.

◆ setOnlyLocalReferences

void KHTMLPartIface::setOnlyLocalReferences ( bool  enable)
slot

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 103 of file khtml_iface.cc.

◆ setPluginsEnabled

void KHTMLPartIface::setPluginsEnabled ( bool  enable)
slot

Enables or disables plugins via, default is enabled.

Definition at line 83 of file khtml_iface.cc.

◆ setUserStyleSheet

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

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 211 of file khtml_iface.cc.

◆ stopAnimations

void KHTMLPartIface::stopAnimations ( )
slot

Stops display of animated images.

Definition at line 178 of file khtml_iface.cc.

◆ url

QString KHTMLPartIface::url ( ) const
slot
Returns
the current URL

Definition at line 38 of file khtml_iface.cc.

◆ viewDocumentSource

void KHTMLPartIface::viewDocumentSource ( )
slot

Definition at line 183 of file khtml_iface.cc.

◆ viewFrameSource

void KHTMLPartIface::viewFrameSource ( )
slot

Definition at line 221 of file khtml_iface.cc.

Property Documentation

◆ autoloadImages

bool KHTMLPartIface::autoloadImages
readwrite

Definition at line 1 of file khtml_iface.h.

◆ dndEnabled

bool KHTMLPartIface::dndEnabled
readwrite

Definition at line 1 of file khtml_iface.h.

◆ encoding

QString KHTMLPartIface::encoding
readwrite

Definition at line 1 of file khtml_iface.h.

◆ javaEnabled

bool KHTMLPartIface::javaEnabled
readwrite

Definition at line 1 of file khtml_iface.h.

◆ jScriptEnabled

bool KHTMLPartIface::jScriptEnabled
readwrite

Definition at line 1 of file khtml_iface.h.

◆ lastModified

QString KHTMLPartIface::lastModified
read

Definition at line 1 of file khtml_iface.h.

◆ metaRefreshEnabled

bool KHTMLPartIface::metaRefreshEnabled
readwrite

Definition at line 1 of file khtml_iface.h.

◆ onlyLocalReferences

bool KHTMLPartIface::onlyLocalReferences
readwrite

Definition at line 1 of file khtml_iface.h.

◆ pluginsEnabled

bool KHTMLPartIface::pluginsEnabled
readwrite

Definition at line 1 of file khtml_iface.h.

◆ url

QString KHTMLPartIface::url
read

Definition at line 1 of file khtml_iface.h.


The documentation for this class was generated from the following files:
  • khtml_iface.h
  • khtml_iface.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal