KHTML
khtml_part.cpp
Go to the documentation of this file.
166 virtual void setStyleSheet(const DOM::DOMString&, const DOM::DOMString &sheet, const DOM::DOMString &, const DOM::DOMString &/*mimetype*/)
313 d->m_paSetEncoding = new KCodecAction( KIcon("character-set"), i18n( "Set &Encoding" ), this, true );
318 connect( d->m_paSetEncoding, SIGNAL(triggered(KEncodingDetector::AutoDetectScript)), this, SLOT(slotAutomaticDetectionLanguage(KEncodingDetector::AutoDetectScript)));
323 d->m_autoDetectLanguage = static_cast<KEncodingDetector::AutoDetectScript>(config.readEntry( "AutomaticDetectionLanguage", /*static_cast<int>(language) */0));
347 // kWarning() << "0000000end " << d->m_autoDetectLanguage << " " << KGlobal::locale()->encodingMib();
357 d->m_paIncZoomFactor = new KHTMLZoomFactorAction( this, true, "format-font-size-more", i18n( "Enlarge Font" ), this );
364 d->m_paDecZoomFactor = new KHTMLZoomFactorAction( this, false, "format-font-size-less", i18n( "Shrink Font" ), this );
381 d->m_paFind = actionCollection()->addAction( KStandardAction::Find, "find", this, SLOT(slotFind()) );
385 d->m_paFindNext = actionCollection()->addAction( KStandardAction::FindNext, "findNext", this, SLOT(slotFindNext()) );
400 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."));
409 d->m_paFindAheadLinks->setHelpText(i18n("This shortcut shows the find bar, and sets the option \"Find links only\"."));
499 connect( khtml::Cache::loader(), SIGNAL(requestStarted(khtml::DocLoader*,khtml::CachedObject*)),
553 disconnect( khtml::Cache::loader(), SIGNAL(requestStarted(khtml::DocLoader*,khtml::CachedObject*)),
555 disconnect( khtml::Cache::loader(), SIGNAL(requestDone(khtml::DocLoader*,khtml::CachedObject*)),
557 disconnect( khtml::Cache::loader(), SIGNAL(requestFailed(khtml::DocLoader*,khtml::CachedObject*)),
767 bool noReloadForced = !args.reload() && !browserArgs.redirectedRequest() && !browserArgs.doPost();
828 // 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
959 kDebug( 6050 ) << "Aborted before starting to render, reverting location bar to " << url().prettyUrl();
1215 d->m_statusBarJSErrorLabel->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum));
1221 connect(d->m_statusBarJSErrorLabel, SIGNAL(rightClickedUrl()), SLOT(jsErrorDialogContextMenu()));
1279 QVariant KHTMLPart::executeScript(const QString& filename, int baseLine, const DOM::Node& n, const QString& script)
1283 kDebug(6070) << "executeScript: caller='" << objectName() << "' filename=" << filename << " baseLine=" << baseLine /*<< " script=" << script*/;
1329 kDebug(6070) << "caller=" << objectName() << "node=" << n.nodeName().string().toLatin1().constData() << "(" << (n.isNull() ? 0 : n.nodeType()) << ") " /* << script */;
1413 kDebug(6050) << QString().leftJustified(s_DOMTreeIndentLevel*4,' ') << "FRAME " << p->objectName() << " ";
1539 // do not dereference the document before the jscript and view are cleared, as some destructors
1728 if ( !qData.isEmpty() && !d->m_haveEncoding ) // only use information if the user didn't override the settings
1792 kDebug(6050) << "d->m_bParsing=" << (d->m_doc && d->m_doc->parsing()) << " d->m_bComplete=" << d->m_bComplete
1798 if ( (d->m_doc && d->m_doc->parsing()) || d->m_workingURL.isEmpty() ) // if we got any data already
1844 html.replace( QLatin1String( "ICON_PATH" ), KIconLoader::global()->iconPath( "dialog-warning", -KIconLoader::SizeHuge ) );
2050 // ### not sure if XHTML documents served as text/xml should use DocumentImpl or HTMLDocumentImpl
2070 d->m_doc->docLoader()->setShowAnimations( KHTMLGlobal::defaultHTMLSettings()->showAnimations() );
2240 if ( obj && obj->type() == khtml::CachedObject::Image && d->m_doc && d->m_doc->docLoader() == dl ) {
2267 if ( obj && obj->type() == khtml::CachedObject::Image && d->m_doc && d->m_doc->docLoader() == dl ) {
2281 // then our loading state can't possibly be affected : don't waste time checking for completion.
2302 emit d->m_extension->infoMessage( i18np( "%1 Image of %2 loaded.", "%1 Images of %2 loaded.", d->m_loadedObjects, d->m_totalObjectCount) );
2457 //kDebug(6050) << this << " not toplevel -> not starting redirection timer. Waiting for slotParentCompleted.";
2562 kDebug(6050) << "delay=" << delay << " url=" << url << " from=" << this->url() << "parent=" << parentPart();
2563 kDebug(6050) << "current redirectURL=" << d->m_redirectURL << " with delay " << d->m_delayRedirect;
2617 kWarning(6050) << "KHTMLPart::scheduleRedirection: Redirection from " << cUrl << " to " << url << " REJECTED!";
2713 HTMLCollectionImpl *anchors = new HTMLCollectionImpl(d->m_doc, HTMLCollectionImpl::DOC_ANCHORS);
2986 kError(6000) << "part is a" << part->metaObject()->className() << ", can't do a search into it";
2999 kError(6000) << "part is a" << part->metaObject()->className() << ", can't do a search into it";
3012 kError(6000) << "part is a" << part->metaObject()->className() << ", can't do a search into it";
3060 void KHTMLPart::findText( const QString &str, long options, QWidget *parent, KFindDialog *findDialog )
3088 kDebug() << "invalid values for end/startOffset " << sel.start().offset() << " " << sel.end().offset();
3135 if (static_cast<HTMLInputElementImpl*>(n.handle())->inputType() != HTMLInputElementImpl::PASSWORD)
3258 return !d->editor_context.m_selection.isEmpty() && !d->editor_context.m_selection.isCollapsed();
3420 d->editor_context.m_xPosForVerticalArrowNavigation = d->editor_context.NoXPosForVerticalArrowNavigation;
3446 // kDebug( 6050 ) << "will lookup " << d->m_DNSPrefetchQueue.head() << d->m_numDNSPrefetchedNames;
3502 const_cast<KHTMLPart *>(this)->d->editor_context.m_editor = new DOM::Editor(const_cast<KHTMLPart *>(this));
3599 text = i18np("%2 (%1 byte)", "%2 (%1 bytes)", (long) buff.st_size, text2); // always put the URL last, in case it contains '%'
3642 QString mailtoMsg /* = QString::fromLatin1("<img src=%1>").arg(locate("icon", QString::fromLatin1("locolor/16x16/actions/mail_send.png")))*/;
3690 bool KHTMLPart::urlSelected( const QString &url, int button, int state, const QString &_target, const KParts::OpenUrlArguments& _args, const KParts::BrowserArguments& _browserArgs )
3734 ki18n( "<qt>This untrusted page links to<br /><b>%1</b>.<br />Do you want to follow the link?</qt>" ),
3748 if ( hasTarget && target != "_self" && target != "_top" && target != "_blank" && target != "_parent" )
3868 ui._mode->setText(i18nc("HTML rendering mode (see http://en.wikipedia.org/wiki/Quirks_mode)", "Quirks"));
3871 ui._mode->setText(i18nc("HTML rendering mode (see http://en.wikipedia.org/wiki/Quirks_mode)", "Almost standards"));
3875 ui._mode->setText(i18nc("HTML rendering mode (see http://en.wikipedia.org/wiki/Quirks_mode)", "Strict"));
3937 QString relURL = static_cast<HTMLDocumentImpl*>(d->m_doc)->body()->getAttribute( ATTR_BACKGROUND ).string();
3946 KHTMLPopupGUIClient::saveURL( d->m_view, i18n("Save Background Image As"), backgroundURL(), metaData );
3958 KHTMLPopupGUIClient::saveURL( d->m_view, i18n( "Save As" ), srcURL, metaData, "text/html", d->m_cacheId );
4057 KHTMLPopupGUIClient::saveURL( d->m_view, i18n( "Save Frame As" ), srcURL, metaData, "text/html" );
4132 if ( d->m_doc && d->m_doc->isHTMLDocument() && static_cast<HTMLDocumentImpl*>(d->m_doc)->body() && !d->m_bClearing )
4133 bgURL = static_cast<HTMLDocumentImpl*>(d->m_doc)->body()->getAttribute( ATTR_BACKGROUND ).string();
4150 void KHTMLPart::loadFrameElement( DOM::HTMLPartContainerElementImpl *frame, const QString &url,
4183 connectToChildPart(child, part, "text/html" /* mimetype of the part, not what's being loaded */);
4203 bool KHTMLPart::loadObjectElement( DOM::HTMLPartContainerElementImpl *frame, const QString &url,
4222 bool KHTMLPart::requestObject( khtml::ChildFrame *child, const KUrl &url, const KParts::OpenUrlArguments &_args,
4282 // We know the frame will be text/html if the HTML says <frame src=""> or <frame src="about:blank">,
4285 if ((url.isEmpty() || url.url() == "about:blank" || url.protocol() == "javascript") && args.mimeType().isEmpty())
4307 bool KHTMLPart::processObjectRequest( khtml::ChildFrame *child, const KUrl &_url, const QString &mimetype )
4311 // IMPORTANT: create a copy of the url here, because it is just a reference, which was likely to be given
4312 // by an emitting frame part (emit openUrlRequest( blahurl, ... ) . A few lines below we delete the part
4324 // we also want to ignore any spurious requests due to closing when parser is being cleared. These should be
4363 if ( child->m_type != khtml::ChildFrame::Object && child->m_type != khtml::ChildFrame::IFrame ) {
4379 KHTMLPopupGUIClient::saveURL( widget(), i18n( "Save As" ), url, child->m_args.metaData(), QString(), 0, suggestedFileName );
4411 KParts::ReadOnlyPart *part = createPart( d->m_view->viewport(), this, mimetype, child->m_serviceName, dummy, child->m_params );
4458 bool KHTMLPart::navigateLocalProtocol( khtml::ChildFrame* /*child*/, KParts::ReadOnlyPart *inPart,
4486 // we need a body element. testcase: <iframe id="a"></iframe><script>alert(a.document.body);</script>
4587 connect( kidBrowserExt, SIGNAL(openUrlRequestDelayed(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)),
4590 connect( kidBrowserExt, SIGNAL(createNewWindow(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::WindowArgs,KParts::ReadOnlyPart**)),
4591 d->m_extension, SIGNAL(createNewWindow(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::WindowArgs,KParts::ReadOnlyPart**)) );
4593 connect( kidBrowserExt, SIGNAL(popupMenu(QPoint,KFileItemList,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)),
4594 d->m_extension, SIGNAL(popupMenu(QPoint,KFileItemList,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)) );
4595 connect( kidBrowserExt, SIGNAL(popupMenu(QPoint,KUrl,mode_t,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)),
4596 d->m_extension, SIGNAL(popupMenu(QPoint,KUrl,mode_t,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)) );
4617 KService::List offers = KMimeTypeTrader::self()->query( mimetype, "KParts/ReadOnlyPart", constr );
4646 KParts::ReadOnlyPart* part = factory->create<KParts::ReadOnlyPart>(parentWidget, parent, QString(), variantlist);
4681 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 );
4687 void KHTMLPart::submitFormProxy( const char *action, const QString &url, const QByteArray &formData, const QString &_target, const QString& contentType, const QString& boundary )
4692 void KHTMLPart::submitForm( const char *action, const QString &url, const QByteArray &formData, const QString &_target, const QString& contentType, const QString& boundary )
4725 int rc = KMessageBox::warningContinueCancel(NULL, i18n("Warning: This is a secure form but it is attempting to send your data back unencrypted."
4783 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>" ),
4837 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");
4906 KParts::BrowserExtension::PopupFlags itemflags=KParts::BrowserExtension::ShowBookmark | KParts::BrowserExtension::ShowReload;
5016 if ( !parentPart() ) // "toplevel" html document? if yes, then notify the hosting browser about the document (url) changes
5036 kDebug(6031) << this << "child=" << child << "m_partContainerElement=" << child->m_partContainerElement;
5074 void KHTMLPart::slotChildURLRequest( const KUrl &url, const KParts::OpenUrlArguments& args, const KParts::BrowserArguments &browserArgs )
5077 KHTMLPart *callingHtmlPart = const_cast<KHTMLPart *>(dynamic_cast<const KHTMLPart *>(sender()->parent()));
5079 // TODO: handle child target correctly! currently the script are always executed for the parent
5123 } else if ( frameName== "_self" ) // this is for embedded objects (via <object>) which want to replace the current document
5190 KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame )
5199 kDebug(6050) << q << "URL =" << q->url() << "name =" << q->objectName() << "findFrameParent(" << f << ")";
5234 KHTMLPart* const frameParent = p->d->findFrameParent(callingPart, f, childFrame, checkForNavigation);
5361 khtml::ChildFrame *KHTMLPart::recursiveFrameRequest( KHTMLPart *callingHtmlPart, const KUrl &url,
5381 khtml::ChildFrame *res = parentPart()->recursiveFrameRequest( callingHtmlPart, url, args, browserArgs, callParent );
5399 kDebug( 6050 ) << indent << "saveState this=" << this << " '" << objectName() << "' saving URL " << url().url();
5403 << (qint32) d->m_view->contentsWidth() << (qint32) d->m_view->contentsHeight() << (qint32) d->m_view->marginWidth() << (qint32) d->m_view->marginHeight();
5476 stream << frameNameLst << frameServiceTypeLst << frameServiceNameLst << frameURLLst << frameStateBufferLst << frameTypeLst;
5568 for (; fIt != fEnd; ++fIt, ++fNameIt, ++fServiceTypeIt, ++fServiceNameIt, ++fURLIt, ++fBufferIt, ++fFrameTypeIt )
5629 for (; fNameIt != fNameEnd; ++fNameIt, ++fServiceTypeIt, ++fServiceNameIt, ++fURLIt, ++fBufferIt, ++fFrameTypeIt )
5720 static const int zoomSizes[] = { 20, 40, 60, 80, 90, 95, 100, 105, 110, 120, 140, 160, 180, 200, 250, 300 };
5727 extern const int KDE_NO_EXPORT fastZoomSizeCount = sizeof fastZoomSizes / sizeof fastZoomSizes[0];
6053 if (!(*it)->m_bPreloaded && (*it)->m_part) // ### TODO: make sure that we always create an empty
6060 bool KHTMLPart::openUrlInFrame( const KUrl &url, const KParts::OpenUrlArguments& args, const KParts::BrowserArguments &browserArgs)
6144 static bool firstRunAt(khtml::RenderObject *renderNode, int y, NodeImpl *&startNode, long &startOffset)
6149 for (khtml::InlineTextBox* box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
6171 static bool lastRunAt(khtml::RenderObject *renderNode, int y, NodeImpl *&endNode, long &endOffset)
6189 for (khtml::InlineTextBox* box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
6213 if (mouse->button() == Qt::LeftButton && !innerNode.isNull() && innerNode.handle()->renderer() &&
6216 if (pos.node() && (pos.node()->nodeType() == Node::TEXT_NODE || pos.node()->nodeType() == Node::CDATA_SECTION_NODE)) {
6237 if (mouse->button() == Qt::LeftButton && !innerNode.isNull() && innerNode.handle()->renderer() &&
6240 if (pos.node() && (pos.node()->nodeType() == Node::TEXT_NODE || pos.node()->nodeType() == Node::CDATA_SECTION_NODE)) {
6410 && ( d->m_dragStartPos - QPoint(event->x(), event->y()) ).manhattanLength() > KGlobalSettings::dndEventDelay() ) {
6541 if ( (mouse->buttons() & Qt::LeftButton) == 0 || !innerNode.handle() || !innerNode.handle()->renderer() ||
6577 if ((d->m_guiProfile == BrowserViewGUI) && (_mouse->button() == Qt::MidButton) && (event->url().isNull())) {
6602 selection.moveTo(d->editor_context.m_selection.base().node()->positionForCoordinates(event->x(), event->y()).position());
6617 //kDebug(6000) << "rel2: startBefEnd " << d->m_startBeforeEnd << " extAtEnd " << d->m_extendAtEnd << " (" << d->m_startOffset << ") - (" << d->m_endOffset << "), caretOfs " << d->caretOffset();
6709 image->m_wasBlocked = KHTMLGlobal::defaultHTMLSettings()->isAdFiltered( d->m_doc->completeURL( image->url().string() ) );
6723 (node->id() == ID_INPUT && static_cast<HTMLInputElementImpl *>(node)->inputType() == HTMLInputElementImpl::IMAGE ))
6725 if (KHTMLGlobal::defaultHTMLSettings()->isAdFiltered(d->m_doc->completeURL(static_cast<ElementImpl *>(node)->getAttribute(ATTR_SRC).parsedUrl().string())))
6802 d->editor_context.m_selection.moveTo(Position(first, 0), Position(last, last->nodeValue().length()));
6808 bool KHTMLPart::checkLinkSecurity(const KUrl &linkURL,const KLocalizedString &message, const QString &button)
6835 i18n( "<qt>Access by untrusted page to<br /><b>%1</b><br /> denied.</qt>", Qt::escape(linkURL.prettyUrl())),
6874 if ( d->m_activeFrame && d->m_activeFrame->widget() && d->m_activeFrame->widget()->inherits( "QFrame" ) )
6916 d->m_extension->setExtensionProxy( KParts::BrowserExtension::childObject( d->m_activeFrame ) );
6938 DOM::EventListener *KHTMLPart::createHTMLEventListener( QString code, QString name, NodeImpl* node, bool svg )
7011 d->m_haveEncoding ? KEncodingDetector::UserChosenEncoding : KEncodingDetector::EncodingFromHTTPHeader);
7086 KWallet::Wallet *wallet = KWallet::Wallet::openWallet(KWallet::Wallet::NetworkWallet(), widget() ? widget()->topLevelWidget()->winId() : 0, KWallet::Wallet::Asynchronous);
7090 connect(d->m_wq, SIGNAL(walletOpened(KWallet::Wallet*)), this, SLOT(walletOpened(KWallet::Wallet*)));
7128 KWallet::Wallet *wallet = KWallet::Wallet::openWallet(KWallet::Wallet::NetworkWallet(), widget() ? widget()->topLevelWidget()->winId() : 0, KWallet::Wallet::Asynchronous);
7132 connect(d->m_wq, SIGNAL(walletOpened(KWallet::Wallet*)), this, SLOT(walletOpened(KWallet::Wallet*)));
7177 d->m_statusBarWalletLabel->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum));
7184 d->m_statusBarWalletLabel->setToolTip(i18n("The wallet '%1' is open and being used for form data and passwords.", KWallet::Wallet::NetworkWallet()));
7242 connect( menuActionGroup, SIGNAL(triggered(QAction*)), this, SLOT(removeStoredPasswordForm(QAction*)) );
7247 menu->addAction(i18n("&Allow storing passwords for this site"), this, SLOT(delNonPasswordStorableSite()));
7251 for ( QStringList::ConstIterator it = d->m_walletForms.constBegin(); it != d->m_walletForms.constEnd(); ++it ) {
7312 void KHTMLPart::saveLoginInformation(const QString& host, const QString& key, const QMap<QString, QString>& walletMap)
7384 d->m_statusBarPopupLabel->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Minimum ));
7389 d->m_statusBarPopupLabel->setToolTip(i18n("This page was prevented from opening a new window via JavaScript." ) );
7395 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);
7408 m->addAction(i18np("&Show Blocked Popup Window","&Show %1 Blocked Popup Windows", d->m_openableSuppressedPopups), this, SLOT(showSuppressedPopups()));
7409 QAction *a = m->addAction(i18n("Show Blocked Window Passive Popup &Notification"), this, SLOT(togglePopupPassivePopup()));
7411 m->addAction(i18n("&Configure JavaScript New Window Policies..."), this, SLOT(launchJSConfigDialog()));
7460 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:5293
void setCodec(QTextCodec *codec)
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
virtual void khtmlDrawContentsEvent(khtml::DrawContentsEvent *)
Eventhandler for the khtml::DrawContentsEvent.
Definition: khtml_part.cpp:6622
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:631
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
void clear()
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:1017
MimeType classifyMimeType(const QString &mime)
Definition: khtml_part.cpp:1962
QString toString(Qt::DateFormat format) const
void executeInPageURL(const QString &url, bool lockHistory)
Definition: khtmlpart_p.h:443
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString getCacheControlString(KIO::CacheControl cacheControl)
void associateWidget(QWidget *widget) const
bool isRightToLeft()
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
QString & append(QChar ch)
QPixmap MainBarIcon(const QString &name, int force_size, int state, const QStringList &overlays)
void setShortcutContext(Qt::ShortcutContext context)
void setFlagRecursively(bool KHTMLPartPrivate::*flag, bool value)
Definition: khtml_part.cpp:2813
void setContentsMargins(int left, int top, int right, int bottom)
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:2522
void setIcon(const QPixmap &i)
void docCreated()
static List split(const QString &_url)
void truncate(int position)
QCursor urlCursor() const
Returns the cursor which is used when the cursor is on a link.
Definition: khtml_part.cpp:2788
T * data() const
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
bool contains(const Key &key) const
virtual KActionCollection * actionCollection() const
void unsetCursor()
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:1478
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:2170
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:2696
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:1907
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
QByteArray toLower() const
QString lastModified() const
Last-modified date (in raw string format), if received in the [HTTP] headers.
Definition: khtml_ext.h:161
void setMimeData(QMimeData *data)
QString decodeWithBuffering(const char *data, int len)
int right() const
Qt::DropAction start(QFlags< Qt::DropAction > request)
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:5482
void enqueue(const T &t)
static KIconLoader * global()
QMap< QString, QString > & metaData()
static QString codeForJavaScriptURL(const QString &url)
Definition: khtml_part.cpp:2534
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
QObject * sender() const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString i18np(const char *sing, const char *plur, const A1 &a1)
int timeout
KParts::BrowserArguments m_browserArgs
Definition: khtml_childframe_p.h:64
void setChecked(bool)
bool onlyLocalReferences() const
Returns whether only file:/ or data:/ references are allowed to be loaded ( default false )...
Definition: khtml_part.cpp:2793
bool isPointInsideSelection(int x, int y)
Returns whether the given point is inside the current selection.
Definition: khtml_part.cpp:6122
QVariant data() const
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)
void setPixmap(const QPixmap &pixmap)
void setPixmap(const QPixmap &)
static KPassivePopup * message(const QString &text, QWidget *parent)
T dequeue()
QList< QPointer< KHTMLPart > > m_suppressedPopupOriginParts
Definition: khtmlpart_p.h:239
void setIcon(const QIcon &icon)
void loadPlugins()
QQueue< QString > m_DNSPrefetchQueue
Definition: khtmlpart_p.h:275
void setAutoDetectLanguage(AutoDetectScript)
QString ref() const
QString host() const
void removeCatalog(const QString &catalog)
Definition: khtml_childframe_p.h:44
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool frameExists(const QString &frameName)
Returns whether a frame with the specified name is exists or not.
Definition: khtml_part.cpp:5314
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)
bool startsWith(const QByteArray &ba) const
void setRef(const QString &fragment)
void setPluginsEnabled(bool enable)
Enables or disables plugins, default is enabled.
Definition: khtml_part.cpp:1382
Definition: khtmlview.h:305
virtual const QMetaObject * metaObject() const
bool visuallyOrdered() const
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
StatJob * stat(const KUrl &url, JobFlags flags=DefaultFlags)
void setAttribute(Qt::WidgetAttribute attribute, bool on)
bool isJavaEnabled(const QString &hostname=QString()) const
Definition: khtml_settings.cpp:906
int exec()
KUrlLabel * m_statusBarJSErrorLabel
Definition: khtmlpart_p.h:237
QWidget * viewport() const
virtual void saveState(QDataStream &stream)
Saves the KHTMLPart's complete state (including child frame objects) to the provided QDataStream...
Definition: khtml_part.cpp:5394
QAction * addAction(const QString &name, QAction *action)
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
virtual QWidget * widget()
T * data() const
iterator erase(iterator pos)
virtual void setXMLFile(const QString &file, bool merge=false, bool setXMLDoc=true)
void removeChild(QObject *object)
QDBusConnection sessionBus()
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:6933
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)
QString join(const QString &separator) const
Definition: khtmlpart_p.h:355
Qt::MouseButtons buttons() const
static KHTMLSettings * defaultHTMLSettings()
Definition: khtml_global.cpp:237
const_iterator insert(const T &value)
void setFrameStyle(int style)
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:3690
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:2255
QMimeData * mimeData() const
Definition: khtml_part.h:1106
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setDoPost(bool enable)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
KSmoothScrollingMode smoothScrolling() const
Definition: khtml_settings.cpp:1139
KHTMLPartBrowserHostExtension * m_hostExtension
Definition: khtmlpart_p.h:232
bool isEmpty() const
KHTMLPart * findFrameParent(KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame, bool checkForNavigation)
Definition: khtml_part.cpp:5195
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:2654
virtual void khtmlMouseReleaseEvent(khtml::MouseReleaseEvent *event)
Eventhandler for the khtml::MouseMouseReleaseEvent.
Definition: khtml_part.cpp:6561
bool run(const KUrl &_url, bool _is_local)
bool canNavigate(KParts::ReadOnlyPart *b)
Definition: khtml_part.cpp:5250
BrowserArguments browserArguments() const
DOM::Node nodeUnderMouse() const
Returns the Node currently under the mouse.
Definition: khtml_part.cpp:5692
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()
bool isNull() const
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:7328
static void deregisterPart(KHTMLPart *part)
Definition: khtml_global.cpp:162
virtual bool event(QEvent *e)
void clear()
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:6144
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:1054
KHTMLView * view() const
Returns a pointer to the HTML document's view.
Definition: khtml_part.cpp:1059
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:1092
Definition: khtml_ext.h:181
bool suspend()
Definition: khtml_run.h:38
const char * name() const
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:6171
void setXOffset(int x)
int elapsed() const
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
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
QList< KXMLGUIClient * > childClients()
const int KDE_NO_EXPORT fastZoomSizes[]
void append(const T &value)
const QPoint & globalPos() const
void setMetaRefreshEnabled(bool enable)
Enable/disable automatic forwarding by
Definition: khtml_part.cpp:1128
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:2194
KJSProxy * framejScript(KParts::ReadOnlyPart *framePart)
Returns child frame framePart its script interpreter.
Definition: khtml_part.cpp:5336
QString & insert(int position, QChar ch)
void setLayout(QLayout *layout)
bool hasRef() const
QString errorString() const
void removeStatusBarItem(QWidget *widget)
void pop_front()
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:2803
virtual void khtmlMousePressEvent(khtml::MousePressEvent *event)
Eventhandler of the khtml::MousePressEvent.
Definition: khtml_part.cpp:6295
void canceled(const QString &errMsg)
int top() const
DOM::Editor * editor() const
Returns the instance of the attached html editor interface.
Definition: khtml_part.cpp:3500
bool inherits(const char *className) const
KSSLValidation
void setURLCursor(const QCursor &c)
Sets the cursor to use when the cursor is on a link.
Definition: khtml_part.cpp:2783
bool authorizeUrlAction(const QString &action, const KUrl &baseUrl, const KUrl &destUrl)
Definition: khtml_part.h:1277
int left() const
Qt::MouseButton button() const
QString protocol() const
Definition: khtml_childframe_p.h:81
void setAutoRemove(bool b)
void setCaretPosition(DOM::Node node, long offset, bool extendSelection=false)
Sets the caret to the given position.
Definition: khtml_part.cpp:2913
Definition: khtml_ext.h:198
KParts::BrowserExtension * browserExtension() const
Returns a pointer to the KParts::BrowserExtension.
Definition: khtml_part.cpp:1049
int m_xPosForVerticalArrowNavigation
Definition: editing_p.h:59
int toInt(bool *ok, int base) const
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
bool isEmpty() const
void setObjectName(const QString &name)
void raise()
void setFocusProxy(QWidget *w)
bool isEmpty() const
void preloadScript(const QString &url, const QString &script)
Loads a script into the script cache.
Definition: khtml_part.cpp:6973
Definition: kjserrordlg.h:8
const char * constData() const
bool isOpenMiddleClickEnabled()
Definition: khtml_settings.cpp:808
if(!yymsg) yymsg
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
QByteArray readAll()
void setOverrideCursor(const QCursor &cursor)
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:181
static KMimeTypeTrader * self()
void restoreOverrideCursor()
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
int restart()
typedef Iterator
int xOffset() const
Definition: khtml_part.h:789
QString selectedTextAsHTML() const
Return the text the user has marked.
Definition: khtml_part.cpp:3080
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:1363
KParts::PartManager * partManager()
Returns a reference to the partmanager instance which manages html frame objects. ...
Definition: khtml_part.cpp:4661
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:2181
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:1993
Definition: khtmlviewbar.h:33
QString csqueeze(const QString &str, int maxlen=40)
T & first()
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:6550
const int KDE_NO_EXPORT fastZoomSizeCount
void hide()
KUrl url() const
virtual void setComponentData(const KComponentData &componentData)
static const QString FormDataFolder()
QDateTime lastModified() const
QString path(AdjustPathOption trailing=LeaveTrailingSlash) const
QString fromPercentEncoding(const QByteArray &input)
void setFontScaleFactor(int percent)
Sets the scale factor to be applied to fonts.
Definition: khtml_part.cpp:5863
virtual bool openFile()
Internal empty reimplementation of KParts::ReadOnlyPart::openFile .
Definition: khtml_part.cpp:1628
void clear()
virtual void write(const char *str, int len=-1)
Writes another part of the HTML code to the widget.
Definition: khtml_part.cpp:2089
Definition: khtmlfindbar.h:29
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
void scheduleRedirection(int delay, const QString &url, bool lockHistory=true)
Schedules a redirection after delay seconds.
Definition: khtml_part.cpp:2560
const KShortcut & reload()
void setSizePolicy(QSizePolicy)
void setActiveNode(const DOM::Node &node)
Sets the focused node of the document to the specified node.
Definition: khtml_part.cpp:6919
bool findTextNext(bool reverse=false)
Finds the next occurrence of a string set by findText()
Definition: khtml_part.cpp:3068
void infoMessage(const QString &)
QString htmlRef() const
virtual void guiActivateEvent(KParts::GUIActivateEvent *event)
Internal reimplementation of KParts::Part::guiActivateEvent .
Definition: khtml_part.cpp:6626
virtual Part * activePart() const
void setWhatsThis(const QString &what)
void loadingProgress(int percent)
KAction * next(const QObject *recvr, const char *slot, QObject *parent)
void setImageData(const QVariant &image)
QString right(int n) const
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:4608
void setPluginPageQuestionAsked(const QString &mimetype)
Definition: khtml_part.cpp:6998
Qt::KeyboardModifiers modifiers() const
void setData(const QVariant &userData)
void setFormNotification(FormNotification fn)
Determine if signal should be emitted before, instead or never when a submitForm() happens...
Definition: khtml_part.cpp:7324
void setShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
iterator end()
QString toLower() const
QByteArray toLocal8Bit() const
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:1078
void setStandardFont(const QString &name)
Sets the standard font style.
Definition: khtml_part.cpp:2773
bool reload() const
int indexOfSlot(const char *slot) 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)
int frameStyle() const
OpenUrlArguments arguments() const
void setSuppressedPopupIndicator(bool enable, KHTMLPart *originPart=0)
Shows or hides the suppressed popup indicator.
Definition: khtml_part.cpp:7369
void setForcesNewWindow(bool forcesNewWindow)
bool resume()
static bool isJavaScriptURL(const QString &url)
Definition: khtml_part.cpp:2553
const char * className() const
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:5190
void caretPositionChanged(const DOM::Node &node, long offset)
This signal is emitted whenever the caret position has been changed.
void stop()
void hideText()
virtual void close()
KGuiItem close()
Definition: khtml_part.h:272
SimpleJob * http_update_cache(const KUrl &url, bool no_cache, time_t expireDate)
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
KGuiItem ok()
virtual void setWidget(QWidget *widget)
QString formatDateTime(const QDateTime &dateTime, DateFormat format=ShortDate, bool includeSecs=false) const
bool contains(const T &value) const
int lstat(const QString &path, KDE_struct_stat *buf)
bool softReload
QString fileName() const
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
void repaint()
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:6968
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:7332
bool setEncoding(const char *encoding, EncodingChoiceSource type)
void setReload(bool b)
QString & replace(int position, int n, QChar after)
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:4687
CaretDisplayPolicy caretDisplayPolicyNonFocused() const
Returns the current caret policy when the view is not focused.
Definition: khtml_part.cpp:2930
int startTimer(int interval)
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:1097
bool isValid() const
void configurationChanged()
Emitted whenever the configuration has changed.
QDateTime currentDateTime()
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
QByteArray toLatin1() const
QString mid(int position, int n) const
QPoint pos()
TransferJob * http_post(const KUrl &url, const QByteArray &postData, JobFlags flags=DefaultFlags)
bool isFullyLoaded(bool *pendingRedirections) const
Definition: khtml_part.cpp:2359
static void setCaretInvisibleIfNeeded(KHTMLPart *part)
Definition: khtml_part.cpp:2860
void setDNSPrefetch(DNSPrefetch pmode)
Sets whether DNS Names found in loaded documents'anchors should be pre-fetched (pre-resolved).
Definition: khtml_part.cpp:1115
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:2114
virtual void khtmlMouseDoubleClickEvent(khtml::MouseDoubleClickEvent *)
Eventhandler for the khtml::MouseDoubleClickEvent.
Definition: khtml_part.cpp:6341
DOM::Node nonSharedNodeUnderMouse() const
Returns the Node currently under the mouse that is not shared.
Definition: khtml_part.cpp:5697
void setCaretDisplayPolicyNonFocused(CaretDisplayPolicy policy)
Sets the caret display policy when the view is not focused.
Definition: khtml_part.cpp:2942
void findText()
Starts a new search by popping up a dialog asking the user what he wants to search for...
Definition: khtml_part.cpp:3053
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
QString escape(const QString &plain)
bool lockHistory() const
bool isEditable() const
Returns true if the document is editable, false otherwise.
Definition: khtml_part.cpp:2904
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)
void setActionGroup(QActionGroup *group)
int count() const
KJS::KHTMLPartScriptable * m_scriptableExtension
Definition: khtmlpart_p.h:233
bool isLocalAnchorJump(const KUrl &url)
Definition: khtml_part.cpp:620
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:6033
QWidget * parentWidget() const
void setHelpText(const QString &text)
void setWindowTitle(const QString &)
void setYOffset(int y)
QTextCodec * codecForName(const QByteArray &name)
bool pluginPageQuestionAsked(const QString &mimetype) const
Definition: khtml_part.cpp:6988
T & last()
typedef ConstIterator
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:1326
void setText(int column, const QString &text)
Definition: khtmlpart_p.h:88
QByteArray toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)
int yOffset() const
int bottom() const
virtual bool closeUrl()
Stops loading the document and kills all data requests (for images, etc.)
Definition: khtml_part.cpp:922
void setUseCursor(bool on, QCursor *cursor=0L)
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
const char * encoding() const
int length() const
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
static bool keyDoesNotExist(const QString &wallet, const QString &folder, const QString &key)
QString query() const
QString leftJustified(int width, QChar fill, bool truncate) const
static StatusBarExtension * childObject(QObject *obj)
int timerId() const
char * data()
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.
QString left(int n) const
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:3460
QString fromLatin1(const char *str, int size)
virtual QString selectedText() const
Returns the text the user has marked.
Definition: khtml_part.cpp:3098
DOM::HTMLDocument htmlDocument() const
Returns a reference to the DOM HTML document (for non-HTML documents, returns null) ...
Definition: khtml_part.cpp:1004
void start(int msec)
void executeJavascriptURL(const QString &u)
Definition: khtml_part.cpp:2539
void setAutoloadImages(bool enable)
Specifies whether images contained in the document should be loaded automatically or not...
Definition: khtml_part.cpp:1450
void saveData(long id, QDataStream *str)
Save the data of cache entry id to the datastream str.
Definition: khtml_pagecache.cpp:267
int indexOf(const QRegExp &rx, int from) const
void prepend(const T &value)
virtual void showError(KJob *job)
Called when a certain error situation (i.e.
Definition: khtml_part.cpp:1790
KJS::Interpreter * jScriptInterpreter()
Returns the JavaScript interpreter the part is using.
Definition: khtml_part.cpp:1083
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
iterator insert(const Key &key, const T &value)
DOM::Document document() const
Returns a reference to the DOM document.
Definition: khtml_part.cpp:1012
bool jScriptEnabled() const
Returns true if Javascript support is enabled or false otherwise.
Definition: khtml_part.cpp:1106
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
void show()
Definition: khtml_wallet_p.h:41
int find(QChar c, int i, bool cs) const
KParts::ReadOnlyPart * currentFrame() const
Return the current frame (the one that has focus) Not necessarily a direct child of ours...
Definition: khtml_part.cpp:5299
void popupMenu(const QString &url, const QPoint &point)
Emitted when the user clicks the right mouse button on the document.
void setToolTip(const QString &)
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:2200
void insertChildClient(KXMLGUIClient *child)
void pasteRequest()
void setLowerWindow(bool lower)
const_iterator constEnd() const
void prefetchHost(const QString &hostName)
void clear()
iterator begin()
const_iterator constBegin() const
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:5061
virtual bool doCloseStream()
Implements the streaming API of KParts::ReadOnlyPart.
Definition: khtml_part.cpp:2187
Definition: khtmlpart_p.h:89
Type type() const
void setLocationBarUrl(const QString &url)
static KIO::CacheControl cacheControl()
bool isLocalFile() const
int size() const
bool isActive() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString convertSize(KIO::filesize_t size)
QObject * parent() const
void setPageSecurity(int)
QString readAll()
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:1807
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()
bool open()
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString toString() const
void setCacheSize(int s)
bool equals(const KUrl &u, const EqualsOptions &options=0) const
void killTimer(int id)
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
iterator begin()
iterator find(const T &t)
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:5326
void setEnabled(bool)
QByteArray postData
void setSpacing(int spacing)
bool endsWith(const QByteArray &ba) const
QString queryItem(const QString &item) const
QByteArray encodeName(const QString &fileName)
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:5356
KUrl backgroundURL() const
Returns the URL for the background Image (used by save background)
Definition: khtml_part.cpp:3931
bool isModified() const
Checks whether the page contains unsubmitted form changes.
Definition: khtml_part.cpp:7344
void setSingleShot(bool singleShot)
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.