• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
tdehtml_part.h
1/* This file is part of the KDE project
2 *
3 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
4 * 1999-2001 Lars Knoll <knoll@kde.org>
5 * 1999-2001 Antti Koivisto <koivisto@kde.org>
6 * 2000-2001 Simon Hausmann <hausmann@kde.org>
7 * 2000-2001 Dirk Mueller <mueller@kde.org>
8 * 2000 Stefan Schimanski <1Stein@gmx.de>
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
19 *
20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
24 */
25#ifndef __tdehtml_part_h__
26#define __tdehtml_part_h__
27
28#include "dom/html_document.h"
29#include "dom/dom2_range.h"
30
31#include <tdeparts/part.h>
32#include <tdeparts/browserextension.h>
33#include <tdemacros.h>
34#include <kfinddialog.h>
35
36#include <tqregexp.h>
37
38class TDEHTMLPartPrivate;
39class TDEHTMLPartBrowserExtension;
40class KJSProxy;
41class TDEHTMLView;
42class TDEHTMLSettings;
43class KJavaAppletContext;
44class KJSErrorDlg;
45
46namespace DOM
47{
48 class HTMLDocument;
49 class HTMLDocumentImpl;
50 class DocumentImpl;
51 class HTMLTitleElementImpl;
52 class HTMLElementImpl;
53 class HTMLFrameElementImpl;
54 class HTMLIFrameElementImpl;
55 class HTMLObjectElementImpl;
56 class HTMLFormElementImpl;
57 class HTMLAnchorElementImpl;
58 class HTMLMetaElementImpl;
59 class NodeImpl;
60 class Node;
61 class HTMLEventListener;
62 class EventListener;
63}
64
65namespace KJS
66{
67 class Interpreter;
68}
69
70namespace tdehtml
71{
72 class DocLoader;
73 class RenderPart;
74 class RenderPartObject;
75 class ChildFrame;
76 class MouseEvent;
77 class MousePressEvent;
78 class MouseDoubleClickEvent;
79 class MouseMoveEvent;
80 class MouseReleaseEvent;
81 class DrawContentsEvent;
82 class CachedObject;
83 class RenderWidget;
84 class CSSStyleSelector;
85 class HTMLTokenizer;
86 class Decoder;
87 class XMLTokenizer;
88}
89
90namespace KJS {
91 class Window;
92 class WindowFunc;
93 class ExternalFunc;
94 class JSEventListener;
95 class JSLazyEventListener;
96 class JSNodeFilter;
97 class DOMDocument;
98 class SourceFile;
99 class ScheduledAction;
100}
101
102namespace KParts
103{
104 class PartManager;
105 class LiveConnectExtension;
106}
107
108namespace TDEWallet
109{
110 class Wallet;
111}
112
183class TDEHTML_EXPORT TDEHTMLPart : public KParts::ReadOnlyPart
184{
185 TQ_OBJECT
186 friend class TDEHTMLView;
187 friend class DOM::HTMLTitleElementImpl;
188 friend class DOM::HTMLFrameElementImpl;
189 friend class DOM::HTMLIFrameElementImpl;
190 friend class DOM::HTMLObjectElementImpl;
191 friend class DOM::HTMLAnchorElementImpl;
192 friend class DOM::HTMLMetaElementImpl;
193 friend class DOM::NodeImpl;
194 friend class TDEHTMLRun;
195 friend class DOM::HTMLFormElementImpl;
196 friend class tdehtml::RenderPartObject;
197 friend class KJS::Window;
198 friend class KJS::ScheduledAction;
199 friend class KJS::JSNodeFilter;
200 friend class KJS::WindowFunc;
201 friend class KJS::ExternalFunc;
202 friend class KJS::JSEventListener;
203 friend class KJS::JSLazyEventListener;
204 friend class KJS::DOMDocument;
205 friend class KJS::SourceFile;
206 friend class KJSProxy;
207 friend class TDEHTMLPartBrowserExtension;
208 friend class DOM::DocumentImpl;
209 friend class DOM::HTMLDocumentImpl;
210 friend class TDEHTMLPartBrowserHostExtension;
211 friend class tdehtml::HTMLTokenizer;
212 friend class tdehtml::XMLTokenizer;
213 friend class tdehtml::RenderWidget;
214 friend class tdehtml::CSSStyleSelector;
215 friend class TDEHTMLPartIface;
216 friend class TDEHTMLPartFunction;
217 friend class TDEHTMLPopupGUIClient;
218
219 TQ_PROPERTY( bool javaScriptEnabled READ jScriptEnabled WRITE setJScriptEnabled )
220 TQ_PROPERTY( bool javaEnabled READ javaEnabled WRITE setJavaEnabled )
221 TQ_PROPERTY( bool autoloadImages READ autoloadImages WRITE setAutoloadImages )
222 TQ_PROPERTY( bool dndEnabled READ dndEnabled WRITE setDNDEnabled )
223 TQ_PROPERTY( bool pluginsEnabled READ pluginsEnabled WRITE setPluginsEnabled )
224
225 /*
226 *
227 * Don't add setOnlyLocalReferences here. It shouldn't be accessible via DCOP.
228 *
229 **/
230 TQ_PROPERTY( TQCString dcopObjectId READ dcopObjectId )
231 TQ_PROPERTY( bool modified READ isModified )
232
233public:
234 enum GUIProfile { DefaultGUI, BrowserViewGUI /* ... */ };
235
248 TDEHTMLPart( TQWidget *parentWidget = 0, const char *widgetname = 0,
249 TQObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI );
250
251 TDEHTMLPart( TDEHTMLView *view, TQObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI );
252
256 virtual ~TDEHTMLPart();
257
263 virtual bool openURL( const KURL &url );
264
268 virtual bool closeURL();
269
276 virtual void showError( TDEIO::Job* job );
277
281 DOM::HTMLDocument htmlDocument() const;
282
286 DOM::Document document() const;
287
292 TQString documentSource() const;
293
297 DOM::Node activeNode() const;
298
302 KParts::BrowserExtension *browserExtension() const;
303 KParts::LiveConnectExtension *liveConnectExtension( const tdehtml::RenderPart *) const;
304 KParts::BrowserHostExtension *browserHostExtension() const;
305
309 TDEHTMLView *view() const;
310
317 void setJScriptEnabled( bool enable );
318
323 bool jScriptEnabled() const;
324
342 KJS::Interpreter *jScriptInterpreter();
343
355 void setStatusMessagesEnabled( bool enable );
356
360 bool statusMessagesEnabled() const;
361
365 void setMetaRefreshEnabled( bool enable );
366
370 bool metaRefreshEnabled() const;
371
376 TQVariant executeScript( const DOM::Node &n, const TQString &script );
377
382 void setDNDEnabled( bool b );
383
387 bool dndEnabled() const;
388
395 void setJavaEnabled( bool enable );
396
400 bool javaEnabled() const;
401
405 KJavaAppletContext *javaContext();
406
411 KJavaAppletContext *createJavaContext();
412
416 void setPluginsEnabled( bool enable );
417
421 bool pluginsEnabled() const;
422
429 void setAutoloadImages( bool enable );
436 bool autoloadImages() const;
437
454 void setOnlyLocalReferences( bool enable );
455
460 bool onlyLocalReferences() const;
461
465 bool isCaretMode() const;
466
471 bool isEditable() const;
472
486 void setCaretPosition(DOM::Node node, long offset, bool extendSelection = false);
487
495 enum CaretDisplayPolicy {
496 CaretVisible, CaretInvisible, CaretBlink
497 };
498
503 CaretDisplayPolicy caretDisplayPolicyNonFocused() const;
504
515 void setCaretDisplayPolicyNonFocused(CaretDisplayPolicy policy);
516
517#ifndef KDE_NO_COMPAT
518 void enableJScript( bool e ) { setJScriptEnabled(e); }
519 void enableJava( bool e ) { setJavaEnabled(e); }
520 void enablePlugins( bool e ) { setPluginsEnabled(e); }
521 void autoloadImages( bool e ) { setAutoloadImages(e); }
522 void enableMetaRefresh( bool e ) { setMetaRefreshEnabled(e); }
523 bool setCharset( const TQString &, bool ) { return true; }
524
525 KURL baseURL() const;
526 TQString baseTarget() const;
527#endif
528
532 KURL backgroundURL() const;
533
537 void scheduleRedirection( int delay, const TQString &url, bool lockHistory = true );
538
561 virtual void begin( const KURL &url = KURL(), int xOffset = 0, int yOffset = 0 );
562
583 virtual void write( const char *str, int len = -1 );
584
592 virtual void write( const TQString &str );
593
597 virtual void end();
598
599 /*
600 * Prints the current HTML page laid out for the printer.
601 *
602 * (not implemented at the moment)
603 */
604 // void print(TQPainter *, int pageHeight, int pageWidth);
605
609 void paint( TQPainter *, const TQRect &, int = 0, bool * = 0 );
610
617 bool setEncoding( const TQString &name, bool override = false );
618
624 TQString encoding() const;
625
635 void setUserStyleSheet( const KURL &url );
636
646 void setUserStyleSheet( const TQString &styleSheet );
647
648public:
649
655 void setStandardFont( const TQString &name );
656
663 void setFixedFont( const TQString &name );
664
672 bool gotoAnchor( const TQString &name );
673
680 bool nextAnchor();
681
686 bool prevAnchor();
687
691 void setURLCursor( const TQCursor &c );
692
696 TQCursor urlCursor() const;
697
702 enum FindOptions
703 {
704 FindLinksOnly = 1 * KFindDialog::MinimumUserOption,
705 FindNoPopups = 2 * KFindDialog::MinimumUserOption
706 //FindIncremental = 4 * KFindDialog::MinimumUserOption
707 };
708
714 void findText();
715
724 void findText( const TQString &str, long options, TQWidget *parent = 0,
725 KFindDialog *findDialog = 0 );
726
730 void findTextBegin();
731
737 bool findTextNext( const TQString &str, bool forward, bool caseSensitive, bool isRegExp );
738
744 bool findTextNext();
745
752 // KDE4 merge with default = false
753 bool findTextNext( bool reverse );
754
765 void setZoomFactor(int percent);
766
770 int zoomFactor() const;
771
775 virtual TQString selectedText() const;
776
785 TQString selectedTextAsHTML() const;
786
790 DOM::Range selection() const;
791
803 void selection(DOM::Node &startNode, long &startOffset,
804 DOM::Node &endNode, long &endOffset) const;
805
809 void setSelection( const DOM::Range & );
810
819 bool hasSelection() const;
820
824 void selectAll();
825
831 void show();
832
838 void hide();
839
844 KParts::PartManager *partManager();
845
853 virtual void saveState( TQDataStream &stream );
863 virtual void restoreState( TQDataStream &stream );
864
871 DOM::Node nodeUnderMouse() const;
872
881 DOM::Node nonSharedNodeUnderMouse() const;
882
886 const TDEHTMLSettings *settings() const;
887
894 TDEHTMLPart *parentPart();
895
901 TQStringList frameNames() const;
902
903 TQPtrList<KParts::ReadOnlyPart> frames() const;
904
908 TDEHTMLPart *findFrame( const TQString &f );
909
918 TDEHTMLPart *findFrameParent( KParts::ReadOnlyPart *callingPart, const TQString &f, tdehtml::ChildFrame **childFrame=0 );
919
925 KParts::ReadOnlyPart *currentFrame() const;
926
933 bool frameExists( const TQString &frameName );
934
938 KJSProxy *framejScript(KParts::ReadOnlyPart *framePart);
939
943 KParts::ReadOnlyPart *findFramePart( const TQString &f );
949 void setJSStatusBarText( const TQString &text );
950
956 void setJSDefaultStatusBarText( const TQString &text );
957
963 TQString jsStatusBarText() const;
964
970 TQString jsDefaultStatusBarText() const;
971
975 TQString referrer() const;
976
980 TQString pageReferrer() const;
981
985 TQString lastModified() const;
986
990 void preloadStyleSheet( const TQString &url, const TQString &stylesheet );
991
995 void preloadScript( const TQString &url, const TQString &script );
996
1000 bool restored() const;
1001
1002 // ### KDE4 remove me
1003 enum FormNotification { NoNotification = 0, Before, Only, Unused=255 };
1010 void setFormNotification(FormNotification fn);
1011
1018 FormNotification formNotification() const;
1019
1027 KURL toplevelURL();
1028
1035 bool isModified() const;
1036
1042 void setSuppressedPopupIndicator( bool enable );
1043
1048 void setSuppressedPopupIndicator( bool enable, TDEHTMLPart *originPart );
1049
1054 bool inProgress() const;
1055
1056signals:
1060 void onURL( const TQString &url );
1061
1065 void popupMenu( const TQString &url, const TQPoint &point );
1066
1070 void selectionChanged();
1071
1079 void nodeActivated( const DOM::Node & );
1080
1083 void docCreated();
1084
1096 void caretPositionChanged(const DOM::Node &node, long offset);
1097
1098
1105 void formSubmitNotification(const char *action, const TQString& url,
1106 const TQByteArray& formData, const TQString& target,
1107 const TQString& contentType, const TQString& boundary);
1108
1109
1110protected:
1111
1116 KURL completeURL( const TQString &url );
1117
1124 void htmlError( int errorCode, const TQString& text, const KURL& reqUrl );
1125
1126 virtual void customEvent( TQCustomEvent *event );
1127
1131 virtual void tdehtmlMousePressEvent( tdehtml::MousePressEvent *event );
1135 virtual void tdehtmlMouseDoubleClickEvent( tdehtml::MouseDoubleClickEvent * );
1139 virtual void tdehtmlMouseMoveEvent( tdehtml::MouseMoveEvent *event );
1143 virtual void tdehtmlMouseReleaseEvent( tdehtml::MouseReleaseEvent *event );
1147 virtual void tdehtmlDrawContentsEvent( tdehtml::DrawContentsEvent * );
1148
1152 virtual void guiActivateEvent( KParts::GUIActivateEvent *event );
1153
1157 virtual bool openFile();
1158
1159 virtual void urlSelected( const TQString &url, int button, int state,
1160 const TQString &_target, KParts::URLArgs args = KParts::URLArgs());
1161
1170 virtual KParts::ReadOnlyPart *createPart( TQWidget *parentWidget, const char *widgetName,
1171 TQObject *parent, const char *name,
1172 const TQString &mimetype, TQString &serviceName,
1173 TQStringList &serviceTypes, const TQStringList &params);
1174
1175 // This is for RenderPartObject. We want to ask the 'download plugin?'
1176 // question only once per mimetype
1177 bool pluginPageQuestionAsked( const TQString& mimetype ) const;
1178 void setPluginPageQuestionAsked( const TQString& mimetype );
1179
1180 enum PageSecurity { NotCrypted, Encrypted, Mixed };
1181 void setPageSecurity( PageSecurity sec );
1182
1186 virtual bool doOpenStream( const TQString& mimeType );
1187
1191 virtual bool doWriteStream( const TQByteArray& data );
1192
1196 virtual bool doCloseStream();
1197
1198public slots:
1199
1209 void setActiveNode( const DOM::Node &node );
1210
1214 void stopAnimations();
1215
1216 TQCString dcopObjectId() const;
1217
1225 TQVariant executeScript( const TQString &script );
1226
1237 void setCaretMode(bool enable);
1238
1250 void setEditable(bool enable);
1251
1268 void setCaretVisible(bool show);
1269
1270 // ### KDE4 FIXME:
1271 // Remove this and make the one below protected+virtual slot.
1272 // Warning: this is effectively "internal". Be careful.
1273 // @since 3.2
1274 void submitFormProxy( const char *action, const TQString &url,
1275 const TQByteArray &formData,
1276 const TQString &target,
1277 const TQString& contentType = TQString::null,
1278 const TQString& boundary = TQString::null );
1279
1280private slots:
1281
1285 void reparseConfiguration();
1286
1290 void slotData( TDEIO::Job*, const TQByteArray &data );
1294 void slotInfoMessage( TDEIO::Job*, const TQString& msg );
1298 void slotRestoreData( const TQByteArray &data );
1302 void slotFinished( TDEIO::Job* );
1306 void slotFinishedParsing();
1310 void slotRedirect();
1314 void slotRedirection( TDEIO::Job*, const KURL& );
1318 void slotDebugScript();
1322 void slotDebugDOMTree();
1326 void slotDebugRenderTree();
1330 void slotStopAnimations();
1334 virtual void slotViewDocumentSource();
1338 virtual void slotViewFrameSource();
1342 void slotViewPageInfo();
1346 virtual void slotSaveBackground();
1350 virtual void slotSaveDocument();
1354 virtual void slotSaveFrame();
1358 virtual void slotSecurity();
1362 virtual void slotSetEncoding();
1363
1367 virtual void slotUseStylesheet();
1368
1369 virtual void slotFind();
1370 virtual void slotFindDone(); // ### remove me
1371 virtual void slotFindDialogDestroyed();
1372 void slotFindNext();
1373 void slotFindPrev();
1374 void slotFindAheadText();
1375 void slotFindAheadLink();
1376
1377 void slotIncZoom();
1378 void slotDecZoom();
1379 void slotIncZoomFast();
1380 void slotDecZoomFast();
1381
1382 void slotLoadImages();
1383 void slotWalletClosed();
1384 void launchWalletManager();
1385 void walletMenu();
1386
1390 void submitFormAgain();
1391
1395 void updateActions();
1399 void slotPartRemoved( KParts::Part *part );
1403 void slotActiveFrameChanged( KParts::Part *part );
1407 void slotChildStarted( TDEIO::Job *job );
1411 void slotChildCompleted();
1415 void slotChildCompleted( bool );
1419 void slotParentCompleted();
1423 void slotChildURLRequest( const KURL &url, const KParts::URLArgs &args );
1427 void slotChildDocCreated();
1431 void slotRequestFocus( KParts::ReadOnlyPart * );
1432 void slotLoaderRequestStarted( tdehtml::DocLoader*, tdehtml::CachedObject* obj);
1433 void slotLoaderRequestDone( tdehtml::DocLoader*, tdehtml::CachedObject *obj );
1434 void checkCompleted();
1435
1439 void slotAutoScroll();
1440
1441 void slotPrintFrame();
1442
1443 void slotSelectAll();
1444
1448 void slotProgressUpdate();
1449
1450 /*
1451 * @internal
1452 */
1453 void slotJobPercent( TDEIO::Job*, unsigned long );
1454
1455 /*
1456 * @internal
1457 */
1458 void slotJobDone( TDEIO::Job* );
1459
1460 /*
1461 * @internal
1462 */
1463 void slotUserSheetStatDone( TDEIO::Job* );
1464
1465 /*
1466 * @internal
1467 */
1468 void slotJobSpeed( TDEIO::Job*, unsigned long );
1469
1473 void slotClearSelection();
1474
1478 void slotZoomView( int );
1479
1483 void slotHighlight( const TQString &, int index, int length );
1484
1488 void slotAutomaticDetectionLanguage( int _id );
1489
1493 void slotToggleCaretMode();
1494
1498 void suppressedPopupMenu();
1499
1503 void togglePopupPassivePopup();
1504
1508 void showSuppressedPopups();
1509
1513 void launchJSConfigDialog();
1514
1518 void launchJSErrorDialog();
1519
1523 void removeJSErrorExtension();
1524
1528 void disableJSErrorExtension();
1529
1533 void jsErrorDialogContextMenu();
1534
1540 void restoreScrollPosition();
1541
1542 void walletOpened(TDEWallet::Wallet*);
1543
1544private:
1545
1546 KJSErrorDlg *jsErrorExtension();
1547
1548 enum StatusBarPriority { BarDefaultText, BarHoverText, BarOverrideText };
1549 void setStatusBarText( const TQString& text, StatusBarPriority p);
1550
1551 bool restoreURL( const KURL &url );
1552 void resetFromScript();
1553 void emitSelectionChanged();
1554 // Returns whether callingHtmlPart may access this part
1555 bool checkFrameAccess(TDEHTMLPart *callingHtmlPart);
1556 bool openURLInFrame( const KURL &url, const KParts::URLArgs &urlArgs );
1557 bool urlSelectedIntern( const TQString &url, int button, int state,
1558 const TQString &_target, KParts::URLArgs args = KParts::URLArgs());
1559 void startAutoScroll();
1560 void stopAutoScroll();
1561 void overURL( const TQString &url, const TQString &target, bool shiftPressed = false );
1562 void resetHoverText(); // Undo overURL and reset HoverText
1563
1564 bool processObjectRequest( tdehtml::ChildFrame *child, const KURL &url, const TQString &mimetype );
1565
1566 TDEWallet::Wallet* wallet();
1567
1568 void openWallet(DOM::HTMLFormElementImpl*);
1569 void saveToWallet(const TQString& key, const TQMap<TQString,TQString>& data);
1570 void dequeueWallet(DOM::HTMLFormElementImpl*);
1571
1572 void enableFindAheadActions(bool);
1573
1577 // ### KDE4 FIXME:
1578 // It is desirable to be able to filter form submissions as well.
1579 // For instance, forms can have a target and an inheriting class
1580 // might want to filter based on the target. Make this protected
1581 // and virtual, or provide a better solution.
1582 // See the web_module for the sidebar for an example where this is
1583 // necessary.
1584 void submitForm( const char *action, const TQString &url, const TQByteArray &formData,
1585 const TQString &target, const TQString& contentType = TQString::null,
1586 const TQString& boundary = TQString::null );
1587
1588 void popupMenu( const TQString &url );
1589
1590 void init( TDEHTMLView *view, GUIProfile prof );
1591
1592
1593 void clear();
1594
1595 bool scheduleScript( const DOM::Node &n, const TQString& script);
1596
1597 TQVariant crossFrameExecuteScript(const TQString& target, const TQString& script);
1598 TQVariant executeScheduledScript();
1599
1600 bool requestFrame( tdehtml::RenderPart *frame, const TQString &url, const TQString &frameName,
1601 const TQStringList &args = TQStringList(), bool isIFrame = false );
1602
1610 TQString requestFrameName();
1611
1612 bool requestObject( tdehtml::RenderPart *frame, const TQString &url, const TQString &serviceType,
1613 const TQStringList &args = TQStringList() );
1614
1615 bool requestObject( tdehtml::ChildFrame *child, const KURL &url, const KParts::URLArgs &args = KParts::URLArgs() );
1616
1617 DOM::EventListener *createHTMLEventListener( TQString code, TQString name, DOM::NodeImpl *node );
1618
1619 DOM::HTMLDocumentImpl *docImpl() const;
1620 DOM::DocumentImpl *xmlDocImpl() const;
1621 tdehtml::ChildFrame *frame( const TQObject *obj );
1622
1623 tdehtml::ChildFrame *recursiveFrameRequest( TDEHTMLPart *callingHtmlPart, const KURL &url, const KParts::URLArgs &args, bool callParent = true );
1624
1625 bool checkLinkSecurity( const KURL &linkURL,const TQString &message = TQString::null, const TQString &button = TQString::null );
1626 TQVariant executeScript( const TQString& filename, int baseLine, const DOM::Node &n, const TQString& script );
1627
1628 KJSProxy *jScript();
1629
1630 TDEHTMLPart *opener();
1631 long cacheId() const;
1632 void setOpener( TDEHTMLPart *_opener );
1633 bool openedByJS();
1634 void setOpenedByJS( bool _openedByJS );
1635
1636 void checkEmitLoadEvent();
1637 void emitLoadEvent();
1638
1639 bool initFindNode( bool selection, bool reverse, bool fromCursor );
1640
1641 void extendSelection( DOM::NodeImpl* node, long offset, DOM::Node& selectionNode, long& selectionOffset, bool right, bool paragraph );
1651 void extendSelectionTo(int x, int y, int absX, int absY, const DOM::Node &innerNode);
1655 bool isExtendingSelection() const;
1656 tdehtml::Decoder *createDecoder();
1657 TQString defaultEncoding() const;
1658
1660 TQString defaultExtension() const;
1661
1665 void zoomIn(const int stepping[], int count);
1669 void zoomOut(const int stepping[], int count);
1670
1671 void emitCaretPositionChanged(const DOM::Node &node, long offset);
1672
1673 void setDebugScript( bool enable );
1674
1675 void runAdFilter();
1676
1677 TDEHTMLPartPrivate *d;
1678 friend class TDEHTMLPartPrivate;
1679};
1680
1681
1682#endif
DOM::Document
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
DOM::EventListener
Introduced in DOM Level 2.
Definition: dom2_events.h:64
DOM::HTMLDocument
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:74
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:275
KParts::BrowserExtension
KParts::BrowserHostExtension
KParts::GUIActivateEvent
KParts::LiveConnectExtension
KParts::PartManager
KParts::Part
KParts::Part::setStatusBarText
void setStatusBarText(const TQString &text)
KParts::ReadOnlyPart
KParts::ReadOnlyPart::openURL
virtual bool openURL(const KURL &url)
KParts::ReadOnlyPart::guiActivateEvent
virtual void guiActivateEvent(GUIActivateEvent *event)
KParts::ReadOnlyPart::closeURL
virtual bool closeURL()
KParts::ReadOnlyPart::openFile
virtual bool openFile()=0
KURL
TDEHTMLPartBrowserExtension
This is the BrowserExtension for a TDEHTMLPart document.
Definition: tdehtml_ext.h:42
TDEHTMLPartIface
DCOP interface for TDEHTML.
Definition: tdehtml_iface.h:33
TDEHTMLPart
This class is tdehtml's main class.
Definition: tdehtml_part.h:184
TDEHTMLPart::popupMenu
void popupMenu(const TQString &url, const TQPoint &point)
Emitted when the user clicks the right mouse button on the document.
TDEHTMLPart::CaretDisplayPolicy
CaretDisplayPolicy
Enumeration for displaying the caret.
Definition: tdehtml_part.h:495
TDEHTMLPart::FindOptions
FindOptions
Extra Find options that can be used when calling the extended findText().
Definition: tdehtml_part.h:703
TDEHTMLPart::caretPositionChanged
void caretPositionChanged(const DOM::Node &node, long offset)
This signal is emitted whenever the caret position has been changed.
TDEHTMLPart::onURL
void onURL(const TQString &url)
Emitted if the cursor is moved over an URL.
TDEHTMLPart::nodeActivated
void nodeActivated(const DOM::Node &)
This signal is emitted when an element retrieves the keyboard focus.
TDEHTMLPart::formSubmitNotification
void formSubmitNotification(const char *action, const TQString &url, const TQByteArray &formData, const TQString &target, const TQString &contentType, const TQString &boundary)
If form notification is on, this will be emitted either for a form submit or before the form submit a...
TDEHTMLPart::selectionChanged
void selectionChanged()
This signal is emitted when the selection changes.
TDEHTMLSettings
Settings for the HTML view.
Definition: tdehtml_settings.h:39
TDEHTMLView
Renders and displays HTML in a TQScrollView.
Definition: tdehtmlview.h:79
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition: design.h:57
KStdAction::clear
TDEAction * clear(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0)
TDEStdAccel::end
const TDEShortcut & end()
TDEStdAccel::zoomIn
const TDEShortcut & zoomIn()
TDEStdAccel::zoomOut
const TDEShortcut & zoomOut()
KParts::URLArgs

tdehtml

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

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.9.4
This website is maintained by Timothy Pearson.