27 #ifndef __tdehtml_ext_h__
28 #define __tdehtml_ext_h__
30 #include "tdehtml_part.h"
32 #include <tqguardedptr.h>
34 #include <tdeaction.h>
35 #include <tdeio/global.h>
49 virtual int xOffset();
50 virtual int yOffset();
52 virtual void saveState( TQDataStream &stream );
53 virtual void restoreState( TQDataStream &stream );
56 void editableWidgetFocused( TQWidget *widget );
57 void editableWidgetBlurred( TQWidget *widget );
65 void searchProvider();
67 void reparseConfiguration();
69 void disableScrolling();
73 void updateEditActions();
77 void extensionProxyActionEnabled(
const char *action,
bool enable );
78 void extensionProxyEditableWidgetFocused();
79 void extensionProxyEditableWidgetBlurred();
82 void editableWidgetFocused();
83 void editableWidgetBlurred();
85 void callExtensionProxyMethod(
const char *method );
88 TQGuardedPtr<TQWidget> m_editableFormWidget;
89 TQGuardedPtr<KParts::BrowserExtension> m_extensionProxy;
90 bool m_connectedToClipboard;
96 TDEHTMLPartBrowserHostExtension(
TDEHTMLPart *part );
97 virtual ~TDEHTMLPartBrowserHostExtension();
101 virtual const TQPtrList<KParts::ReadOnlyPart>
frames()
const;
106 virtual void virtual_hook(
int id,
void* data );
115 class TDEHTMLPopupGUIClient :
public TQObject,
public KXMLGUIClient
119 TDEHTMLPopupGUIClient(
TDEHTMLPart *tdehtml,
const TQString &doc,
const KURL &url );
120 virtual ~TDEHTMLPopupGUIClient();
122 static void saveURL( TQWidget *parent,
const TQString &caption,
const KURL &url,
123 const TQMap<TQString, TQString> &metaData = TDEIO::MetaData(),
124 const TQString &filter = TQString::null,
long cacheId = 0,
125 const TQString &suggestedFilename = TQString::null );
127 static void saveURL(
const KURL &url,
const KURL &destination,
128 const TQMap<TQString, TQString> &metaData = TDEIO::MetaData(),
131 void slotSaveLinkAs();
132 void slotSaveImageAs();
133 void slotCopyLinkLocation();
134 void slotSendImage();
135 void slotStopAnimations();
136 void slotCopyImageLocation();
137 void slotCopyImage();
138 void slotViewImage();
139 void slotReloadFrame();
140 void slotFrameInWindow();
141 void slotFrameInTop();
142 void slotFrameInTab();
143 void slotBlockImage();
144 void slotBlockHost();
145 void slotBlockIFrame();
148 class TDEHTMLPopupGUIClientPrivate;
149 TDEHTMLPopupGUIClientPrivate *d;
152 class TDEHTMLZoomFactorAction :
public TDEAction
157 TDEHTMLZoomFactorAction(
TDEHTMLPart *part,
bool direction,
const TQString &text,
const TQString &icon,
const TQObject *receiver,
const char *slot, TQObject *parent,
const char *name );
158 TDEHTMLZoomFactorAction(
TDEHTMLPart *part,
bool direction,
const TQString &text,
159 const TQString &icon,
const TDEShortcut& cut,
const TQObject *receiver,
160 const char *slot, TQObject *parent,
const char *name );
161 virtual ~TDEHTMLZoomFactorAction();
163 virtual int plug( TQWidget *widget,
int index );
166 void slotActivated(
int );
168 void slotActivated() { TDEAction::slotActivated(); }
172 TQPopupMenu *m_popup;
virtual bool openURLInFrame(const KURL &url, const KParts::URLArgs &urlArgs)
virtual const TQPtrList< KParts::ReadOnlyPart > frames() const
virtual TQStringList frameNames() const
virtual int plug(TQWidget *widget, int index=-1)
This is the BrowserExtension for a TDEHTMLPart document.
This class is tdehtml's main class.
Renders and displays HTML in a TQScrollView.
void print()
Prints the HTML document.