QWebPage Class Reference

#include <qwebpage.h>

Class Description

Definition at line 70 of file qwebpage.h.

+ Inheritance diagram for QWebPage:

Classes

class  ChooseMultipleFilesExtensionOption
 
class  ChooseMultipleFilesExtensionReturn
 
class  ErrorPageExtensionOption
 
class  ErrorPageExtensionReturn
 
class  ExtensionOption
 
class  ExtensionReturn
 
class  ViewportAttributes
 

Public Types

enum  NavigationType {
  NavigationTypeLinkClicked, NavigationTypeFormSubmitted, NavigationTypeBackOrForward, NavigationTypeReload,
  NavigationTypeFormResubmitted, NavigationTypeOther
}
 
enum  WebAction {
  NoWebAction = - 1, OpenLink, OpenLinkInNewWindow, OpenFrameInNewWindow,
  DownloadLinkToDisk, CopyLinkToClipboard, OpenImageInNewWindow, DownloadImageToDisk,
  CopyImageToClipboard, Back, Forward, Stop,
  Reload, Cut, Copy, Paste,
  Undo, Redo, MoveToNextChar, MoveToPreviousChar,
  MoveToNextWord, MoveToPreviousWord, MoveToNextLine, MoveToPreviousLine,
  MoveToStartOfLine, MoveToEndOfLine, MoveToStartOfBlock, MoveToEndOfBlock,
  MoveToStartOfDocument, MoveToEndOfDocument, SelectNextChar, SelectPreviousChar,
  SelectNextWord, SelectPreviousWord, SelectNextLine, SelectPreviousLine,
  SelectStartOfLine, SelectEndOfLine, SelectStartOfBlock, SelectEndOfBlock,
  SelectStartOfDocument, SelectEndOfDocument, DeleteStartOfWord, DeleteEndOfWord,
  SetTextDirectionDefault, SetTextDirectionLeftToRight, SetTextDirectionRightToLeft, ToggleBold,
  ToggleItalic, ToggleUnderline, InspectElement, InsertParagraphSeparator,
  InsertLineSeparator, SelectAll, ReloadAndBypassCache, PasteAndMatchStyle,
  RemoveFormat, ToggleStrikethrough, ToggleSubscript, ToggleSuperscript,
  InsertUnorderedList, InsertOrderedList, Indent, Outdent,
  AlignCenter, AlignJustified, AlignLeft, AlignRight,
  StopScheduledPageRefresh, CopyImageUrlToClipboard, WebActionCount
}
 
enum  FindFlag { FindBackward = 1, FindCaseSensitively = 2, FindWrapsAroundDocument = 4, HighlightAllOccurrences = 8 }
 
enum  LinkDelegationPolicy { DontDelegateLinks, DelegateExternalLinks, DelegateAllLinks }
 
enum  WebWindowType { WebBrowserWindow, WebModalDialog }
 
enum  PermissionPolicy { PermissionUnknown, PermissionGrantedByUser, PermissionDeniedByUser }
 
enum  Feature { Notifications, Geolocation }
 
enum  Extension { ChooseMultipleFilesExtension, ErrorPageExtension }
 
enum  ErrorDomain { QtNetwork, Http, WebKit }
 

Public Slots

bool shouldInterruptJavaScript ()
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void loadStarted ()
 
void loadProgress (int progress)
 
void loadFinished (bool ok)
 
void linkHovered (const QString &link, const QString &title, const QString &textContent)
 
void statusBarMessage (const QString &text)
 
void selectionChanged ()
 
void frameCreated (QWebFrame *frame)
 
void geometryChangeRequested (const QRect &geom)
 
void repaintRequested (const QRect &dirtyRect)
 
void scrollRequested (int dx, int dy, const QRect &scrollViewRect)
 
void windowCloseRequested ()
 
void printRequested (QWebFrame *frame)
 
void linkClicked (const QUrl &url)
 
void toolBarVisibilityChangeRequested (bool visible)
 
void statusBarVisibilityChangeRequested (bool visible)
 
void menuBarVisibilityChangeRequested (bool visible)
 
void unsupportedContent (QNetworkReply *reply)
 
void downloadRequested (const QNetworkRequest &request)
 
void microFocusChanged ()
 
void contentsChanged ()
 
