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

KHTML

  • sources
  • kde-4.12
  • kdelibs
  • 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 
27 class KHTMLPart;
28 
32 class 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 
47 public:
48 
49  KHTMLPartIface( KHTMLPart * );
50  virtual ~KHTMLPartIface();
51 
52 public 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 
246 Q_SIGNALS:
247  void configurationChanged();
248 
249 private:
250  KHTMLPart *part;
251 };
252 
253 #endif
254 
KHTMLPartIface::debugRenderTree
void debugRenderTree()
Definition: khtml_iface.cc:168
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
D-BUS 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
kurl.h
QDBusAbstractAdaptor
KHTMLPartIface::debugDOMTree
void debugDOMTree()
Definition: khtml_iface.cc:173
khtml_part.h
KHTMLPartIface::setEncoding
bool setEncoding(const QString &name)
Sets the encoding the page uses.
Definition: khtml_iface.cc:118
KHTMLPartIface::saveDocument
void saveDocument(const QString &url)
Definition: khtml_iface.cc:199
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:206
KHTMLPartIface::print
Q_NOREPLY void 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
QString
KHTMLPartIface::metaRefreshEnabled
bool metaRefreshEnabled() const
Returns true if automtaic forwarding is enabled.
KHTMLPartIface::dndEnabled
bool dndEnabled() const
Returns whether Dragn'n'Drop support is enabled or not.
KHTMLPartIface::saveBackground
void saveBackground(const QString &url)
Definition: khtml_iface.cc:188
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.
KHTMLPartIface::viewDocumentSource
void viewDocumentSource()
Definition: khtml_iface.cc:183
KHTMLPartIface::encoding
QString encoding() const
Returns the encoding the page currently uses.
KHTMLPartIface::setDndEnabled
void setDndEnabled(bool b)
Enables or disables Drag'n'Drop support.
Definition: khtml_iface.cc:63
KHTMLPartIface::lastModified
QString lastModified() const
Last-modified date (in raw string format), if received in the [HTTP] headers.
KHTMLPartIface::setMetaRefreshEnabled
void setMetaRefreshEnabled(bool enable)
Enable/disable the automatic forwarding by
Definition: khtml_iface.cc:108
KHTMLPartIface::pluginsEnabled
bool pluginsEnabled() const
Returns trie if plugins are enabled/disabled.
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 )
KHTMLPartIface::viewFrameSource
void viewFrameSource()
Definition: khtml_iface.cc:221
KHTMLPartIface::url
QString url() const
KHTMLPartIface::jScriptEnabled
bool jScriptEnabled() const
Returns true if Javascript support is enabled or false otherwise.
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::closeUrl
bool closeUrl()
Definition: khtml_iface.cc:53
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. ...
KHTMLPartIface::configurationChanged
void configurationChanged()
KHTMLPartIface::stopAnimations
void stopAnimations()
Stops display of animated images.
Definition: khtml_iface.cc:178
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:21 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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