KHTML
khtml_part.cpp
Go to the documentation of this file.
167 virtual void setStyleSheet(const DOM::DOMString&, const DOM::DOMString &sheet, const DOM::DOMString &, const DOM::DOMString &/*mimetype*/)
314 d->m_paSetEncoding = new KCodecAction( KIcon("character-set"), i18n( "Set &Encoding" ), this, true );
319 connect( d->m_paSetEncoding, SIGNAL(triggered(KEncodingDetector::AutoDetectScript)), this, SLOT(slotAutomaticDetectionLanguage(KEncodingDetector::AutoDetectScript)));
324 d->m_autoDetectLanguage = static_cast<KEncodingDetector::AutoDetectScript>(config.readEntry( "AutomaticDetectionLanguage", /*static_cast<int>(language) */0));
348 // kWarning() << "0000000end " << d->m_autoDetectLanguage << " " << KGlobal::locale()->encodingMib();
358 d->m_paIncZoomFactor = new KHTMLZoomFactorAction( this, true, "format-font-size-more", i18n( "Enlarge Font" ), this );
365 d->m_paDecZoomFactor = new KHTMLZoomFactorAction( this, false, "format-font-size-less", i18n( "Shrink Font" ), this );
382 d->m_paFind = actionCollection()->addAction( KStandardAction::Find, "find", this, SLOT(slotFind()) );
386 d->m_paFindNext = actionCollection()->addAction( KStandardAction::FindNext, "findNext", this, SLOT(slotFindNext()) );
401 d->m_paFindAheadText->setHelpText(i18n("This shortcut shows the find bar, for finding text in the displayed page. It cancels the effect of \"Find Links as You Type\", which sets the \"Find links only\" option."));
410 d->m_paFindAheadLinks->setHelpText(i18n("This shortcut shows the find bar, and sets the option \"Find links only\"."));
500 connect( khtml::Cache::loader(), SIGNAL(requestStarted(khtml::DocLoader*,khtml::CachedObject*)),
554 disconnect( khtml::Cache::loader(), SIGNAL(requestStarted(khtml::DocLoader*,khtml::CachedObject*)),
556 disconnect( khtml::Cache::loader(), SIGNAL(requestDone(khtml::DocLoader*,khtml::CachedObject*)),
558 disconnect( khtml::Cache::loader(), SIGNAL(requestFailed(khtml::DocLoader*,khtml::CachedObject*)),
764 bool noReloadForced = !args.reload() && !browserArgs.redirectedRequest() && !browserArgs.doPost();
825 // initializing m_url to the new url breaks relative links when opening such a link after this call and _before_ begin() is called (when the first
956 kDebug( 6050 ) << "Aborted before starting to render, reverting location bar to " << url().prettyUrl();
1212 d->m_statusBarJSErrorLabel->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum));
1218 connect(d->m_statusBarJSErrorLabel, SIGNAL(rightClickedUrl()), SLOT(jsErrorDialogContextMenu()));
1276 QVariant KHTMLPart::executeScript(const QString& filename, int baseLine, const DOM::Node& n, const QString& script)
1280 kDebug(6070) << "executeScript: caller='" << objectName() << "' filename=" << filename << " baseLine=" << baseLine /*<< " script=" << script*/;
1330 kDebug(6070) << "caller=" << objectName() << "node=" << n.nodeName().string().toLatin1().constData() << "(" << (n.isNull() ? 0 : n.nodeType()) << ") " /* << script */;
1415 kDebug(6050) << QString().leftJustified(s_DOMTreeIndentLevel*4,' ') << "FRAME " << p->objectName() << " ";
1541 // do not dereference the document before the jscript and view are cleared, as some destructors
1730 if ( !qData.isEmpty() && !d->m_haveEncoding ) // only use information if the user didn't override the settings
1794 kDebug(6050) << "d->m_bParsing=" << (d->m_doc && d->m_doc->parsing()) << " d->m_bComplete=" << d->m_bComplete
1800 if ( (d->m_doc && d->m_doc->parsing()) || d->m_workingURL.isEmpty() ) // if we got any data already
1846 html.replace( QLatin1String( "ICON_PATH" ), KIconLoader::global()->iconPath( "dialog-warning", -KIconLoader::SizeHuge ) );
2052 // ### not sure if XHTML documents served as text/xml should use DocumentImpl or HTMLDocumentImpl
2072 d->m_doc->docLoader()->setShowAnimations( KHTMLGlobal::defaultHTMLSettings()->showAnimations() );
2242 if ( obj && obj->type() == khtml::CachedObject::Image && d->m_doc && d->m_doc->docLoader() == dl ) {
2269 if ( obj && obj->type() == khtml::CachedObject::Image && d->m_doc && d->m_doc->docLoader() == dl ) {
2283 // then our loading state can't possibly be affected : don't waste time checking for completion.
2304 emit d->m_extension->infoMessage( i18np( "%1 Image of %2 loaded.", "%1 Images of %2 loaded.", d->m_loadedObjects, d->m_totalObjectCount) );
2459 //kDebug(6050) << this << " not toplevel -> not starting redirection timer. Waiting for slotParentCompleted.";
2564 kDebug(6050) << "delay=" << delay << " url=" << url << " from=" << this->url() << "parent=" << parentPart();
2565 kDebug(6050) << "current redirectURL=" << d->m_redirectURL << " with delay " << d->m_delayRedirect;
2619 kWarning(6050) << "KHTMLPart::scheduleRedirection: Redirection from " << cUrl << " to " << url << " REJECTED!";
2728 bool quirkyName = !n && !d->m_doc->inStrictMode() && (name.isEmpty() || name.toLower() == "top");
2989 kError(6000) << "part is a" << part->metaObject()->className() << ", can't do a search into it";
3002 kError(6000) << "part is a" << part->metaObject()->className() << ", can't do a search into it";
3015 kError(6000) << "part is a" << part->metaObject()->className() << ", can't do a search into it";
3063 void KHTMLPart::findText( const QString &str, long options, QWidget *parent, KFindDialog *findDialog )
3091 kDebug() << "invalid values for end/startOffset " << sel.start().offset() << " " << sel.end().offset();
3138 if (static_cast<HTMLInputElementImpl*>(n.handle())->inputType() != HTMLInputElementImpl::PASSWORD)
3261 return !d->editor_context.m_selection.isEmpty() && !d->editor_context.m_selection.isCollapsed();
3423 d->editor_context.m_xPosForVerticalArrowNavigation = d->editor_context.NoXPosForVerticalArrowNavigation;
3449 // kDebug( 6050 ) << "will lookup " << d->m_DNSPrefetchQueue.head() << d->m_numDNSPrefetchedNames;
3505 const_cast<KHTMLPart *>(this)->d->editor_context.m_editor = new DOM::Editor(const_cast<KHTMLPart *>(this));
3602 text = i18np("%2 (%1 byte)", "%2 (%1 bytes)", (long) buff.st_size, text2); // always put the URL last, in case it contains '%'
3645 QString mailtoMsg /* = QString::fromLatin1("<img src=%1>").arg(locate("icon", QString::fromLatin1("locolor/16x16/actions/mail_send.png")))*/;
3693 bool KHTMLPart::urlSelected( const QString &url, int button, int state, const QString &_target, const KParts::OpenUrlArguments& _args, const KParts::BrowserArguments& _browserArgs )
3737 ki18n( "<qt>This untrusted page links to<br /><b>%1</b>.<br />Do you want to follow the link?</qt>" ),
3751 if ( hasTarget && target != "_self" && target != "_top" && target != "_blank" && target != "_parent" )
3871 ui._mode->setText(i18nc("HTML rendering mode (see http://en.wikipedia.org/wiki/Quirks_mode)", "Quirks"));
3874 ui._mode->setText(i18nc("HTML rendering mode (see http://en.wikipedia.org/wiki/Quirks_mode)", "Almost standards"));
3878 ui._mode->setText(i18nc("HTML rendering mode (see http://en.wikipedia.org/wiki/Quirks_mode)", "Strict"));
3940 QString relURL = static_cast<HTMLDocumentImpl*>(d->m_doc)->body()->getAttribute( ATTR_BACKGROUND ).string();
3949 KHTMLPopupGUIClient::saveURL( d->m_view, i18n("Save Background Image As"), backgroundURL(), metaData );
3961 KHTMLPopupGUIClient::saveURL( d->m_view, i18n( "Save As" ), srcURL, metaData, "text/html", d->m_cacheId );
4060 KHTMLPopupGUIClient::saveURL( d->m_view, i18n( "Save Frame As" ), srcURL, metaData, "text/html" );
4135 if ( d->m_doc && d->m_doc->isHTMLDocument() && static_cast<HTMLDocumentImpl*>(d->m_doc)->body() && !d->m_bClearing )
4136 bgURL = static_cast<HTMLDocumentImpl*>(d->m_doc)->body()->getAttribute( ATTR_BACKGROUND ).string();
4153 void KHTMLPart::loadFrameElement( DOM::HTMLPartContainerElementImpl *frame, const QString &url,
4186 connectToChildPart(child, part, "text/html" /* mimetype of the part, not what's being loaded */);
4206 bool KHTMLPart::loadObjectElement( DOM::HTMLPartContainerElementImpl *frame, const QString &url,
4225 bool KHTMLPart::requestObject( khtml::ChildFrame *child, const KUrl &url, const KParts::OpenUrlArguments &_args,
4285 // We know the frame will be text/html if the HTML says <frame src=""> or <frame src="about:blank">,
4288 if ((url.isEmpty() || url.url() == "about:blank" || url.protocol() == "javascript") && args.mimeType().isEmpty())
4310 bool KHTMLPart::processObjectRequest( khtml::ChildFrame *child, const KUrl &_url, const QString &mimetype )
4314 // IMPORTANT: create a copy of the url here, because it is just a reference, which was likely to be given
4315 // by an emitting frame part (emit openUrlRequest( blahurl, ... ) . A few lines below we delete the part
4327 // we also want to ignore any spurious requests due to closing when parser is being cleared. These should be
4366 if ( child->m_type != khtml::ChildFrame::Object && child->m_type != khtml::ChildFrame::IFrame ) {
4382 KHTMLPopupGUIClient::saveURL( widget(), i18n( "Save As" ), url, child->m_args.metaData(), QString(), 0, suggestedFileName );
4414 KParts::ReadOnlyPart *part = createPart( d->m_view->viewport(), this, mimetype, child->m_serviceName, dummy, child->m_params );
4461 bool KHTMLPart::navigateLocalProtocol( khtml::ChildFrame* /*child*/, KParts::ReadOnlyPart *inPart,
4489 // we need a body element. testcase: <iframe id="a"></iframe><script>alert(a.document.body);</script>
4590 connect( kidBrowserExt, SIGNAL(openUrlRequestDelayed(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)),
4593 connect( kidBrowserExt, SIGNAL(createNewWindow(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::WindowArgs,KParts::ReadOnlyPart**)),
4594 d->m_extension, SIGNAL(createNewWindow(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::WindowArgs,KParts::ReadOnlyPart**)) );
4596 connect( kidBrowserExt, SIGNAL(popupMenu(QPoint,KFileItemList,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)),
4597 d->m_extension, SIGNAL(popupMenu(QPoint,KFileItemList,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)) );
4598 connect( kidBrowserExt, SIGNAL(popupMenu(QPoint,KUrl,mode_t,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)),
4599 d->m_extension, SIGNAL(popupMenu(QPoint,KUrl,mode_t,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)) );
4620 KService::List offers = KMimeTypeTrader::self()->query( mimetype, "KParts/ReadOnlyPart", constr );
4649 KParts::ReadOnlyPart* part = factory->create<KParts::ReadOnlyPart>(parentWidget, parent, QString(), variantlist);
4684 KHTMLPart::submitForm( d->m_submitForm->submitAction, d->m_submitForm->submitUrl, d->m_submitForm->submitFormData, d->m_submitForm->target, d->m_submitForm->submitContentType, d->m_submitForm->submitBoundary );
4690 void KHTMLPart::submitFormProxy( const char *action, const QString &url, const QByteArray &formData, const QString &_target, const QString& contentType, const QString& boundary )
4695 void KHTMLPart::submitForm( const char *action, const QString &url, const QByteArray &formData, const QString &_target, const QString& contentType, const QString& boundary )
4728 int rc = KMessageBox::warningContinueCancel(NULL, i18n("Warning: This is a secure form but it is attempting to send your data back unencrypted."
4786 ki18n( "<qt>The form will be submitted to <br /><b>%1</b><br />on your local filesystem.<br />Do you want to submit the form?</qt>" ),
4840 KMessageBox::information(NULL, i18n("This site attempted to attach a file from your computer in the form submission. The attachment was removed for your protection."), i18n("KDE"), "WarnTriedAttach");
4909 KParts::BrowserExtension::PopupFlags itemflags=KParts::BrowserExtension::ShowBookmark | KParts::BrowserExtension::ShowReload;
5019 if ( !parentPart() ) // "toplevel" html document? if yes, then notify the hosting browser about the document (url) changes
5039 kDebug(6031) << this << "child=" << child << "m_partContainerElement=" << child->m_partContainerElement;
5077 void KHTMLPart::slotChildURLRequest( const KUrl &url, const KParts::OpenUrlArguments& args, const KParts::BrowserArguments &browserArgs )
5080 KHTMLPart *callingHtmlPart = const_cast<KHTMLPart *>(dynamic_cast<const KHTMLPart *>(sender()->parent()));
5082 // TODO: handle child target correctly! currently the script are always executed for the parent
5126 } else if ( frameName== "_self" ) // this is for embedded objects (via <object>) which want to replace the current document
5193 KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame )
5202 kDebug(6050) << q << "URL =" << q->url() << "name =" << q->objectName() << "findFrameParent(" << f << ")";
5237 KHTMLPart* const frameParent = p->d->findFrameParent(callingPart, f, childFrame, checkForNavigation);
5364 khtml::ChildFrame *KHTMLPart::recursiveFrameRequest( KHTMLPart *callingHtmlPart, const KUrl &url,
5384 khtml::ChildFrame *res = parentPart()->recursiveFrameRequest( callingHtmlPart, url, args, browserArgs, callParent );
5402 kDebug( 6050 ) << indent << "saveState this=" << this << " '" << objectName() << "' saving URL " << url().url();
5406 << (qint32) d->m_view->contentsWidth() << (qint32) d->m_view->contentsHeight() << (qint32) d->m_view->marginWidth() << (qint32) d->m_view->marginHeight();
5479 stream << frameNameLst << frameServiceTypeLst << frameServiceNameLst << frameURLLst << frameStateBufferLst << frameTypeLst;
5571 for (; fIt != fEnd; ++fIt, ++fNameIt, ++fServiceTypeIt, ++fServiceNameIt, ++fURLIt, ++fBufferIt, ++fFrameTypeIt )
5632 for (; fNameIt != fNameEnd; ++fNameIt, ++fServiceTypeIt, ++fServiceNameIt, ++fURLIt, ++fBufferIt, ++fFrameTypeIt )
5723 static const int zoomSizes[] = { 20, 40, 60, 80, 90, 95, 100, 105, 110, 120, 140, 160, 180, 200, 250, 300 };
5730 extern const int KDE_NO_EXPORT fastZoomSizeCount = sizeof fastZoomSizes / sizeof fastZoomSizes[0];
6056 if (!(*it)->m_bPreloaded && (*it)->m_part) // ### TODO: make sure that we always create an empty
6063 bool KHTMLPart::openUrlInFrame( const KUrl &url, const KParts::OpenUrlArguments& args, const KParts::BrowserArguments &browserArgs)
6147 static bool firstRunAt(khtml::RenderObject *renderNode, int y, NodeImpl *&startNode, long &startOffset)
6152 for (khtml::InlineTextBox* box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
6174 static bool lastRunAt(khtml::RenderObject *renderNode, int y, NodeImpl *&endNode, long &endOffset)
6192 for (khtml::InlineTextBox* box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
6216 if (mouse->button() == Qt::LeftButton && !innerNode.isNull() && innerNode.handle()->renderer() &&
6219 if (pos.node() && (pos.node()->nodeType() == Node::TEXT_NODE || pos.node()->nodeType() == Node::CDATA_SECTION_NODE)) {
6240 if (mouse->button() == Qt::LeftButton && !innerNode.isNull() && innerNode.handle()->renderer() &&
6243 if (pos.node() && (pos.node()->nodeType() == Node::TEXT_NODE || pos.node()->nodeType() == Node::CDATA_SECTION_NODE)) {
6415 && ( d->m_dragStartPos - QPoint(event->x(), event->y()) ).manhattanLength() > KGlobalSettings::dndEventDelay() ) {
6545 if ( (mouse->buttons() & Qt::LeftButton) == 0 || !innerNode.handle() || !innerNode.handle()->renderer() ||
6581 if ((d->m_guiProfile == BrowserViewGUI) && (_mouse->button() == Qt::MidButton) && (event->url().isNull())) {
6606 selection.moveTo(d->editor_context.m_selection.base().node()->positionForCoordinates(event->x(), event->y()).position());
6621 //kDebug(6000) << "rel2: startBefEnd " << d->m_startBeforeEnd << " extAtEnd " << d->m_extendAtEnd << " (" << d->m_startOffset << ") - (" << d->m_endOffset << "), caretOfs " << d->caretOffset();
6713 image->m_wasBlocked = KHTMLGlobal::defaultHTMLSettings()->isAdFiltered( d->m_doc->completeURL( image->url().string() ) );
6727 (node->id() == ID_INPUT && static_cast<HTMLInputElementImpl *>(node)->inputType() == HTMLInputElementImpl::IMAGE ))
6729 if ( KHTMLGlobal::defaultHTMLSettings()->isAdFiltered( d->m_doc->completeURL( static_cast<ElementImpl *>(node)->getAttribute(ATTR_SRC).string() ) ) )
6806 d->editor_context.m_selection.moveTo(Position(first, 0), Position(last, last->nodeValue().length()));
6812 bool KHTMLPart::checkLinkSecurity(const KUrl &linkURL,const KLocalizedString &message, const QString &button)
6839 i18n( "<qt>Access by untrusted page to<br /><b>%1</b><br /> denied.</qt>", Qt::escape(linkURL.prettyUrl())),
6878 if ( d->m_activeFrame && d->m_activeFrame->widget() && d->m_activeFrame->widget()->inherits( "QFrame" ) )
6920 d->m_extension->setExtensionProxy( KParts::BrowserExtension::childObject( d->m_activeFrame ) );
6942 DOM::EventListener *KHTMLPart::createHTMLEventListener( QString code, QString name, NodeImpl* node, bool svg )
7015 d->m_haveEncoding ? KEncodingDetector::UserChosenEncoding : KEncodingDetector::EncodingFromHTTPHeader);
7090 KWallet::Wallet *wallet = KWallet::Wallet::openWallet(KWallet::Wallet::NetworkWallet(), widget() ? widget()->topLevelWidget()->winId() : 0, KWallet::Wallet::Asynchronous);
7094 connect(d->m_wq, SIGNAL(walletOpened(KWallet::Wallet*)), this, SLOT(walletOpened(KWallet::Wallet*)));
7132 KWallet::Wallet *wallet = KWallet::Wallet::openWallet(KWallet::Wallet::NetworkWallet(), widget() ? widget()->topLevelWidget()->winId() : 0, KWallet::Wallet::Asynchronous);
7136 connect(d->m_wq, SIGNAL(walletOpened(KWallet::Wallet*)), this, SLOT(walletOpened(KWallet::Wallet*)));
7181 d->m_statusBarWalletLabel->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum));
7188 d->m_statusBarWalletLabel->setToolTip(i18n("The wallet '%1' is open and being used for form data and passwords.", KWallet::Wallet::NetworkWallet()));
7246 connect( menuActionGroup, SIGNAL(triggered(QAction*)), this, SLOT(removeStoredPasswordForm(QAction*)) );
7251 menu->addAction(i18n("&Allow storing passwords for this site"), this, SLOT(delNonPasswordStorableSite()));
7255 for ( QStringList::ConstIterator it = d->m_walletForms.constBegin(); it != d->m_walletForms.constEnd(); ++it ) {
7316 void KHTMLPart::saveLoginInformation(const QString& host, const QString& key, const QMap<QString, QString>& walletMap)
7388 d->m_statusBarPopupLabel->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Minimum ));
7393 d->m_statusBarPopupLabel->setToolTip(i18n("This page was prevented from opening a new window via JavaScript." ) );
7399 KPassivePopup::message(i18n("Popup Window Blocked"),i18n("This page has attempted to open a popup window but was blocked.\nYou can click on this icon in the status bar to control this behavior\nor to open the popup."),px,d->m_statusBarPopupLabel);
7412 m->addAction(i18np("&Show Blocked Popup Window","&Show %1 Blocked Popup Windows", d->m_openableSuppressedPopups), this, SLOT(showSuppressedPopups()));
7413 QAction *a = m->addAction(i18n("Show Blocked Window Passive Popup &Notification"), this, SLOT(togglePopupPassivePopup()));
7415 m->addAction(i18n("&Configure JavaScript New Window Policies..."), this, SLOT(launchJSConfigDialog()));
7464 return d->m_submitForm || !d->m_redirectURL.isEmpty() || d->m_redirectionTimer.isActive() || d->m_job;
KParts::ReadOnlyPart * findFramePart(const QString &f)
Finds a frame by name.
Definition: khtml_part.cpp:5296
virtual void khtmlDrawContentsEvent(khtml::DrawContentsEvent *)
Eventhandler for the khtml::DrawContentsEvent.
Definition: khtml_part.cpp:6626
KGuiItem cancel()
Definition: khtml_events.h:63
bool metaRefreshEnabled() const
Returns true if automatic forwarding is enabled.
void executeAnchorJump(const KUrl &url, bool lockHistory)
Definition: khtml_part.cpp:632
QString i18n(const char *text)
bool kill(KillVerbosity verbosity=Quietly)
Contextual information about the caret and the built-in editor.
Definition: editing_p.h:38
Definition: khtml_part.h:272
static ScriptableExtension * childObject(QObject *obj)
void setLockHistory(bool lock)
QString documentSource() const
Returns the content of the source document.
Definition: khtml_part.cpp:1014
MimeType classifyMimeType(const QString &mime)
Definition: khtml_part.cpp:1964
void executeInPageURL(const QString &url, bool lockHistory)
Definition: khtmlpart_p.h:443
QString getCacheControlString(KIO::CacheControl cacheControl)
void associateWidget(QWidget *widget) const
void fetchData(long id, QObject *recvObj, const char *recvSlot)
Fetch data for cache entry id and send it to slot recvSlot in the object recvObj. ...
Definition: khtml_pagecache.cpp:206
QPixmap MainBarIcon(const QString &name, int force_size, int state, const QStringList &overlays)
void setFlagRecursively(bool KHTMLPartPrivate::*flag, bool value)
Definition: khtml_part.cpp:2816
void setShortcuts(const QList< QKeySequence > &shortcuts, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
const char header[]
KUrl completeURL(const QString &url)
returns a KUrl object for the given url.
Definition: khtml_part.cpp:2524
void docCreated()
static List split(const QString &_url)
QCursor urlCursor() const
Returns the cursor which is used when the cursor is on a link.
Definition: khtml_part.cpp:2791
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:270
QString toString() const
bool isJavaScriptDebugEnabled(const QString &hostname=QString()) const
Definition: khtml_settings.cpp:916
virtual KActionCollection * actionCollection() const
KToggleAction * m_paToggleCaretMode
Definition: khtmlpart_p.h:340
DOMString nodeName() const
The name of this node, depending on its type; see the table above.
Definition: dom_node.cpp:170
Definition: khtml_childframe_p.h:40
void setFixedFontName(const QString &n)
Definition: khtml_settings.cpp:1072
bool autoloadImages() const
Returns whether images contained in the document are loaded automatically or not. ...
Definition: khtml_part.cpp:1480
This class resembles the editing API when the associated khtml document is editable (in design mode)...
Definition: editor.h:61
virtual bool doOpenStream(const QString &mimeType)
Implements the streaming API of KParts::ReadOnlyPart.
Definition: khtml_part.cpp:2172
static QList< QList< KSslError::Error > > errorsFromString(const QString &s)
KEncodingDetector::AutoDetectScript m_autoDetectLanguage
Definition: khtmlpart_p.h:243
long startOffset() const
Offset within the starting node of the range.
Definition: dom2_range.cpp:124
void setUserStyleSheet(const KUrl &url)
Sets a user defined style sheet to be used on top of the HTML 4 default style sheet.
Definition: khtml_part.cpp:2698
Definition: khtml_childframe_p.h:44
int m_openableSuppressedPopups
Definition: khtmlpart_p.h:241
virtual void slotFinished(KJob *)
Called when the job downloading the page is finished.
Definition: khtml_part.cpp:1909
QString rsqueeze(const QString &str, int maxlen=40)
static void removeTempFile(const QString &name)
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:73
QString lastModified() const
Last-modified date (in raw string format), if received in the [HTTP] headers.
Definition: khtml_ext.h:161
QString decodeWithBuffering(const char *data, int len)
Definition: khtml_events.h:100
#define KDE_NO_EXPORT
void setJSErrorsEnabled(bool enabled)
Definition: khtml_settings.cpp:1159
virtual void restoreState(QDataStream &stream)
Restores the KHTMLPart's previously saved state (including child frame objects) from the provided QDa...
Definition: khtml_part.cpp:5485
static KIconLoader * global()
QMap< QString, QString > & metaData()
static QString codeForJavaScriptURL(const QString &url)
Definition: khtml_part.cpp:2536
bool pluginsEnabled() const
Returns true if plugins are enabled, false if disabled.
bool initFindNode(bool selection, bool reverse, bool fromCursor)
Definition: khtmlfind.cpp:76
static const KComponentData & componentData()
Definition: khtml_global.cpp:202
void removeClient(KXMLGUIClient *client)
Definition: khtml_part.h:1106
static bool test(const QEvent *event)
Definition: khtml_events.h:90
const QByteArray encoding() const
static QString userAgentForHost(const QString &hostname)
void removeChildClient(KXMLGUIClient *child)
KLocalizedString ki18n(const char *msg)
Definition: khtmlpart_p.h:93
KStatusBar * statusBar() const
QString i18np(const char *sing, const char *plur, const A1 &a1)
int timeout
KParts::BrowserArguments m_browserArgs
Definition: khtml_childframe_p.h:64
bool onlyLocalReferences() const
Returns whether only file:/ or data:/ references are allowed to be loaded ( default false )...
Definition: khtml_part.cpp:2796
bool isPointInsideSelection(int x, int y)
Returns whether the given point is inside the current selection.
Definition: khtml_part.cpp:6125
Definition: khtml_part.h:283
void completed()
QString encodedHtmlRef() const
static void saveURL(QWidget *parent, const QString &caption, const KUrl &url, const QMap< QString, QString > &metaData=KIO::MetaData(), const QString &filter=QString(), long cacheId=0, const QString &suggestedFilename=QString())
Definition: khtml_ext.cpp:859
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
void addClient(KXMLGUIClient *client)
static KPassivePopup * message(const QString &text, QWidget *parent)
QList< QPointer< KHTMLPart > > m_suppressedPopupOriginParts
Definition: khtmlpart_p.h:239
void loadPlugins()
QQueue< QString > m_DNSPrefetchQueue
Definition: khtmlpart_p.h:275
void setAutoDetectLanguage(AutoDetectScript)
QString ref() const
void removeCatalog(const QString &catalog)
Definition: khtml_childframe_p.h:44
bool frameExists(const QString &frameName)
Returns whether a frame with the specified name is exists or not.
Definition: khtml_part.cpp:5317
virtual void removePart(Part *part)
TransferJob * get(const KUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
int stat(const QString &path, KDE_struct_stat *buf)
const char * name(StandardAction id)
void setRef(const QString &fragment)
void setPluginsEnabled(bool enable)
Enables or disables plugins, default is enabled.
Definition: khtml_part.cpp:1384
Definition: khtmlview.h:305
bool visuallyOrdered() const
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
StatJob * stat(const KUrl &url, JobFlags flags=DefaultFlags)
bool isJavaEnabled(const QString &hostname=QString()) const
Definition: khtml_settings.cpp:906
KUrlLabel * m_statusBarJSErrorLabel
Definition: khtmlpart_p.h:237
virtual void saveState(QDataStream &stream)
Saves the KHTMLPart's complete state (including child frame objects) to the provided QDataStream...
Definition: khtml_part.cpp:5397
QAction * addAction(const QString &name, QAction *action)
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
virtual QWidget * widget()
virtual void setXMLFile(const QString &file, bool merge=false, bool setXMLDoc=true)
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
KXMLGUIFactory * factory() const
NamedNodeMap attributes() const
A NamedNodeMap containing the attributes of this node (if it is an Element ) or null otherwise...
Definition: dom_node.cpp:235
friend class KHTMLPartBrowserHostExtension
Definition: khtml_part.h:240
void setUrl(const KUrl &url)
DOM::Node activeNode() const
Returns the node that has the keyboard focus.
Definition: khtml_part.cpp:6937
bool isJavaScriptEnabled(const QString &hostname=QString()) const
Definition: khtml_settings.cpp:911
bool m_bPendingRedirection
Definition: khtml_childframe_p.h:71
QPixmap pixmapForUrl(const KUrl &_url, mode_t _mode=0, KIconLoader::Group _group=KIconLoader::Desktop, int _force_size=0, int _state=0, QString *_path=0)
Definition: khtmlpart_p.h:355
static KHTMLSettings * defaultHTMLSettings()
Definition: khtml_global.cpp:237
virtual bool urlSelected(const QString &url, int button, int state, const QString &_target, const KParts::OpenUrlArguments &args=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArgs=KParts::BrowserArguments())
Definition: khtml_part.cpp:3693
void setSuffix(const QString &suffix)
Definition: khtmlviewbar.h:34
void populateMimeData(QMimeData *mimeData, const MetaDataMap &metaData=MetaDataMap(), MimeDataFlags flags=DefaultMimeDataFlags) const
static bool isAncestorOrSamePart(KHTMLPart *p1, KHTMLPart *p2)
Definition: khtml_part.cpp:2257
Definition: khtml_part.h:1106
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setDoPost(bool enable)
KSmoothScrollingMode smoothScrolling() const
Definition: khtml_settings.cpp:1139
KHTMLPartBrowserHostExtension * m_hostExtension
Definition: khtmlpart_p.h:232
KHTMLPart * findFrameParent(KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame, bool checkForNavigation)
Definition: khtml_part.cpp:5198
QString indent(QString text, int spaces)
Definition: khtml_events.h:115
void started(KIO::Job *)
void selectionChanged()
This signal is emitted when the selection changes.
void setStdFontName(const QString &n)
Definition: khtml_settings.cpp:1065
bool setEncoding(const QString &name, bool override=false)
Sets the encoding the page uses.
Definition: khtml_part.cpp:2656
virtual void khtmlMouseReleaseEvent(khtml::MouseReleaseEvent *event)
Eventhandler for the khtml::MouseMouseReleaseEvent.
Definition: khtml_part.cpp:6565
bool run(const KUrl &_url, bool _is_local)
bool canNavigate(KParts::ReadOnlyPart *b)
Definition: khtml_part.cpp:5253
BrowserArguments browserArguments() const
DOM::Node nodeUnderMouse() const
Returns the Node currently under the mouse.
Definition: khtml_part.cpp:5695
static Wallet * openWallet(const QString &name, WId w, OpenType ot=Synchronous)
QString mimeType() const
KUrl url
void setQuery(const QString &query)
void mouseOverInfo(const KFileItem &item)
QString i18nc(const char *ctxt, const char *text)
Definition: khtmlpart_p.h:85
AutoDetectScript
KSharedConfigPtr config()
void setPath(const QString &path)
friend class KHTMLPartBrowserExtension
Definition: khtml_part.h:235
void createNewKFind(const QString &str, long options, QWidget *parent, KFindDialog *findDialog)
Definition: khtmlfind.cpp:253
FormNotification formNotification() const
Determine if signal should be emitted before, instead or never when a submitForm() happens...
Definition: khtml_part.cpp:7332
static void deregisterPart(KHTMLPart *part)
Definition: khtml_global.cpp:162
void setUser(const QString &user)
KParts::StatusBarExtension * m_statusBarExtension
Definition: khtmlpart_p.h:231
static bool firstRunAt(khtml::RenderObject *renderNode, int y, NodeImpl *&startNode, long &startOffset)
returns the position of the first inline text box of the line at coordinate y in renderNode ...
Definition: khtml_part.cpp:6147
void formSubmitNotification(const char *action, const QString &url, const QByteArray &formData, const QString &target, const QString &contentType, const QString &boundary)
If form notification is on, this will be emitted either for a form submit or before the form submit a...
virtual void customEvent(QEvent *event)
KParts::BrowserHostExtension * browserHostExtension() const
Definition: khtml_part.cpp:1051
KHTMLView * view() const
Returns a pointer to the HTML document's view.
Definition: khtml_part.cpp:1056
KHTMLPart * part() const
Returns a pointer to the KHTMLPart that is rendering the page.
Definition: khtmlview.h:135
bool isDetached() const
not part of the DOM true if the range is detached
Definition: dom2_range.cpp:397
bool isEmpty() const
bool statusMessagesEnabled() const
Returns true if status messages are enabled.
Definition: khtml_part.cpp:1089
Definition: khtml_ext.h:181
bool suspend()
Definition: khtml_run.h:38
QStringList docState
static bool lastRunAt(khtml::RenderObject *renderNode, int y, NodeImpl *&endNode, long &endOffset)
returns the position of the last inline text box of the line at coordinate y in renderNode ...
Definition: khtml_part.cpp:6174
void setXOffset(int x)
QPixmap loadIcon(const QString &name, KIconLoader::Group group, int size=0, int state=KIconLoader::DefaultState, const QStringList &overlays=QStringList(), QString *path_store=0L, bool canReturnNull=false) const
QList< KXMLGUIClient * > childClients()
const int KDE_NO_EXPORT fastZoomSizes[]
void setMetaRefreshEnabled(bool enable)
Enable/disable automatic forwarding by
Definition: khtml_part.cpp:1125
static ScriptableExtension * adapterFromLiveConnect(QObject *parentObj, LiveConnectExtension *oldApi)
void enableAction(const char *name, bool enabled)
Definition: khtmlview.h:305
Definition: khtmlviewbar.h:28
void paint(QPainter *, const QRect &, int=0, bool *=0)
Paints the HTML page to a QPainter.
Definition: khtml_part.cpp:2196
KJSProxy * framejScript(KParts::ReadOnlyPart *framePart)
Returns child frame framePart its script interpreter.
Definition: khtml_part.cpp:5339
bool hasRef() const
QString errorString() const
void removeStatusBarItem(QWidget *widget)
static void dumpFrameTree(KHTMLPart *part)
Definition: khtml_childframe.cpp:83
virtual void startingJob(KIO::Job *)
Hook for adding code before a job is started.
Definition: khtml_part.h:1404
Definition: khtmlpart_p.h:87
bool forcePermitLocalImages() const
If true, local image files will be loaded even when forbidden by the Kiosk/KAuthorized policies ( def...
Definition: khtml_part.cpp:2806
virtual void khtmlMousePressEvent(khtml::MousePressEvent *event)
Eventhandler of the khtml::MousePressEvent.
Definition: khtml_part.cpp:6298
void canceled(const QString &errMsg)
DOM::Editor * editor() const
Returns the instance of the attached html editor interface.
Definition: khtml_part.cpp:3503
KSSLValidation
void setURLCursor(const QCursor &c)
Sets the cursor to use when the cursor is on a link.
Definition: khtml_part.cpp:2786
bool authorizeUrlAction(const QString &action, const KUrl &baseUrl, const KUrl &destUrl)
Definition: khtml_part.h:1277
QString protocol() const
Definition: khtml_childframe_p.h:81
void setCaretPosition(DOM::Node node, long offset, bool extendSelection=false)
Sets the caret to the given position.
Definition: khtml_part.cpp:2916
Definition: khtml_ext.h:198
KParts::BrowserExtension * browserExtension() const
Returns a pointer to the KParts::BrowserExtension.
Definition: khtml_part.cpp:1046
int m_xPosForVerticalArrowNavigation
Definition: editing_p.h:59
bool isAdFiltered(const QString &url) const
tests whether url is filtered.
Definition: khtml_settings.cpp:833
static BrowserExtension * childObject(QObject *obj)
KService::List query(const QString &mimeType, const QString &genericServiceType=QString::fromLatin1("Application"), const QString &constraint=QString()) const
void preloadScript(const QString &url, const QString &script)
Loads a script into the script cache.
Definition: khtml_part.cpp:6977
Definition: kjserrordlg.h:8
bool isOpenMiddleClickEnabled()
Definition: khtml_settings.cpp:808
if(!yymsg) yymsg
void setPass(const QString &pass)
void setTTL(int ttl)
void cancelFetch(QObject *recvObj)
Cancel sending data to recvObj.
Definition: khtml_pagecache.cpp:224
KHTMLPart(QWidget *parentWidget=0, QObject *parent=0, GUIProfile prof=DefaultGUI)
Constructs a new KHTMLPart.
Definition: khtml_part.cpp:182
static KMimeTypeTrader * self()
int xOffset() const
Definition: khtml_part.h:789
QString selectedTextAsHTML() const
Return the text the user has marked.
Definition: khtml_part.cpp:3083
DOMString nodeValue() const
The value of this node, depending on its type; see the table above.
Definition: dom_node.cpp:176
void setJavaEnabled(bool enable)
Enables/disables Java applet support.
Definition: khtml_part.cpp:1365
KParts::PartManager * partManager()
Returns a reference to the partmanager instance which manages html frame objects. ...
Definition: khtml_part.cpp:4664
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:245
Definition: khtml_events.h:79
virtual bool doWriteStream(const QByteArray &data)
Implements the streaming API of KParts::ReadOnlyPart.
Definition: khtml_part.cpp:2183
virtual void begin(const KUrl &url=KUrl(), int xOffset=0, int yOffset=0)
Clears the widget and prepares it for new content.
Definition: khtml_part.cpp:1995
Definition: khtmlviewbar.h:33
QString csqueeze(const QString &str, int maxlen=40)
void openUrlRequest(const KUrl &url, const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArguments=KParts::BrowserArguments())
virtual void khtmlMouseMoveEvent(khtml::MouseMoveEvent *event)
Eventhandler for the khtml::MouseMouseMoveEvent.
Definition: khtml_part.cpp:6554
const int KDE_NO_EXPORT fastZoomSizeCount
KUrl url() const
virtual void setComponentData(const KComponentData &componentData)
static const QString FormDataFolder()
QString path(AdjustPathOption trailing=LeaveTrailingSlash) const
void setFontScaleFactor(int percent)
Sets the scale factor to be applied to fonts.
Definition: khtml_part.cpp:5866
virtual bool openFile()
Internal empty reimplementation of KParts::ReadOnlyPart::openFile .
Definition: khtml_part.cpp:1630
virtual void write(const char *str, int len=-1)
Writes another part of the HTML code to the widget.
Definition: khtml_part.cpp:2091
Definition: khtmlfindbar.h:29
void scheduleRedirection(int delay, const QString &url, bool lockHistory=true)
Schedules a redirection after delay seconds.
Definition: khtml_part.cpp:2562
const KShortcut & reload()
void setActiveNode(const DOM::Node &node)
Sets the focused node of the document to the specified node.
Definition: khtml_part.cpp:6923
bool findTextNext(bool reverse=false)
Finds the next occurrence of a string set by findText()
Definition: khtml_part.cpp:3071
void infoMessage(const QString &)
QString htmlRef() const
virtual void guiActivateEvent(KParts::GUIActivateEvent *event)
Internal reimplementation of KParts::Part::guiActivateEvent .
Definition: khtml_part.cpp:6630
virtual Part * activePart() const
void loadingProgress(int percent)
KAction * next(const QObject *recvr, const char *slot, QObject *parent)
KAnimationAdvice showAnimations() const
Definition: khtml_settings.cpp:1134
virtual KParts::ReadOnlyPart * createPart(QWidget *parentWidget, QObject *parent, 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.
Definition: khtml_part.cpp:4611
void setPluginPageQuestionAsked(const QString &mimetype)
Definition: khtml_part.cpp:7002
void setFormNotification(FormNotification fn)
Determine if signal should be emitted before, instead or never when a submitForm() happens...
Definition: khtml_part.cpp:7328
void setShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Definition: khtmlpart_p.h:83
static bool showIconsOnPushButtons()
Definition: khtmlpart_p.h:84
bool activated() const
void setStatusMessagesEnabled(bool enable)
Enable/disable statusbar messages.
Definition: khtml_part.cpp:1075
void setStandardFont(const QString &name)
Sets the standard font style.
Definition: khtml_part.cpp:2776
bool reload() const
static int startServiceByDesktopName(const QString &_name, const QString &URL, QString *error=0, QString *serviceName=0, int *pid=0, const QByteArray &startup_id=QByteArray(), bool noWait=false)
OpenUrlArguments arguments() const
void setSuppressedPopupIndicator(bool enable, KHTMLPart *originPart=0)
Shows or hides the suppressed popup indicator.
Definition: khtml_part.cpp:7373
void setForcesNewWindow(bool forcesNewWindow)
bool resume()
static bool isJavaScriptURL(const QString &url)
Definition: khtml_part.cpp:2555
KHTMLPart * findFrameParent(KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame=0)
Recursively finds the part containing the frame with name f and checks if it is accessible by calling...
Definition: khtml_part.cpp:5193
void caretPositionChanged(const DOM::Node &node, long offset)
This signal is emitted whenever the caret position has been changed.
KGuiItem close()
Definition: khtml_part.h:272
SimpleJob * http_update_cache(const KUrl &url, bool no_cache, time_t expireDate)
KGuiItem ok()
virtual void setWidget(QWidget *widget)
QString formatDateTime(const QDateTime &dateTime, DateFormat format=ShortDate, bool includeSecs=false) const
int lstat(const QString &path, KDE_struct_stat *buf)
bool softReload
virtual void addPart(Part *part, bool setActive=true)
void addStatusBarItem(QWidget *widget, int stretch, bool permanent)
QWeakPointer< KParts::BrowserExtension > m_extension
Definition: khtml_childframe_p.h:50
QWeakPointer< KParts::ScriptableExtension > m_scriptable
Definition: khtml_childframe_p.h:51
virtual void insert(const QString &item)
KLocale * locale()
QString frameName
void preloadStyleSheet(const QString &url, const QString &stylesheet)
Loads a style sheet into the stylesheet cache.
Definition: khtml_part.cpp:6972
KPluginFactory * factory()
KUrl toplevelURL()
Returns the toplevel (origin) URL of this document, even if this part is a frame or an iframe...
Definition: khtml_part.cpp:7336
bool setEncoding(const char *encoding, EncodingChoiceSource type)
void setReload(bool b)
void submitFormProxy(const char *action, const QString &url, const QByteArray &formData, const QString &target, const QString &contentType=QString(), const QString &boundary=QString())
Definition: khtml_part.cpp:4690
CaretDisplayPolicy caretDisplayPolicyNonFocused() const
Returns the current caret policy when the view is not focused.
Definition: khtml_part.cpp:2933
QStringList serviceTypes() const
KParts::BrowserExtension::ActionGroupMap actionGroups() const
Definition: khtml_ext.cpp:688
void setArguments(const OpenUrlArguments &arguments)
QString flush()
void setFileName(const QString &_txt)
void setJScriptEnabled(bool enable)
Enable/disable Javascript support.
Definition: khtml_part.cpp:1094
void configurationChanged()
Emitted whenever the configuration has changed.
static bool runUrl(const KUrl &url, const QString &mimetype, QWidget *window, bool tempFile=false, bool runExecutables=true, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
QAction * action(const char *name) const
TransferJob * http_post(const KUrl &url, const QByteArray &postData, JobFlags flags=DefaultFlags)
bool isFullyLoaded(bool *pendingRedirections) const
Definition: khtml_part.cpp:2361
static void setCaretInvisibleIfNeeded(KHTMLPart *part)
Definition: khtml_part.cpp:2863
void setDNSPrefetch(DNSPrefetch pmode)
Sets whether DNS Names found in loaded documents'anchors should be pre-fetched (pre-resolved).
Definition: khtml_part.cpp:1112
bool setCurrentAutoDetectScript(KEncodingDetector::AutoDetectScript)
void setAlwaysHonourDoctype(bool b=true)
Sets whether the document's Doctype should always be used to determine the parsing mode for the docum...
Definition: khtml_part.cpp:2116
virtual void khtmlMouseDoubleClickEvent(khtml::MouseDoubleClickEvent *)
Eventhandler for the khtml::MouseDoubleClickEvent.
Definition: khtml_part.cpp:6344
DOM::Node nonSharedNodeUnderMouse() const
Returns the Node currently under the mouse that is not shared.
Definition: khtml_part.cpp:5700
void setCaretDisplayPolicyNonFocused(CaretDisplayPolicy policy)
Sets the caret display policy when the view is not focused.
Definition: khtml_part.cpp:2945
void findText()
Starts a new search by popping up a dialog asking the user what he wants to search for...
Definition: khtml_part.cpp:3056
QString fileName(const DirectoryOptions &options=IgnoreTrailingSlash) const
bool dndEnabled() const
Returns whether Dragn'n'Drop support is enabled or not.
Node getNamedItem(const DOMString &name) const
Retrieves a node specified by name.
Definition: dom_node.cpp:66
void setMimeType(const QString &mime)
Definition: khtml_ext.h:116
bool lockHistory() const
bool isEditable() const
Returns true if the document is editable, false otherwise.
Definition: khtml_part.cpp:2907
bool m_forcePermitLocalImages
Definition: khtmlpart_p.h:306
void plugActionList(const QString &name, const QList< QAction * > &actionList)
Definition: khtml_part.h:282
void setHost(ScriptableExtension *host)
KJS::KHTMLPartScriptable * m_scriptableExtension
Definition: khtmlpart_p.h:233
bool isLocalAnchorJump(const KUrl &url)
Definition: khtml_part.cpp:621
KUrlLabel * m_statusBarPopupLabel
Definition: khtmlpart_p.h:238
QStringList frameNames() const
Returns a list of names of all frame (including iframe) objects of the current document.
Definition: khtml_part.cpp:6036
void setHelpText(const QString &text)
void setYOffset(int y)
bool pluginPageQuestionAsked(const QString &mimetype) const
Definition: khtml_part.cpp:6992
QVariant executeScript(const DOM::Node &n, const QString &script)
Same as executeScript( const QString & ) except with the Node parameter specifying the 'this' value...
Definition: khtml_part.cpp:1327
Definition: khtmlpart_p.h:88
int yOffset() const
void setAllowNestedParts(bool allow)
virtual bool closeUrl()
Stops loading the document and kills all data requests (for images, etc.)
Definition: khtml_part.cpp:919
void setUseCursor(bool on, QCursor *cursor=0L)
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
const char * encoding() const
static bool keyDoesNotExist(const QString &wallet, const QString &folder, const QString &key)
QString query() const
static StatusBarExtension * childObject(QObject *obj)
static const QString NetworkWallet()
QWeakPointer< DOM::HTMLPartContainerElementImpl > m_partContainerElement
Definition: khtml_childframe_p.h:49
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void openUrlNotify()
Definition: dom_node.h:384
bool javaEnabled() const
Return true if Java applet support is enabled, false if disabled.
KLocalizedString subs(int a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
bool mayPrefetchHostname(const QString &name)
Will pre-resolve name according to dnsPrefetch current settings Returns true if the name will be pre-...
Definition: khtml_part.cpp:3463
virtual QString selectedText() const
Returns the text the user has marked.
Definition: khtml_part.cpp:3101
DOM::HTMLDocument htmlDocument() const
Returns a reference to the DOM HTML document (for non-HTML documents, returns null) ...
Definition: khtml_part.cpp:1001
void executeJavascriptURL(const QString &u)
Definition: khtml_part.cpp:2541
void setAutoloadImages(bool enable)
Specifies whether images contained in the document should be loaded automatically or not...
Definition: khtml_part.cpp:1452
void saveData(long id, QDataStream *str)
Save the data of cache entry id to the datastream str.
Definition: khtml_pagecache.cpp:267
virtual void showError(KJob *job)
Called when a certain error situation (i.e.
Definition: khtml_part.cpp:1792
KJS::Interpreter * jScriptInterpreter()
Returns the JavaScript interpreter the part is using.
Definition: khtml_part.cpp:1080
QPointer< KHTMLViewBar > m_bottomViewBar
Definition: khtmlpart_p.h:229
void setContentType(const QString &contentType)
Definition: dom2_range.h:79
bool isPluginsEnabled(const QString &hostname=QString()) const
Definition: khtml_settings.cpp:928
DOM::Document document() const
Returns a reference to the DOM document.
Definition: khtml_part.cpp:1009
bool jScriptEnabled() const
Returns true if Javascript support is enabled or false otherwise.
Definition: khtml_part.cpp:1103
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
Definition: khtml_wallet_p.h:41
KParts::ReadOnlyPart * currentFrame() const
Return the current frame (the one that has focus) Not necessarily a direct child of ours...
Definition: khtml_part.cpp:5302
void popupMenu(const QString &url, const QPoint &point)
Emitted when the user clicks the right mouse button on the document.
QByteArray rawErrorDetail(int errorCode, const QString &errorText, const KUrl *reqUrl=0L, int method=-1)
void stopAnimations()
Stops all animated images on the current and child pages.
Definition: khtml_part.cpp:2202
void insertChildClient(KXMLGUIClient *child)
void pasteRequest()
void setLowerWindow(bool lower)
void prefetchHost(const QString &hostName)
Definition: khtmlview.h:305
QString formatNumber(double num, int precision=-1) const
void nodeActivated(const DOM::Node &)
This signal is emitted when an element retrieves the keyboard focus.
void propagateInitialDomainAndBaseTo(KHTMLPart *kid)
Definition: khtml_part.cpp:5064
virtual bool doCloseStream()
Implements the streaming API of KParts::ReadOnlyPart.
Definition: khtml_part.cpp:2189
Definition: khtmlpart_p.h:89
void setLocationBarUrl(const QString &url)
static KIO::CacheControl cacheControl()
bool isLocalFile() const
QString convertSize(KIO::filesize_t size)
void setPageSecurity(int)
static bool download(const KUrl &src, QString &target, QWidget *window)
void htmlError(int errorCode, const QString &text, const KUrl &reqUrl)
presents a detailed error message to the user.
Definition: khtml_part.cpp:1809
void addData(long id, const QByteArray &data)
Add data to the cache entry with id id.
Definition: khtml_pagecache.cpp:163
Definition: khtmlpart_p.h:86
static LiveConnectExtension * childObject(QObject *obj)
void setSslInfo(const QList< QSslCertificate > &certificateChain, const QString &ip, const QString &host, const QString &sslProtocol, const QString &cipher, int usedBits, int bits, const QList< QList< KSslError::Error > > &validationErrors)
static int dndEventDelay()
void setCacheSize(int s)
bool equals(const KUrl &u, const EqualsOptions &options=0) const
Definition: khtml_part.h:1277
static int warningContinueCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
static QDebug kFatal(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static void manage(QWidget *widget, bool programmers_mode=false)
bool isAutoDelayedActionsEnabled() const
Definition: khtml_settings.cpp:1149
static int kdeinitExec(const QString &name, const QStringList &args=QStringList(), QString *error=0, int *pid=0, const QByteArray &startup_id=QByteArray())
void unplugActionList(const QString &name)
QString prettyUrl(AdjustPathOption trailing=LeaveTrailingSlash) const
static KUrl join(const List &_list)
void renameFrameForContainer(DOM::HTMLPartContainerElementImpl *cont, const QString &newName)
Definition: khtml_part.cpp:5329
QByteArray postData
QString queryItem(const QString &item) const
static void error(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Definition: khtml_events.h:130
void setStatusBar(KStatusBar *status)
void endData(long id)
Signal end of data for the cache entry with id id.
Definition: khtml_pagecache.cpp:172
KHTMLPart * parentPart()
Returns a pointer to the parent KHTMLPart if the part is a frame in an HTML frameset.
Definition: khtml_part.cpp:5359
KUrl backgroundURL() const
Returns the URL for the background Image (used by save background)
Definition: khtml_part.cpp:3934
bool isModified() const
Checks whether the page contains unsubmitted form changes.
Definition: khtml_part.cpp:7348
Definition: khtml_childframe_p.h:44
unsigned short nodeType() const
A code representing the type of the underlying object, as defined above.
Definition: dom_node.cpp:193
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.