Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Package QtWebKit

Classes

class  Global
 
class  QWebDatabase
 The QWebDatabase class provides access to HTML 5 databases created with JavaScript. More...
 
class  QWebElementCollection
 The QWebElementCollection class represents a collection of web elements. More...
 
class  QWebFrame
 The QWebFrame class represents a frame in a web page. More...
 
class  QWebHistory
 The QWebHistory class represents the history of a QWebPage More...
 
class  QWebHistoryInterface
 The QWebHistoryInterface class provides an interface to implement link history. More...
 
class  QWebHistoryInterfaceInternal
 
class  QWebHistoryItem
 The QWebHistoryItem class represents one item in the history of a QWebPage More...
 
class  QWebHitTestResult
 The QWebHitTestResult class provides information about the web page content after a hit test. More...
 
class  QWebInspector
 The QWebInspector class allows the placement and control of a QWebPage's inspector. The inspector can display a page's hierarchy, its loading statistics and the current state of its individual elements. It is mostly used by web developers. More...
 
class  QWebPage
 The QWebPage class provides an object to view and edit web documents. More...
 
class  QWebPluginFactory
 The QWebPluginFactory class is used to embed custom data types in web pages. More...
 
class  QWebPluginFactoryInternal
 
class  QWebSecurityOrigin
 The QWebSecurityOrigin class defines a security boundary for web sites. More...
 
class  QWebSettings
 The QWebSettings class provides an object to store the settings used by QWebPage and QWebFrame. More...
 
class  QWebView
 The QWebView class provides a widget that is used to view and edit web documents. More...
 
interface  IQWebFrameSignals
 
interface  IQWebHistoryInterfaceSignals
 
interface  IQWebInspectorSignals
 
interface  IQWebPageSignals
 
interface  IQWebPluginFactorySignals
 
interface  IQWebViewSignals
 

Typedefs

using firstTextInput = document.findFirst(&quot
 
using staticInterceptor = new SmokeInvocation(typeof(QWebElement), null)
 

Enumerations

enum  StyleResolveStrategy { CascadedStyle = 1, ComputedStyle = 2, InlineStyle = 0 }
  More...
 
enum  QtMsgType {
  QtCriticalMsg = 2, QtDebugMsg = 0, QtFatalMsg = 3, QtSystemMsg = 2,
  QtWarningMsg = 1
}
  More...
 
enum  QtValidLicenseForActiveQtModule { LicensedActiveQt = 1 }
 
enum  QtValidLicenseForCoreModule { LicensedCore = 1 }
 
enum  QtValidLicenseForDBusModule { LicensedDBus = 1 }
 
enum  QtValidLicenseForDeclarativeModule { LicensedDeclarative = 1 }
 
enum  QtValidLicenseForGuiModule { LicensedGui = 1 }
 
enum  QtValidLicenseForHelpModule { LicensedHelp = 1 }
 
enum  QtValidLicenseForMultimediaModule { LicensedMultimedia = 1 }
 
enum  QtValidLicenseForNetworkModule { LicensedNetwork = 1 }
 
enum  QtValidLicenseForOpenGLModule { LicensedOpenGL = 1 }
 
enum  QtValidLicenseForOpenVGModule { LicensedOpenVG = 1 }
 
enum  QtValidLicenseForQt3SupportLightModule { LicensedQt3SupportLight = 1 }
 
enum  QtValidLicenseForQt3SupportModule { LicensedQt3Support = 1 }
 
enum  QtValidLicenseForScriptModule { LicensedScript = 1 }
 
enum  QtValidLicenseForScriptToolsModule { LicensedScriptTools = 1 }
 
enum  QtValidLicenseForSqlModule { LicensedSql = 1 }
 
enum  QtValidLicenseForSvgModule { LicensedSvg = 1 }
 
enum  QtValidLicenseForTestModule { LicensedTest = 1 }
 
enum  QtValidLicenseForXmlModule { LicensedXml = 1 }
 
enum  QtValidLicenseForXmlPatternsModule { LicensedXmlPatterns = 1 }
 

Functions

</para > *< para > The first
list contains all span
elements in the document.The
second list contains span
elements that are children of
classified with intro.</para > *
< para > Using 
findFirst () is more efficient than calling findAll()
 
 documentElement ()
 
</para > *< para >
button.evaluateJavaScript & 
quot ()&quot;
 
</para > *< para > The
underlying content of
QWebElement is explicitly
shared.Creating a copy of a
QWebElement does not create a
copy of the content.both
instances point to the same
element.</para > *< para > The
contents of child elements can
be converted to plain text
with 
toPlainText ()
 
override bool Equals (object o)
 
override int GetHashCode ()
 
 QWebElement (System.Type dummy)
 
 QWebElement ()
  More...
 
 QWebElement (QWebElement other)
  More...
 
virtual void CreateProxy ()
 
new void AddClass (string name)
  More...
 
new void AppendInside (QWebElement element)
  More...
 
new void AppendInside (string markup)
  More...
 
new void AppendOutside (QWebElement element)
  More...
 
new void AppendOutside (string markup)
  More...
 
new string Attribute (string name, string defaultValue="")
  More...
 
new string AttributeNS (string namespaceUri, string name, string defaultValue="")
  More...
 
new
System.Collections.Generic.List
< string > 
AttributeNames (string namespaceUri="")
  More...
 
new void EncloseContentsWith (QWebElement element)
  More...
 
new void EncloseContentsWith (string markup)
  More...
 
new void EncloseWith (QWebElement element)
  More...
 
new void EncloseWith (string markup)
  More...
 
new object EvaluateJavaScript (string scriptSource)
  More...
 
new QWebElementCollection FindAll (string selectorQuery)
  More...
 
new QWebElement FindFirst (string selectorQuery)
  More...
 
new bool HasAttribute (string name)
  More...
 
new bool HasAttributeNS (string namespaceUri, string name)
  More...
 
new bool HasClass (string name)
  More...
 
static bool operator!= (QWebElement one, QWebElement o)
  More...
 
static bool operator== (QWebElement one, QWebElement o)
  More...
 
new void PrependInside (QWebElement element)
  More...
 
new void PrependInside (string markup)
  More...
 
new void PrependOutside (QWebElement element)
  More...
 
new void PrependOutside (string markup)
  More...
 
new void RemoveAllChildren ()
  More...
 
new void RemoveAttribute (string name)
  More...
 
new void RemoveAttributeNS (string namespaceUri, string name)
  More...
 
new void RemoveClass (string name)
  More...
 
new void RemoveFromDocument ()
  More...
 
new void Render (QPainter painter)
  More...
 
new void Render (QPainter painter, QRect clipRect)
  More...
 
new void Replace (QWebElement element)
  More...
 
new void Replace (string markup)
  More...
 
new void SetAttribute (string name, string value)
  More...
 
new void SetAttributeNS (string namespaceUri, string name, string value)
  More...
 
new void SetFocus ()
  More...
 
new void SetInnerXml (string markup)
  More...
 
new void SetOuterXml (string markup)
  More...
 
new void SetPlainText (string text)
  More...
 
new void SetStyleProperty (string name, string value)
  More...
 
new string StyleProperty (string name, QWebElement.StyleResolveStrategy strategy)
  More...
 
new QWebElement TakeFromDocument ()
  More...
 
new string ToInnerXml ()
  More...
 
new string ToOuterXml ()
  More...
 
new string ToPlainText ()
  More...
 
new void ToggleClass (string name)
  More...
 
 ~QWebElement ()
  More...
 
new void Dispose ()
 

Variables

</para > *< para ></para > *
< para > QWebElementCollection 
allSpans = document.findAll(&quot;span&quot;)
 The QWebElement class provides convenient access to DOM elements in a QWebFrame. More...
 
</para > *< para >
QWebElementCollection 
introSpans = document.findAll(&quot;p.intro span&quot;)
 
</para > *< para > The first
list contains all span
elements in the document.The
second list contains span
elements that are children of 
p
 
setHtml & quot
 
</para > *< para > QWebElement doc = frame-&gt
 
</para > *< para > QWebElement body = doc.firstChild()
 
</para > *< para > QWebElement firstParagraph = body.firstChild()
 
</para > *< para > QWebElement secondParagraph = firstParagraph.nextSibling()
 
</para > *< para > QString storedText = firstTextInput.attribute(&quot;value&quot;)
 
</para > *< para > When the
same page is later 
revisited
 
</para > *< para > When the
same page is later the browser
can fill in the text field
automatically by modifying the
value attribute of the input 
element
 
</para > *< para ></para > *
< para ></para > *< para >
QWebElement 
button = document.findFirst(&quot;input[type=submit]&quot;)
 
</para > *< para > The
underlying content of
QWebElement is explicitly
shared.Creating a copy of a
QWebElement does not create a
copy of the content. 
Instead
 
SmokeInvocation interceptor
 
System.IntPtr smokeObject
 

Typedef Documentation

using QtWebKit.firstTextInput = typedef document.findFirst(&quot
using QtWebKit.staticInterceptor = typedef new SmokeInvocation(typeof(QWebElement), null)

Enumeration Type Documentation

This enum describes the messages that can be sent to a message handler (QtMsgHandler). You can use the enum to identify and associate the various message types with the appropriate actions.

See also QtMsgHandler and qInstallMsgHandler().

Enumerator
QtCriticalMsg 

A message generated by the qCritical() function.

QtDebugMsg 

A message generated by the qDebug() function.

QtFatalMsg 

A message generated by the qFatal() function.

QtSystemMsg 
QtWarningMsg 

A message generated by the qWarning() function.

Enumerator
LicensedActiveQt 
Enumerator
LicensedCore 
Enumerator
LicensedDBus 
Enumerator
LicensedDeclarative 
Enumerator
LicensedGui 
Enumerator
LicensedHelp 
Enumerator
LicensedMultimedia 
Enumerator
LicensedNetwork 
Enumerator
LicensedOpenGL 
Enumerator
LicensedOpenVG 
Enumerator
LicensedQt3SupportLight 
Enumerator
LicensedQt3Support 
Enumerator
LicensedScript 
Enumerator
LicensedScriptTools 
Enumerator
LicensedSql 
Enumerator
LicensedSvg 
Enumerator
LicensedTest 
Enumerator
LicensedXml 
Enumerator
LicensedXmlPatterns 

This enum describes how QWebElement's styleProperty resolves the given property name.

Enumerator
CascadedStyle 

The property's value is determined using the inheritance and importance rules defined in the document's stylesheet.

ComputedStyle 

The property's value is the absolute value of the style property resolved from the environment.

InlineStyle 

Return the property value as it is defined in the element, without respecting style inheritance and other CSS rules.

Function Documentation

new void QtWebKit.AddClass ( string  name)

Adds the specified class with the given name to the element.

new void QtWebKit.AppendInside ( QWebElement  element)

Appends the given element as the element's last child.

If element is the child of another element, it is re-parented to this element. If element is a child of this element, then its position in the list of children is changed.

Calling this function on a null element does nothing.

See also prependInside(), prependOutside(), and appendOutside().

Here is the call graph for this function:

new void QtWebKit.AppendInside ( string  markup)

Appends the result of parsing markup as the element's last child.

Calling this function on a null element does nothing.

See also prependInside(), prependOutside(), and appendOutside().

new void QtWebKit.AppendOutside ( QWebElement  element)

Inserts the given element after this element.

If element is the child of another element, it is re-parented to the parent of this element.

Calling this function on a null element does nothing.

See also appendInside(), prependInside(), and prependOutside().

Here is the call graph for this function:

new void QtWebKit.AppendOutside ( string  markup)

Inserts the result of parsing markup after this element.

Calling this function on a null element does nothing.

See also appendInside(), prependInside(), and prependOutside().

new string QtWebKit.Attribute ( string  name,
string  defaultValue = "" 
)

Returns the attribute with the given name. If the attribute does not exist, defaultValue is returned.

See also setAttribute(), setAttributeNS(), and attributeNS().

new System.Collections.Generic.List<string> QtWebKit.AttributeNames ( string  namespaceUri = "")

Return the list of attributes for the namespace given as namespaceUri.

See also attribute() and setAttribute().

new string QtWebKit.AttributeNS ( string  namespaceUri,
string  name,
string  defaultValue = "" 
)

Returns the attribute with the given name in namespaceUri. If the attribute does not exist, defaultValue is returned.

See also setAttributeNS(), setAttribute(), and attribute().

virtual void QtWebKit.CreateProxy ( )
virtual

Here is the call graph for this function:

Here is the caller graph for this function:

new void QtWebKit.Dispose ( )
QtWebKit.documentElement ( )
new void QtWebKit.EncloseContentsWith ( QWebElement  element)

Encloses the contents of this element with element. This element becomes the child of the deepest descendant within element.

### illustration

See also encloseWith().

Here is the call graph for this function:

new void QtWebKit.EncloseContentsWith ( string  markup)

Encloses the contents of this element with the result of parsing markup. This element becomes the child of the deepest descendant within markup.

See also encloseWith().

new void QtWebKit.EncloseWith ( QWebElement  element)

Encloses this element with element. This element becomes the child of the deepest descendant within element.

See also replace().

Here is the call graph for this function:

new void QtWebKit.EncloseWith ( string  markup)

Encloses this element with the result of parsing markup. This element becomes the child of the deepest descendant within markup.

See also replace().

override bool QtWebKit.Equals ( object  o)

Here is the call graph for this function:

new object QtWebKit.EvaluateJavaScript ( string  scriptSource)

Executes scriptSource with this element as this object.

new QWebElementCollection QtWebKit.FindAll ( string  selectorQuery)

Returns a new list of child elements matching the given CSS selector selectorQuery. If there are no matching elements, an empty list is returned.

Standard CSS2 selector syntax is used for the query.

Note: This search is performed recursively.

See also findFirst().

</para> *<para> The first list contains all span elements in the document.The second list contains span elements that are children of classified with intro.</para> *<para> Using QtWebKit.findFirst ( )
new QWebElement QtWebKit.FindFirst ( string  selectorQuery)

Returns the first child element that matches the given CSS selector selectorQuery.

Standard CSS2 selector syntax is used for the query.

Note: This search is performed recursively.

See also findAll().

Here is the call graph for this function:

override int QtWebKit.GetHashCode ( )
new bool QtWebKit.HasAttribute ( string  name)

Returns true if this element has an attribute with the given name; otherwise returns false.

See also attribute() and setAttribute().

new bool QtWebKit.HasAttributeNS ( string  namespaceUri,
string  name 
)

Returns true if this element has an attribute with the given name, in namespaceUri; otherwise returns false.

See also attributeNS() and setAttributeNS().

new bool QtWebKit.HasClass ( string  name)

Returns true if this element has a class with the given name; otherwise returns false.

static bool QtWebKit.operator!= ( QWebElement  one,
QWebElement  o 
)
static

Returns true if this element points to a different underlying DOM object than o; otherwise returns false.

Here is the call graph for this function:

static bool QtWebKit.operator== ( QWebElement  one,
QWebElement  o 
)
static

Returns true if this element points to the same underlying DOM object as o; otherwise returns false.

Here is the call graph for this function:

new void QtWebKit.PrependInside ( QWebElement  element)

Prepends element as the element's first child.

If element is the child of another element, it is re-parented to this element. If element is a child of this element, then its position in the list of children is changed.

Calling this function on a null element does nothing.

See also appendInside(), prependOutside(), and appendOutside().

Here is the call graph for this function:

new void QtWebKit.PrependInside ( string  markup)

Prepends the result of parsing markup as the element's first child.

Calling this function on a null element does nothing.

See also appendInside(), prependOutside(), and appendOutside().

new void QtWebKit.PrependOutside ( QWebElement  element)

Inserts the given element before this element.

If element is the child of another element, it is re-parented to the parent of this element.

Calling this function on a null element does nothing.

See also appendInside(), prependInside(), and appendOutside().

Here is the call graph for this function:

new void QtWebKit.PrependOutside ( string  markup)

Inserts the result of parsing markup before this element.

Calling this function on a null element does nothing.

See also appendInside(), prependInside(), and appendOutside().

</para> *<para> button.evaluateJavaScript& QtWebKit.quot ( )
QtWebKit.QWebElement ( System.Type  dummy)
protected

Here is the caller graph for this function:

QtWebKit.QWebElement ( )

Constructs a null web element.

Here is the call graph for this function:

QtWebKit.QWebElement ( QWebElement  other)

Constructs a copy of other.

Here is the call graph for this function:

new void QtWebKit.RemoveAllChildren ( )

Removes all children from this element.

See also removeFromDocument() and takeFromDocument().

new void QtWebKit.RemoveAttribute ( string  name)

Removes the attribute with the given name from this element.

See also attribute(), setAttribute(), and hasAttribute().

new void QtWebKit.RemoveAttributeNS ( string  namespaceUri,
string  name 
)

Removes the attribute with the given name, in namespaceUri, from this element.

See also attributeNS(), setAttributeNS(), and hasAttributeNS().

new void QtWebKit.RemoveClass ( string  name)

Removes the specified class with the given name from the element.

new void QtWebKit.RemoveFromDocument ( )

Removes this element from the document and makes it a null element.

See also removeAllChildren() and takeFromDocument().

new void QtWebKit.Render ( QPainter  painter)

Render the element into painter .

new void QtWebKit.Render ( QPainter  painter,
QRect  clipRect 
)

Render the element into painter clipping to clip.

new void QtWebKit.Replace ( QWebElement  element)

Replaces this element with element.

This method will not replace the <html>, <head> or <body> elements.

See also encloseWith().

Here is the call graph for this function:

new void QtWebKit.Replace ( string  markup)

Replaces this element with the result of parsing markup.

This method will not replace the <html>, <head> or <body> elements.

See also encloseWith().

new void QtWebKit.SetAttribute ( string  name,
string  value 
)

Adds an attribute with the given name and value. If an attribute with the same name exists, its value is replaced by value.

See also attribute(), attributeNS(), and setAttributeNS().

new void QtWebKit.SetAttributeNS ( string  namespaceUri,
string  name,
string  value 
)

Adds an attribute with the given name in namespaceUri with value. If an attribute with the same name exists, its value is replaced by value.

See also attributeNS(), attribute(), and setAttribute().

new void QtWebKit.SetFocus ( )

Gives keyboard input focus to this element

See also hasFocus().

new void QtWebKit.SetInnerXml ( string  markup)

Replaces the contents of this element with markup. The string may contain HTML or XML tags, which is parsed and formatted before insertion into the document.

Note: This is currently implemented for (X)HTML elements only.

See also toInnerXml(), toOuterXml(), and setOuterXml().

new void QtWebKit.SetOuterXml ( string  markup)

Replaces the contents of this element as well as its own tag with markup. The string may contain HTML or XML tags, which is parsed and formatted before insertion into the document.

Note: This is currently only implemented for (X)HTML elements.

See also toOuterXml(), toInnerXml(), and setInnerXml().

new void QtWebKit.SetPlainText ( string  text)

Replaces the existing content of this element with text.

This is equivalent to setting the HTML innerText property.

See also toPlainText().

new void QtWebKit.SetStyleProperty ( string  name,
string  value 
)

Sets the value of the inline style with the given name to value.

Setting a value, does not necessarily mean that it will become the applied value, due to the fact that the style property's value might have been set earlier with a higher priority in external or embedded style declarations.

In order to ensure that the value will be applied, you may have to append "!important" to the value.

See also styleProperty().

new string QtWebKit.StyleProperty ( string  name,
QWebElement.StyleResolveStrategy  strategy 
)

Returns the value of the style with the given name using the specified strategy. If a style with name does not exist, an empty string is returned.

In CSS, the cascading part depends on which CSS rule has priority and is thus applied. Generally, the last defined rule has priority. Thus, an inline style rule has priority over an embedded block style rule, which in return has priority over an external style rule.

If the "!important" declaration is set on one of those, the declaration receives highest priority, unless other declarations also use the "!important" declaration. Then, the last "!important" declaration takes predecence.

See also setStyleProperty().

Here is the call graph for this function:

new QWebElement QtWebKit.TakeFromDocument ( )

Removes this element from the document and returns a reference to it.

The element is still valid after removal, and can be inserted into other parts of the document.

See also removeAllChildren() and removeFromDocument().

Here is the call graph for this function:

new void QtWebKit.ToggleClass ( string  name)

Adds the specified class with the given name if it is not present. If the class is already present, it will be removed.

new string QtWebKit.ToInnerXml ( )

Returns the XML content between the element's start and end tags.

Note: This is currently implemented for (X)HTML elements only.

Note: The format of the markup returned will obey the namespace of the document containing the element. This means the return value will obey XML formatting rules, such as self-closing tags, only if the document is 'text/xhtml+xml'.

See also setInnerXml(), setOuterXml(), and toOuterXml().

new string QtWebKit.ToOuterXml ( )

Returns this element converted to XML, including the start and the end tags as well as its attributes.

Note: This is currently implemented for (X)HTML elements only.

Note: The format of the markup returned will obey the namespace of the document containing the element. This means the return value will obey XML formatting rules, such as self-closing tags, only if the document is 'text/xhtml+xml'.

See also setOuterXml(), setInnerXml(), and toInnerXml().

</para> *<para> The underlying content of QWebElement is explicitly shared.Creating a copy of a QWebElement does not create a copy of the content.both instances point to the same element.</para> *<para> The contents of child elements can be converted to plain text with QtWebKit.toPlainText ( )
new string QtWebKit.ToPlainText ( )

Returns the text between the start and the end tag of this element.

This is equivalent to reading the HTML innerText property.

See also setPlainText().

QtWebKit.~QWebElement ( )

Destroys the element. However, the underlying DOM element is not destroyed.

Variable Documentation

</para> *<para></para> *<para> QWebElementCollection QtWebKit.allSpans = document.findAll(&quot;span&quot;)

The QWebElement class provides convenient access to DOM elements in a QWebFrame.

A QWebElement object allows easy access to the document model, represented by a tree-like structure of DOM elements. The root of the tree is called the document element and can be accessed using QWebFrame::documentElement().

Specific elements can be accessed using findAll() and findFirst(). These elements are identified using CSS selectors. The code snippet below demonstrates the use of findAll().

QWebElement document = frame->documentElement();

/* Assume the document has the following structure:

<p class=intro>

<span>Intro</span>

<span>Snippets</span>

</p>

<p>

<span>Content</span>

<span>Here</span>

</p>

</para> *<para> QWebElement QtWebKit.body = doc.firstChild()
</para> *<para></para> *<para></para> *<para> QWebElement QtWebKit.button = document.findFirst(&quot;input[type=submit]&quot;)
</para> *<para> QWebElement QtWebKit.doc = frame-&gt
</para> *<para> When the same page is later the browser can fill in the text field automatically by modifying the value attribute of the input QtWebKit.element
</para> *<para> QWebElement QtWebKit.firstParagraph = body.firstChild()
</para> *<para> The underlying content of QWebElement is explicitly shared.Creating a copy of a QWebElement does not create a copy of the content. QtWebKit.Instead
SmokeInvocation QtWebKit.interceptor
</para> *<para> QWebElementCollection QtWebKit.introSpans = document.findAll(&quot;p.intro span&quot;)
</para> *<para> The first list contains all span elements in the document.The second list contains span elements that are children of QtWebKit.p
</para > *< para > textInput setAttribute & QtWebKit.quot
</para> *<para> When the same page is later QtWebKit.revisited
</para> *<para> QWebElement QtWebKit.secondParagraph = firstParagraph.nextSibling()
System.IntPtr QtWebKit.smokeObject
</para> *<para> QString QtWebKit.storedText = firstTextInput.attribute(&quot;value&quot;)