void databaseQuotaExceeded (QWebFrame *frame, QString databaseName)
 
void applicationCacheQuotaExceeded (QWebSecurityOrigin *origin, quint64 defaultOriginQuota)
 
void saveFrameStateRequested (QWebFrame *frame, QWebHistoryItem *item)
 
void restoreFrameStateRequested (QWebFrame *frame)
 
void viewportChangeRequested ()
 
void featurePermissionRequested (QWebFrame *frame, QWebPage::Feature feature)
 
void featurePermissionRequestCanceled (QWebFrame *frame, QWebPage::Feature feature)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QWebPage (QObject *parent=0)
 
 ~QWebPage ()
 
QWebFramemainFrame () const
 
QWebFramecurrentFrame () const
 
QWebFrameframeAt (const QPoint &pos) const
 
QWebHistoryhistory () const
 
QWebSettingssettings () const
 
void setView (QWidget *view)
 
QWidgetview () const
 
bool isModified () const
 
QUndoStackundoStack () const
 
void setNetworkAccessManager (QNetworkAccessManager *manager)
 
QNetworkAccessManagernetworkAccessManager () const
 
void setPluginFactory (QWebPluginFactory *factory)
 
QWebPluginFactorypluginFactory () const
 
quint64 totalBytes () const
 
quint64 bytesReceived () const
 
bool hasSelection () const
 
QString selectedText () const
 
QString selectedHtml () const
 
QActionaction (WebAction action) const
 
virtual void triggerAction (WebAction action, bool checked=false)
 
QSize viewportSize () const
 
void setViewportSize (const QSize &size) const
 
ViewportAttributes viewportAttributesForSize (const QSize &availableSize) const
 
QSize preferredContentsSize () const
 
void setPreferredContentsSize (const QSize &size) const
 
void setActualVisibleContentRect (const QRect &rect) const
 
virtual bool event (QEvent *)
 
bool focusNextPrevChild (bool next)
 
QVariant inputMethodQuery (Qt::InputMethodQuery property) const
 
bool findText (const QString &subString, FindFlags options=0)
 
void setForwardUnsupportedContent (bool forward)
 
bool forwardUnsupportedContent () const
 
void setLinkDelegationPolicy (LinkDelegationPolicy policy)
 
LinkDelegationPolicy linkDelegationPolicy () const
 
void setPalette (const QPalette &palette)
 
QPalette palette () const
 
void setContentEditable (bool editable)
 
bool isContentEditable () const
 
bool swallowContextMenuEvent (QContextMenuEvent *event)
 
void updatePositionDependentActions (const QPoint &pos)
 
QMenucreateStandardContextMenu ()
 
void setFeaturePermission (QWebFrame *frame, Feature feature, PermissionPolicy policy)
 
QStringList supportedContentTypes () const
 
bool supportsContentType (const QString &mimeType) const
 
virtual bool extension (Extension extension, const ExtensionOption *option=0, ExtensionReturn *output=0)
 
virtual bool supportsExtension (Extension extension) const
 
QWebPagePrivatehandle () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

virtual QWebPagecreateWindow (WebWindowType type)
 
virtual QObjectcreatePlugin (const QString &classid, const QUrl &url, const QStringList &paramNames, const QStringList &paramValues)
 
