• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
khtml_iface.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * Copyright (C) 2002 Stephan Kulow <coolo@kde.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __khtml_Iface_h__
21#define __khtml_Iface_h__
22
23#include <kurl.h>
24#include <khtml_part.h>
25#include <QtDBus/QtDBus>
26
27class KHTMLPart;
28
32class KHTMLPartIface : public QDBusAbstractAdaptor
33{
34 Q_OBJECT
35 Q_CLASSINFO("D-Bus Interface", "org.kde.KHTMLPart")
36 Q_PROPERTY(bool autoloadImages READ autoloadImages WRITE setAutoloadImages)
37 Q_PROPERTY(bool dndEnabled READ dndEnabled WRITE setDndEnabled)
38 Q_PROPERTY(QString encoding READ encoding WRITE setEncoding)
39 Q_PROPERTY(bool jScriptEnabled READ jScriptEnabled WRITE setJScriptEnabled)
40 Q_PROPERTY(bool javaEnabled READ javaEnabled WRITE setJavaEnabled)
41 Q_PROPERTY(QString lastModified READ lastModified)
42 Q_PROPERTY(bool metaRefreshEnabled READ metaRefreshEnabled WRITE setMetaRefreshEnabled)
43 Q_PROPERTY(bool onlyLocalReferences READ onlyLocalReferences WRITE setOnlyLocalReferences)
44 Q_PROPERTY(bool pluginsEnabled READ pluginsEnabled WRITE setPluginsEnabled)
45 Q_PROPERTY(QString url READ url)
46
47public:
48
49 KHTMLPartIface( KHTMLPart * );
50 virtual ~KHTMLPartIface();
51
52public Q_SLOTS:
56 QString url() const;
57
58 bool closeUrl();
59
66 void setJScriptEnabled( bool enable );
67
72 bool jScriptEnabled() const;
73
77 void setMetaRefreshEnabled( bool enable );
78
82 bool metaRefreshEnabled() const;
83
88 void setDndEnabled( bool b );
89
93 bool dndEnabled() const;
94
101 void setJavaEnabled( bool enable );
102
106 bool javaEnabled() const;
107
108
112 void setPluginsEnabled( bool enable );
113
117 bool pluginsEnabled() const;
118
125 void setAutoloadImages( bool enable );
126
133 bool autoloadImages() const;
134
142 void setOnlyLocalReferences(bool enable);
143
147 bool onlyLocalReferences() const;
148
155 bool setEncoding( const QString &name );
156
162 QString encoding() const;
163
171 void setUserStyleSheet(const QString &styleSheet);
172
179 void setFixedFont( const QString &name );
180
188 bool gotoAnchor( const QString &name );
189
195 bool nextAnchor();
196
200 bool prevAnchor();
201
206 void activateNode();
207
211 QString selectedText() const;
212
216 void selectAll();
217
221 QString lastModified() const;
222
227 Q_NOREPLY void print( bool quick );
228
229 void debugRenderTree();
230 void debugDOMTree();
231 void viewDocumentSource();
232 void viewFrameSource();
233 void saveBackground(const QString &url);
234 void saveDocument(const QString &url);
235
239 QString evalJS(const QString &script);
240
244 void stopAnimations();
245
246Q_SIGNALS:
247 void configurationChanged();
248
249private:
250 KHTMLPart *part;
251};
252
253#endif
254
KHTMLPartIface
D-BUS interface for KHTML.
Definition: khtml_iface.h:33
KHTMLPartIface::setOnlyLocalReferences
void setOnlyLocalReferences(bool enable)
Security option.
Definition: khtml_iface.cc:103
KHTMLPartIface::pluginsEnabled
bool pluginsEnabled
Definition: khtml_iface.h:44
KHTMLPartIface::setFixedFont
void setFixedFont(const QString &name)
Sets the fixed font style.
Definition: khtml_iface.cc:128
KHTMLPartIface::encoding
QString encoding
Definition: khtml_iface.h:38
KHTMLPartIface::stopAnimations
void stopAnimations()
Stops display of animated images.
Definition: khtml_iface.cc:178
KHTMLPartIface::setJavaEnabled
void setJavaEnabled(bool enable)
Enables/disables Java applet support.
Definition: khtml_iface.cc:73
KHTMLPartIface::viewDocumentSource
void viewDocumentSource()
Definition: khtml_iface.cc:183
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::debugRenderTree
void debugRenderTree()
Definition: khtml_iface.cc:168
KHTMLPartIface::configurationChanged
void configurationChanged()
KHTMLPartIface::lastModified
QString lastModified
Definition: khtml_iface.h:41
KHTMLPartIface::selectedText
QString selectedText() const
Returns the text the user has marked.
Definition: khtml_iface.cc:216
KHTMLPartIface::nextAnchor
bool nextAnchor()
Go to next Anchor.
Definition: khtml_iface.cc:139
KHTMLPartIface::print
Q_NOREPLY void print(bool quick)
Print the contents of the current html view.
Definition: khtml_iface.cc:231
KHTMLPartIface::javaEnabled
bool javaEnabled
Definition: khtml_iface.h:40
KHTMLPartIface::saveDocument
void saveDocument(const QString &url)
Definition: khtml_iface.cc:199
KHTMLPartIface::evalJS
QString evalJS(const QString &script)
Evaluate a given piece of Javascript code.
Definition: khtml_iface.cc:226
KHTMLPartIface::saveBackground
void saveBackground(const QString &url)
Definition: khtml_iface.cc:188
KHTMLPartIface::setEncoding
bool setEncoding(const QString &name)
Sets the encoding the page uses.
Definition: khtml_iface.cc:118
KHTMLPartIface::~KHTMLPartIface
virtual ~KHTMLPartIface()
Definition: khtml_iface.cc:34
KHTMLPartIface::jScriptEnabled
bool jScriptEnabled
Definition: khtml_iface.h:39
KHTMLPartIface::prevAnchor
bool prevAnchor()
Go to previous Anchor.
Definition: khtml_iface.cc:144
KHTMLPartIface::closeUrl
bool closeUrl()
Definition: khtml_iface.cc:53
KHTMLPartIface::viewFrameSource
void viewFrameSource()
Definition: khtml_iface.cc:221
KHTMLPartIface::setPluginsEnabled
void setPluginsEnabled(bool enable)
Enables or disables plugins via, default is enabled.
Definition: khtml_iface.cc:83
KHTMLPartIface::debugDOMTree
void debugDOMTree()
Definition: khtml_iface.cc:173
KHTMLPartIface::dndEnabled
bool dndEnabled
Definition: khtml_iface.h:37
KHTMLPartIface::setDndEnabled
void setDndEnabled(bool b)
Enables or disables Drag'n'Drop support.
Definition: khtml_iface.cc:63
KHTMLPartIface::setJScriptEnabled
void setJScriptEnabled(bool enable)
Enable/disable Javascript support.
Definition: khtml_iface.cc:43
KHTMLPartIface::metaRefreshEnabled
bool metaRefreshEnabled
Definition: khtml_iface.h:42
KHTMLPartIface::setMetaRefreshEnabled
void setMetaRefreshEnabled(bool enable)
Enable/disable the automatic forwarding by <meta http-equiv="refresh" ....
Definition: khtml_iface.cc:108
KHTMLPartIface::url
QString url
Definition: khtml_iface.h:45
KHTMLPartIface::selectAll
void selectAll()
Marks all text in the document as selected.
Definition: khtml_iface.cc:158
KHTMLPartIface::autoloadImages
bool autoloadImages
Definition: khtml_iface.h:36
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::activateNode
void activateNode()
Activate the node that currently has the focus (emulates pressing Return)
Definition: khtml_iface.cc:149
KHTMLPartIface::gotoAnchor
bool gotoAnchor(const QString &name)
Finds the anchor named name.
Definition: khtml_iface.cc:134
KHTMLPartIface::onlyLocalReferences
bool onlyLocalReferences
Definition: khtml_iface.h:43
KHTMLPart
This class is khtml's main class.
Definition: khtml_part.h:207
QDBusAbstractAdaptor
khtml_part.h
kurl.h
name
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal