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

KHTML

khtml_iface.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  *  Copyright (C) 2002 Stephan Kulow <coolo@kde.org>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this library; see the file COPYING.LIB.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __khtml_Iface_h__
00021 #define __khtml_Iface_h__
00022 
00023 #include <kurl.h>
00024 #include <khtml_part.h>
00025 #include <QtDBus/QtDBus>
00026 
00027 class KHTMLPart;
00028 
00032 class KHTMLPartIface : public QDBusAbstractAdaptor
00033 {
00034     Q_OBJECT
00035     Q_CLASSINFO("D-Bus Interface", "org.kde.KHTMLPart")
00036     Q_PROPERTY(bool autoloadImages READ autoloadImages WRITE setAutoloadImages)
00037     Q_PROPERTY(bool dndEnabled READ dndEnabled WRITE setDndEnabled)
00038     Q_PROPERTY(QString encoding READ encoding WRITE setEncoding)
00039     Q_PROPERTY(bool jScriptEnabled READ jScriptEnabled WRITE setJScriptEnabled)
00040     Q_PROPERTY(bool javaEnabled READ javaEnabled WRITE setJavaEnabled)
00041     Q_PROPERTY(QString lastModified READ lastModified)
00042     Q_PROPERTY(bool metaRefreshEnabled READ metaRefreshEnabled WRITE setMetaRefreshEnabled)
00043     Q_PROPERTY(bool onlyLocalReferences READ onlyLocalReferences WRITE setOnlyLocalReferences)
00044     Q_PROPERTY(bool pluginsEnabled READ pluginsEnabled WRITE setPluginsEnabled)
00045     Q_PROPERTY(QString url READ url)
00046 
00047 public:
00048 
00049     KHTMLPartIface( KHTMLPart * );
00050     virtual ~KHTMLPartIface();
00051 
00052 public Q_SLOTS:
00056     QString url() const;
00057 
00058     bool closeUrl();
00059 
00066     void setJScriptEnabled( bool enable );
00067 
00072     bool jScriptEnabled() const;
00073 
00077     void setMetaRefreshEnabled( bool enable );
00078 
00082     bool metaRefreshEnabled() const;
00083 
00088     void setDndEnabled( bool b );
00089 
00093     bool dndEnabled() const;
00094 
00101     void setJavaEnabled( bool enable );
00102 
00106     bool javaEnabled() const;
00107 
00108 
00112     void setPluginsEnabled( bool enable );
00113 
00117     bool pluginsEnabled() const;
00118 
00125     void setAutoloadImages( bool enable );
00126 
00133     bool autoloadImages() const;
00134 
00142     void setOnlyLocalReferences(bool enable);
00143 
00147     bool onlyLocalReferences() const;
00148 
00155     bool setEncoding( const QString &name );
00156 
00162     QString encoding() const;
00163 
00171     void setUserStyleSheet(const QString &styleSheet);
00172 
00179     void setFixedFont( const QString &name );
00180 
00188     bool gotoAnchor( const QString &name );
00189 
00195     bool nextAnchor();
00196 
00200     bool prevAnchor();
00201 
00206     void activateNode();
00207 
00211     QString selectedText() const;
00212 
00216     void selectAll();
00217 
00221     QString lastModified() const;
00222 
00227     Q_NOREPLY void print( bool quick );
00228 
00229     void debugRenderTree();
00230     void debugDOMTree();
00231     void viewDocumentSource();
00232     void viewFrameSource();
00233     void saveBackground(const QString &url);
00234     void saveDocument(const QString &url);
00235 
00239     QString evalJS(const QString &script);
00240 
00244     void stopAnimations();
00245 
00246 Q_SIGNALS:
00247     void configurationChanged();
00248 
00249 private:
00250     KHTMLPart *part;
00251 };
00252 
00253 #endif
00254 

KHTML

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal