1 /***************************************************************************
2 * Copyright (C) 2004 by Kita Developers *
3 * ikemo@users.sourceforge.jp *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
14 #include <khtml_part.h>
16 /* ID of user defined event */
17 #define EVENT_GotoAnchor ( QEvent::User + 100 )
24 class KitaPreviewPart : public KHTMLPart
28 Kita::ResPopup* m_popup;
30 /* basic information */
34 bool m_isPushedRightButton;
42 KitaPreviewPart( QWidget* parent, const char* name = 0 );
44 bool setup( const KURL& url );
47 void setInnerHTML( const QString& innerHTML );
52 void slotSetFaceOfHTMLPart();
53 void slotSetStyleSheetOfHTMLPart();
56 void slotDeletePopup();
63 void connectSignals();
64 void createHTMLDocument();
67 void clickAnchor( const KURL& urlin );
70 void showPopup( const KURL& url, const QString& innerHTML );
71 bool startMultiPopup();
72 bool isMultiPopupMode();
78 virtual void customEvent( QCustomEvent * e );
81 virtual void khtmlMousePressEvent( khtml::MousePressEvent* e );
87 void slotVSliderReleased();
88 void slotHSliderReleased();
89 void slotHideChildPopup();
90 void slotKitaIsActive();
91 void slotOnURL( const QString& url );
95 void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
96 QString mimetype = QString::null,
98 const KURL& usrUrl1 = KURL() );
99 void mousePressed(); /* to KitaThreadView */