KHTMLPart Class Reference
This class is khtml's main class. HTML Browser Widget. More...
#include <khtml_part.h>
Inheritance diagram for KHTMLPart:

Public Slots | |
void | setActiveNode (const DOM::Node &node) |
Sets the focussed node of the document to the specified node. | |
void | stopAnimations () |
Stops all animated images on the current and child pages. | |
Signals | |
void | onURL (const QString &url) |
Emitted if the cursor is moved over an URL. | |
void | popupMenu (const QString &url, const QPoint &point) |
Emitted when the user clicks the right mouse button on the document. | |
void | selectionChanged () |
This signal is emitted when the selection changes. | |
void | nodeActivated (const DOM::Node &) |
This signal is emitted when an element retrieves the keyboard focus. | |
Public Methods | |
KHTMLPart (QWidget *parentWidget=0, const char *widgetname=0, QObject *parent=0, const char *name=0, GUIProfile prof=DefaultGUI) | |
Constructs a new KHTMLPart. | |
virtual | ~KHTMLPart () |
Destructor. | |
virtual bool | openURL (const KURL &url) |
Opens the specified URL url . | |
virtual bool | closeURL () |
Stops loading the document and kill all data requests (for images, etc.). | |
virtual void | showError (KIO::Job *job) |
is called when a certain error situation (i.e. | |
DOM::HTMLDocument | htmlDocument () const |
Returns a reference to the DOM HTML document (for non-HTML documents, returns null). | |
DOM::Document | document () const |
Returns a reference to the DOM document. | |
DOM::Node | activeNode () const |
Returns the node that has the keyboard focus. | |
KParts::BrowserExtension * | browserExtension () const |
Returns a pointer to the KParts::BrowserExtension. | |
KHTMLView * | view () const |
Returns a pointer to the HTML document's view. | |
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 automatic forwarding is enabled. | |
QVariant | executeScript (const QString &script) |
Execute the specified snippet of JavaScript code. | |
QVariant | executeScript (const DOM::Node &n, const QString &script) |
Same as above except the Node parameter specifying the 'this' value. | |
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. | |
KJavaAppletContext * | javaContext () |
Returns the java context of the applets. | |
KJavaAppletContext * | createJavaContext () |
Returns the java context of the applets. | |
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 ). | |
KURL | backgroundURL () const |
Returns the URL for the background Image (used by save background). | |
void | scheduleRedirection (int delay, const QString &url, bool lockHistory=true) |
Schedules a redirection after delay seconds. | |
virtual void | begin (const KURL &url=KURL(), int xOffset=0, int yOffset=0) |
Clears the widget and prepares it for new content. | |
virtual void | write (const char *str, int len=-1) |
Writes another part of the HTML code to the widget. | |
virtual void | write (const QString &str) |
Writes another part of the HTML code to the widget. | |
virtual void | end () |
Call this after your last call to write(). | |
void | paint (QPainter *, const QRect &, int=0, bool *=0) |
Paints the HTML page to a QPainter. | |
bool | setEncoding (const QString &name, bool override=false) |
Sets the encoding the page uses. | |
QString | encoding () const |
Returns the encoding the page currently uses. | |
void | setUserStyleSheet (const KURL &url) |
Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. | |
void | setUserStyleSheet (const QString &styleSheet) |
Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. | |
void | setStandardFont (const QString &name) |
Sets the standard font style. | |
void | setFixedFont (const QString &name) |
Sets the fixed font style. | |
bool | gotoAnchor (const QString &name) |
Finds the anchor named name . | |
void | setURLCursor (const QCursor &c) |
Sets the cursor to use when the cursor is on a link. | |
QCursor | urlCursor () const |
Returns the cursor which is used when the cursor is on a link. | |
void | findTextBegin () |
Initiates a text search. | |
bool | findTextNext (const QString &str, bool forward, bool caseSensitive, bool isRegExp) |
Finds the next occurence of the string or expression. | |
void | setZoomFactor (int percent) |
Sets the Zoom factor. | |
int | zoomFactor () const |
Returns the current zoom factor. | |
virtual QString | selectedText () const |
Returns the text the user has marked. | |
DOM::Range | selection () const |
Returns the selected part of the HTML. | |
void | setSelection (const DOM::Range &) |
Sets the current selection. | |
bool | hasSelection () const |
Has the user selected anything? | |
void | selectAll () |
Marks all text in the document as selected. | |
void | show () |
Convenience method to show the document's view. | |
void | hide () |
Convenience method to hide the document's view. | |
KParts::PartManager * | partManager () |
Returns a reference to the partmanager instance which manages html frame objects. | |
virtual void | saveState (QDataStream &stream) |
Saves the KHTMLPart's complete state (including child frame objects) to the provided QDataStream. | |
virtual void | restoreState (QDataStream &stream) |
Restores the KHTMLPart's previously saved state (including child frame objects) from the provided QDataStream. | |
DOM::Node | nodeUnderMouse () const |
Returns the Node currently under the mouse. | |
KHTMLPart * | parentPart () |
Returns a pointer to the parent KHTMLPart if the part is a frame in an HTML frameset. | |
QStringList | frameNames () const |
Returns a list of names of all frame (including iframe) objects of the current document. | |
KHTMLPart * | findFrame (const QString &f) |
Finds a frame by name. | |
KParts::ReadOnlyPart * | currentFrame () const |
Return the current frame (the one that has focus) Not necessarily a direct child of ours, framesets can be nested. | |
bool | frameExists (const QString &frameName) |
Returns whether a frame with the specified name is exists or not. | |
void | setJSStatusBarText (const QString &text) |
Called by KJS. | |
void | setJSDefaultStatusBarText (const QString &text) |
Called by KJS. | |
QString | jsStatusBarText () const |
Called by KJS. | |
QString | jsDefaultStatusBarText () const |
Called by KJS. | |
QString | referrer () const |
Referrer used for links in this page. | |
QString | pageReferrer () const |
Referrer used to obtain this page. | |
QString | lastModified () const |
Last-modified date (in raw string format), if received in the [HTTP] headers. | |
void | preloadStyleSheet (const QString &url, const QString &stylesheet) |
Loads a style sheet into the stylesheet cache. | |
void | preloadScript (const QString &url, const QString &script) |
Loads a script into the script cache. | |
Protected Methods | |
KURL | completeURL (const QString &url) |
returns a KURL object for the given url. | |
void | htmlError (int errorCode, const QString &text, const KURL &reqUrl) |
presents a detailed error message to the user. | |
virtual void | customEvent (QCustomEvent *event) |
virtual void | khtmlMousePressEvent (khtml::MousePressEvent *event) |
Eventhandler of the khtml::MousePressEvent. | |
virtual void | khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent *) |
Eventhandler for the khtml::MouseDoubleClickEvent. | |
virtual void | khtmlMouseMoveEvent (khtml::MouseMoveEvent *event) |
Eventhandler for the khtml::MouseDoubleMoveEvent. | |
virtual void | khtmlMouseReleaseEvent (khtml::MouseReleaseEvent *event) |
Eventhandler for the khtml::MouseMoveEvent. | |
virtual void | khtmlDrawContentsEvent (khtml::DrawContentsEvent *) |
Eventhandler for the khtml::DrawContentsEvent. | |
virtual void | guiActivateEvent (KParts::GUIActivateEvent *event) |
Internal reimplementation of KParts::Part::guiActivateEvent . | |
virtual bool | openFile () |
Internal empty reimplementation of KParts::ReadOnlyPart::openFile . | |
virtual KParts::ReadOnlyPart * | createPart (QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const QString &mimetype, QString &serviceName, QStringList &serviceTypes, const QStringList ¶ms) |
This method is called when a new embedded object (include html frames) is to be created. |
Detailed Description
This class is khtml's main class. HTML Browser Widget.It features an almost complete web browser, and html renderer.
The easiest way to use this class (if you just want to display a an HTML page at some URL) is the following:
KURL url = "http://www.kde.org"; KHTMLPart *w = new KHTMLPart(); w->openURL(url); w->view()->resize(500, 400); w->show();
If Java and JavaScript are enabled by default depends on the user's settings. If you do not need them, and escpecially if you display unfiltered data from untrusted sources, it is strongly recommended to turn them off. In that case, you should also turn off the automatic redirect and plugins:
w->setJScriptEnabled(false); w->setJavaEnabled(false); w->setMetaRefreshEnabled(false); w->setPluginsEnabled(false);
Some apps want to write their HTML code directly into the widget instead of it opening an url. You can also do that in the following way:
QString myHTMLCode = ...; KHTMLPart *w = new KHTMLPart(); w->begin(); w->write(myHTMLCode); ... w->end();
You can do as many calls to write as you want. But there are two write() methods, one accepting a QString one accepting a char
*
argument. You should use one or the other (but not both) since the method using the char
*
argument does an additional decoding step to convert the written data to Unicode.
- Author:
- Lars Knoll (knoll@kde.org)
- Version:
- Id:
- khtml_part.h,v 1.197.2.3 2003/01/03 22:25:06 mueller Exp
Definition at line 145 of file khtml_part.h.
Constructor & Destructor Documentation
|
Constructs a new KHTMLPart.
KHTML basically consists of two objects: The KHTMLPart itself, holding the document data (DOM document), and the KHTMLView, derived from QScrollView, in which the document content is rendered in. You can specify two different parent objects for a KHTMLPart, one parent for the KHTMLPart document and on parent for the KHTMLView. If the second Definition at line 138 of file khtml_part.cpp. References parentPart(), and KParts::PartBase::setInstance(). |
|
Destructor.
Definition at line 259 of file khtml_part.cpp. References closeURL(), and QObject::disconnect(). |
Member Function Documentation
|
Opens the specified URL Reimplemented from KParts::ReadOnlyPart::openURL . Reimplemented from KParts::ReadOnlyPart. Definition at line 334 of file khtml_part.cpp. References closeURL(), KParts::ReadOnlyPart::completed(), QObject::connect(), KParts::URLArgs::contentType(), KParts::URLArgs::doPost(), KURL::encodedHtmlRef(), KIO::get(), gotoAnchor(), KURL::hasRef(), KURL::hasSubURL(), KURL::host(), htmlError(), KURL::htmlRef(), KIO::http_post(), QMap< QString, QString >::insert(), QString::isEmpty(), KURL::join(), KParts::ReadOnlyPart::m_url, KParts::URLArgs::metaData(), parentPart(), KURL::path(), KParts::URLArgs::postData, KURL::prettyURL(), KURL::protocol(), KURL::queryItem(), KParts::URLArgs::reload, KURL::setPath(), KURL::split(), KParts::ReadOnlyPart::started(), QString::startsWith(), QString::toInt(), KURL::url(), and KParts::Part::widget(). Referenced by restoreState(), and setEncoding(). |
|
Stops loading the document and kill all data requests (for images, etc.).
Reimplemented from KParts::ReadOnlyPart. Definition at line 489 of file khtml_part.cpp. References KHTMLPageCache::cancelEntry(), KHTMLPageCache::cancelFetch(), end(), KParts::ReadOnlyPart::m_url, nodeActivated(), KURL::prettyURL(), and KHTMLPageCache::self(). Referenced by openURL(), restoreState(), setEncoding(), and ~KHTMLPart(). |
|
is called when a certain error situation (i.e.
connection timed out) occured. default implementation either shows a KIO error dialog or loads a more verbose error description a as page, depending on the users configuration. Definition at line 1143 of file khtml_part.cpp. References KIO::Job::error(), KIO::Job::errorText(), htmlError(), and KIO::Job::showErrorDialog(). |
|
Returns a reference to the DOM HTML document (for non-HTML documents, returns null).
Definition at line 558 of file khtml_part.cpp. |
|
Returns a reference to the DOM document.
Definition at line 566 of file khtml_part.cpp. Referenced by selection(). |
|
Returns the node that has the keyboard focus.
Definition at line 5000 of file khtml_part.cpp. |
|
Returns a pointer to the KParts::BrowserExtension.
Definition at line 572 of file khtml_part.cpp. |
|
Returns a pointer to the HTML document's view.
Definition at line 577 of file khtml_part.cpp. Referenced by khtmlMouseMoveEvent(). |
|
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 582 of file khtml_part.cpp. References jScriptEnabled(). |
|
Returns
Definition at line 591 of file khtml_part.cpp. Referenced by setJScriptEnabled(). |
|
Enable/disable the automatic forwarding by <meta http-equiv="refresh" ....>.
Definition at line 598 of file khtml_part.cpp. |
|
Returns
Definition at line 603 of file khtml_part.cpp. |
|
Execute the specified snippet of JavaScript code.
Returns
Definition at line 652 of file khtml_part.cpp. |
|
Same as above except the Node parameter specifying the 'this' value.
Definition at line 660 of file khtml_part.cpp. References DOM::Node::isNull(), DOM::Node::nodeName(), and DOM::Node::nodeType(). |
|
Enables or disables Drag'n'Drop support. A drag operation is started if the users drags a link. Definition at line 4265 of file khtml_part.cpp. |
|
Returns whether Dragn'n'Drop support is enabled or not.
Definition at line 4270 of file khtml_part.cpp. |
|
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 705 of file khtml_part.cpp. |
|
Return if Java applet support is enabled/disabled.
Definition at line 711 of file khtml_part.cpp. |
|
Returns the java context of the applets. If no applet exists, 0 is returned. Definition at line 722 of file khtml_part.cpp. |
|
Returns the java context of the applets. If no context exists yet, a new one is created. Definition at line 731 of file khtml_part.cpp. References QObject::connect(), and KParts::Part::setStatusBarText(). |
|
Enables or disables plugins via, default is enabled.
Definition at line 750 of file khtml_part.cpp. |
|
Returns trie if plugins are enabled/disabled.
Definition at line 756 of file khtml_part.cpp. |
|
Specifies whether images contained in the document should be loaded automatically or not.
Definition at line 836 of file khtml_part.cpp. References KXMLGUIClient::actionCollection(), QPtrList::append(), KXMLGUIClient::plugActionList(), and KXMLGUIClient::unplugActionList(). Referenced by begin(). |
|
Returns whether images contained in the document are loaded automatically or not.
Definition at line 860 of file khtml_part.cpp. |
|
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 1886 of file khtml_part.cpp. |
|
Returnd whether references should be loaded ( default false ).
Definition at line 1881 of file khtml_part.cpp. |
|
Returns the URL for the background Image (used by save background).
Definition at line 2769 of file khtml_part.cpp. References KParts::ReadOnlyPart::m_url. |
|
Schedules a redirection after
Definition at line 1717 of file khtml_part.cpp. |
|
Clears the widget and prepares it for new content. If you want url() to return for example "file:/tmp/test.html", you can use the following code: view->begin( KURL("file:/tmp/test.html" ) );
Definition at line 1294 of file khtml_part.cpp. References QObject::connect(), KParts::URLArgs::docState, QString::isEmpty(), KURL::isEmpty(), KURL::isValid(), KParts::ReadOnlyPart::m_url, KURL::prettyURL(), KURL::protocol(), KParts::URLArgs::serviceType, setAutoloadImages(), KURL::setQuery(), KURL::setRef(), setUserStyleSheet(), KParts::Part::setWindowCaption(), KURL::split(), QString::startsWith(), KURL::url(), KParts::URLArgs::xOffset, and KParts::URLArgs::yOffset. Referenced by htmlError(). |
|
Writes another part of the HTML code to the widget. You may call this function many times in sequence. But remember: The fewer calls you make, the faster the widget will be. The HTML code is send through a decoder which decodes the stream to Unicode.
The Attention: Don't mix calls to write( const char *) with calls to write( const QString & ). The result might not be what you want. Definition at line 1375 of file khtml_part.cpp. References encoding(), QString::isEmpty(), KParts::ReadOnlyPart::m_url, and KURL::url(). Referenced by end(), and htmlError(). |
|
Writes another part of the HTML code to the widget. You may call this function many times in sequence. But remember: The fewer calls you make, the faster the widget will be. Definition at line 1413 of file khtml_part.cpp. References QString::isNull(), KParts::ReadOnlyPart::m_url, and KURL::url(). |
|
Call this after your last call to write().
Definition at line 1430 of file khtml_part.cpp. References write(). Referenced by closeURL(), htmlError(), and stopAnimations(). |
|
Paints the HTML page to a QPainter. See KHTMLView::paint for details Definition at line 1439 of file khtml_part.cpp. |
|
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 1780 of file khtml_part.cpp. References closeURL(), KURL::isEmpty(), KParts::ReadOnlyPart::m_url, and openURL(). |
|
Returns the encoding the page currently uses. Note that the encoding might be different from the charset. Definition at line 1798 of file khtml_part.cpp. References KHTMLSettings::encoding(). Referenced by restoreState(), and write(). |
|
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 1809 of file khtml_part.cpp. References KURL::url(). Referenced by begin(). |
|
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 1815 of file khtml_part.cpp. |
|
Sets the standard font style.
Definition at line 1861 of file khtml_part.cpp. |
|
Sets the fixed font style.
Definition at line 1866 of file khtml_part.cpp. |
|
Finds the anchor named
If the anchor is found, the widget scrolls to the closest position. Returns Definition at line 1821 of file khtml_part.cpp. Referenced by openURL(). |
|
Sets the cursor to use when the cursor is on a link.
Definition at line 1871 of file khtml_part.cpp. |
|
Returns the cursor which is used when the cursor is on a link.
Definition at line 1876 of file khtml_part.cpp. |
|
Initiates a text search.
Definition at line 1891 of file khtml_part.cpp. |
|
Finds the next occurence of the string or expression. If isRegExp is true then str is converted to a QRegExp, and caseSensitive is ignored. Definition at line 1952 of file khtml_part.cpp. References QString::length(), QRegExp::matchedLength(), QRegExp::search(), QRegExp::setCaseSensitive(), and QConstString::string(). |
|
Sets the Zoom factor. The value is given in percent, larger values mean a generally larger font and larger page contents. It is not guaranteed that all parts of the page are scaled with the same factor though. The given value should be in the range of 20..300, values outside that range are not guaranteed to work. A value of 100 will disable all zooming and show the page with the sizes determined via the given lengths in the stylesheets. Definition at line 4073 of file khtml_part.cpp. References QApplication::restoreOverrideCursor(), and QApplication::setOverrideCursor(). Referenced by restoreState(). |
|
Returns the current zoom factor.
Definition at line 4033 of file khtml_part.cpp. Referenced by khtml::CSSStyleSelector::CSSStyleSelector(), KHTMLView::print(), and restoreState(). |
|
Returns the text the user has marked.
Definition at line 2277 of file khtml_part.cpp. References DOM::Node::elementId(), DOM::Node::firstChild(), DOM::Node::handle(), QString::isEmpty(), DOM::Node::isNull(), QString::left(), QString::length(), QString::mid(), DOM::Node::nextSibling(), DOM::Node::nodeType(), DOM::Node::nodeValue(), and DOM::Node::parentNode(). Referenced by khtmlMouseReleaseEvent(). |
|
Returns the selected part of the HTML.
Definition at line 2405 of file khtml_part.cpp. References DOM::Document::createRange(), and document(). |
|
Sets the current selection.
Definition at line 2414 of file khtml_part.cpp. |
|
Has the user selected anything? Call selectedText() to retrieve the selected text.
Definition at line 2395 of file khtml_part.cpp. |
|
Marks all text in the document as selected.
Definition at line 4830 of file khtml_part.cpp. |
|
Convenience method to show the document's view. Equivalent to widget()->show() or view()->show() . Definition at line 4009 of file khtml_part.cpp. |
|
Convenience method to hide the document's view. Equivalent to widget()->hide() or view()->hide(). Definition at line 4015 of file khtml_part.cpp. |
|
Returns a reference to the partmanager instance which manages html frame objects.
Definition at line 3264 of file khtml_part.cpp. References QObject::connect(). Referenced by currentFrame(). |
|
Saves the KHTMLPart's complete state (including child frame objects) to the provided QDataStream. This is called from the saveState() method of the browserExtension(). Definition at line 3747 of file khtml_part.cpp. References KParts::ReadOnlyPart::m_url, and KURL::url(). |
|
Restores the KHTMLPart's previously saved state (including child frame objects) from the provided QDataStream.
Definition at line 3825 of file khtml_part.cpp. References QValueList::begin(), closeURL(), KParts::URLArgs::docState, encoding(), frameNames(), KHTMLPageCache::isValid(), openURL(), KHTMLPageCache::self(), setZoomFactor(), KParts::URLArgs::xOffset, KParts::URLArgs::yOffset, and zoomFactor(). |
|
Returns the
Definition at line 4021 of file khtml_part.cpp. |
|
Returns a pointer to the parent KHTMLPart if the part is a frame in an HTML frameset. Returns 0L otherwise. Definition at line 3703 of file khtml_part.cpp. References QObject::parent(). Referenced by khtmlMouseMoveEvent(), khtmlMousePressEvent(), khtmlMouseReleaseEvent(), KHTMLPart(), and openURL(). |
|
Returns a list of names of all frame (including iframe) objects of the current document. Note that this method is not working recursively for sub-frames. Definition at line 4223 of file khtml_part.cpp. Referenced by restoreState(). |
|
Finds a frame by name. Returns 0L if frame can't be found. Definition at line 3636 of file khtml_part.cpp. References QObject::className(), and QObject::inherits(). |
|
Return the current frame (the one that has focus) Not necessarily a direct child of ours, framesets can be nested. Returns "this" if this part isn't a frameset. Definition at line 3676 of file khtml_part.cpp. References KParts::PartManager::activePart(), QObject::inherits(), and partManager(). |
|
Returns whether a frame with the specified name is exists or not. In contrary to the findFrame method this one also returns true if the frame is defined but no displaying component has been found/loaded, yet. Definition at line 3691 of file khtml_part.cpp. |
|
Called by KJS. Sets the StatusBarText assigned via window.status Definition at line 4129 of file khtml_part.cpp. References KParts::Part::setStatusBarText(). |
|
Called by KJS. Sets the DefaultStatusBarText assigned via window.defaultStatus Definition at line 4134 of file khtml_part.cpp. References KParts::Part::setStatusBarText(). |
|
Called by KJS. Returns the StatusBarText assigned via window.status Definition at line 4139 of file khtml_part.cpp. |
|
Called by KJS. Returns the DefaultStatusBarText assigned via window.defaultStatus Definition at line 4144 of file khtml_part.cpp. |
|
Referrer used for links in this page.
Definition at line 4149 of file khtml_part.cpp. |
|
Referrer used to obtain this page.
Definition at line 4154 of file khtml_part.cpp. References KURL::isValid(), KParts::ReadOnlyPart::m_url, KURL::protocol(), KURL::setPass(), KURL::setRef(), KURL::setUser(), and KURL::url(). |
|
Last-modified date (in raw string format), if received in the [HTTP] headers.
Definition at line 4174 of file khtml_part.cpp. References KURL::isLocalFile(), KParts::ReadOnlyPart::m_url, KURL::path(), and QDateTime::toString(). |
|
Loads a style sheet into the stylesheet cache.
Definition at line 5035 of file khtml_part.cpp. |
|
Loads a script into the script cache.
Definition at line 5040 of file khtml_part.cpp. |
|
Emitted if the cursor is moved over an URL.
Referenced by khtmlMouseMoveEvent(). |
|
Emitted when the user clicks the right mouse button on the document.
Referenced by khtmlMouseMoveEvent(), and khtmlMousePressEvent(). |
|
This signal is emitted when the selection changes.
Referenced by khtmlMouseReleaseEvent(). |
|
This signal is emitted when an element retrieves the keyboard focus. Note that the signal argument can be a null node if no element is active, meaning a node has explicitly been deactivated without a new one becoming active. Referenced by closeURL(). |
|
returns a KURL object for the given url. Use when you know what you're doing. Definition at line 1707 of file khtml_part.cpp. Referenced by khtmlMouseMoveEvent(). |
|
presents a detailed error message to the user.
Definition at line 1160 of file khtml_part.cpp. References QString::arg(), begin(), KParts::ReadOnlyPart::completed(), QDateTime::currentDateTime(), KStdAccel::description(), end(), KLocale::formatDateTime(), QString::fromLatin1(), KURL::htmlURL(), QStringList::join(), KGlobal::locale(), KParts::ReadOnlyPart::m_url, KURL::prettyURL(), KURL::protocol(), QString::replace(), KParts::ReadOnlyPart::started(), and write(). Referenced by openURL(), and showError(). |
|
Eventhandler of the khtml::MousePressEvent.
Definition at line 4310 of file khtml_part.cpp. References QMouseEvent::button(), QMouseEvent::globalPos(), DOM::Node::handle(), DOM::Node::isNull(), parentPart(), popupMenu(), and QMouseEvent::pos(). |
|
Eventhandler for the khtml::MouseDoubleClickEvent.
Definition at line 4375 of file khtml_part.cpp. References QMouseEvent::button(), DOM::Node::handle(), and DOM::Node::isNull(). |
|
|
Eventhandler for the khtml::MouseMoveEvent.
Definition at line 4649 of file khtml_part.cpp. References QMouseEvent::button(), KParts::BrowserInterface::callMethod(), QApplication::clipboard(), QObject::connect(), QObject::disconnect(), KURIFilter::filterURI(), DOM::Node::firstChild(), DOM::Node::isNull(), DOM::Node::nextSibling(), DOM::Node::parentNode(), parentPart(), QString::replace(), selectedText(), selectionChanged(), KURIFilter::self(), KURIFilterData::setData(), KParts::Part::setStatusBarText(), QClipboard::setText(), QClipboard::text(), KURIFilterData::uri(), KURIFilterData::uriType(), and KURL::url(). |
|
Eventhandler for the khtml::DrawContentsEvent.
Definition at line 4758 of file khtml_part.cpp. |
|
Internal reimplementation of KParts::Part::guiActivateEvent .
Reimplemented from KParts::ReadOnlyPart. Definition at line 4762 of file khtml_part.cpp. References QPtrList::append(), and KXMLGUIClient::plugActionList(). |
|
Internal empty reimplementation of KParts::ReadOnlyPart::openFile .
Implements KParts::ReadOnlyPart. Definition at line 976 of file khtml_part.cpp. |
|
This method is called when a new embedded object (include html frames) is to be created. Reimplement it if you want to add support for certain embeddable objects without registering them in the KDE wide registry system (KSyCoCa) . Another reason for re-implementing this method could be if you want to derive from KTHMLPart and also want all html frame objects to be a object of your derived type, in which case you should return a new instance for the mimetype 'text/html' . Definition at line 3223 of file khtml_part.cpp. References QString::append(), QObject::className(), KLibFactory::create(), QFile::encodeName(), KLibLoader::factory(), KXMLGUIClient::factory(), QString::fromLatin1(), QObject::inherits(), QString::isEmpty(), QObject::name(), KTrader::OfferList, KTrader::query(), KLibLoader::self(), and KTrader::self(). |
|
Sets the focussed node of the document to the specified node. If the node is a form control, the control will receive focus in the same way that it would if the user had clicked on it or tabbed to it with the keyboard. For most other types of elements, there is no visul indiction of whether or not they are focussed. See activeNode
Definition at line 4986 of file khtml_part.cpp. References QRect::bottom(), DOM::Node::handle(), QRect::left(), QRect::right(), and QRect::top(). |
|
Stops all animated images on the current and child pages.
Definition at line 1445 of file khtml_part.cpp. References end(). |
The documentation for this class was generated from the following files: