4 #include <khtml_part.h>
11 class KActionCollection
;
21 class View
: public KHTMLPart
25 View( QWidget
*parentWidget
, QObject
*parent
, KHTMLPart::GUIProfile prof
,
26 KActionCollection
*col
);
30 virtual bool openUrl( const KUrl
&url
);
32 virtual void saveState( QDataStream
&stream
);
33 virtual void restoreState( QDataStream
&stream
);
35 enum State
{ Docu
, About
, Search
};
37 int state() const { return mState
; }
38 QString
title() const { return mTitle
; }
40 static QString
langLookup( const QString
&fname
);
42 void beginSearchResult();
43 void writeSearchResult( const QString
& );
44 void endSearchResult();
46 void beginInternal( const KUrl
& );
47 KUrl
internalUrl() const;
49 int zoomStepping() const { return m_zoomStepping
; }
51 Formatter
*formatter() const { return mFormatter
; }
53 void copySelectedText();
57 void slotIncFontSizes();
58 void slotDecFontSizes();
59 void slotReload( const KUrl
&url
= KUrl() );
61 bool nextPage(bool checkOnly
= false);
62 bool prevPage(bool checkOnly
= false);
65 void searchResultCacheAvailable();
68 bool eventFilter( QObject
*o
, QEvent
*e
);
71 void setTitle( const QString
&title
);
72 void showMenu( const QString
& url
, const QPoint
& pos
);
75 KUrl
urlFromLinkNode( const DOM::Node
&n
) const;
80 QString mSearchResult
;
85 Formatter
*mFormatter
;
86 KActionCollection
*mActionCollection
;