khtml_iface.h
/* This file is part of the KDE project
* Copyright (C) 2002 Stephan Kulow <coolo@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __khtml_Iface_h__
#define __khtml_Iface_h__
#include <dcopobject.h>
#include <dcopref.h>
#include <kurl.h>
class KHTMLPart;
class KHTMLPartIface : public DCOPObject
{
K_DCOP
public:
KHTMLPartIface( KHTMLPart * );
virtual ~KHTMLPartIface();
k_dcop:
KURL url() const;
bool closeURL();
void setJScriptEnabled( bool enable );
bool jScriptEnabled() const;
void setMetaRefreshEnabled( bool enable );
bool metaRefreshEnabled() const;
void setDNDEnabled( bool b );
bool dndEnabled() const;
void setJavaEnabled( bool enable );
bool javaEnabled() const;
void setPluginsEnabled( bool enable );
bool pluginsEnabled() const;
void setAutoloadImages( bool enable );
bool autoloadImages() const;
void setOnlyLocalReferences(bool enable);
bool onlyLocalReferences() const;
bool setEncoding( const QString &name );
QString encoding() const;
void setUserStyleSheet(const QString &styleSheet);
void setFixedFont( const QString &name );
bool gotoAnchor( const QString &name );
bool nextAnchor();
bool prevAnchor();
void activateNode();
QString selectedText() const;
void selectAll();
QString lastModified() const;
ASYNC print( bool quick );
void debugRenderTree();
void debugDOMTree();
void viewDocumentSource();
void viewFrameSource();
void saveBackground(const QString &url);
void saveDocument(const QString &url);
QString evalJS(const QString &script);
void stopAnimations();
private:
KHTMLPart *part;
};
#endif
KURL
KHTMLPartIface::setAutoloadImages
void setAutoloadImages(bool enable)
Specifies whether images contained in the document should be loaded automatically or not...
Definition: khtml_iface.cc:93
KHTMLPartIface
DCOP interface for KHTML.
Definition: khtml_iface.h:32
KHTMLPartIface::setFixedFont
void setFixedFont(const QString &name)
Sets the fixed font style.
Definition: khtml_iface.cc:128
KHTMLPartIface::setEncoding
bool setEncoding(const QString &name)
Sets the encoding the page uses.
Definition: khtml_iface.cc:118
KHTMLPartIface::nextAnchor
bool nextAnchor()
Go to next Anchor.
Definition: khtml_iface.cc:139
KHTMLPartIface::evalJS
QString evalJS(const QString &script)
Evaluate a given piece of Javascript code.
Definition: khtml_iface.cc:226
KHTMLPart
This class is khtml's main class.
Definition: khtml_part.h:184
KHTMLPartIface::print
ASYNC print(bool quick)
Print the contents of the current html view.
Definition: khtml_iface.cc:231
KHTMLPartIface::setUserStyleSheet
void setUserStyleSheet(const QString &styleSheet)
Sets a user defined style sheet to be used on top of the HTML 4 default style sheet.
Definition: khtml_iface.cc:211
KHTMLPartIface::metaRefreshEnabled
bool metaRefreshEnabled() const
Returns true if automtaic forwarding is enabled.
Definition: khtml_iface.cc:58
KHTMLPartIface::dndEnabled
bool dndEnabled() const
Returns whether Dragn'n'Drop support is enabled or not.
Definition: khtml_iface.cc:68
KHTMLPartIface::activateNode
void activateNode()
Activate the node that currently has the focus (emulates pressing Return)
Definition: khtml_iface.cc:149
KHTMLPartIface::javaEnabled
bool javaEnabled() const
Return if Java applet support is enabled/disabled.
Definition: khtml_iface.cc:78
KHTMLPartIface::encoding
QString encoding() const
Returns the encoding the page currently uses.
Definition: khtml_iface.cc:123
KHTMLPartIface::lastModified
QString lastModified() const
Last-modified date (in raw string format), if received in the [HTTP] headers.
Definition: khtml_iface.cc:163
KHTMLPartIface::setMetaRefreshEnabled
void setMetaRefreshEnabled(bool enable)
Enable/disable the automatic forwarding by
Definition: khtml_iface.cc:108
KHTMLPartIface::url
KURL url() const
Definition: khtml_iface.cc:38
KHTMLPartIface::pluginsEnabled
bool pluginsEnabled() const
Returns trie if plugins are enabled/disabled.
Definition: khtml_iface.cc:88
KHTMLPartIface::setOnlyLocalReferences
void setOnlyLocalReferences(bool enable)
Security option.
Definition: khtml_iface.cc:103
KHTMLPartIface::onlyLocalReferences
bool onlyLocalReferences() const
Returns whether references should be loaded ( default false )
Definition: khtml_iface.cc:113
KHTMLPartIface::jScriptEnabled
bool jScriptEnabled() const
Returns true if Javascript support is enabled or false otherwise.
Definition: khtml_iface.cc:48
KHTMLPartIface::selectAll
void selectAll()
Marks all text in the document as selected.
Definition: khtml_iface.cc:158
KHTMLPartIface::prevAnchor
bool prevAnchor()
Go to previous Anchor.
Definition: khtml_iface.cc:144
KHTMLPartIface::setPluginsEnabled
void setPluginsEnabled(bool enable)
Enables or disables plugins via, default is enabled.
Definition: khtml_iface.cc:83
KHTMLPartIface::selectedText
QString selectedText() const
Returns the text the user has marked.
Definition: khtml_iface.cc:216
KHTMLPartIface::setJScriptEnabled
void setJScriptEnabled(bool enable)
Enable/disable Javascript support.
Definition: khtml_iface.cc:43
KHTMLPartIface::setDNDEnabled
void setDNDEnabled(bool b)
Enables or disables Drag'n'Drop support.
Definition: khtml_iface.cc:63
KHTMLPartIface::gotoAnchor
bool gotoAnchor(const QString &name)
Finds the anchor named name.
Definition: khtml_iface.cc:134
KHTMLPartIface::setJavaEnabled
void setJavaEnabled(bool enable)
Enables/disables Java applet support.
Definition: khtml_iface.cc:73
KHTMLPartIface::autoloadImages
bool autoloadImages() const
Returns whether images contained in the document are loaded automatically or not. ...
Definition: khtml_iface.cc:98
KHTMLPartIface::stopAnimations
void stopAnimations()
Stops display of animated images.
Definition: khtml_iface.cc:178

KDE Home | KDE Accessibility Home | Description of Access Keys