Lines Matching full:page
25 #include "Page.h"
41 , page(0)
50 QWebPage *page;
57 page = 0;
85 QWebFrame* frame = m_view->page()->mainFrame();
93 QWebFrame* frame = m_view->page()->mainFrame();
143 return m_view->page()->mainFrame();
153 QWebFrame* frame = m_view->page()->mainFrame();
179 return m_view ? m_view->page()->viewportSize() : QSize();
239 The page() function returns a pointer to the web page object. See
240 \l{Elements of QWebView} for an explanation of how the web page
321 if (d->page) {
323 d->page->d->view.clear();
325 d->page->d->view = 0;
327 delete d->page->d->client;
328 d->page->d->client = 0;
331 if (d->page && d->page->parent() == this)
332 delete d->page;
337 Returns a pointer to the underlying web page.
341 QWebPage *QWebView::page() const
343 if (!d->page) {
347 return d->page;
351 Makes \a page the new web page of the web view.
353 The parent QObject of the provided page remains the owner
357 \sa page()
359 void QWebView::setPage(QWebPage* page)
361 if (d->page == page)
363 if (d->page) {
364 d->page->d->client = 0; // unset the page client
365 if (d->page->parent() == this)
366 delete d->page;
368 d->page->disconnect(this);
370 d->page = page;
371 if (d->page) {
372 d->page->setView(this);
373 d->page->setPalette(palette());
375 QWebFrame *mainFrame = d->page->mainFrame();
383 connect(d->page, SIGNAL(loadStarted()),
385 connect(d->page, SIGNAL(loadProgress(int)),
387 connect(d->page, SIGNAL(loadFinished(bool)),
389 connect(d->page, SIGNAL(statusBarMessage(QString)),
391 connect(d->page, SIGNAL(linkClicked(QUrl)),
394 connect(d->page, SIGNAL(microFocusChanged()),
396 connect(d->page, SIGNAL(destroyed()),
399 setAttribute(Qt::WA_OpaquePaintEvent, d->page);
401 d->page->d->page->settings()->setAcceleratedCompositingEnabled(false);
415 page()->mainFrame()->load(url);
434 page()->mainFrame()->load(request, operation, body);
455 page()->mainFrame()->setHtml(html, baseUrl);
471 page()->mainFrame()->setContent(data, mimeType, baseUrl);
483 return page()->history();
487 Returns a pointer to the view/page specific settings object.
497 return page()->settings();
502 \brief the title of the web page currently viewed
510 if (d->page)
511 return d->page
517 \brief the url of the web page currently viewed
528 page()->mainFrame()->setUrl(url);
533 if (d->page)
534 return d->page->mainFrame()->url();
540 \brief the icon associated with the web page currently viewed
548 if (d->page)
549 return d->page->mainFrame()->icon();
563 if (d->page)
564 return d->page->selectedText();
573 return page()->action(action);
589 page()->triggerAction(action, checked);
603 if (d->page)
604 return d->page->isModified();
611 // ### FIXME (add to page)
620 Specifies how the user can interact with the text on the page.
627 // ### FIXME (add to page)
647 page()->mainFrame()->setZoomFactor(factor);
652 return page()->mainFrame()->zoomFactor();
670 Sets the value of the multiplier used to scale the text in a Web page to
675 page()->mainFrame()->setTextSizeMultiplier(factor);
679 Returns the value of the multiplier used to scale the text in a Web page.
683 return page()->mainFrame()->textSizeMultiplier();
691 These hints are used to initialize QPainter before painting the Web page.
746 Finds the specified string, \a subString, in the page, using the given \a options.
749 that exist in the page. All subsequent calls will extend the highlight, rather than
763 if (d->page)
764 return d->page->findText(subString, options);
772 if (d->page) {
778 if (d->page->swallowContextMenuEvent(event)) {
782 d->page->updatePositionDependentActions(event->pos());
786 d->page->event(e);
798 d->page->d->client->resetCursor();
804 d->page->event(e);
809 d->page->event(e);
823 page()->mainFrame()->print(printer);
838 if (d->page)
839 d->page->triggerAction(QWebPage::Stop);
854 if (d->page)
855 d->page->triggerAction(QWebPage::Back);
870 if (d->page)
871 d->page->triggerAction(QWebPage::Forward);
881 if (d->page)
882 d->page->triggerAction(QWebPage::Reload);
889 if (d->page)
890 d->page->setViewportSize(e->size());
897 if (!d->page)
904 QWebFrame *frame = d->page->mainFrame();
918 each time the page wants to create a new window of the given \a type. This might
921 \note If the createWindow() method of the associated page is reimplemented, this
936 if (d->page) {
938 d->page->event(ev);
947 if (d->page) {
949 d->page->event(ev);
958 if (d->page) {
960 d->page->event(ev);
969 if (d->page) {
971 d->page->event(ev);
981 if (d->page) {
983 d->page->event(ev);
994 if (d->page) {
996 d->page->event(ev);
1006 if (d->page)
1007 d->page->event(ev);
1016 if (d->page)
1017 d->page->event(ev);
1026 if (d->page)
1027 d->page->event(ev);
1036 if (d->page)
1037 d->page->event(ev);
1047 if (d->page)
1048 d->page->event(ev);
1057 if (d->page)
1058 d->page->event(ev);
1067 if (d->page)
1068 d->page->event(ev);
1077 if (d->page)
1078 d->page->event(ev);
1086 if (d->page && d->page->focusNextPrevChild(next))
1095 if (d->page)
1096 return d->page->inputMethodQuery(property);
1104 if (d->page)
1105 d->page->event(e);
1112 if (d->page && e->type() == QEvent::PaletteChange)
1113 d->page->setPalette(palette());
1136 This signal is emitted when the status bar \a text is changed by the page.
1142 This signal is emitted whenever the icon of the page is loaded or changes.
1153 This signal is emitted when a new load of the page is started.
1161 This signal is emitted when a load of the page is finished.
1178 This signal is emitted every time an element in the web page
1192 This signal is emitted whenever the user clicks on a link and the page's linkDelegationPolicy