khtml_ext.h
来自「konqueror3 embedded版本, KDE环境下的当家浏览器的嵌入式版」· C头文件 代码 · 共 131 行
H
131 行
/* This file is part of the KDE project Copyright (C) 2000 Simon Hausmann <hausmann@kde.org> Copyright (C) 2003 Luciano Montanaro <mikelima@cirulla.net> Copyright (C) 2001 Dirk Mueller <mueller@kde.org> Copyright (C) 2002 Paul Chitescu <Paul.Chitescu@IMC-Group.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_ext_h__#define __khtml_ext_h__#include "khtml_part.h"#include <kaction.h>#include <kio/global.h>/** * This is the BrowserExtension for a @ref KHTMLPart document. Please see the KParts documentation for * more information about the BrowserExtension. */class KHTMLPartBrowserExtension : public KParts::BrowserExtension{ Q_OBJECT friend class KHTMLPart; friend class KHTMLView;public: KHTMLPartBrowserExtension( KHTMLPart *parent, const char *name = 0L ); virtual int xOffset(); virtual int yOffset(); virtual void saveState( QDataStream &stream ); virtual void restoreState( QDataStream &stream ); void editableWidgetFocused( QWidget * ) {} void editableWidgetBlurred( QWidget * ) {} void setExtensionProxy( KParts::BrowserExtension * ) {} // HACK: put it here since this is a friend of KHTMLPart static void setOpenedByJS( KHTMLPart *part, bool _openedByJS ) { part->setOpenedByJS(_openedByJS); }public slots: void copy() {} void reparseConfiguration(); void print();private: KHTMLPart *m_part;};class KHTMLPartBrowserHostExtension : public KParts::BrowserHostExtension{public: KHTMLPartBrowserHostExtension( KHTMLPart *part ); ~KHTMLPartBrowserHostExtension(); virtual QStringList frameNames() const; virtual const QPtrList<KParts::ReadOnlyPart> frames() const; virtual bool openURLInFrame( const KURL &url, const KParts::URLArgs &urlArgs );private: KHTMLPart *m_part;};/** * @internal * INTERNAL class. *NOT* part of the public API. */class KHTMLPopupGUIClient : public KXMLGUIClient{public: KHTMLPopupGUIClient( KHTMLPart *, const QString &, const KURL & ) {} static void saveURL( QWidget *, const QString &, const KURL &, const QMap<QString, QString> & = KIO::MetaData(), const QString & = QString::null, long = 0, const QString & = QString::null ) {} static void saveURL( const KURL &, const KURL &, const QMap<QString, QString> & = KIO::MetaData(), long = 0 ) {}};class KHTMLZoomFactorAction : public KAction{ Q_OBJECTpublic: KHTMLZoomFactorAction( KHTMLPart * /*part*/, bool , const QString &text, const QString &, const QObject *receiver, const char *slot, QObject *parent, const char *name ) : KAction( text, 0, receiver, slot, parent, name ) { } KHTMLZoomFactorAction( KHTMLPart * /*part*/, bool , const QString &text, const QString &, const KShortcut&, const QObject *receiver, const char *slot, QObject *parent, const char *name ) : KAction( text, 0, receiver, slot, parent, name ) { } virtual int plug( QWidget *w, int index );private slots: void slotActivated( int ) { }protected slots: void slotActivated() { }private: bool m_direction; KHTMLPart *m_part;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?