KHTMLPartIface

#include <khtml_iface.h>

Inheritance diagram for KHTMLPartIface:

Properties

bool autoloadImages
 
bool dndEnabled
 
QString encoding
 
bool javaEnabled
 
bool jScriptEnabled
 
QString lastModified
 
bool metaRefreshEnabled
 
bool onlyLocalReferences
 
bool pluginsEnabled
 
QString url
 
- Properties inherited from QObject
 objectName
 

Signals

void configurationChanged ()
 

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 ()
 

Public Member Functions

 KHTMLPartIface (KHTMLPart *)
 
- Public Member Functions inherited from QDBusAbstractAdaptor
 Q_NOREPLY Q_NOREPLY
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo ()
 
void dumpObjectInfo () const const
 
void dumpObjectTree ()
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
qobject_cast (QObject *object)
 
qobject_cast (const QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QDBusAbstractAdaptor
 QDBusAbstractAdaptor (QObject *obj)
 
bool autoRelaySignals () const const
 
void setAutoRelaySignals (bool enable)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

D-BUS interface for KHTML.

Definition at line 31 of file khtml_iface.h.

Member Function Documentation

void KHTMLPartIface::activateNode ( )
slot

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

Definition at line 150 of file khtml_iface.cpp.

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.
bool KHTMLPartIface::dndEnabled ( ) const
slot

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

QString KHTMLPartIface::encoding ( ) const
slot

Returns the encoding the page currently uses.

Note that the encoding might be different from the charset.

QString KHTMLPartIface::evalJS ( const QString script)
slot

Evaluate a given piece of Javascript code.

Definition at line 229 of file khtml_iface.cpp.

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 135 of file khtml_iface.cpp.

bool KHTMLPartIface::javaEnabled ( ) const
slot

Return if Java applet support is enabled/disabled.

bool KHTMLPartIface::jScriptEnabled ( ) const
slot

Returns true if Javascript support is enabled or false otherwise.

QString KHTMLPartIface::lastModified ( ) const
slot

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

bool KHTMLPartIface::metaRefreshEnabled ( ) const
slot

Returns true if automtaic forwarding is enabled.

bool KHTMLPartIface::nextAnchor ( )
slot

Go to next Anchor.

This is useful to navigate from outside of the navigator.

Definition at line 140 of file khtml_iface.cpp.

bool KHTMLPartIface::onlyLocalReferences ( ) const
slot

Returns whether references should be loaded ( default false )

bool KHTMLPartIface::pluginsEnabled ( ) const
slot

Returns trie if plugins are enabled/disabled.

bool KHTMLPartIface::prevAnchor ( )
slot

Go to previous Anchor.

Definition at line 145 of file khtml_iface.cpp.

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 234 of file khtml_iface.cpp.

void KHTMLPartIface::selectAll ( )
slot

Marks all text in the document as selected.

Definition at line 159 of file khtml_iface.cpp.

QString KHTMLPartIface::selectedText ( ) const
slot

Returns the text the user has marked.

Definition at line 219 of file khtml_iface.cpp.

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 94 of file khtml_iface.cpp.

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 64 of file khtml_iface.cpp.

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 119 of file khtml_iface.cpp.

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 129 of file khtml_iface.cpp.

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 74 of file khtml_iface.cpp.

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 44 of file khtml_iface.cpp.

void KHTMLPartIface::setMetaRefreshEnabled ( bool  enable)
slot

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

>

Definition at line 109 of file khtml_iface.cpp.

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 104 of file khtml_iface.cpp.

void KHTMLPartIface::setPluginsEnabled ( bool  enable)
slot

Enables or disables plugins via, default is enabled.

Definition at line 84 of file khtml_iface.cpp.

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 214 of file khtml_iface.cpp.

void KHTMLPartIface::stopAnimations ( )
slot

Stops display of animated images.

Definition at line 179 of file khtml_iface.cpp.

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

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun May 31 2020 22:53:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.