You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
283 lines
10 KiB
283 lines
10 KiB
13 years ago
|
//
|
||
|
// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
12 years ago
|
// module tdehtml version KDE_3_3_0
|
||
13 years ago
|
|
||
|
|
||
|
// This software is free software; you can redistribute it and/or
|
||
|
// modify it under the terms of the GNU General Public License as
|
||
|
// published by the Free Software Foundation; either version 2 of
|
||
|
// the License, or (at your option) any later version.
|
||
|
//
|
||
|
// This software 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 General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public
|
||
|
// License along with this library; see the file COPYING.
|
||
|
// If not, write to the Free Software Foundation, Inc.,
|
||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
|
|
||
|
class KHTMLPart : KParts::ReadOnlyPart
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdehtml_part.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
|
||
|
enum GUIProfile
|
||
|
{
|
||
|
DefaultGUI,
|
||
|
BrowserViewGUI
|
||
|
};
|
||
|
|
||
13 years ago
|
KHTMLPart (TQWidget* = 0, const char* = 0, TQObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI );
|
||
|
KHTMLPart (KHTMLView*, TQObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI );
|
||
13 years ago
|
virtual bool openURL (const KURL&);
|
||
|
virtual bool closeURL ();
|
||
12 years ago
|
virtual void showError (TDEIO::Job*);
|
||
13 years ago
|
DOM::HTMLDocument htmlDocument () const;
|
||
|
DOM::Document document () const;
|
||
|
DOM::Node activeNode () const;
|
||
|
KParts::BrowserExtension* browserExtension () const;
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
12 years ago
|
//ig KParts::LiveConnectExtension* liveConnectExtension (const tdehtml::RenderPart*) const;
|
||
13 years ago
|
%End
|
||
|
|
||
|
KHTMLView* view () const;
|
||
|
void setJScriptEnabled (bool);
|
||
|
bool jScriptEnabled () const;
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
//ig KJS::Interpreter* jScriptInterpreter ();
|
||
|
void setStatusMessagesEnabled (bool);
|
||
|
bool statusMessagesEnabled () const;
|
||
|
%End
|
||
|
|
||
|
void setMetaRefreshEnabled (bool);
|
||
|
bool metaRefreshEnabled () const;
|
||
13 years ago
|
TQVariant executeScript (const DOM::Node&, const TQString&);
|
||
13 years ago
|
void setDNDEnabled (bool);
|
||
|
bool dndEnabled () const;
|
||
|
void setJavaEnabled (bool);
|
||
|
bool javaEnabled () const;
|
||
|
//ig KJavaAppletContext* javaContext ();
|
||
|
//ig KJavaAppletContext* createJavaContext ();
|
||
|
void setPluginsEnabled (bool);
|
||
|
bool pluginsEnabled () const;
|
||
|
void setAutoloadImages (bool);
|
||
|
bool autoloadImages () const;
|
||
|
void setOnlyLocalReferences (bool);
|
||
|
bool onlyLocalReferences () const;
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
bool isCaretMode () const;
|
||
|
bool isEditable () const;
|
||
|
void setCaretPosition (DOM::Node, long, bool = 0);
|
||
|
|
||
|
enum CaretDisplayPolicy
|
||
|
{
|
||
|
CaretVisible,
|
||
|
CaretInvisible,
|
||
|
CaretBlink
|
||
|
};
|
||
|
|
||
|
KHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const;
|
||
|
void setCaretDisplayPolicyNonFocused (KHTMLPart::CaretDisplayPolicy);
|
||
|
%End
|
||
|
|
||
|
void enableJScript (bool);
|
||
|
void enableJava (bool);
|
||
|
void enablePlugins (bool);
|
||
|
void autoloadImages (bool);
|
||
|
void enableMetaRefresh (bool);
|
||
13 years ago
|
bool setCharset (const TQString&, bool = 0);
|
||
13 years ago
|
KURL baseURL () const;
|
||
13 years ago
|
TQString baseTarget () const;
|
||
13 years ago
|
KURL backgroundURL () const;
|
||
13 years ago
|
void scheduleRedirection (int, const TQString&, bool = 1);
|
||
13 years ago
|
virtual void begin (const KURL& = KURL (), int = 0, int = 0);
|
||
|
virtual void write (const char*, int = -1);
|
||
13 years ago
|
virtual void write (const TQString&);
|
||
13 years ago
|
virtual void end ();
|
||
13 years ago
|
void paint (TQPainter*, const TQRect&, int = 0, bool* = 0);
|
||
|
bool setEncoding (const TQString&, bool = 0);
|
||
|
TQString encoding ();
|
||
13 years ago
|
void setUserStyleSheet (const KURL&);
|
||
13 years ago
|
void setUserStyleSheet (const TQString&);
|
||
13 years ago
|
|
||
|
public:
|
||
13 years ago
|
void setStandardFont (const TQString&);
|
||
|
void setFixedFont (const TQString&);
|
||
|
bool gotoAnchor (const TQString&);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
bool nextAnchor ();
|
||
|
bool prevAnchor ();
|
||
|
%End
|
||
|
|
||
13 years ago
|
void setURLCursor (const TQCursor&);
|
||
|
TQCursor urlCursor () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
|
|
||
|
enum FindOptions
|
||
|
{
|
||
|
FindLinksOnly,
|
||
|
FindNoPopups
|
||
|
};
|
||
|
|
||
|
void findText ();
|
||
13 years ago
|
void findText (const TQString&, long, TQWidget* /Transfer/ = 0, KFindDialog* = 0);
|
||
13 years ago
|
%End
|
||
|
|
||
|
void findTextBegin ();
|
||
13 years ago
|
bool findTextNext (const TQString&, bool, bool, bool);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
|
bool findTextNext ();
|
||
|
%End
|
||
|
|
||
|
void setZoomFactor (int);
|
||
|
int zoomFactor () const;
|
||
13 years ago
|
virtual TQString selectedText () const;
|
||
13 years ago
|
DOM::Range selection () const;
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void selection (DOM::Node&, long&, DOM::Node&, long&) const;
|
||
|
%End
|
||
|
|
||
|
void setSelection (const DOM::Range&);
|
||
|
bool hasSelection () const;
|
||
|
void selectAll ();
|
||
|
void show ();
|
||
|
void hide ();
|
||
|
KParts::PartManager* partManager ();
|
||
13 years ago
|
virtual void saveState (TQDataStream&);
|
||
|
virtual void restoreState (TQDataStream&);
|
||
13 years ago
|
DOM::Node nodeUnderMouse () const;
|
||
|
const KHTMLSettings* settings () const;
|
||
|
KHTMLPart* parentPart ();
|
||
13 years ago
|
TQStringList frameNames () const;
|
||
|
TQPtrList<KParts::ReadOnlyPart> frames () const;
|
||
|
KHTMLPart* findFrame (const TQString&);
|
||
13 years ago
|
KParts::ReadOnlyPart* currentFrame () const;
|
||
13 years ago
|
bool frameExists (const TQString&);
|
||
|
void setJSStatusBarText (const TQString&);
|
||
|
void setJSDefaultStatusBarText (const TQString&);
|
||
|
TQString jsStatusBarText () const;
|
||
|
TQString jsDefaultStatusBarText () const;
|
||
|
TQString referrer () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_3 - )
|
||
13 years ago
|
TQString pageReferrer () const;
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
TQString lastModified () const;
|
||
|
void preloadStyleSheet (const TQString&, const TQString&);
|
||
|
void preloadScript (const TQString&, const TQString&);
|
||
13 years ago
|
bool restored () const;
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
|
||
|
enum FormNotification
|
||
|
{
|
||
|
NoNotification = 0,
|
||
|
Before,
|
||
|
Only,
|
||
|
Unused = 255
|
||
|
};
|
||
|
|
||
|
void setFormNotification (KHTMLPart::FormNotification);
|
||
|
KHTMLPart::FormNotification formNotification () const;
|
||
|
KURL toplevelURL ();
|
||
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
|
bool isModified () const;
|
||
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
signals:
|
||
13 years ago
|
void onURL (const TQString&);
|
||
|
void popupMenu (const TQString&, const TQPoint&);
|
||
13 years ago
|
void selectionChanged ();
|
||
|
void nodeActivated (const DOM::Node&);
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
void docCreated ();
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void caretPositionChanged (const DOM::Node&, long);
|
||
13 years ago
|
void formSubmitNotification (const char*, const TQString&, const TQByteArray&, const TQString&, const TQString&, const TQString&);
|
||
13 years ago
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
13 years ago
|
KURL completeURL (const TQString&);
|
||
|
void htmlError (int, const TQString&, const KURL&);
|
||
|
virtual void customEvent (TQCustomEvent*);
|
||
12 years ago
|
//ig virtual void tdehtmlMousePressEvent (tdehtml::MousePressEvent*);
|
||
|
//ig virtual void tdehtmlMouseDoubleClickEvent (tdehtml::MouseDoubleClickEvent*);
|
||
|
//ig virtual void tdehtmlMouseMoveEvent (tdehtml::MouseMoveEvent*);
|
||
|
//ig virtual void tdehtmlMouseReleaseEvent (tdehtml::MouseReleaseEvent*);
|
||
|
//ig virtual void tdehtmlDrawContentsEvent (tdehtml::DrawContentsEvent*);
|
||
13 years ago
|
virtual void guiActivateEvent (KParts::GUIActivateEvent*);
|
||
|
virtual bool openFile ();
|
||
13 years ago
|
virtual void urlSelected (const TQString&, int, int, const TQString&, KParts::URLArgs = KParts ::URLArgs ());
|
||
|
virtual KParts::ReadOnlyPart* createPart (TQWidget*, const char*, TQObject* /Transfer/, const char*, const TQString&, TQString&, TQStringList&, const TQStringList&);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
bool pluginPageQuestionAsked (const TQString&) const;
|
||
|
void setPluginPageQuestionAsked (const TQString&);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
//ig void setPageSecurity (KHTMLPart::PageSecurity);
|
||
13 years ago
|
virtual bool doOpenStream (const TQString&);
|
||
|
virtual bool doWriteStream (const TQByteArray&);
|
||
13 years ago
|
virtual bool doCloseStream ();
|
||
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
public slots:
|
||
|
void setActiveNode (const DOM::Node&);
|
||
|
void stopAnimations ();
|
||
13 years ago
|
TQCString dcopObjectId () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
TQVariant executeScript (const TQString&);
|
||
13 years ago
|
void setCaretMode (bool);
|
||
|
void setEditable (bool);
|
||
|
void setCaretVisible (bool);
|
||
13 years ago
|
void submitFormProxy (const char*, const TQString&, const TQByteArray&, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null );
|
||
13 years ago
|
%End
|
||
|
|
||
|
public:
|
||
|
|
||
|
%If ( - KDE_3_2_0 )
|
||
13 years ago
|
TQVariant executeScript (const TQString&);
|
||
13 years ago
|
%End
|
||
|
|
||
|
//force
|
||
|
|
||
|
private:
|
||
13 years ago
|
void setStatusBarText (const TQString&, int);
|
||
13 years ago
|
//end
|
||
|
|
||
|
}; // class KHTMLPart
|
||
|
|