class KHTMLPart
|
HTML Browser Widget. More... |
|
|
Public Types
Public Methods
- KHTMLPart ( QWidget *parentWidget = 0, const char *widgetname = 0, QObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI )
- KHTMLPart ( KHTMLView *view, QObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI )
- virtual ~KHTMLPart ()
- virtual bool openURL ( const KURL &url )
- virtual bool closeURL ()
- DOM::HTMLDocument htmlDocument () const
- DOM::Document document () const
- DOM::Node activeNode () const
- KParts::BrowserExtension * browserExtension () const
- KHTMLView * view () const
- void setJScriptEnabled ( bool enable )
- void enableJScript ( bool enable )
- bool jScriptEnabled () const
- void enableMetaRefresh ( bool enable )
- bool metaRefreshEnabled () const
- QVariant executeScript ( const QString &script )
- QVariant executeScript ( const DOM::Node &n, const QString &script )
- void setDNDEnabled ( bool b )
- bool dndEnabled () const
- void setJavaEnabled ( bool enable )
- void enableJava ( bool enable )
- bool javaEnabled () const
- KJavaAppletContext * javaContext ()
- KJavaAppletContext * createJavaContext ()
- void enablePlugins ( bool enable )
- void setPluginsEnabled ( bool enable )
- bool pluginsEnabled () const
- void autoloadImages ( bool enable )
- void setAutoloadImages ( bool enable )
- bool autoloadImages () const
- virtual void begin ( const KURL &url = KURL(), int xOffset = 0, int yOffset = 0 )
- virtual void write ( const char *str, int len = -1 )
- virtual void write ( const QString &str )
- virtual void end ()
- void paint (QPainter *, const QRect &, int = 0, bool * = 0)
- void setBaseURL ( const KURL &url )
- KURL baseURL () const
- void setBaseTarget ( const QString &target )
- QString baseTarget () const
- KURL completeURL ( const QString &url, const QString &target = QString::null )
- void scheduleRedirection ( int delay, const QString &url )
- bool setCharset ( const QString &name, bool override = false )
- bool setEncoding ( const QString &name, bool override = false )
- QString encoding ()
- void setUserStyleSheet (const KURL &url)
- void setUserStyleSheet (const QString &styleSheet)
- void setFontSizes (const QValueList<int> &newFontSizes )
- QValueList<int> fontSizes () const
- void resetFontSizes ()
- void setStandardFont ( const QString &name )
- void setFixedFont ( const QString &name )
- bool gotoAnchor ( const QString &name )
- void setURLCursor ( const QCursor &c )
- const QCursor& urlCursor () const
- void findTextBegin ()
- bool findTextNext ( const QRegExp &exp, bool forward )
- bool findTextNext ( const QString &str, bool forward, bool caseSensitive )
- virtual QString selectedText () const
- DOM::Range selection () const
- void setSelection ( const DOM::Range & )
- bool hasSelection () const
- void selectAll ()
- void show ()
- void hide ()
- KParts::PartManager * partManager ()
- virtual void saveState ( QDataStream &stream )
- virtual void restoreState ( QDataStream &stream )
- bool restoreURL ( const KURL &url )
- DOM::Node nodeUnderMouse () const
- const KHTMLSettings * settings () const
- KHTMLPart * parentPart ()
- QStringList frameNames () const
- const QList<KParts::ReadOnlyPart> frames () const
- KHTMLPart * findFrame ( const QString &f )
- bool frameExists ( const QString &frameName )
- bool openURLInFrame ( const KURL &url, const KParts::URLArgs &urlArgs )
- void setJSStatusBarText ( const QString &text )
- void setJSDefaultStatusBarText ( const QString &text )
- QString jsStatusBarText () const
- QString jsDefaultStatusBarText () const
- virtual bool event ( QEvent *event )
- virtual bool eventFilter ( QObject *o, QEvent *event )
- virtual void khtmlMousePressEvent ( khtml::MousePressEvent *event )
- virtual void khtmlMouseDoubleClickEvent ( khtml::MouseDoubleClickEvent * )
- virtual void khtmlMouseMoveEvent ( khtml::MouseMoveEvent *event )
- virtual void khtmlMouseReleaseEvent ( khtml::MouseReleaseEvent *event )
- virtual void khtmlDrawContentsEvent ( khtml::DrawContentsEvent * )
- virtual void guiActivateEvent ( KParts::GUIActivateEvent *event )
- virtual bool openFile ()
- virtual void overURL ( const QString &url, const QString &target )
- virtual void urlSelected ( const QString &url, int button = 0, int state = 0, const QString &_target = QString::null )
- bool processObjectRequest ( khtml::ChildFrame *child, const KURL &url, const QString &mimetype )
- virtual void submitForm ( const char *action, const QString &url, const QByteArray &formData, const QString &target, const QString& contentType = QString::null, const QString& boundary = QString::null )
- virtual void popupMenu ( const QString &url )
- virtual KParts::ReadOnlyPart * createPart ( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const QString &mimetype, QString &serviceName, QStringList &serviceTypes, const QStringList ¶ms)
- void updateFontSize ( int add )
- void setFontBaseInternal ( int base, bool absolute )
- void emitSelectionChanged ()
- void startAutoScroll ()
- void stopAutoScroll ()
- void overURL ( const QString &url, const QString &target, bool shiftPressed )
- void init ( KHTMLView *view, GUIProfile prof )
- void clear ()
- bool scheduleScript ( const DOM::Node &n, const QString& script)
- QVariant executeScheduledScript ()
- bool requestFrame ( khtml::RenderPart *frame, const QString &url, const QString &frameName, const QStringList &args = QStringList(), bool isIFrame = false )
- QString requestFrameName ()
- bool requestObject ( khtml::RenderPart *frame, const QString &url, const QString &serviceType, const QStringList &args = QStringList() )
- bool requestObject ( khtml::ChildFrame *child, const KURL &url, const KParts::URLArgs &args = KParts::URLArgs() )
- DOM::HTMLDocumentImpl * docImpl () const
- DOM::DocumentImpl * xmlDocImpl () const
- khtml::ChildFrame * frame ( const QObject *obj )
- khtml::ChildFrame * recursiveFrameRequest ( const KURL &url, const KParts::URLArgs &args, bool callParent = true )
- bool checkLinkSecurity (const KURL &linkURL)
- KJSProxy * jScript ()
Public Slots
Signals
Protected Methods
- KHTMLPart ( QWidget *parentWidget = 0, const char *widgetname = 0, QObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI )
- KHTMLPart ( KHTMLView *view, QObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI )
- virtual ~KHTMLPart ()
- virtual bool openURL ( const KURL &url )
- virtual bool closeURL ()
- DOM::HTMLDocument htmlDocument () const
- DOM::Document document () const
- DOM::Node activeNode () const
- KParts::BrowserExtension * browserExtension () const
- KHTMLView * view () const
- void setJScriptEnabled ( bool enable )
- void enableJScript ( bool enable )
- bool jScriptEnabled () const
- void enableMetaRefresh ( bool enable )
- bool metaRefreshEnabled () const
- QVariant executeScript ( const QString &script )
- QVariant executeScript ( const DOM::Node &n, const QString &script )
- void setDNDEnabled ( bool b )
- bool dndEnabled () const
- void setJavaEnabled ( bool enable )
- void enableJava ( bool enable )
- bool javaEnabled () const
- KJavaAppletContext * javaContext ()
- KJavaAppletContext * createJavaContext ()
- void enablePlugins ( bool enable )
- void setPluginsEnabled ( bool enable )
- bool pluginsEnabled () const
- void autoloadImages ( bool enable )
- void setAutoloadImages ( bool enable )
- bool autoloadImages () const
- virtual void begin ( const KURL &url = KURL(), int xOffset = 0, int yOffset = 0 )
- virtual void write ( const char *str, int len = -1 )
- virtual void write ( const QString &str )
- virtual void end ()
- void paint (QPainter *, const QRect &, int = 0, bool * = 0)
- void setBaseURL ( const KURL &url )
- KURL baseURL () const
- void setBaseTarget ( const QString &target )
- QString baseTarget () const
- KURL completeURL ( const QString &url, const QString &target = QString::null )
- void scheduleRedirection ( int delay, const QString &url )
- bool setCharset ( const QString &name, bool override = false )
- bool setEncoding ( const QString &name, bool override = false )
- QString encoding ()
- void setUserStyleSheet (const KURL &url)
- void setUserStyleSheet (const QString &styleSheet)
- void setFontSizes (const QValueList<int> &newFontSizes )
- QValueList<int> fontSizes () const
- void resetFontSizes ()
- void setStandardFont ( const QString &name )
- void setFixedFont ( const QString &name )
- bool gotoAnchor ( const QString &name )
- void setURLCursor ( const QCursor &c )
- const QCursor& urlCursor () const
- void findTextBegin ()
- bool findTextNext ( const QRegExp &exp, bool forward )
- bool findTextNext ( const QString &str, bool forward, bool caseSensitive )
- virtual QString selectedText () const
- DOM::Range selection () const
- void setSelection ( const DOM::Range & )
- bool hasSelection () const
- void selectAll ()
- void show ()
- void hide ()
- KParts::PartManager * partManager ()
- virtual void saveState ( QDataStream &stream )
- virtual void restoreState ( QDataStream &stream )
- bool restoreURL ( const KURL &url )
- DOM::Node nodeUnderMouse () const
- const KHTMLSettings * settings () const
- KHTMLPart * parentPart ()
- QStringList frameNames () const
- const QList<KParts::ReadOnlyPart> frames () const
- KHTMLPart * findFrame ( const QString &f )
- bool frameExists ( const QString &frameName )
- bool openURLInFrame ( const KURL &url, const KParts::URLArgs &urlArgs )
- void setJSStatusBarText ( const QString &text )
- void setJSDefaultStatusBarText ( const QString &text )
- QString jsStatusBarText () const
- QString jsDefaultStatusBarText () const
- virtual bool event ( QEvent *event )
- virtual bool eventFilter ( QObject *o, QEvent *event )
- virtual void khtmlMousePressEvent ( khtml::MousePressEvent *event )
- virtual void khtmlMouseDoubleClickEvent ( khtml::MouseDoubleClickEvent * )
- virtual void khtmlMouseMoveEvent ( khtml::MouseMoveEvent *event )
- virtual void khtmlMouseReleaseEvent ( khtml::MouseReleaseEvent *event )
- virtual void khtmlDrawContentsEvent ( khtml::DrawContentsEvent * )
- virtual void guiActivateEvent ( KParts::GUIActivateEvent *event )
- virtual bool openFile ()
- virtual void overURL ( const QString &url, const QString &target )
- virtual void urlSelected ( const QString &url, int button = 0, int state = 0, const QString &_target = QString::null )
- bool processObjectRequest ( khtml::ChildFrame *child, const KURL &url, const QString &mimetype )
- virtual void submitForm ( const char *action, const QString &url, const QByteArray &formData, const QString &target, const QString& contentType = QString::null, const QString& boundary = QString::null )
- virtual void popupMenu ( const QString &url )
- virtual KParts::ReadOnlyPart * createPart ( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const QString &mimetype, QString &serviceName, QStringList &serviceTypes, const QStringList ¶ms)
- void updateFontSize ( int add )
- void setFontBaseInternal ( int base, bool absolute )
- void emitSelectionChanged ()
- void startAutoScroll ()
- void stopAutoScroll ()
- void overURL ( const QString &url, const QString &target, bool shiftPressed )
- void init ( KHTMLView *view, GUIProfile prof )
- void clear ()
- bool scheduleScript ( const DOM::Node &n, const QString& script)
- QVariant executeScheduledScript ()
- bool requestFrame ( khtml::RenderPart *frame, const QString &url, const QString &frameName, const QStringList &args = QStringList(), bool isIFrame = false )
- QString requestFrameName ()
- bool requestObject ( khtml::RenderPart *frame, const QString &url, const QString &serviceType, const QStringList &args = QStringList() )
- bool requestObject ( khtml::ChildFrame *child, const KURL &url, const KParts::URLArgs &args = KParts::URLArgs() )
- DOM::HTMLDocumentImpl * docImpl () const
- DOM::DocumentImpl * xmlDocImpl () const
- khtml::ChildFrame * frame ( const QObject *obj )
- khtml::ChildFrame * recursiveFrameRequest ( const KURL &url, const KParts::URLArgs &args, bool callParent = true )
- bool checkLinkSecurity (const KURL &linkURL)
- KJSProxy * jScript ()
Protected Slots
This class is khtml's main class. It features an almost complete
web browser, and html renderer.
The easiest way to use this class (if you just want to display a an HTML
page at some URL) is the following:
By default Java and JavaScript support are disabled. You can enable them by
using the enableJava() and enableJScript() methods.
Some apps want to write their HTML code directly into the widget instead of
it opening an url. You can also do that in the following way:
You can do as many calls to write as you want. But there are two
write() methods, one accepting a QString one accepting a
char
*
argument. You should use one or the other
(but not both) since the method using
the char
*
argument does an additional decoding step to convert the
written data to Unicode.
enum GUIProfile { DefaultGUI, BrowserViewGUI };
}
|
KHTMLPart ( QWidget *parentWidget = 0, const char *widgetname = 0, QObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI )
|
Construct a new KHTMLPart.
KHTML basically consists of two objects: The KHTMLPart itself,
holding the document data (DOM document), and the KHTMLView,
derived from QScrollview, 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 on parent
for the KHTMLView. If the second parent
argument is 0L, then
parentWidget
is used as parent for both objects, the part and
the view.
KHTMLPart ( KHTMLView *view, QObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI )
|
[virtual]
Destructor.
bool openURL ( const KURL &url )
|
[virtual]
Opens the specified URL url.
Reimplemented from KParts::ReadOnlyPart::openURL .
Reimplemented from ReadOnlyPart.
[virtual]
Stop loading the document and kill all data requests (for images, etc.)
Reimplemented from ReadOnlyPart.
[const]
Retrieve a reference to the DOM HTML document (for non-HTML documents, returns null)
DOM::Document document ()
|
[const]
Retrieve a reference to the DOM document.
[const]
Retrieve the node that has the keyboard focus
[const]
Retrieve a pointer to the KParts::BrowserExtension
[const]
Retrieve a pointer to the HTML document's view.
void setJScriptEnabled ( bool enable )
|
Enable/disable Javascript support. Note that this will
in either case permanently override the default usersetting.
If you want to have the default UserSettings, don't call this
method.
void enableJScript ( bool enable )
|
Deprecated, use setJScriptEnabled instead.
[const]
Returns true
if Javascript support is enabled or false
otherwise.
void enableMetaRefresh ( bool enable )
|
Enable/disable the automatic forwarding by <meta http-equiv="refresh" ....>
bool metaRefreshEnabled ()
|
[const]
Returns true
if automtaic forwarding is enabled.
QVariant executeScript ( const QString &script )
|
Execute the specified snippet of JavaScript code.
Returns true
if JavaScript was enabled, no error occured
and the code returned true itself or false
otherwise.
QVariant executeScript ( const DOM::Node &n, const QString &script )
|
Same as above except the Node parameter specifying the 'this' value.
void setDNDEnabled ( bool b )
|
Enable or disable Drag'n'Drop support. A drag operation is started if
the users drags a link.
[const]
Returns whether Dragn'n'Drop support is enabled or not.
void setJavaEnabled ( bool enable )
|
Enable/disable Java applet support. Note that calling this function
will permanently override the User settings about Java applet support.
Not calling this function is the only way to let the default settings
apply.
void enableJava ( bool enable )
|
Deprecated, use setJavaEnabled instead.
[const]
Return if Java applet support is enabled/disabled.
Return the java context of the applets. If no applet exists, 0 is returned.
Return the java context of the applets. If no context exists yet, a new one is
created.
void enablePlugins ( bool enable )
|
Deprecated. Use setPluginsEnabled instead.
void setPluginsEnabled ( bool enable )
|
Enable or disable plugins via, default is enabled
[const]
Return if plugins are enabled/disabled.
void autoloadImages ( bool enable )
|
Deprecated. Use setAutoloadImages instead.
void setAutoloadImages ( bool enable )
|
Specify whether images contained in the document should be loaded
automatically or not.
[const]
Return whether images contained in the document are loaded automatically
or not.
void begin ( const KURL &url = KURL(), int xOffset = 0, int yOffset = 0 )
|
[virtual]
Clear the widget and prepares it for new content.
If you want url() to return
for example "file:/tmp/test.html", you can use the following code:
All child frames and the old document are removed if you call
this method.
Parameters:
url | is the url of the document to be displayed. Even if you
are generating the HTML on the fly, it may be useful to specify
a directory so that any pixmaps are found.
|
xOffset | is the initial horizontal scrollbar value. Usually
you don't want to use this.
|
yOffset | is the initial vertical scrollbar value. Usually
you don't want to use this.
|
void write ( const char *str, int len = -1 )
|
[virtual]
Write another part of the HTML code to the widget.
You may call
this function many times in sequence. But remember: The fewer calls
you make, the faster the widget will be.
The HTML code is send through a decoder which decodes the stream to
Unicode.
The len
parameter is needed for streams encoded in utf-16,
since these can have \0 chars in them. In case the encoding
you're using isn't utf-16, you can safely leave out the length
parameter.
Attention: Don't mix calls to write( const char *) with calls
to write( const QString & ).
The result might not be what you want.
void write ( const QString &str )
|
[virtual]
Write another part of the HTML code to the widget.
You may call
this function many times in sequence. But remember: The fewer calls
you make, the faster the widget will be.
[virtual]
Call this after your last call to write().
Paints the HTML page to a QPainter. See KHTMLView::paint for details
void setBaseURL ( const KURL &url )
|
Mainly used internally.
Sets the document's base URL.
[const]
Retrieve the base URL of this document
The base URL is ususally set by a <base url=...>
tag in the document head. If no base tag is set, the url of the current
document serves as base url and is returned.
void setBaseTarget ( const QString &target )
|
Mainly used internally.
Sets the document's base target.
[const]
Retrieve the base target of this document.
The base target is ususally set by a <base target=...>
tag in the document head.
KURL completeURL ( const QString &url, const QString &target = QString::null )
|
Constructs a KURL object (representing an absolute URL) given a possibly
relative URL (for example from a document's anchor) .
void scheduleRedirection ( int delay, const QString &url )
|
bool setCharset ( const QString &name, bool override = false )
|
Set the charset to use for displaying HTML pages.
If override is true,
it will override charset specifications of the document.
bool setEncoding ( const QString &name, bool override = false )
|
Set 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.
return the encoding the page currently uses.
Note that the encoding might be different from the charset.
void setUserStyleSheet (const KURL &url)
|
Set 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.
void setUserStyleSheet (const QString &styleSheet)
|
Set 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.
void setFontSizes (const QValueList<int> &newFontSizes )
|
Set point sizes to be associated with the HTML-sizes used in
<FONT size=Html-Font-Size>
Html-Font-Sizes range from 0 (smallest) to 6 (biggest), but you
can specify up to 15 font sizes, the bigger ones will get used,
if <font size=+1> extends over 7, or if a 'font-size: larger'
style declaration gets into this region.
They are related to the CSS font sizes by 0 == xx-small to 6 == xx-large.
QValueList<int> fontSizes ()
|
[const]
Get point sizes to be associated with the HTML-sizes used in
<FONT size=Html-Font-Size>
Html-Font-Sizes range from 0 (smallest) to 6 (biggest).
They are related to the CSS font sizes by 0 == xx-small to 6 == xx-large.
Reset the point sizes to be associated with the HTML-sizes used in
<FONT size=Html-Font-Size> to their default.
Html-Font-Sizes range from 0 (smallest) to 6 (biggest).
void setStandardFont ( const QString &name )
|
Set the standard font style.
Parameters:
name | The font name to use for standard text.
|
void setFixedFont ( const QString &name )
|
Set the fixed font style.
Parameters:
name | The font name to use for fixed text, e.g.
the <tt><pre></tt> tag.
|
bool gotoAnchor ( const QString &name )
|
Find the anchor named name.
If the anchor is found, the widget
scrolls to the closest position. Returns if
the anchor has
been found.
void setURLCursor ( const QCursor &c )
|
Set the cursor to use when the cursor is on a link.
const QCursor& urlCursor ()
|
[const]
Retrieve the cursor which is used when the cursor is on a link.
Initiate a text search.
bool findTextNext ( const QRegExp &exp, bool forward )
|
Find the next occurrance of the expression.
bool findTextNext ( const QString &str, bool forward, bool caseSensitive )
|
Find the next occurence of the string.
[const virtual]
Get the text the user has marked.
[const]
Retrieve the selected part of the HTML.
set the current selection
[const]
Has the user selected anything?
Call selectedText() to
retrieve the selected text.
Returns: true
if there is text selected.
Marks all text in the document as selected.
Convenience method to show the document's view.
Equivalent to widget()->show() or view()->show() .
Convenience method to hide the document's view.
Equivalent to widget()->hide() or view()->hide().
Retrieve a reference to the partmanager instance which
manages html frame objects.
void saveState ( QDataStream &stream )
|
[virtual]
Save the KHTMLPart's complete state (including child frame
objects) to the provided QDataStream.
This is called from the saveState() method of the
browserExtension().
void restoreState ( QDataStream &stream )
|
[virtual]
Restore the KHTMLPart's previously saved state (including
child frame objects) from the provided QDataStream.
This is called from the restoreState() method of the
browserExtension() .
See also: saveState()
bool restoreURL ( const KURL &url )
|
Internal method called by restoreState() when the document, which is to
be restored, is contained in the html page-cache.
[const]
Retrieve the Node
currently under the mouse
[const]
Retrieve a pointer to the parent KHTMLPart if the part is a frame
in an HTML frameset.
Returns 0L otherwise.
QStringList frameNames ()
|
[const]
Retrieve 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.
[const]
Find a frame by name. Returns 0L if frame can't be found.
bool frameExists ( const QString &frameName )
|
Returns whether a frame with the specified name is exists or not.
In contrary to the findFrame method this one also returns true
if the frame is defined but no displaying component has been
found/loaded, yet.
The real implementation of the openURLInFrame method of
KParts::BrowserExtension, called by khtml's implementation
of the BrowserExtension interface.
void setJSStatusBarText ( const QString &text )
|
Called by KJS.
Sets the StatusBarText assigned
via window.status
void setJSDefaultStatusBarText ( const QString &text )
|
Called by KJS.
Sets the DefaultStatusBarText assigned
via window.defaultStatus
QString jsStatusBarText ()
|
[const]
Called by KJS.
Returns the StatusBarText assigned
via window.status
QString jsDefaultStatusBarText ()
|
[const]
Called by KJS.
Returns the DefaultStatusBarText assigned
via window.defaultStatus
void onURL ( const QString &url )
|
[signal]
Emitted if the cursor is moved over an URL.
void popupMenu (const QString &url, const QPoint &point)
|
[signal]
Emitted when the user clicks the right mouse button on the document.
[signal]
This signal is emitted when the selection changes.
[signal]
This signal is emitted when an element retrieves the
keyboard focus. Note that the signal argument can be
a null node if no element is active, meaning a node
has explicitly been deactivated without a new one
becoming active.
bool event ( QEvent *event )
|
[protected:
virtual]
Reimplementation of KParts::ReadOnlyPart::event .
bool eventFilter ( QObject *o, QEvent *event )
|
[protected:
virtual]
Reimplementation of QObject::eventFilter .
[protected:
virtual]
Eventhandler of the khtml::MousePressEvent.
[protected:
virtual]
Eventhandler for the khtml::MouseDoubleClickEvent.
[protected:
virtual]
Eventhandler for the khtml::MouseDoubleClickEvent.
[protected:
virtual]
Eventhandler for the khtml::MouseMoveEvent.
[protected:
virtual]
Eventhandler for the khtml::DrawContentsEvent.
[protected:
virtual]
Internal reimplementation of KParts::Part::guiActivateEvent .
Reimplemented from ReadOnlyPart.
[protected:
virtual]
Internal empty reimplementation of KParts::ReadOnlyPart::openFile .
Reimplemented from ReadOnlyPart.
void overURL ( const QString &url, const QString &target )
|
[protected:
virtual]
void urlSelected ( const QString &url, int button = 0, int state = 0, const QString &_target = QString::null )
|
[protected:
virtual]
[protected:
]
void submitForm ( const char *action, const QString &url, const QByteArray &formData, const QString &target, const QString& contentType = QString::null, const QString& boundary = QString::null )
|
[protected:
virtual]
void popupMenu ( const QString &url )
|
[protected:
virtual]
KParts::ReadOnlyPart * createPart ( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const QString &mimetype, QString &serviceName, QStringList &serviceTypes, const QStringList ¶ms)
|
[protected:
virtual]
This method is called when a new embedded object (include html frames) is to be created.
Reimplement it if you want to add support for certain embeddable objects without registering
them in the KDE wide registry system (KSyCoCa) . Another reason for re-implementing this
method could be if you want to derive from KTHMLPart and also want all html frame objects
to be a object of your derived type, in which case you should return a new instance for
the mimetype 'text/html' .
void updateFontSize ( int add )
|
[protected:
]
void setFontBaseInternal ( int base, bool absolute )
|
[protected:
]
[slot]
Call this method to explicitly pass the focus to a certain element of the
current document.
void reparseConfiguration ()
|
[protected slots:
slot]
Internal. Called by the BrowserExtension .
void emitSelectionChanged ()
|
[protected:
]
- Version: $Id: khtml_part.h,v 1.128 2001/02/13 16:29:24 wildfox Exp $
- Author: Lars Knoll (knoll@kde.org)
- Generated: marc@yogi on Tue Mar 27 13:08:56 2001, using kdoc 2.0a48.