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 <dcopobject.h> 00024 #include <dcopref.h> 00025 #include <kurl.h> 00026 00027 class KHTMLPart; 00028 00032 class KHTMLPartIface : public DCOPObject 00033 { 00034 K_DCOP 00035 00036 public: 00037 00038 KHTMLPartIface( KHTMLPart * ); 00039 virtual ~KHTMLPartIface(); 00040 00041 k_dcop: 00045 KURL url() const; 00046 00047 bool closeURL(); 00048 00055 void setJScriptEnabled( bool enable ); 00056 00061 bool jScriptEnabled() const; 00062 00066 void setMetaRefreshEnabled( bool enable ); 00067 00071 bool metaRefreshEnabled() const; 00072 00077 void setDNDEnabled( bool b ); 00078 00082 bool dndEnabled() const; 00083 00090 void setJavaEnabled( bool enable ); 00091 00095 bool javaEnabled() const; 00096 00097 00101 void setPluginsEnabled( bool enable ); 00102 00106 bool pluginsEnabled() const; 00107 00114 void setAutoloadImages( bool enable ); 00115 00122 bool autoloadImages() const; 00123 00131 void setOnlyLocalReferences(bool enable); 00132 00136 bool onlyLocalReferences() const; 00137 00144 bool setEncoding( const QString &name ); 00145 00151 QString encoding() const; 00152 00160 void setUserStyleSheet(const QString &styleSheet); 00161 00168 void setFixedFont( const QString &name ); 00169 00177 bool gotoAnchor( const QString &name ); 00178 00185 bool nextAnchor(); 00186 00191 bool prevAnchor(); 00192 00197 void activateNode(); 00198 00202 QString selectedText() const; 00203 00207 void selectAll(); 00208 00212 QString lastModified() const; 00213 00218 ASYNC print( bool quick ); 00219 00220 void debugRenderTree(); 00221 void debugDOMTree(); 00222 void viewDocumentSource(); 00223 void viewFrameSource(); 00224 void saveBackground(const QString &url); 00225 void saveDocument(const QString &url); 00226 00230 QString evalJS(const QString &script); 00231 00235 void stopAnimations(); 00236 00237 private: 00238 KHTMLPart *part; 00239 }; 00240 00241 #endif 00242