C# 클래스 Kimono.KHTMLPart

상속: KParts.ReadOnlyPart, IDisposable
파일 보기 프로젝트 열기: 0xd34df00d/Qross 1 사용 예제들

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