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.
pytde/sip/tdehtml/tdehtml_part.sip

283 lines
10 KiB

//
// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
// may also apply
// Generated by preSip
// module tdehtml version KDE_3_3_0
// 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 TDEHTMLPart : KParts::ReadOnlyPart
{
%TypeHeaderCode
#include <tdehtml_part.h>
%End
public:
enum GUIProfile
{
DefaultGUI,
BrowserViewGUI
};
TDEHTMLPart (TQWidget* = 0, const char* = 0, TQObject* /TransferThis/ = 0, const char* = 0, TDEHTMLPart::GUIProfile = DefaultGUI );
TDEHTMLPart (TDEHTMLView*, TQObject* /TransferThis/ = 0, const char* = 0, TDEHTMLPart::GUIProfile = DefaultGUI );
virtual bool openURL (const KURL&);
virtual bool closeURL ();
virtual void showError (TDEIO::Job*);
DOM::HTMLDocument htmlDocument () const;
DOM::Document document () const;
DOM::Node activeNode () const;
KParts::BrowserExtension* browserExtension () const;
%If ( KDE_3_1_0 - )
//ig KParts::LiveConnectExtension* liveConnectExtension (const tdehtml::RenderPart*) const;
%End
TDEHTMLView* 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;
TQVariant executeScript (const DOM::Node&, const TQString&);
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
};
TDEHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const;
void setCaretDisplayPolicyNonFocused (TDEHTMLPart::CaretDisplayPolicy);
%End
void enableJScript (bool);
void enableJava (bool);
void enablePlugins (bool);
void autoloadImages (bool);
void enableMetaRefresh (bool);
bool setCharset (const TQString&, bool = 0);
KURL baseURL () const;
TQString baseTarget () const;
KURL backgroundURL () const;
void scheduleRedirection (int, const TQString&, bool = 1);
virtual void begin (const KURL& = KURL (), int = 0, int = 0);
virtual void write (const char*, int = -1);
virtual void write (const TQString&);
virtual void end ();
void paint (TQPainter*, const TQRect&, int = 0, bool* = 0);
bool setEncoding (const TQString&, bool = 0);
TQString encoding ();
void setUserStyleSheet (const KURL&);
void setUserStyleSheet (const TQString&);
public:
void setStandardFont (const TQString&);
void setFixedFont (const TQString&);
bool gotoAnchor (const TQString&);
%If ( KDE_3_2_0 - )
bool nextAnchor ();
bool prevAnchor ();
%End
void setURLCursor (const TQCursor&);
TQCursor urlCursor () const;
%If ( KDE_3_3_0 - )
enum FindOptions
{
FindLinksOnly,
FindNoPopups
};
void findText ();
void findText (const TQString&, long, TQWidget* /Transfer/ = 0, KFindDialog* = 0);
%End
void findTextBegin ();
bool findTextNext (const TQString&, bool, bool, bool);
%If ( KDE_3_3_0 - )
bool findTextNext ();
%End
void setZoomFactor (int);
int zoomFactor () const;
virtual TQString selectedText () const;
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 ();
virtual void saveState (TQDataStream&);
virtual void restoreState (TQDataStream&);
DOM::Node nodeUnderMouse () const;
const TDEHTMLSettings* settings () const;
TDEHTMLPart* parentPart ();
TQStringList frameNames () const;
TQPtrList<KParts::ReadOnlyPart> frames () const;
TDEHTMLPart* findFrame (const TQString&);
KParts::ReadOnlyPart* currentFrame () const;
bool frameExists (const TQString&);
void setJSStatusBarText (const TQString&);
void setJSDefaultStatusBarText (const TQString&);
TQString jsStatusBarText () const;
TQString jsDefaultStatusBarText () const;
TQString referrer () const;
%If ( KDE_3_1_3 - )
TQString pageReferrer () const;
%End
TQString lastModified () const;
void preloadStyleSheet (const TQString&, const TQString&);
void preloadScript (const TQString&, const TQString&);
bool restored () const;
%If ( KDE_3_2_0 - )
enum FormNotification
{
NoNotification = 0,
Before,
Only,
Unused = 255
};
void setFormNotification (TDEHTMLPart::FormNotification);
TDEHTMLPart::FormNotification formNotification () const;
KURL toplevelURL ();
%If ( KDE_3_3_0 - )
bool isModified () const;
%End
%End
signals:
void onURL (const TQString&);
void popupMenu (const TQString&, const TQPoint&);
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);
void formSubmitNotification (const char*, const TQString&, const TQByteArray&, const TQString&, const TQString&, const TQString&);
%End
%End
protected:
KURL completeURL (const TQString&);
void htmlError (int, const TQString&, const KURL&);
virtual void customEvent (TQCustomEvent*);
//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*);
virtual void guiActivateEvent (KParts::GUIActivateEvent*);
virtual bool openFile ();
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&);
%If ( KDE_3_1_0 - )
bool pluginPageQuestionAsked (const TQString&) const;
void setPluginPageQuestionAsked (const TQString&);
%If ( KDE_3_2_0 - )
//ig void setPageSecurity (TDEHTMLPart::PageSecurity);
virtual bool doOpenStream (const TQString&);
virtual bool doWriteStream (const TQByteArray&);
virtual bool doCloseStream ();
%End
%End
public slots:
void setActiveNode (const DOM::Node&);
void stopAnimations ();
TQCString dcopObjectId () const;
%If ( KDE_3_2_0 - )
TQVariant executeScript (const TQString&);
void setCaretMode (bool);
void setEditable (bool);
void setCaretVisible (bool);
void submitFormProxy (const char*, const TQString&, const TQByteArray&, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null );
%End
public:
%If ( - KDE_3_2_0 )
TQVariant executeScript (const TQString&);
%End
//force
private:
void setStatusBarText (const TQString&, int);
//end
}; // class TDEHTMLPart