C# Класс Kimono.KHTMLPart

Наследование: KParts.ReadOnlyPart, IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Begin void
Begin void
Begin void
Begin void
CloseUrl bool
CreatePart KParts.ReadOnlyPart
CustomEvent void
DoCloseStream bool
DoOpenStream bool
DoWriteStream bool
End void
GuiActivateEvent void
OpenFile bool
OpenUrl bool
RestoreState void
SaveState void
SelectedText string
SetActiveNode void
SetCaretMode void
SetCaretVisible void
SetEditable void
ShowError void
SlotFinished void
StartingJob void
StopAnimations void
SubmitFormProxy void
SubmitFormProxy void
SubmitFormProxy void
TimerEvent void
UrlSelected bool
UrlSelected bool
UrlSelected bool
Write void
Write void

Открытые методы

Метод Описание
ActiveNode ( ) : DOM.Node Returns the node that has the keyboard focus.
AutoloadImages ( ) : bool Returns whether images contained in the document are loaded automatically or not. @note that the returned information is unrelieable as long as no begin() was called.
BackgroundURL ( ) : Kimono.KUrl Returns the URL for the background Image (used by save background)
BaseURL ( ) : Kimono.KUrl
BrowserExtension ( ) : KParts.BrowserExtension Returns a pointer to the KParts.BrowserExtension.
BrowserHostExtension ( ) : KParts.BrowserHostExtension
CaretDisplayPolicyNonFocused ( ) : KHTMLPart.CaretDisplayPolicy Returns the current caret policy when the view is not focused.
CurrentFrame ( ) : KParts.ReadOnlyPart Return the current frame (the one that has focus) Not necessarily a direct child of ours, framesets can be nested. Returns "this" if this part isn't a frameset.
Dispose ( ) : void
Document ( ) : DOM.Document Returns a reference to the DOM document.
DocumentSource ( ) : string Returns the content of the source document.
ExecuteScript ( DOM n, string script ) : Qyoto.QVariant Same as executeScript( string ) except with the Node parameter specifying the 'this' value.
FindFrame ( string f ) : KHTMLPart Finds a frame by name. Returns null if frame can't be found.
FindFrameParent ( KParts callingPart, string f ) : KHTMLPart Recursively finds the part containing the frame with name f and checks if it is accessible by callingPart Returns null if no suitable frame can't be found. Returns parent part if a suitable frame was found and frame info in childFrame
FindFramePart ( string f ) : KParts.ReadOnlyPart Returns child frame framePart its script interpreterFinds a frame by name. Returns null if frame can't be found.
FindText ( ) : void Starts a new search by popping up a dialog asking the user what he wants to search for.
FindText ( string str, long options ) : void
FindText ( string str, long options, QWidget parent ) : void
FindText ( string str, long options, QWidget parent, Kimono.KFindDialog findDialog ) : void Starts a new search, but bypasses the user dialog. name="str" The string to search for. name="options" Find options. name="parent" Parent used for centering popups like "string not found". name="findDialog" Optionally, you can supply your own dialog.
FindTextBegin ( ) : void Initiates a text search.
FindTextNext ( ) : bool
FindTextNext ( bool reverse ) : bool Finds the next occurrence of a string set by name="reverse" if true, revert seach direction (only if no find dialog is used)
FontScaleFactor ( ) : int Returns the current font scale factor.
FrameExists ( string frameName ) : bool Returns whether a frame with the specified name is exists or not. In contrast to the findFrame method this one also returns true if the frame is defined but no displaying component has been found/loaded, yet.
FrameNames ( ) : List Returns a list of names of all frame (including iframe) objects of the current document. Note that this method is not working recursively for sub-frames.
Frames ( ) : List
GotoAnchor ( string name ) : bool Finds the anchor named name. If the anchor is found, the widget scrolls to the closest position. Returns if the anchor has been found.
HasSelection ( ) : bool Has the user selected anything? Call selectedText() to retrieve the selected text.
Hide ( ) : void Convenience method to hide the document's view. Equivalent to widget().Hide() or view().Hide().
HtmlDocument ( ) : DOM.HTMLDocument Returns a reference to the DOM HTML document (for non-HTML documents, returns null)
InProgress ( ) : bool
IsCaretMode ( ) : bool Returns whether caret mode is on/off.
IsEditable ( ) : bool Returns true if the document is editable, false otherwise.
IsPointInsideSelection ( int x, int y ) : bool Returns whether the given point is inside the current selection. The coordinates are content-coordinates.
JsDefaultStatusBarText ( ) : string Called by KJS. Returns the DefaultStatusBarText assigned via window.defaultStatus
JsStatusBarText ( ) : string Called by KJS. Returns the StatusBarText assigned via window.status
KHTMLPart ( ) : System
KHTMLPart ( Kimono.KHTMLView view ) : System
KHTMLPart ( Kimono.KHTMLView view, QObject parent ) : System
KHTMLPart ( Kimono.KHTMLView view, QObject parent, KHTMLPart prof ) : System Constructs a new KHTMLPart. This constructor is useful if you wish to subclass KHTMLView. If the view passed as first argument to the constructor was built with a null KHTMLPart pointer, then the newly created KHTMLPart will be assigned as the view's part. Therefore, you might either initialize the view as part of the initialization list of your derived KHTMLPart class constructor:
 MyKHTMLPart(), ... 
Or separately build the KHTMLView beforehand:
 KHTMLView  v = KHTMLView( null, parentWidget()); KHTMLPart  p = KHTMLPart( v ); // p will be assigned to v, so that v.Part() == p 
KHTMLPart ( QWidget parentWidget ) : System
KHTMLPart ( QWidget parentWidget, QObject parent ) : System
KHTMLPart ( QWidget parentWidget, QObject parent, KHTMLPart prof ) : System Constructs a new KHTMLPart. KHTML basically consists of two objects: The KHTMLPart itself, holding the document data (DOM document), and the KHTMLView, derived from QScrollArea, in which the document content is rendered in. You can specify two different parent objects for a KHTMLPart, one parent for the KHTMLPart document and one parent for the KHTMLView. If the second parent argument is null, then parentWidget is used as parent for both objects, the part and the view.
NextAnchor ( ) : bool Go to the next anchor This is useful to navigate from outside the navigator
NodeUnderMouse ( ) : DOM.Node Returns the Node currently under the mouse. The returned node may be a shared node (e. g. an \ node if the mouse is hovering over an image map).
NonSharedNodeUnderMouse ( ) : DOM.Node Returns the Node currently under the mouse that is not shared. The returned node is always the node that is physically under the mouse pointer (irrespective of logically overlying elements like, e. g., \ on image maps).
OnlyLocalReferences ( ) : bool Returns whether only file:/ or data:/ references are allowed to be loaded ( default false ). See setOnlyLocalReferences.
PageReferrer ( ) : string Referrer used to obtain this page.
Paint ( QPainter arg1, Qyoto.QRect arg2 ) : void
Paint ( QPainter arg1, Qyoto.QRect arg2, int arg3 ) : void
Paint ( QPainter arg1, Qyoto.QRect arg2, int arg3, bool &arg4 ) : void Paints the HTML page to a QPainter. See KHTMLView.Paint for details
ParentPart ( ) : KHTMLPart Returns a pointer to the parent KHTMLPart if the part is a frame in an HTML frameset. Returns null otherwise.
PartManager ( ) : KParts.PartManager Returns a reference to the partmanager instance which manages html frame objects.
PreloadScript ( string url, string script ) : void Loads a script into the script cache.
PreloadStyleSheet ( string url, string stylesheet ) : void Loads a style sheet into the stylesheet cache.
PrevAnchor ( ) : bool Go to previous anchor
Referrer ( ) : string Referrer used for links in this page.
Restored ( ) : bool
ScheduleRedirection ( int delay, string url ) : void
ScheduleRedirection ( int delay, string url, bool lockHistory ) : void Schedules a redirection after delay seconds.
SelectAll ( ) : void Returns the instance of the attached html editor interface.Marks all text in the document as selected.
SelectedTextAsHTML ( ) : string Return the text the user has marked. This is guaranteed to be valid xml, and to contain the \ and \ tags. FIXME probably should make for 4.0 ?
Selection ( ) : DOM.Range Returns the selected part of the HTML.
Selection ( DOM startNode, long startOffset, DOM endNode, long endOffset ) : void Returns the selected part of the HTML by returning the starting and end position. If there is no selection, both nodes and offsets are equal. name="startNode" returns node selection starts in name="startOffset" returns offset within starting node name="endNode" returns node selection ends in name="endOffset" returns offset within end node.
SetAlwaysHonourDoctype ( ) : void
SetAlwaysHonourDoctype ( bool b ) : void Sets whether the document's Doctype should always be used to determine the parsing mode for the document. Without this, parsing will be forced to strict mode when using the write( stringstr ) method for backward compatibility reasons.
SetAutoloadImages ( bool enable ) : void Specifies whether images contained in the document should be loaded automatically or not. @note Request will be ignored if called before begin().
SetCaretDisplayPolicyNonFocused ( KHTMLPart policy ) : void Sets the caret display policy when the view is not focused. Whenever the caret is in use, this property determines how the caret should be displayed when the document view is not focused. The default policy is CaretInvisible. name="policy" new display policy
SetCaretPosition ( DOM node, long offset ) : void
SetCaretPosition ( DOM node, long offset, bool extendSelection ) : void Sets the caret to the given position. If the given location is invalid, it will snap to the nearest valid location. Immediately afterwards a caretPositionChanged signal containing the effective position is emitted name="node" node to set to name="offset" zero-based offset within the node name="extendSelection" If true, a selection will be spanned from the last caret position to the given one. Otherwise, any existing selection will be deselected.
SetEncoding ( string name ) : bool
SetEncoding ( string name, bool arg2 ) : bool Sets the encoding the page uses. This can be different from the charset. The widget will try to reload the current page in the new encoding, if url() is not empty.
SetFixedFont ( string name ) : void Sets the fixed font style. name="name" The font name to use for fixed text, e.g. the <pre> tag.
SetFontScaleFactor ( int percent ) : void Sets the scale factor to be applied to fonts. The value is given in percent, larger values mean generally larger fonts. The given value should be in the range of 20..300, values outside that range are not guaranteed to work. A value of 100 will disable all scaling of font sizes and show the page with the sizes determined via the given lengths in the stylesheets.
SetFormNotification ( KHTMLPart fn ) : void Determine if signal should be emitted before, instead or never when a submitForm() happens. ### KDE5 remove me
SetJSDefaultStatusBarText ( string text ) : void Called by KJS. Sets the DefaultStatusBarText assigned via window.defaultStatus
SetJSStatusBarText ( string text ) : void Called by KJS. Sets the StatusBarText assigned via window.status
SetOnlyLocalReferences ( bool enable ) : void Security option. Specify whether only file:/ or data:/ urls are allowed to be loaded without user confirmation by KHTML. ( for example referenced by stylesheets, images, scripts, subdocuments, embedded elements ). This option is mainly intended for enabling the "mail reader mode", where you load untrusted content with a file:/ url. Please note that enabling this option currently automatically disables Javascript, Java and Plugins support. This might change in the future if the security model is becoming more sophisticated, so don't rely on this behaviour. ( default false - everything is loaded unless forbidden by KApplication.AuthorizeURLAction).
SetSelection ( DOM arg1 ) : void Sets the current selection.
SetStandardFont ( string name ) : void Sets the standard font style. name="name" The font name to use for standard text.
SetStatusMessagesEnabled ( bool enable ) : void Returns the JavaScript interpreter the part is using. This method is mainly intended for applications which embed and extend the part and provides a mechanism for adding additional native objects to the interpreter (or removing the built-ins). One thing people using this method to add things to the interpreter must consider, is that when you start writing new content to the part, the interpreter is cleared. This includes both use of the begin( KUrl, int, int ) method, and the openUrl( KUrl ) method. If you want your objects to have a longer lifespan, then you must retain a KJS.Object yourself to ensure that the reference count of your custom objects never reaches 0. You will also need to re-add your bindings every time this happens - one way to detect the need for this is to connect to the docCreated() signal, another is to reimplement the begin() method.Enable/disable statusbar messages. When this class wants to set the statusbar text, it emits setStatusBarText(string text) If you want to catch this for your own statusbar, note that it returns back a rich text string, starting with "". This you need to either pass this into your own QLabel or to strip out the tags before passing it to QStatusBar.Message(string message)
SetSuppressedPopupIndicator ( bool enable ) : void
SetSuppressedPopupIndicator ( bool enable, KHTMLPart originPart ) : void Shows or hides the suppressed popup indicator
SetURLCursor ( QCursor c ) : void Sets the cursor to use when the cursor is on a link.
SetUserStyleSheet ( Kimono.KUrl url ) : void Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. This gives a wide range of possibilities to change the layout of the page. To have an effect this function has to be called after calling begin().
SetUserStyleSheet ( string styleSheet ) : void Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. This gives a wide range of possibilities to change the layout of the page. To have an effect this function has to be called after calling begin().
SetZoomFactor ( int percent ) : void Sets the Zoom factor. The value is given in percent, larger values mean a generally larger font and larger page contents. The given value should be in the range of 20..300, values outside that range are not guaranteed to work. A value of 100 will disable all zooming and show the page with the sizes determined via the given lengths in the stylesheets.
Settings ( ) : Kimono.KHTMLSettings
Show ( ) : void Convenience method to show the document's view. Equivalent to widget().Show() or view().Show() .
StatusMessagesEnabled ( ) : bool Returns true if status messages are enabled.
ToplevelURL ( ) : Kimono.KUrl Returns the toplevel (origin) URL of this document, even if this part is a frame or an iframe.
UrlCursor ( ) : QCursor Returns the cursor which is used when the cursor is on a link.
View ( ) : Kimono.KHTMLView Returns a pointer to the HTML document's view.
ZoomFactor ( ) : int Returns the current zoom factor.
formNotification ( ) : KHTMLPart.FormNotification Determine if signal should be emitted before, instead or never when a submitForm() happens. ### KDE5 remove me

Защищенные методы

Метод Описание
CompleteURL ( string url ) : Kimono.KUrl returns a KUrl object for the given url. Use when you know what you're doing.
CreateProxy ( ) : void
HtmlError ( int errorCode, string text, Kimono.KUrl reqUrl ) : void presents a detailed error message to the user. errorCode kio error code, eg KIO.ERR_SERVER_TIMEOUT. text kio additional information text. url the url that triggered the error.
KHTMLPart ( Type dummy ) : System
PluginPageQuestionAsked ( string mimetype ) : bool
SetPluginPageQuestionAsked ( string mimetype ) : void

Приватные методы

Метод Описание
Begin ( ) : void
Begin ( Kimono.KUrl url ) : void
Begin ( Kimono.KUrl url, int xOffset ) : void
Begin ( Kimono.KUrl url, int xOffset, int yOffset ) : void
CloseUrl ( ) : bool
CreatePart ( QWidget parentWidget, QObject parent, string mimetype, StringBuilder serviceName, List serviceTypes, List arg6 ) : KParts.ReadOnlyPart
CustomEvent ( Qyoto.QEvent arg1 ) : void
DoCloseStream ( ) : bool
DoOpenStream ( string mimeType ) : bool
DoWriteStream ( Qyoto.QByteArray data ) : bool
End ( ) : void
GuiActivateEvent ( KParts arg1 ) : void
OpenFile ( ) : bool
OpenUrl ( Kimono.KUrl url ) : bool
RestoreState ( QDataStream stream ) : void
SaveState ( QDataStream stream ) : void
SelectedText ( ) : string
SetActiveNode ( DOM node ) : void
SetCaretMode ( bool enable ) : void
SetCaretVisible ( bool show ) : void
SetEditable ( bool enable ) : void
ShowError ( Kimono.KJob job ) : void
SlotFinished ( Kimono.KJob arg1 ) : void
StartingJob ( KIO arg1 ) : void
StopAnimations ( ) : void
SubmitFormProxy ( string action, string url, Qyoto.QByteArray formData, string target ) : void
SubmitFormProxy ( string action, string url, Qyoto.QByteArray formData, string target, string contentType ) : void
SubmitFormProxy ( string action, string url, Qyoto.QByteArray formData, string target, string contentType, string boundary ) : void
TimerEvent ( Qyoto.QTimerEvent arg1 ) : void
UrlSelected ( string url, int button, int state, string _target ) : bool
UrlSelected ( string url, int button, int state, string _target, KParts args ) : bool
UrlSelected ( string url, int button, int state, string _target, KParts args, KParts browserArgs ) : bool
Write ( string str ) : void
Write ( string str, int len ) : void

Описание методов

ActiveNode() публичный Метод

Returns the node that has the keyboard focus.
public ActiveNode ( ) : DOM.Node
Результат DOM.Node

AutoloadImages() публичный Метод

Returns whether images contained in the document are loaded automatically or not. @note that the returned information is unrelieable as long as no begin() was called.
public AutoloadImages ( ) : bool
Результат bool

BackgroundURL() публичный Метод

Returns the URL for the background Image (used by save background)
public BackgroundURL ( ) : Kimono.KUrl
Результат Kimono.KUrl

BaseURL() публичный Метод

public BaseURL ( ) : Kimono.KUrl
Результат Kimono.KUrl

BrowserExtension() публичный Метод

Returns a pointer to the KParts.BrowserExtension.
public BrowserExtension ( ) : KParts.BrowserExtension
Результат KParts.BrowserExtension

BrowserHostExtension() публичный Метод

public BrowserHostExtension ( ) : KParts.BrowserHostExtension
Результат KParts.BrowserHostExtension

CaretDisplayPolicyNonFocused() публичный Метод

Returns the current caret policy when the view is not focused.
public CaretDisplayPolicyNonFocused ( ) : KHTMLPart.CaretDisplayPolicy
Результат KHTMLPart.CaretDisplayPolicy

CompleteURL() защищенный Метод

returns a KUrl object for the given url. Use when you know what you're doing.
protected CompleteURL ( string url ) : Kimono.KUrl
url string
Результат Kimono.KUrl

CreateProxy() защищенный Метод

protected CreateProxy ( ) : void
Результат void

CurrentFrame() публичный Метод

Return the current frame (the one that has focus) Not necessarily a direct child of ours, framesets can be nested. Returns "this" if this part isn't a frameset.
public CurrentFrame ( ) : KParts.ReadOnlyPart
Результат KParts.ReadOnlyPart

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Document() публичный Метод

Returns a reference to the DOM document.
public Document ( ) : DOM.Document
Результат DOM.Document

DocumentSource() публичный Метод

Returns the content of the source document.
public DocumentSource ( ) : string
Результат string

ExecuteScript() публичный Метод

Same as executeScript( string ) except with the Node parameter specifying the 'this' value.
public ExecuteScript ( DOM n, string script ) : Qyoto.QVariant
n DOM
script string
Результат Qyoto.QVariant

FindFrame() публичный Метод

Finds a frame by name. Returns null if frame can't be found.
public FindFrame ( string f ) : KHTMLPart
f string
Результат KHTMLPart

FindFrameParent() публичный Метод

Recursively finds the part containing the frame with name f and checks if it is accessible by callingPart Returns null if no suitable frame can't be found. Returns parent part if a suitable frame was found and frame info in childFrame
public FindFrameParent ( KParts callingPart, string f ) : KHTMLPart
callingPart KParts
f string
Результат KHTMLPart

FindFramePart() публичный Метод

Returns child frame framePart its script interpreter Finds a frame by name. Returns null if frame can't be found.
public FindFramePart ( string f ) : KParts.ReadOnlyPart
f string
Результат KParts.ReadOnlyPart

FindText() публичный Метод

Starts a new search by popping up a dialog asking the user what he wants to search for.
public FindText ( ) : void
Результат void

FindText() публичный Метод

public FindText ( string str, long options ) : void
str string
options long
Результат void

FindText() публичный Метод

public FindText ( string str, long options, QWidget parent ) : void
str string
options long
parent Qyoto.QWidget
Результат void

FindText() публичный Метод

Starts a new search, but bypasses the user dialog. name="str" The string to search for. name="options" Find options. name="parent" Parent used for centering popups like "string not found". name="findDialog" Optionally, you can supply your own dialog.
public FindText ( string str, long options, QWidget parent, Kimono.KFindDialog findDialog ) : void
str string
options long
parent Qyoto.QWidget
findDialog Kimono.KFindDialog
Результат void

FindTextBegin() публичный Метод

Initiates a text search.
public FindTextBegin ( ) : void
Результат void

FindTextNext() публичный Метод

public FindTextNext ( ) : bool
Результат bool

FindTextNext() публичный Метод

Finds the next occurrence of a string set by name="reverse" if true, revert seach direction (only if no find dialog is used)
public FindTextNext ( bool reverse ) : bool
reverse bool
Результат bool

FontScaleFactor() публичный Метод

Returns the current font scale factor.
public FontScaleFactor ( ) : int
Результат int

FrameExists() публичный Метод

Returns whether a frame with the specified name is exists or not. In contrast to the findFrame method this one also returns true if the frame is defined but no displaying component has been found/loaded, yet.
public FrameExists ( string frameName ) : bool
frameName string
Результат bool

FrameNames() публичный Метод

Returns a list of names of all frame (including iframe) objects of the current document. Note that this method is not working recursively for sub-frames.
public FrameNames ( ) : List
Результат List

Frames() публичный Метод

public Frames ( ) : List
Результат List

GotoAnchor() публичный Метод

Finds the anchor named name. If the anchor is found, the widget scrolls to the closest position. Returns if the anchor has been found.
public GotoAnchor ( string name ) : bool
name string
Результат bool

HasSelection() публичный Метод

Has the user selected anything? Call selectedText() to retrieve the selected text.
public HasSelection ( ) : bool
Результат bool

Hide() публичный Метод

Convenience method to hide the document's view. Equivalent to widget().Hide() or view().Hide().
public Hide ( ) : void
Результат void

HtmlDocument() публичный Метод

Returns a reference to the DOM HTML document (for non-HTML documents, returns null)
public HtmlDocument ( ) : DOM.HTMLDocument
Результат DOM.HTMLDocument

HtmlError() защищенный Метод

presents a detailed error message to the user. errorCode kio error code, eg KIO.ERR_SERVER_TIMEOUT. text kio additional information text. url the url that triggered the error.
protected HtmlError ( int errorCode, string text, Kimono.KUrl reqUrl ) : void
errorCode int
text string
reqUrl Kimono.KUrl
Результат void

InProgress() публичный Метод

public InProgress ( ) : bool
Результат bool

IsCaretMode() публичный Метод

Returns whether caret mode is on/off.
public IsCaretMode ( ) : bool
Результат bool

IsEditable() публичный Метод

Returns true if the document is editable, false otherwise.
public IsEditable ( ) : bool
Результат bool

IsPointInsideSelection() публичный Метод

Returns whether the given point is inside the current selection. The coordinates are content-coordinates.
public IsPointInsideSelection ( int x, int y ) : bool
x int
y int
Результат bool

JsDefaultStatusBarText() публичный Метод

Called by KJS. Returns the DefaultStatusBarText assigned via window.defaultStatus
public JsDefaultStatusBarText ( ) : string
Результат string

JsStatusBarText() публичный Метод

Called by KJS. Returns the StatusBarText assigned via window.status
public JsStatusBarText ( ) : string
Результат string

KHTMLPart() публичный Метод

public KHTMLPart ( ) : System
Результат System

KHTMLPart() публичный Метод

public KHTMLPart ( Kimono.KHTMLView view ) : System
view Kimono.KHTMLView
Результат System

KHTMLPart() публичный Метод

public KHTMLPart ( Kimono.KHTMLView view, QObject parent ) : System
view Kimono.KHTMLView
parent Qyoto.QObject
Результат System

KHTMLPart() публичный Метод

Constructs a new KHTMLPart. This constructor is useful if you wish to subclass KHTMLView. If the view passed as first argument to the constructor was built with a null KHTMLPart pointer, then the newly created KHTMLPart will be assigned as the view's part. Therefore, you might either initialize the view as part of the initialization list of your derived KHTMLPart class constructor:
 MyKHTMLPart(), ... 
Or separately build the KHTMLView beforehand:
 KHTMLView  v = KHTMLView( null, parentWidget()); KHTMLPart  p = KHTMLPart( v ); // p will be assigned to v, so that v.Part() == p 
public KHTMLPart ( Kimono.KHTMLView view, QObject parent, KHTMLPart prof ) : System
view Kimono.KHTMLView
parent Qyoto.QObject
prof KHTMLPart
Результат System

KHTMLPart() публичный Метод

public KHTMLPart ( QWidget parentWidget ) : System
parentWidget Qyoto.QWidget
Результат System

KHTMLPart() публичный Метод

public KHTMLPart ( QWidget parentWidget, QObject parent ) : System
parentWidget Qyoto.QWidget
parent Qyoto.QObject
Результат System

KHTMLPart() публичный Метод

Constructs a new KHTMLPart. KHTML basically consists of two objects: The KHTMLPart itself, holding the document data (DOM document), and the KHTMLView, derived from QScrollArea, in which the document content is rendered in. You can specify two different parent objects for a KHTMLPart, one parent for the KHTMLPart document and one parent for the KHTMLView. If the second parent argument is null, then parentWidget is used as parent for both objects, the part and the view.
public KHTMLPart ( QWidget parentWidget, QObject parent, KHTMLPart prof ) : System
parentWidget Qyoto.QWidget
parent Qyoto.QObject
prof KHTMLPart
Результат System

KHTMLPart() защищенный Метод

protected KHTMLPart ( Type dummy ) : System
dummy System.Type
Результат System

NextAnchor() публичный Метод

Go to the next anchor This is useful to navigate from outside the navigator
public NextAnchor ( ) : bool
Результат bool

NodeUnderMouse() публичный Метод

Returns the Node currently under the mouse. The returned node may be a shared node (e. g. an \ node if the mouse is hovering over an image map).
public NodeUnderMouse ( ) : DOM.Node
Результат DOM.Node

NonSharedNodeUnderMouse() публичный Метод

Returns the Node currently under the mouse that is not shared. The returned node is always the node that is physically under the mouse pointer (irrespective of logically overlying elements like, e. g., \ on image maps).
public NonSharedNodeUnderMouse ( ) : DOM.Node
Результат DOM.Node

OnlyLocalReferences() публичный Метод

Returns whether only file:/ or data:/ references are allowed to be loaded ( default false ). See setOnlyLocalReferences.
public OnlyLocalReferences ( ) : bool
Результат bool

PageReferrer() публичный Метод

Referrer used to obtain this page.
public PageReferrer ( ) : string
Результат string

Paint() публичный Метод

public Paint ( QPainter arg1, Qyoto.QRect arg2 ) : void
arg1 Qyoto.QPainter
arg2 Qyoto.QRect
Результат void

Paint() публичный Метод

public Paint ( QPainter arg1, Qyoto.QRect arg2, int arg3 ) : void
arg1 Qyoto.QPainter
arg2 Qyoto.QRect
arg3 int
Результат void

Paint() публичный Метод

Paints the HTML page to a QPainter. See KHTMLView.Paint for details
public Paint ( QPainter arg1, Qyoto.QRect arg2, int arg3, bool &arg4 ) : void
arg1 Qyoto.QPainter
arg2 Qyoto.QRect
arg3 int
arg4 bool
Результат void

ParentPart() публичный Метод

Returns a pointer to the parent KHTMLPart if the part is a frame in an HTML frameset. Returns null otherwise.
public ParentPart ( ) : KHTMLPart
Результат KHTMLPart

PartManager() публичный Метод

Returns a reference to the partmanager instance which manages html frame objects.
public PartManager ( ) : KParts.PartManager
Результат KParts.PartManager

PluginPageQuestionAsked() защищенный Метод

protected PluginPageQuestionAsked ( string mimetype ) : bool
mimetype string
Результат bool

PreloadScript() публичный Метод

Loads a script into the script cache.
public PreloadScript ( string url, string script ) : void
url string
script string
Результат void

PreloadStyleSheet() публичный Метод

Loads a style sheet into the stylesheet cache.
public PreloadStyleSheet ( string url, string stylesheet ) : void
url string
stylesheet string
Результат void

PrevAnchor() публичный Метод

Go to previous anchor
public PrevAnchor ( ) : bool
Результат bool

Referrer() публичный Метод

Referrer used for links in this page.
public Referrer ( ) : string
Результат string

Restored() публичный Метод

public Restored ( ) : bool
Результат bool

ScheduleRedirection() публичный Метод

public ScheduleRedirection ( int delay, string url ) : void
delay int
url string
Результат void

ScheduleRedirection() публичный Метод

Schedules a redirection after delay seconds.
public ScheduleRedirection ( int delay, string url, bool lockHistory ) : void
delay int
url string
lockHistory bool
Результат void

SelectAll() публичный Метод

Returns the instance of the attached html editor interface. Marks all text in the document as selected.
public SelectAll ( ) : void
Результат void

SelectedTextAsHTML() публичный Метод

Return the text the user has marked. This is guaranteed to be valid xml, and to contain the \ and \ tags. FIXME probably should make for 4.0 ?
public SelectedTextAsHTML ( ) : string
Результат string

Selection() публичный Метод

Returns the selected part of the HTML.
public Selection ( ) : DOM.Range
Результат DOM.Range

Selection() публичный Метод

Returns the selected part of the HTML by returning the starting and end position. If there is no selection, both nodes and offsets are equal. name="startNode" returns node selection starts in name="startOffset" returns offset within starting node name="endNode" returns node selection ends in name="endOffset" returns offset within end node.
public Selection ( DOM startNode, long startOffset, DOM endNode, long endOffset ) : void
startNode DOM
startOffset long
endNode DOM
endOffset long
Результат void

SetAlwaysHonourDoctype() публичный Метод

public SetAlwaysHonourDoctype ( ) : void
Результат void

SetAlwaysHonourDoctype() публичный Метод

Sets whether the document's Doctype should always be used to determine the parsing mode for the document. Without this, parsing will be forced to strict mode when using the write( stringstr ) method for backward compatibility reasons.
public SetAlwaysHonourDoctype ( bool b ) : void
b bool
Результат void

SetAutoloadImages() публичный Метод

Specifies whether images contained in the document should be loaded automatically or not. @note Request will be ignored if called before begin().
public SetAutoloadImages ( bool enable ) : void
enable bool
Результат void

SetCaretDisplayPolicyNonFocused() публичный Метод

Sets the caret display policy when the view is not focused. Whenever the caret is in use, this property determines how the caret should be displayed when the document view is not focused. The default policy is CaretInvisible. name="policy" new display policy
public SetCaretDisplayPolicyNonFocused ( KHTMLPart policy ) : void
policy KHTMLPart
Результат void

SetCaretPosition() публичный Метод

public SetCaretPosition ( DOM node, long offset ) : void
node DOM
offset long
Результат void

SetCaretPosition() публичный Метод

Sets the caret to the given position. If the given location is invalid, it will snap to the nearest valid location. Immediately afterwards a caretPositionChanged signal containing the effective position is emitted name="node" node to set to name="offset" zero-based offset within the node name="extendSelection" If true, a selection will be spanned from the last caret position to the given one. Otherwise, any existing selection will be deselected.
public SetCaretPosition ( DOM node, long offset, bool extendSelection ) : void
node DOM
offset long
extendSelection bool
Результат void

SetEncoding() публичный Метод

public SetEncoding ( string name ) : bool
name string
Результат bool

SetEncoding() публичный Метод

Sets the encoding the page uses. This can be different from the charset. The widget will try to reload the current page in the new encoding, if url() is not empty.
public SetEncoding ( string name, bool arg2 ) : bool
name string
arg2 bool
Результат bool

SetFixedFont() публичный Метод

Sets the fixed font style. name="name" The font name to use for fixed text, e.g. the <pre> tag.
public SetFixedFont ( string name ) : void
name string
Результат void

SetFontScaleFactor() публичный Метод

Sets the scale factor to be applied to fonts. The value is given in percent, larger values mean generally larger fonts. The given value should be in the range of 20..300, values outside that range are not guaranteed to work. A value of 100 will disable all scaling of font sizes and show the page with the sizes determined via the given lengths in the stylesheets.
public SetFontScaleFactor ( int percent ) : void
percent int
Результат void

SetFormNotification() публичный Метод

Determine if signal should be emitted before, instead or never when a submitForm() happens. ### KDE5 remove me
public SetFormNotification ( KHTMLPart fn ) : void
fn KHTMLPart
Результат void

SetJSDefaultStatusBarText() публичный Метод

Called by KJS. Sets the DefaultStatusBarText assigned via window.defaultStatus
public SetJSDefaultStatusBarText ( string text ) : void
text string
Результат void

SetJSStatusBarText() публичный Метод

Called by KJS. Sets the StatusBarText assigned via window.status
public SetJSStatusBarText ( string text ) : void
text string
Результат void

SetOnlyLocalReferences() публичный Метод

Security option. Specify whether only file:/ or data:/ urls are allowed to be loaded without user confirmation by KHTML. ( for example referenced by stylesheets, images, scripts, subdocuments, embedded elements ). This option is mainly intended for enabling the "mail reader mode", where you load untrusted content with a file:/ url. Please note that enabling this option currently automatically disables Javascript, Java and Plugins support. This might change in the future if the security model is becoming more sophisticated, so don't rely on this behaviour. ( default false - everything is loaded unless forbidden by KApplication.AuthorizeURLAction).
public SetOnlyLocalReferences ( bool enable ) : void
enable bool
Результат void

SetPluginPageQuestionAsked() защищенный Метод

protected SetPluginPageQuestionAsked ( string mimetype ) : void
mimetype string
Результат void

SetSelection() публичный Метод

Sets the current selection.
public SetSelection ( DOM arg1 ) : void
arg1 DOM
Результат void

SetStandardFont() публичный Метод

Sets the standard font style. name="name" The font name to use for standard text.
public SetStandardFont ( string name ) : void
name string
Результат void

SetStatusMessagesEnabled() публичный Метод

Returns the JavaScript interpreter the part is using. This method is mainly intended for applications which embed and extend the part and provides a mechanism for adding additional native objects to the interpreter (or removing the built-ins). One thing people using this method to add things to the interpreter must consider, is that when you start writing new content to the part, the interpreter is cleared. This includes both use of the begin( KUrl, int, int ) method, and the openUrl( KUrl ) method. If you want your objects to have a longer lifespan, then you must retain a KJS.Object yourself to ensure that the reference count of your custom objects never reaches 0. You will also need to re-add your bindings every time this happens - one way to detect the need for this is to connect to the docCreated() signal, another is to reimplement the begin() method. Enable/disable statusbar messages. When this class wants to set the statusbar text, it emits setStatusBarText(string text) If you want to catch this for your own statusbar, note that it returns back a rich text string, starting with "". This you need to either pass this into your own QLabel or to strip out the tags before passing it to QStatusBar.Message(string message)
public SetStatusMessagesEnabled ( bool enable ) : void
enable bool
Результат void

SetSuppressedPopupIndicator() публичный Метод

public SetSuppressedPopupIndicator ( bool enable ) : void
enable bool
Результат void

SetSuppressedPopupIndicator() публичный Метод

Shows or hides the suppressed popup indicator
public SetSuppressedPopupIndicator ( bool enable, KHTMLPart originPart ) : void
enable bool
originPart KHTMLPart
Результат void

SetURLCursor() публичный Метод

Sets the cursor to use when the cursor is on a link.
public SetURLCursor ( QCursor c ) : void
c Qyoto.QCursor
Результат void

SetUserStyleSheet() публичный Метод

Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. This gives a wide range of possibilities to change the layout of the page. To have an effect this function has to be called after calling begin().
public SetUserStyleSheet ( Kimono.KUrl url ) : void
url Kimono.KUrl
Результат void

SetUserStyleSheet() публичный Метод

Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. This gives a wide range of possibilities to change the layout of the page. To have an effect this function has to be called after calling begin().
public SetUserStyleSheet ( string styleSheet ) : void
styleSheet string
Результат void

SetZoomFactor() публичный Метод

Sets the Zoom factor. The value is given in percent, larger values mean a generally larger font and larger page contents. The given value should be in the range of 20..300, values outside that range are not guaranteed to work. A value of 100 will disable all zooming and show the page with the sizes determined via the given lengths in the stylesheets.
public SetZoomFactor ( int percent ) : void
percent int
Результат void

Settings() публичный Метод

public Settings ( ) : Kimono.KHTMLSettings
Результат Kimono.KHTMLSettings

Show() публичный Метод

Convenience method to show the document's view. Equivalent to widget().Show() or view().Show() .
public Show ( ) : void
Результат void

StatusMessagesEnabled() публичный Метод

Returns true if status messages are enabled.
public StatusMessagesEnabled ( ) : bool
Результат bool

ToplevelURL() публичный Метод

Returns the toplevel (origin) URL of this document, even if this part is a frame or an iframe.
public ToplevelURL ( ) : Kimono.KUrl
Результат Kimono.KUrl

UrlCursor() публичный Метод

Returns the cursor which is used when the cursor is on a link.
public UrlCursor ( ) : QCursor
Результат Qyoto.QCursor

View() публичный Метод

Returns a pointer to the HTML document's view.
public View ( ) : Kimono.KHTMLView
Результат Kimono.KHTMLView

ZoomFactor() публичный Метод

Returns the current zoom factor.
public ZoomFactor ( ) : int
Результат int

formNotification() публичный Метод

Determine if signal should be emitted before, instead or never when a submitForm() happens. ### KDE5 remove me
public formNotification ( ) : KHTMLPart.FormNotification
Результат KHTMLPart.FormNotification