virtual bool acceptNavigationRequest (QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
 
virtual QString chooseFile (QWebFrame *originatingFrame, const QString &oldFile)
 
virtual void javaScriptAlert (QWebFrame *originatingFrame, const QString &msg)
 
virtual bool javaScriptConfirm (QWebFrame *originatingFrame, const QString &msg)
 
virtual bool javaScriptPrompt (QWebFrame *originatingFrame, const QString &msg, const QString &defaultValue, QString *result)
 
virtual void javaScriptConsoleMessage (const QString &message, int lineNumber, const QString &sourceID)
 
virtual QString userAgentForUrl (const QUrl &url) const
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Properties

bool modified
 
QString selectedText
 
QString selectedHtml
 
bool hasSelection
 
QSize viewportSize
 
QSize preferredContentsSize
 
bool forwardUnsupportedContent
 
LinkDelegationPolicy linkDelegationPolicy
 
QPalette palette
 
bool contentEditable
 
- Properties inherited from QObject
QString objectName
 

Friends

class QWebFrame
 
class QWebPagePrivate
 
class QWebView
 
class QWebViewPrivate
 
class QGraphicsWebView
 
class QGraphicsWebViewPrivate
 
class QWebInspector
 
class WebCore::ChromeClientQt
 
class WebCore::EditorClientQt
 
class WebCore::FrameLoaderClientQt
 
class WebCore::InspectorClientQt
 
class WebCore::InspectorServerRequestHandlerQt
 
class WebCore::InspectorFrontendClientQt
 
class WebCore::NotificationPresenterClientQt
 
class WebCore::GeolocationPermissionClientQt
 
class WebCore::ResourceHandle
 
class WebCore::QNetworkReplyHandler
 
class DumpRenderTreeSupportQt
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Member Enumeration Documentation

Enumerator
NavigationTypeLinkClicked 
NavigationTypeFormSubmitted 
NavigationTypeBackOrForward 
NavigationTypeReload 
NavigationTypeFormResubmitted 
NavigationTypeOther 

Definition at line 85 of file qwebpage.h.

enum WebAction
Enumerator
NoWebAction 
OpenLink 
OpenLinkInNewWindow 
OpenFrameInNewWindow 
DownloadLinkToDisk 
CopyLinkToClipboard 
OpenImageInNewWindow 
DownloadImageToDisk 
CopyImageToClipboard 
Back 
Forward 
Stop 
Reload 
Cut 
Copy 
Paste 
Undo 
Redo 
MoveToNextChar 
MoveToPreviousChar 
MoveToNextWord 
MoveToPreviousWord 
MoveToNextLine 
MoveToPreviousLine 
MoveToStartOfLine 
MoveToEndOfLine 
MoveToStartOfBlock 
MoveToEndOfBlock 
MoveToStartOfDocument 
MoveToEndOfDocument 
SelectNextChar 
SelectPreviousChar 
SelectNextWord 
SelectPreviousWord 
SelectNextLine 
SelectPreviousLine 
SelectStartOfLine 
SelectEndOfLine 
SelectStartOfBlock 
SelectEndOfBlock 
SelectStartOfDocument 
SelectEndOfDocument 
DeleteStartOfWord 
DeleteEndOfWord 
SetTextDirectionDefault 
SetTextDirectionLeftToRight 
SetTextDirectionRightToLeft 
ToggleBold 
ToggleItalic 
ToggleUnderline 
InspectElement 
InsertParagraphSeparator 
InsertLineSeparator 
SelectAll 
ReloadAndBypassCache 
PasteAndMatchStyle 
RemoveFormat 
ToggleStrikethrough 
ToggleSubscript 
ToggleSuperscript 
InsertUnorderedList 
InsertOrderedList 
Indent 
Outdent 
AlignCenter 
AlignJustified 
AlignLeft 
AlignRight 
StopScheduledPageRefresh 
CopyImageUrlToClipboard 
WebActionCount 

Definition at line 94 of file qwebpage.h.

94  {
95  NoWebAction = - 1,
96 
97  OpenLink,
98 
101 
104 
108 
109  Back,
110  Forward,
111  Stop,
112  Reload,
113 
114  Cut,
115  Copy,
116  Paste,
117 
118  Undo,
119  Redo,
146 
150 
151  ToggleBold,
152  ToggleItalic,
154 
156 
159 
160  SelectAll,
162 
164  RemoveFormat,
165 
171  Indent,
172  Outdent,
173 
174  AlignCenter,
176  AlignLeft,
177  AlignRight,
178 
180 
182 
184  };
enum FindFlag
Enumerator
FindBackward 
FindCaseSensitively 
FindWrapsAroundDocument 
HighlightAllOccurrences 

Definition at line 186 of file qwebpage.h.

Enumerator
DontDelegateLinks 
DelegateExternalLinks 
DelegateAllLinks 

Definition at line 194 of file qwebpage.h.

Enumerator
WebBrowserWindow 
WebModalDialog 

Definition at line 200 of file qwebpage.h.

Enumerator
PermissionUnknown 
PermissionGrantedByUser 
PermissionDeniedByUser 

Definition at line 205 of file qwebpage.h.

enum Feature
Enumerator
Notifications 
Geolocation 

Definition at line 211 of file qwebpage.h.

enum Extension
Enumerator
ChooseMultipleFilesExtension 
ErrorPageExtension 

Definition at line 323 of file qwebpage.h.

Enumerator
QtNetwork 
Http 
WebKit 

Definition at line 343 of file qwebpage.h.

Constructor & Destructor Documentation

QWebPage ( QObject parent = 0)
explicit
~QWebPage ( )

Member Function Documentation

QWebFrame* mainFrame ( ) const
QWebFrame* currentFrame ( ) const
QWebFrame* frameAt ( const QPoint pos) const
QWebHistory* history ( ) const
QWebSettings* settings ( ) const
void setView ( QWidget view)
QWidget* view ( ) const
bool isModified ( ) const
QUndoStack* undoStack ( ) const
void setNetworkAccessManager ( QNetworkAccessManager manager)
QNetworkAccessManager* networkAccessManager ( ) const
void setPluginFactory ( QWebPluginFactory factory)
QWebPluginFactory* pluginFactory ( ) const
quint64 totalBytes ( ) const
quint64 bytesReceived ( ) const
bool hasSelection ( ) const
QString selectedText ( ) const
QString selectedHtml ( ) const
QAction* action ( WebAction  action) const
virtual void triggerAction ( WebAction  action,
bool  checked = false 
)
virtual
QSize viewportSize ( ) const
void setViewportSize ( const QSize size) const
ViewportAttributes viewportAttributesForSize ( const QSize availableSize) const
QSize preferredContentsSize ( ) const
void setPreferredContentsSize ( const QSize size) const
void setActualVisibleContentRect ( const QRect rect) const
virtual bool event ( QEvent )
virtual

Reimplemented from QObject.

bool focusNextPrevChild ( bool  next)
QVariant inputMethodQuery ( Qt::InputMethodQuery  property) const
bool findText ( const QString subString,
FindFlags  options = 0 
)
void setForwardUnsupportedContent ( bool  forward)
bool forwardUnsupportedContent ( ) const
void setLinkDelegationPolicy ( LinkDelegationPolicy  policy)
LinkDelegationPolicy linkDelegationPolicy ( ) const
void setPalette ( const QPalette palette)
QPalette palette ( ) const
void setContentEditable ( bool  editable)
bool isContentEditable ( ) const
bool swallowContextMenuEvent ( QContextMenuEvent event)
void updatePositionDependentActions ( const QPoint pos)
QMenu* createStandardContextMenu ( )
void setFeaturePermission ( QWebFrame frame,
Feature  feature,
PermissionPolicy  policy 
)
QStringList supportedContentTypes ( ) const
bool supportsContentType ( const QString mimeType) const
virtual bool extension ( Extension  extension,
const ExtensionOption option = 0,
ExtensionReturn output = 0 
)
virtual
virtual bool supportsExtension ( Extension  extension) const
virtual
QWebPagePrivate* handle ( ) const
inline

Definition at line 366 of file qwebpage.h.

366 { return d; }
bool shouldInterruptJavaScript ( )
slot
void loadStarted ( )
signal
void loadProgress ( int  progress)
signal
void loadFinished ( bool  ok)
signal
void linkHovered ( const QString link,
const QString title,
const QString textContent 
)
signal
void statusBarMessage ( const QString text)
signal
void selectionChanged ( )
signal
void frameCreated ( QWebFrame frame)
signal
void geometryChangeRequested ( const QRect geom)
signal
void repaintRequested ( const QRect dirtyRect)
signal
void scrollRequested ( int  dx,
int  dy,
const QRect scrollViewRect 
)
signal
void windowCloseRequested ( )
signal
void printRequested ( QWebFrame frame)
signal
void linkClicked ( const QUrl url)
signal
void toolBarVisibilityChangeRequested ( bool  visible)
signal
void statusBarVisibilityChangeRequested ( bool  visible)
signal
void menuBarVisibilityChangeRequested ( bool  visible)
signal
void unsupportedContent ( QNetworkReply reply)
signal
void downloadRequested ( const QNetworkRequest request)
signal
void microFocusChanged ( )
signal
void contentsChanged ( )
signal
void databaseQuotaExceeded ( QWebFrame frame,
QString  databaseName 
)
signal
void applicationCacheQuotaExceeded ( QWebSecurityOrigin origin,
quint64  defaultOriginQuota 
)
signal
void saveFrameStateRequested ( QWebFrame frame,
QWebHistoryItem item 
)
signal
void restoreFrameStateRequested ( QWebFrame frame)
signal
void viewportChangeRequested ( )
signal
void featurePermissionRequested ( QWebFrame frame,
QWebPage::Feature  feature 
)
signal
void featurePermissionRequestCanceled ( QWebFrame frame,
QWebPage::Feature  feature 
)
signal
virtual QWebPage* createWindow ( WebWindowType  type)
protectedvirtual
virtual QObject* createPlugin ( const QString classid,
const QUrl url,
const QStringList paramNames,
const QStringList paramValues 
)
protectedvirtual
virtual bool acceptNavigationRequest ( QWebFrame frame,
const QNetworkRequest request,
NavigationType  type 
)
protectedvirtual
virtual QString chooseFile ( QWebFrame originatingFrame,
const QString oldFile 
)
protectedvirtual
virtual void javaScriptAlert ( QWebFrame originatingFrame,
const QString msg 
)
protectedvirtual
virtual bool javaScriptConfirm ( QWebFrame originatingFrame,
const QString msg 
)
protectedvirtual
virtual bool javaScriptPrompt ( QWebFrame originatingFrame,
const QString msg,
const QString defaultValue,
QString result 
)
protectedvirtual
virtual void javaScriptConsoleMessage ( const QString message,
int  lineNumber,
const QString sourceID 
)
protectedvirtual
virtual QString userAgentForUrl ( const QUrl url) const
protectedvirtual

Friends And Related Function Documentation

friend class QWebFrame
friend

Definition at line 429 of file qwebpage.h.

friend class QWebPagePrivate
friend

Definition at line 430 of file qwebpage.h.

friend class QWebView
friend

Definition at line 431 of file qwebpage.h.

friend class QWebViewPrivate
friend

Definition at line 432 of file qwebpage.h.

friend class QGraphicsWebView
friend

Definition at line 433 of file qwebpage.h.

friend class QGraphicsWebViewPrivate
friend

Definition at line 434 of file qwebpage.h.

friend class QWebInspector
friend

Definition at line 435 of file qwebpage.h.

friend class WebCore::ChromeClientQt
friend

Definition at line 436 of file qwebpage.h.

friend class WebCore::EditorClientQt
friend

Definition at line 437 of file qwebpage.h.

friend class WebCore::FrameLoaderClientQt
friend

Definition at line 438 of file qwebpage.h.

friend class WebCore::InspectorClientQt
friend

Definition at line 439 of file qwebpage.h.

friend class WebCore::InspectorServerRequestHandlerQt
friend

Definition at line 440 of file qwebpage.h.

friend class WebCore::InspectorFrontendClientQt
friend

Definition at line 441 of file qwebpage.h.

friend class WebCore::NotificationPresenterClientQt
friend

Definition at line 442 of file qwebpage.h.

friend class WebCore::GeolocationPermissionClientQt
friend

Definition at line 443 of file qwebpage.h.

friend class WebCore::ResourceHandle
friend

Definition at line 444 of file qwebpage.h.

friend class WebCore::QNetworkReplyHandler
friend

Definition at line 445 of file qwebpage.h.

friend class DumpRenderTreeSupportQt
friend

Definition at line 446 of file qwebpage.h.

Property Documentation

bool modified
read

Definition at line 73 of file qwebpage.h.

QString selectedText
read

Definition at line 74 of file qwebpage.h.

QString selectedHtml
read

Definition at line 75 of file qwebpage.h.

bool hasSelection
read

Definition at line 76 of file qwebpage.h.

QSize viewportSize
readwrite

Definition at line 77 of file qwebpage.h.

QSize preferredContentsSize
readwrite

Definition at line 78 of file qwebpage.h.

bool forwardUnsupportedContent
readwrite

Definition at line 79 of file qwebpage.h.

LinkDelegationPolicy linkDelegationPolicy
readwrite

Definition at line 80 of file qwebpage.h.

QPalette palette
readwrite

Definition at line 81 of file qwebpage.h.

bool contentEditable
readwrite

Definition at line 82 of file qwebpage.h.


The documentation for this class was generated from the following file: