From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- python/pykde/sip/khtml/css_rule.sip | 259 ++++++++++++++++++ python/pykde/sip/khtml/css_stylesheet.sip | 197 ++++++++++++++ python/pykde/sip/khtml/css_value.sip | 320 ++++++++++++++++++++++ python/pykde/sip/khtml/dom2_events.sip | 251 +++++++++++++++++ python/pykde/sip/khtml/dom2_range.sip | 115 ++++++++ python/pykde/sip/khtml/dom2_traversal.sip | 176 ++++++++++++ python/pykde/sip/khtml/dom2_views.sip | 50 ++++ python/pykde/sip/khtml/dom_doc.sip | 185 +++++++++++++ python/pykde/sip/khtml/dom_element.sip | 111 ++++++++ python/pykde/sip/khtml/dom_exception.sip | 64 +++++ python/pykde/sip/khtml/dom_misc.sip | 49 ++++ python/pykde/sip/khtml/dom_node.sip | 150 ++++++++++ python/pykde/sip/khtml/dom_string.sip | 79 ++++++ python/pykde/sip/khtml/dom_text.sip | 92 +++++++ python/pykde/sip/khtml/dom_xml.sip | 128 +++++++++ python/pykde/sip/khtml/html_base.sip | 207 ++++++++++++++ python/pykde/sip/khtml/html_block.sip | 233 ++++++++++++++++ python/pykde/sip/khtml/html_document.sip | 77 ++++++ python/pykde/sip/khtml/html_element.sip | 78 ++++++ python/pykde/sip/khtml/html_form.sip | 436 ++++++++++++++++++++++++++++++ python/pykde/sip/khtml/html_head.sip | 203 ++++++++++++++ python/pykde/sip/khtml/html_image.sip | 144 ++++++++++ python/pykde/sip/khtml/html_inline.sip | 169 ++++++++++++ python/pykde/sip/khtml/html_list.sip | 169 ++++++++++++ python/pykde/sip/khtml/html_misc.sip | 97 +++++++ python/pykde/sip/khtml/html_object.sip | 179 ++++++++++++ python/pykde/sip/khtml/html_table.sip | 256 ++++++++++++++++++ python/pykde/sip/khtml/khtml_part.sip | 282 +++++++++++++++++++ python/pykde/sip/khtml/khtml_part.sip.323 | 272 +++++++++++++++++++ python/pykde/sip/khtml/khtml_part.sip.330 | 282 +++++++++++++++++++ python/pykde/sip/khtml/khtml_settings.sip | 293 ++++++++++++++++++++ python/pykde/sip/khtml/khtmlmod.sip.in | 71 +++++ python/pykde/sip/khtml/khtmlview.sip | 144 ++++++++++ 33 files changed, 5818 insertions(+) create mode 100644 python/pykde/sip/khtml/css_rule.sip create mode 100644 python/pykde/sip/khtml/css_stylesheet.sip create mode 100644 python/pykde/sip/khtml/css_value.sip create mode 100644 python/pykde/sip/khtml/dom2_events.sip create mode 100644 python/pykde/sip/khtml/dom2_range.sip create mode 100644 python/pykde/sip/khtml/dom2_traversal.sip create mode 100644 python/pykde/sip/khtml/dom2_views.sip create mode 100644 python/pykde/sip/khtml/dom_doc.sip create mode 100644 python/pykde/sip/khtml/dom_element.sip create mode 100644 python/pykde/sip/khtml/dom_exception.sip create mode 100644 python/pykde/sip/khtml/dom_misc.sip create mode 100644 python/pykde/sip/khtml/dom_node.sip create mode 100644 python/pykde/sip/khtml/dom_string.sip create mode 100644 python/pykde/sip/khtml/dom_text.sip create mode 100644 python/pykde/sip/khtml/dom_xml.sip create mode 100644 python/pykde/sip/khtml/html_base.sip create mode 100644 python/pykde/sip/khtml/html_block.sip create mode 100644 python/pykde/sip/khtml/html_document.sip create mode 100644 python/pykde/sip/khtml/html_element.sip create mode 100644 python/pykde/sip/khtml/html_form.sip create mode 100644 python/pykde/sip/khtml/html_head.sip create mode 100644 python/pykde/sip/khtml/html_image.sip create mode 100644 python/pykde/sip/khtml/html_inline.sip create mode 100644 python/pykde/sip/khtml/html_list.sip create mode 100644 python/pykde/sip/khtml/html_misc.sip create mode 100644 python/pykde/sip/khtml/html_object.sip create mode 100644 python/pykde/sip/khtml/html_table.sip create mode 100644 python/pykde/sip/khtml/khtml_part.sip create mode 100644 python/pykde/sip/khtml/khtml_part.sip.323 create mode 100644 python/pykde/sip/khtml/khtml_part.sip.330 create mode 100644 python/pykde/sip/khtml/khtml_settings.sip create mode 100644 python/pykde/sip/khtml/khtmlmod.sip.in create mode 100644 python/pykde/sip/khtml/khtmlview.sip (limited to 'python/pykde/sip/khtml') diff --git a/python/pykde/sip/khtml/css_rule.sip b/python/pykde/sip/khtml/css_rule.sip new file mode 100644 index 00000000..6e097ba3 --- /dev/null +++ b/python/pykde/sip/khtml/css_rule.sip @@ -0,0 +1,259 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSRule (); + CSSRule (const DOM::CSSRule&); +//ig CSSRule (CSSRuleImpl*); + +public: + +%If ( KDE_3_2_0 - ) + + enum RuleType + { + UNKNOWN_RULE, + STYLE_RULE, + CHARSET_RULE, + IMPORT_RULE, + MEDIA_RULE, + FONT_FACE_RULE, + PAGE_RULE, + QUIRKS_RULE + }; + +%End + + ushort type () const; + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + DOM::CSSStyleSheet parentStyleSheet () const; + DOM::CSSRule parentRule () const; +//ig CSSRuleImpl* handle () const; + bool isNull () const; + +protected: + +%If ( KDE_3_0_1 - ) + void assignOther (const DOM::CSSRule&, DOM::CSSRule::RuleType); +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum RuleType + { + UNKNOWN_RULE, + STYLE_RULE, + CHARSET_RULE, + IMPORT_RULE, + MEDIA_RULE, + FONT_FACE_RULE, + PAGE_RULE + }; + +%End + + +}; // class CSSRule + + +class CSSCharsetRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSCharsetRule (); + CSSCharsetRule (const DOM::CSSCharsetRule&); + CSSCharsetRule (const DOM::CSSRule&); +//ig CSSCharsetRule (CSSCharsetRuleImpl*); + +public: + DOM::DOMString encoding () const; + void setEncoding (const DOM::DOMString&); + +}; // class CSSCharsetRule + + +class CSSFontFaceRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSFontFaceRule (); + CSSFontFaceRule (const DOM::CSSFontFaceRule&); + CSSFontFaceRule (const DOM::CSSRule&); +//ig CSSFontFaceRule (CSSFontFaceRuleImpl*); + +public: + DOM::CSSStyleDeclaration style () const; + +}; // class CSSFontFaceRule + + +class CSSImportRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSImportRule (); + CSSImportRule (const DOM::CSSImportRule&); + CSSImportRule (const DOM::CSSRule&); +//ig CSSImportRule (CSSImportRuleImpl*); + +public: + DOM::DOMString href () const; + DOM::MediaList media () const; + DOM::CSSStyleSheet styleSheet () const; + +}; // class CSSImportRule + + +class CSSMediaRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSMediaRule (); + CSSMediaRule (const DOM::CSSMediaRule&); + CSSMediaRule (const DOM::CSSRule&); +//ig CSSMediaRule (CSSMediaRuleImpl*); + +public: + DOM::MediaList media () const; + DOM::CSSRuleList cssRules () const; + ulong insertRule (const DOM::DOMString&, ulong); + void deleteRule (ulong); + +}; // class CSSMediaRule + + +class CSSPageRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSPageRule (); + CSSPageRule (const DOM::CSSPageRule&); + CSSPageRule (const DOM::CSSRule&); +//ig CSSPageRule (CSSPageRuleImpl*); + +public: + DOM::DOMString selectorText () const; + void setSelectorText (const DOM::DOMString&); + DOM::CSSStyleDeclaration style () const; + +}; // class CSSPageRule + + +class CSSStyleRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSStyleRule (); + CSSStyleRule (const DOM::CSSStyleRule&); + CSSStyleRule (const DOM::CSSRule&); +//ig CSSStyleRule (CSSStyleRuleImpl*); + +public: + DOM::DOMString selectorText () const; + void setSelectorText (const DOM::DOMString&); + DOM::CSSStyleDeclaration style () const; + +}; // class CSSStyleRule + + +class CSSUnknownRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSUnknownRule (); + CSSUnknownRule (const DOM::CSSUnknownRule&); + CSSUnknownRule (const DOM::CSSRule&); +//ig CSSUnknownRule (CSSUnknownRuleImpl*); + +}; // class CSSUnknownRule + + +class CSSRuleList +{ +%TypeHeaderCode +#include +%End + + +public: + CSSRuleList (); + CSSRuleList (const DOM::CSSRuleList&); +//ig CSSRuleList (CSSRuleListImpl*); +//ig CSSRuleList (StyleListImpl*); + +public: + ulong length () const; + DOM::CSSRule item (ulong); +//ig CSSRuleListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class CSSRuleList + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/css_stylesheet.sip b/python/pykde/sip/khtml/css_stylesheet.sip new file mode 100644 index 00000000..2340a508 --- /dev/null +++ b/python/pykde/sip/khtml/css_stylesheet.sip @@ -0,0 +1,197 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class StyleSheet +{ +%TypeHeaderCode +#include +%End + + +public: + StyleSheet (); + StyleSheet (const DOM::StyleSheet&); +//ig StyleSheet (StyleSheetImpl*); + +public: + DOM::DOMString type () const; + bool disabled () const; + void setDisabled (bool); + DOM::Node ownerNode () const; + DOM::StyleSheet parentStyleSheet () const; + DOM::DOMString href () const; + DOM::DOMString title () const; + DOM::MediaList media () const; + bool isCSSStyleSheet () const; +//ig StyleSheetImpl* handle () const; + bool isNull () const; + +protected: + +}; // class StyleSheet + + +class CSSException +{ +%TypeHeaderCode +#include +%End + + +public: + CSSException (ushort); + CSSException (const DOM::CSSException&); + ushort code; + + enum ExceptionCode + { + SYNTAX_ERR, + INVALID_MODIFICATION_ERR, + _EXCEPTION_OFFSET + }; + + +}; // class CSSException + + +class CSSStyleSheet : DOM::StyleSheet +{ +%TypeHeaderCode +#include +%End + + +public: + CSSStyleSheet (); + CSSStyleSheet (const DOM::CSSStyleSheet&); + CSSStyleSheet (const DOM::StyleSheet&); +//ig CSSStyleSheet (CSSStyleSheetImpl*); + +public: + DOM::CSSRule ownerRule () const; + DOM::CSSRuleList cssRules () const; + ulong insertRule (const DOM::DOMString&, ulong); + void deleteRule (ulong); + +}; // class CSSStyleSheet + + +class StyleSheetList +{ +%TypeHeaderCode +#include +%End + + +public: + StyleSheetList (); + StyleSheetList (const DOM::StyleSheetList&); +//ig StyleSheetList (StyleSheetListImpl*); + +public: + ulong length () const; + DOM::StyleSheet item (ulong); +//ig StyleSheetListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class StyleSheetList + + +class MediaList +{ +%TypeHeaderCode +#include +%End + + +public: + MediaList (); + MediaList (const DOM::MediaList&); +//ig MediaList (MediaListImpl*); + +public: + DOM::DOMString mediaText (); + void setMediaText (const DOM::DOMString&); + ulong length (); + DOM::DOMString item (ulong); + void deleteMedium (const DOM::DOMString&); + void appendMedium (const DOM::DOMString&); +//ig MediaListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class MediaList + + +class LinkStyle +{ +%TypeHeaderCode +#include +%End + + +public: + LinkStyle (); + LinkStyle (const DOM::LinkStyle&); + DOM::StyleSheet sheet (); + bool isNull () const; + +protected: + +}; // class LinkStyle + + +class DocumentStyle +{ +%TypeHeaderCode +#include +%End + + +public: + DocumentStyle (); + DocumentStyle (const DOM::DocumentStyle&); + DOM::StyleSheetList styleSheets (); + +%If ( KDE_3_2_0 - ) + DOM::DOMString preferredStylesheetSet () const; + DOM::DOMString selectedStylesheetSet () const; + void setSelectedStylesheetSet (const DOM::DOMString&); +%End + + bool isNull () const; + +protected: + +}; // class DocumentStyle + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/css_value.sip b/python/pykde/sip/khtml/css_value.sip new file mode 100644 index 00000000..3859dfbd --- /dev/null +++ b/python/pykde/sip/khtml/css_value.sip @@ -0,0 +1,320 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class CSSStyleDeclaration +{ +%TypeHeaderCode +#include +%End + + +public: + CSSStyleDeclaration (); + CSSStyleDeclaration (const DOM::CSSStyleDeclaration&); +//ig CSSStyleDeclaration (CSSStyleDeclarationImpl*); + +public: + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + ulong length () const; + DOM::CSSRule parentRule () const; + DOM::DOMString getPropertyValue (const DOM::DOMString&); + DOM::CSSValue getPropertyCSSValue (const DOM::DOMString&); + DOM::DOMString removeProperty (const DOM::DOMString&); + DOM::DOMString getPropertyPriority (const DOM::DOMString&); + void setProperty (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + DOM::DOMString item (ulong); +//ig CSSStyleDeclarationImpl* handle () const; + bool isNull () const; + +protected: + +}; // class CSSStyleDeclaration + + +class CSSValue +{ +%TypeHeaderCode +#include +%End + + +public: + CSSValue (); + CSSValue (const DOM::CSSValue&); +//ig CSSValue (CSSValueImpl*); + +public: + +%If ( KDE_3_2_1 - ) + + enum UnitTypes + { + CSS_INHERIT, + CSS_PRIMITIVE_VALUE, + CSS_VALUE_LIST, + CSS_CUSTOM, + CSS_INITIAL + }; + +%End + + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + ushort cssValueType () const; + bool isCSSValueList () const; + bool isCSSPrimitiveValue () const; +//ig CSSValueImpl* handle () const; + bool isNull () const; + +protected: + +public: + +%If ( - KDE_3_2_1 ) + + enum UnitTypes + { + CSS_INHERIT, + CSS_PRIMITIVE_VALUE, + CSS_VALUE_LIST, + CSS_CUSTOM + }; + +%End + + +}; // class CSSValue + + +class CSSValueList : DOM::CSSValue +{ +%TypeHeaderCode +#include +%End + + +public: + CSSValueList (); + CSSValueList (const DOM::CSSValueList&); + CSSValueList (const DOM::CSSValue&); +//ig CSSValueList (CSSValueListImpl*); + +public: + ulong length () const; + DOM::CSSValue item (ulong); + +protected: + +}; // class CSSValueList + + +class CSSPrimitiveValue : DOM::CSSValue +{ +%TypeHeaderCode +#include +%End + + +public: + CSSPrimitiveValue (); + CSSPrimitiveValue (const DOM::CSSPrimitiveValue&); + CSSPrimitiveValue (const DOM::CSSValue&); +//ig CSSPrimitiveValue (CSSPrimitiveValueImpl*); + +public: + +%If ( KDE_3_1_0 - ) + + enum UnitTypes + { + CSS_UNKNOWN, + CSS_NUMBER, + CSS_PERCENTAGE, + CSS_EMS, + CSS_EXS, + CSS_PX, + CSS_CM, + CSS_MM, + CSS_IN, + CSS_PT, + CSS_PC, + CSS_DEG, + CSS_RAD, + CSS_GRAD, + CSS_MS, + CSS_S, + CSS_HZ, + CSS_KHZ, + CSS_DIMENSION, + CSS_STRING, + CSS_URI, + CSS_IDENT, + CSS_ATTR, + CSS_COUNTER, + CSS_RECT, + CSS_RGBCOLOR, + CSS_HTML_RELATIVE + }; + +%End + + ushort primitiveType () const; + void setFloatValue (ushort, float); + float getFloatValue (ushort); + void setStringValue (ushort, const DOM::DOMString&); + DOM::DOMString getStringValue (); + DOM::Counter getCounterValue (); + DOM::Rect getRectValue (); + DOM::RGBColor getRGBColorValue (); + +public: + +%If ( - KDE_3_1_0 ) + + enum UnitTypes + { + CSS_UNKNOWN, + CSS_NUMBER, + CSS_PERCENTAGE, + CSS_EMS, + CSS_EXS, + CSS_PX, + CSS_CM, + CSS_MM, + CSS_IN, + CSS_PT, + CSS_PC, + CSS_DEG, + CSS_RAD, + CSS_GRAD, + CSS_MS, + CSS_S, + CSS_HZ, + CSS_KHZ, + CSS_DIMENSION, + CSS_STRING, + CSS_URI, + CSS_IDENT, + CSS_ATTR, + CSS_COUNTER, + CSS_RECT, + CSS_RGBCOLOR + }; + +%End + + +}; // class CSSPrimitiveValue + + +class RGBColor +{ +%TypeHeaderCode +#include +%End + + +public: + RGBColor (); + RGBColor (const QColor&); + +%If ( KDE_3_1_0 - ) + RGBColor (QRgb); +%End + + RGBColor (const DOM::RGBColor&); + DOM::CSSPrimitiveValue red () const; + DOM::CSSPrimitiveValue green () const; + DOM::CSSPrimitiveValue blue () const; + +%If ( KDE_3_1_0 - ) + QRgb color () const; +%End + + +protected: + +public: + +%If ( - KDE_3_1_0 ) + const QColor& color () const; +%End + + +}; // class RGBColor + + +class Rect +{ +%TypeHeaderCode +#include +%End + + +public: + Rect (); + Rect (const DOM::Rect&); + DOM::CSSPrimitiveValue top () const; + DOM::CSSPrimitiveValue right () const; + DOM::CSSPrimitiveValue bottom () const; + DOM::CSSPrimitiveValue left () const; +//ig RectImpl* handle () const; + bool isNull () const; + +protected: +//ig Rect (RectImpl*); + +}; // class Rect + + +class Counter +{ +%TypeHeaderCode +#include +%End + + +public: + Counter (); + Counter (const DOM::Counter&); + +public: + DOM::DOMString identifier () const; + DOM::DOMString listStyle () const; + DOM::DOMString separator () const; +//ig CounterImpl* handle () const; + bool isNull () const; + +protected: +//ig Counter (CounterImpl*); + +}; // class Counter + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom2_events.sip b/python/pykde/sip/khtml/dom2_events.sip new file mode 100644 index 00000000..2e1b4dac --- /dev/null +++ b/python/pykde/sip/khtml/dom2_events.sip @@ -0,0 +1,251 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class EventListener : DOM::DomShared +{ +%TypeHeaderCode +#include +%End + + +public: + EventListener (); + virtual void handleEvent (DOM::Event&); + virtual DOM::DOMString eventListenerType (); + +protected: + +}; // class EventListener + + +class Event +{ +%TypeHeaderCode +#include +%End + + +public: + Event (); + Event (const DOM::Event&); + + enum PhaseType + { + CAPTURING_PHASE, + AT_TARGET, + BUBBLING_PHASE + }; + + DOM::DOMString type () const; + DOM::Node target () const; + DOM::Node currentTarget () const; + ushort eventPhase () const; + bool bubbles () const; + bool cancelable () const; + DOMTimeStamp timeStamp () const; + void stopPropagation (); + void preventDefault (); + void initEvent (const DOM::DOMString&, bool, bool); +//ig EventImpl* handle () const; + bool isNull () const; + +protected: +//ig Event (EventImpl*); + +public: + +%If ( - KDE_3_2_0 ) + DOM::DOMString eventModuleName (); +%End + + +public: +//force + typedef longlong DOMTimeStamp; +//end + +}; // class Event + + +class EventException +{ +%TypeHeaderCode +#include +%End + + +public: + EventException (ushort); + EventException (const DOM::EventException&); + + enum EventExceptionCode + { + UNSPECIFIED_EVENT_TYPE_ERR + }; + + ushort code; + +}; // class EventException + + +class UIEvent : DOM::Event +{ +%TypeHeaderCode +#include +%End + + +public: + UIEvent (); + UIEvent (const DOM::UIEvent&); + UIEvent (const DOM::Event&); + DOM::AbstractView view () const; + long detail () const; + +%If ( KDE_3_2_0 - ) + int keyCode () const; + +%If ( KDE_3_4_0 - ) + int charCode () const; +%End + + +%If ( KDE_3_2_1 - ) + int pageX () const; + int pageY () const; +%End + + int layerX () const; + int layerY () const; + int which () const; +%End + + void initUIEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long); + +protected: +//ig UIEvent (UIEventImpl*); + +}; // class UIEvent + + +class MouseEvent : DOM::UIEvent +{ +%TypeHeaderCode +#include +%End + + +public: + MouseEvent (); + MouseEvent (const DOM::MouseEvent&); + MouseEvent (const DOM::Event&); + long screenX () const; + long screenY () const; + long clientX () const; + long clientY () const; + bool ctrlKey () const; + bool shiftKey () const; + bool altKey () const; + bool metaKey () const; + ushort button () const; + DOM::Node relatedTarget () const; + void initMouseEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long, long, long, long, long, bool, bool, bool, bool, ushort, const DOM::Node&); + +protected: +//ig MouseEvent (MouseEventImpl*); + +}; // class MouseEvent + + +%If ( KDE_3_1_0 - ) + +class TextEvent : DOM::UIEvent +{ +%TypeHeaderCode +#include +%End + + +public: + TextEvent (); + TextEvent (const DOM::TextEvent&); + TextEvent (const DOM::Event&); + void initTextEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long, const DOM::DOMString&, ulong, ulong, bool, bool); + void initModifier (ulong, bool); + bool inputGenerated () const; + ulong keyVal () const; + bool numPad () const; + DOM::DOMString outputString () const; + ulong virtKeyVal () const; + bool checkModifier (ulong); + +protected: +//ig TextEvent (KeyEventBaseImpl*); + +}; // class TextEvent + +%End + + +%If ( KDE_3_1_0 - ) + +class MutationEvent : DOM::Event +{ +%TypeHeaderCode +#include +%End + + +public: + MutationEvent (); + MutationEvent (const DOM::MutationEvent&); + MutationEvent (const DOM::Event&); + + enum attrChangeType + { + MODIFICATION, + ADDITION, + REMOVAL + }; + + DOM::Node relatedNode () const; + DOM::DOMString prevValue () const; + DOM::DOMString newValue () const; + DOM::DOMString attrName () const; + ushort attrChange () const; + void initMutationEvent (const DOM::DOMString&, bool, bool, const DOM::Node&, const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&, ushort); + +protected: +//ig MutationEvent (MutationEventImpl*); + +}; // class MutationEvent + +%End + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom2_range.sip b/python/pykde/sip/khtml/dom2_range.sip new file mode 100644 index 00000000..9099fc53 --- /dev/null +++ b/python/pykde/sip/khtml/dom2_range.sip @@ -0,0 +1,115 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class RangeException +{ +%TypeHeaderCode +#include +%End + + +public: + RangeException (ushort); + RangeException (const DOM::RangeException&); + + enum RangeExceptionCode + { + BAD_BOUNDARYPOINTS_ERR, + INVALID_NODE_TYPE_ERR, + _EXCEPTION_OFFSET, + _EXCEPTION_MAX + }; + + ushort code; + +}; // class RangeException + + +class Range +{ +%TypeHeaderCode +#include +%End + + +public: + Range (); + Range (const DOM::Document); + Range (const DOM::Range&); + Range (const DOM::Node, const long, const DOM::Node, const long); + DOM::Node startContainer () const; + long startOffset () const; + DOM::Node endContainer () const; + long endOffset () const; + bool collapsed () const; + DOM::Node commonAncestorContainer (); + void setStart (const DOM::Node&, long); + void setEnd (const DOM::Node&, long); + void setStartBefore (const DOM::Node&); + void setStartAfter (const DOM::Node&); + void setEndBefore (const DOM::Node&); + void setEndAfter (const DOM::Node&); + void collapse (bool); + void selectNode (const DOM::Node&); + void selectNodeContents (const DOM::Node&); + + enum CompareHow + { + START_TO_START, + START_TO_END, + END_TO_END, + END_TO_START + }; + + short compareBoundaryPoints (DOM::Range::CompareHow, const DOM::Range&); + bool boundaryPointsValid (); + void deleteContents (); + DOM::DocumentFragment extractContents (); + DOM::DocumentFragment cloneContents (); + void insertNode (const DOM::Node&); + void surroundContents (const DOM::Node&); + DOM::Range cloneRange (); + DOM::DOMString toString (); + DOM::DOMString toHTML (); + +%If ( KDE_3_2_0 - ) + DOM::DocumentFragment createContextualFragment (const DOM::DOMString&); +%End + + void detach (); + bool isDetached () const; +//ig RangeImpl* handle () const; + bool isNull () const; + +protected: +//ig Range (RangeImpl*); + +}; // class Range + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom2_traversal.sip b/python/pykde/sip/khtml/dom2_traversal.sip new file mode 100644 index 00000000..9b057be0 --- /dev/null +++ b/python/pykde/sip/khtml/dom2_traversal.sip @@ -0,0 +1,176 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class NodeIterator +{ +%TypeHeaderCode +#include +%End + + +public: + NodeIterator (); + NodeIterator (const DOM::NodeIterator&); + DOM::Node root (); + ulong whatToShow (); + DOM::NodeFilter filter (); + bool expandEntityReferences (); + DOM::Node nextNode (); + DOM::Node previousNode (); + void detach (); +//ig NodeIteratorImpl* handle () const; + bool isNull () const; + +protected: +//ig NodeIterator (NodeIteratorImpl*); + +}; // class NodeIterator + + +class NodeFilter +{ +%TypeHeaderCode +#include +%End + + +public: + NodeFilter (); + NodeFilter (const DOM::NodeFilter&); + +%If ( KDE_3_2_1 - ) +//ig NodeFilter (NodeFilterImpl*); +%End + + + enum AcceptCode + { + FILTER_ACCEPT, + FILTER_REJECT, + FILTER_SKIP + }; + + + enum ShowCode + { + SHOW_ALL, + SHOW_ELEMENT, + SHOW_ATTRIBUTE, + SHOW_TEXT, + SHOW_CDATA_SECTION, + SHOW_ENTITY_REFERENCE, + SHOW_ENTITY, + SHOW_PROCESSING_INSTRUCTION, + SHOW_COMMENT, + SHOW_DOCUMENT, + SHOW_DOCUMENT_TYPE, + SHOW_DOCUMENT_FRAGMENT, + SHOW_NOTATION + }; + + virtual short acceptNode (const DOM::Node&); +//ig virtual NodeFilterImpl* handle () const; + virtual bool isNull () const; + void setCustomNodeFilter (DOM::CustomNodeFilter*); + DOM::CustomNodeFilter* customNodeFilter (); + static DOM::NodeFilter createCustom (DOM::CustomNodeFilter*); + +protected: + +protected: + +%If ( - KDE_3_2_1 ) +//ig NodeFilter (NodeFilterImpl*); +%End + + +}; // class NodeFilter + + +class CustomNodeFilter : DOM::DomShared +{ +%TypeHeaderCode +#include +%End + + +public: + CustomNodeFilter (); + virtual short acceptNode (const DOM::Node&); + virtual bool isNull (); + virtual DOM::DOMString customNodeFilterType (); + +protected: + +}; // class CustomNodeFilter + + +class TreeWalker +{ +%TypeHeaderCode +#include +%End + + +public: + TreeWalker (); + TreeWalker (const DOM::TreeWalker&); + DOM::Node root (); + ulong whatToShow (); + DOM::NodeFilter filter (); + bool expandEntityReferences (); + DOM::Node currentNode (); + +%If ( KDE_3_2_1 - ) + void setCurrentNode (const DOM::Node&); +%End + + DOM::Node parentNode (); + DOM::Node firstChild (); + DOM::Node lastChild (); + DOM::Node previousSibling (); + DOM::Node nextSibling (); + DOM::Node previousNode (); + DOM::Node nextNode (); +//ig TreeWalkerImpl* handle () const; + bool isNull () const; + +protected: +//ig TreeWalker (TreeWalkerImpl*); + +public: + +%If ( - KDE_3_2_1 ) + void setCurrentNode (const DOM::Node); +%End + + +}; // class TreeWalker + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom2_views.sip b/python/pykde/sip/khtml/dom2_views.sip new file mode 100644 index 00000000..a37395a5 --- /dev/null +++ b/python/pykde/sip/khtml/dom2_views.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class AbstractView +{ +%TypeHeaderCode +#include +%End + + +public: + AbstractView (); + AbstractView (const DOM::AbstractView&); + DOM::Document document () const; + DOM::CSSStyleDeclaration getComputedStyle (const DOM::Element&, const DOM::DOMString&); +//ig AbstractViewImpl* handle () const; + bool isNull () const; + +protected: +//ig AbstractView (AbstractViewImpl*); + +}; // class AbstractView + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom_doc.sip b/python/pykde/sip/khtml/dom_doc.sip new file mode 100644 index 00000000..4ec443a9 --- /dev/null +++ b/python/pykde/sip/khtml/dom_doc.sip @@ -0,0 +1,185 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class DOMImplementation +{ +%TypeHeaderCode +#include +%End + + +public: + DOMImplementation (); + DOMImplementation (const DOM::DOMImplementation&); + bool hasFeature (const DOM::DOMString&, const DOM::DOMString&); + DOM::DocumentType createDocumentType (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + DOM::Document createDocument (const DOM::DOMString&, const DOM::DOMString&, const DOM::DocumentType&); + DOM::DOMImplementation getInterface (const DOM::DOMString&) const; + DOM::CSSStyleSheet createCSSStyleSheet (const DOM::DOMString&, const DOM::DOMString&); + DOM::HTMLDocument createHTMLDocument (const DOM::DOMString&); +//ig DOMImplementationImpl* handle () const; + bool isNull () const; + +protected: +//ig DOMImplementation (DOMImplementationImpl*); + +}; // class DOMImplementation + + +class Document : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Document (); + Document (bool); + Document (const DOM::Document&); + Document (const DOM::Node&); + DOM::DocumentType doctype () const; + DOM::DOMImplementation implementation () const; + DOM::Element documentElement () const; + DOM::Element createElement (const DOM::DOMString&); + DOM::Element createElementNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::DocumentFragment createDocumentFragment (); + DOM::Text createTextNode (const DOM::DOMString&); + DOM::Comment createComment (const DOM::DOMString&); + DOM::CDATASection createCDATASection (const DOM::DOMString&); + DOM::ProcessingInstruction createProcessingInstruction (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr createAttribute (const DOM::DOMString&); + DOM::Attr createAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::EntityReference createEntityReference (const DOM::DOMString&); + DOM::Element getElementById (const DOM::DOMString&) const; + DOM::NodeList getElementsByTagName (const DOM::DOMString&); + DOM::NodeList getElementsByTagNameNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Node importNode (const DOM::Node&, bool); + bool isHTMLDocument () const; + DOM::Range createRange (); + DOM::NodeIterator createNodeIterator (DOM::Node, ulong, DOM::NodeFilter, bool); + DOM::TreeWalker createTreeWalker (DOM::Node, ulong, DOM::NodeFilter, bool); + DOM::Event createEvent (const DOM::DOMString&); + DOM::AbstractView defaultView () const; + DOM::StyleSheetList styleSheets () const; + +%If ( KDE_3_2_0 - ) + DOM::DOMString preferredStylesheetSet (); + DOM::DOMString selectedStylesheetSet (); + void setSelectedStylesheetSet (const DOM::DOMString&); + +%If ( KDE_3_4_0 - ) + void addStyleSheet (const DOM::StyleSheet&); + void removeStyleSheet (const DOM::StyleSheet&); +%End + +%End + + KHTMLView* view () const; + DOM::CSSStyleDeclaration getOverrideStyle (const DOM::Element&, const DOM::DOMString&); + +%If ( KDE_3_2_0 - ) + bool async () const; + void setAsync (bool); + void abort (); + void load (const DOM::DOMString&); + void loadXML (const DOM::DOMString&); + bool designMode () const; + void setDesignMode (bool); +%End + + DOM::DOMString completeURL (const DOM::DOMString&); + +%If ( KDE_3_3_0 - ) + DOM::DOMString toString () const; +%End + + +%If ( KDE_3_2_0 - ) + void updateRendering (); + +%If ( KDE_3_3_0 - ) +//ig Document (DocumentImpl*); +%End + +%End + + +protected: + +%If ( - KDE_3_3_0 ) +//ig Document (DocumentImpl*); +%End + + +}; // class Document + + +class DocumentFragment : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + DocumentFragment (); + DocumentFragment (const DOM::DocumentFragment&); + DocumentFragment (const DOM::Node&); + +protected: +//ig DocumentFragment (DocumentFragmentImpl*); + +}; // class DocumentFragment + + +class DocumentType : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + DocumentType (); + DocumentType (const DOM::DocumentType&); + DocumentType (const DOM::Node&); + DOM::DOMString name () const; + DOM::NamedNodeMap entities () const; + DOM::NamedNodeMap notations () const; + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + DOM::DOMString internalSubset () const; + +protected: +//ig DocumentType (DocumentTypeImpl*); + +}; // class DocumentType + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom_element.sip b/python/pykde/sip/khtml/dom_element.sip new file mode 100644 index 00000000..0bbb4bb2 --- /dev/null +++ b/python/pykde/sip/khtml/dom_element.sip @@ -0,0 +1,111 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class Attr : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Attr (); + Attr (const DOM::Node&); + Attr (const DOM::Attr&); + DOM::DOMString name () const; + bool specified () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + DOM::Element ownerElement () const; + +protected: +//ig Attr (AttrImpl*); + +}; // class Attr + + +class Element : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Element (); + Element (const DOM::Node&); + Element (const DOM::Element&); + DOM::DOMString tagName () const; + DOM::DOMString getAttribute (const DOM::DOMString&); + void setAttribute (const DOM::DOMString&, const DOM::DOMString&); + void removeAttribute (const DOM::DOMString&); + DOM::Attr getAttributeNode (const DOM::DOMString&); + DOM::Attr setAttributeNode (const DOM::Attr&); + DOM::Attr removeAttributeNode (const DOM::Attr&); + DOM::NodeList getElementsByTagName (const DOM::DOMString&); + DOM::NodeList getElementsByTagNameNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::DOMString getAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + void setAttributeNS (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + void removeAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr getAttributeNodeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr setAttributeNodeNS (const DOM::Attr&); + bool hasAttribute (const DOM::DOMString&); + bool hasAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::CSSStyleDeclaration style (); + +%If ( KDE_3_2_0 - ) + bool contentEditable () const; + void setContentEditable (bool); +%End + + bool isHTMLElement () const; + +%If ( KDE_3_1_0 - ) + DOM::Element form () const; +%End + + static bool khtmlValidAttrName (const DOM::DOMString&); + static bool khtmlValidPrefix (const DOM::DOMString&); + static bool khtmlValidQualifiedName (const DOM::DOMString&); + static bool khtmlMalformedQualifiedName (const DOM::DOMString&); + static bool khtmlMalformedPrefix (const DOM::DOMString&); + +protected: +//ig Element (ElementImpl*); + +public: + +%If ( - KDE_3_1_2 ) + void normalize (); +%End + + +}; // class Element + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom_exception.sip b/python/pykde/sip/khtml/dom_exception.sip new file mode 100644 index 00000000..634069d7 --- /dev/null +++ b/python/pykde/sip/khtml/dom_exception.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class DOMException +{ +%TypeHeaderCode +#include +%End + + +public: + DOMException (ushort); + DOMException (const DOM::DOMException&); + + enum ExceptionCode + { + INDEX_SIZE_ERR, + DOMSTRING_SIZE_ERR, + HIERARCHY_REQUEST_ERR, + WRONG_DOCUMENT_ERR, + INVALID_CHARACTER_ERR, + NO_DATA_ALLOWED_ERR, + NO_MODIFICATION_ALLOWED_ERR, + NOT_FOUND_ERR, + NOT_SUPPORTED_ERR, + INUSE_ATTRIBUTE_ERR, + INVALID_STATE_ERR, + SYNTAX_ERR, + INVALID_MODIFICATION_ERR, + NAMESPACE_ERR, + INVALID_ACCESS_ERR + }; + + ushort code; + +}; // class DOMException + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom_misc.sip b/python/pykde/sip/khtml/dom_misc.sip new file mode 100644 index 00000000..7d281eaf --- /dev/null +++ b/python/pykde/sip/khtml/dom_misc.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class DomShared +{ +%TypeHeaderCode +#include +%End + + +public: + DomShared (); + virtual bool deleteMe (); + void ref (); + void deref (); + bool hasOneRef (); + uint refCount () const; + +protected: + +}; // class DomShared + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom_node.sip b/python/pykde/sip/khtml/dom_node.sip new file mode 100644 index 00000000..3a371592 --- /dev/null +++ b/python/pykde/sip/khtml/dom_node.sip @@ -0,0 +1,150 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class NamedNodeMap +{ +%TypeHeaderCode +#include +%End + + +public: + NamedNodeMap (); + NamedNodeMap (const DOM::NamedNodeMap&); + ulong length () const; + DOM::Node getNamedItem (const DOM::DOMString&) const; + DOM::Node setNamedItem (const DOM::Node&); + DOM::Node removeNamedItem (const DOM::DOMString&); + DOM::Node item (ulong) const; + DOM::Node getNamedItemNS (const DOM::DOMString&, const DOM::DOMString&) const; + DOM::Node setNamedItemNS (const DOM::Node&); + DOM::Node removeNamedItemNS (const DOM::DOMString&, const DOM::DOMString&); +//ig NamedNodeMapImpl* handle () const; + bool isNull () const; + +protected: +//ig NamedNodeMap (NamedNodeMapImpl*); + +}; // class NamedNodeMap + + +class Node +{ +%TypeHeaderCode +#include +%End + + +public: + Node (); + Node (const DOM::Node&); +//ig Node (NodeImpl*); + bool operator == (const DOM::Node&); + bool operator != (const DOM::Node&); + + enum NodeType + { + ELEMENT_NODE, + ATTRIBUTE_NODE, + TEXT_NODE, + CDATA_SECTION_NODE, + ENTITY_REFERENCE_NODE, + ENTITY_NODE, + PROCESSING_INSTRUCTION_NODE, + COMMENT_NODE, + DOCUMENT_NODE, + DOCUMENT_TYPE_NODE, + DOCUMENT_FRAGMENT_NODE, + NOTATION_NODE + }; + + DOM::DOMString nodeName () const; + DOM::DOMString nodeValue () const; + void setNodeValue (const DOM::DOMString&); + ushort nodeType () const; + DOM::Node parentNode () const; + DOM::NodeList childNodes () const; + DOM::Node firstChild () const; + DOM::Node lastChild () const; + DOM::Node previousSibling () const; + DOM::Node nextSibling () const; + DOM::NamedNodeMap attributes () const; + DOM::Document ownerDocument () const; + DOM::Node insertBefore (const DOM::Node&, const DOM::Node&); + DOM::Node replaceChild (const DOM::Node&, const DOM::Node&); + DOM::Node removeChild (const DOM::Node&); + DOM::Node appendChild (const DOM::Node&); + bool hasChildNodes (); + DOM::Node cloneNode (bool); + void normalize (); + bool isSupported (const DOM::DOMString&, const DOM::DOMString&) const; + DOM::DOMString namespaceURI () const; + DOM::DOMString prefix () const; + void setPrefix (const DOM::DOMString&); + DOM::DOMString localName () const; + bool hasAttributes (); + void addEventListener (const DOM::DOMString&, DOM::EventListener*, const bool); + void removeEventListener (const DOM::DOMString&, DOM::EventListener*, bool); + bool dispatchEvent (const DOM::Event&); + ulong elementId () const; + bool isNull () const; +//ig NodeImpl* handle () const; + ulong index () const; + QString toHTML (); + void applyChanges (); + void getCursor (int, int&, int&, int&); + QRect getRect (); + +protected: + +}; // class Node + + +class NodeList +{ +%TypeHeaderCode +#include +%End + + +public: + NodeList (); + NodeList (const DOM::NodeList&); + ulong length () const; + DOM::Node item (ulong) const; +//ig NodeListImpl* handle () const; + bool isNull () const; + +protected: +//ig NodeList (const NodeListImpl*); + +}; // class NodeList + +//ig typedef ulonglong DOMTimeStamp; +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom_string.sip b/python/pykde/sip/khtml/dom_string.sip new file mode 100644 index 00000000..c1c55c55 --- /dev/null +++ b/python/pykde/sip/khtml/dom_string.sip @@ -0,0 +1,79 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class DOMString +{ +%TypeHeaderCode +#include +%End + + +public: + DOMString (); + DOMString (const QChar*, uint); + DOMString (const QString&); + DOMString (const char*); +//ig DOMString (DOMStringImpl*); + DOMString (const DOM::DOMString&); + DOM::DOMString& operator += (const DOM::DOMString&); + DOM::DOMString operator + (const DOM::DOMString&); + void insert (DOM::DOMString, uint); + const QChar& operator [] (uint) const; +%MethodCode +//returns (QChar) +//takes index | uint + sipRes = &((*sipCpp)[a0]); +%End + + int find (const QChar, int = 0) const; + uint length () const; + void truncate (uint); + void remove (uint, int = 1); + DOM::DOMString split (uint); + DOM::DOMString lower () const; + DOM::DOMString upper () const; + QChar* unicode () const; + QString string () const; + int toInt () const; + bool percentage (int&) const; + DOM::DOMString copy () const; + bool isNull () const; + bool isEmpty () const; +//ig DOMStringImpl* implementation () const; + +protected: + +}; // class DOMString + +//igx bool operator == (const DOMString&, const DOMString&); +//igx bool operator == (const DOMString&, const QString&); +//igx bool operator == (const DOMString&, const char*); +bool strcasecmp (const DOM::DOMString&, const DOM::DOMString&); +bool strcasecmp (const DOM::DOMString&, const char*); +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom_text.sip b/python/pykde/sip/khtml/dom_text.sip new file mode 100644 index 00000000..444717c7 --- /dev/null +++ b/python/pykde/sip/khtml/dom_text.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class CharacterData : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + CharacterData (); + CharacterData (const DOM::CharacterData&); + CharacterData (const DOM::Node&); + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + ulong length () const; + DOM::DOMString substringData (const ulong, const ulong); + void appendData (const DOM::DOMString&); + void insertData (const ulong, const DOM::DOMString&); + void deleteData (const ulong, const ulong); + void replaceData (const ulong, const ulong, const DOM::DOMString&); + +protected: +//ig CharacterData (CharacterDataImpl*); + +}; // class CharacterData + + +class Comment : DOM::CharacterData +{ +%TypeHeaderCode +#include +%End + + +public: + Comment (); + Comment (const DOM::Comment&); + Comment (const DOM::Node&); + +protected: +//ig Comment (CommentImpl*); + +}; // class Comment + + +class Text : DOM::CharacterData +{ +%TypeHeaderCode +#include +%End + + +public: + Text (); + Text (const DOM::Text&); + Text (const DOM::Node&); + DOM::Text splitText (const ulong); + +protected: +//ig Text (TextImpl*); + +}; // class Text + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/dom_xml.sip b/python/pykde/sip/khtml/dom_xml.sip new file mode 100644 index 00000000..d9eef333 --- /dev/null +++ b/python/pykde/sip/khtml/dom_xml.sip @@ -0,0 +1,128 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class CDATASection : DOM::Text +{ +%TypeHeaderCode +#include +%End + + +public: + CDATASection (); + CDATASection (const DOM::CDATASection&); + CDATASection (const DOM::Node&); + +protected: +//ig CDATASection (CDATASectionImpl*); + +}; // class CDATASection + + +class Entity : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Entity (); + Entity (const DOM::Entity&); + Entity (const DOM::Node&); + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + DOM::DOMString notationName () const; + +protected: +//ig Entity (EntityImpl*); + +}; // class Entity + + +class EntityReference : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + EntityReference (); + EntityReference (const DOM::EntityReference&); + EntityReference (const DOM::Node&); + +protected: +//ig EntityReference (EntityReferenceImpl*); + +}; // class EntityReference + + +class Notation : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Notation (); + Notation (const DOM::Notation&); + Notation (const DOM::Node&); + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + +protected: +//ig Notation (NotationImpl*); + +}; // class Notation + + +class ProcessingInstruction : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + ProcessingInstruction (); + ProcessingInstruction (const DOM::ProcessingInstruction&); + ProcessingInstruction (const DOM::Node&); + DOM::DOMString target () const; + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +protected: +//ig ProcessingInstruction (ProcessingInstructionImpl*); + +}; // class ProcessingInstruction + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_base.sip b/python/pykde/sip/khtml/html_base.sip new file mode 100644 index 00000000..64d6068b --- /dev/null +++ b/python/pykde/sip/khtml/html_base.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLBodyElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBodyElement (); + HTMLBodyElement (const DOM::HTMLBodyElement&); + HTMLBodyElement (const DOM::Node&); + +protected: +//ig HTMLBodyElement (HTMLBodyElementImpl*); + +public: + DOM::DOMString aLink () const; + void setALink (const DOM::DOMString&); + DOM::DOMString background () const; + void setBackground (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString link () const; + void setLink (const DOM::DOMString&); + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + DOM::DOMString vLink () const; + void setVLink (const DOM::DOMString&); + +}; // class HTMLBodyElement + + +class HTMLFrameElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFrameElement (); + HTMLFrameElement (const DOM::HTMLFrameElement&); + HTMLFrameElement (const DOM::Node&); + +protected: +//ig HTMLFrameElement (HTMLFrameElementImpl*); + +public: + DOM::DOMString frameBorder () const; + void setFrameBorder (const DOM::DOMString&); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString marginHeight () const; + void setMarginHeight (const DOM::DOMString&); + DOM::DOMString marginWidth () const; + void setMarginWidth (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool noResize () const; + void setNoResize (bool); + DOM::DOMString scrolling () const; + void setScrolling (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLFrameElement + + +class HTMLFrameSetElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFrameSetElement (); + HTMLFrameSetElement (const DOM::HTMLFrameSetElement&); + HTMLFrameSetElement (const DOM::Node&); + +protected: +//ig HTMLFrameSetElement (HTMLFrameSetElementImpl*); + +public: + DOM::DOMString cols () const; + void setCols (const DOM::DOMString&); + DOM::DOMString rows () const; + void setRows (const DOM::DOMString&); + +}; // class HTMLFrameSetElement + + +class HTMLIFrameElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLIFrameElement (); + HTMLIFrameElement (const DOM::HTMLIFrameElement&); + HTMLIFrameElement (const DOM::Node&); + +protected: +//ig HTMLIFrameElement (HTMLIFrameElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString frameBorder () const; + void setFrameBorder (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString marginHeight () const; + void setMarginHeight (const DOM::DOMString&); + DOM::DOMString marginWidth () const; + void setMarginWidth (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString scrolling () const; + void setScrolling (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLIFrameElement + + +class HTMLHeadElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLHeadElement (); + HTMLHeadElement (const DOM::HTMLHeadElement&); + HTMLHeadElement (const DOM::Node&); + +protected: +//ig HTMLHeadElement (HTMLHeadElementImpl*); + +public: + DOM::DOMString profile () const; + void setProfile (const DOM::DOMString&); + +}; // class HTMLHeadElement + + +class HTMLHtmlElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLHtmlElement (); + HTMLHtmlElement (const DOM::HTMLHtmlElement&); + HTMLHtmlElement (const DOM::Node&); + +protected: +//ig HTMLHtmlElement (HTMLHtmlElementImpl*); + +public: + DOM::DOMString version () const; + void setVersion (const DOM::DOMString&); + +}; // class HTMLHtmlElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_block.sip b/python/pykde/sip/khtml/html_block.sip new file mode 100644 index 00000000..5c3234b4 --- /dev/null +++ b/python/pykde/sip/khtml/html_block.sip @@ -0,0 +1,233 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLBlockquoteElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBlockquoteElement (); + HTMLBlockquoteElement (const DOM::HTMLBlockquoteElement&); + HTMLBlockquoteElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLBlockquoteElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLBlockquoteElement (HTMLBlockquoteElementImpl*); +%End + + +}; // class HTMLBlockquoteElement + + +class HTMLDivElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLDivElement (); + HTMLDivElement (const DOM::HTMLDivElement&); + HTMLDivElement (const DOM::Node&); + +protected: +//ig HTMLDivElement (HTMLDivElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLDivElement + + +class HTMLHRElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLHRElement (); + HTMLHRElement (const DOM::HTMLHRElement&); + HTMLHRElement (const DOM::Node&); + +protected: +//ig HTMLHRElement (HTMLHRElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + bool noShade () const; + void setNoShade (bool); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLHRElement + + +class HTMLHeadingElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLHeadingElement (); + HTMLHeadingElement (const DOM::HTMLHeadingElement&); + HTMLHeadingElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLHeadingElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLHeadingElement (HTMLHeadingElementImpl*); +%End + + +}; // class HTMLHeadingElement + + +class HTMLParagraphElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLParagraphElement (); + HTMLParagraphElement (const DOM::HTMLParagraphElement&); + HTMLParagraphElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLParagraphElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLParagraphElement (HTMLParagraphElementImpl*); +%End + + +}; // class HTMLParagraphElement + + +class HTMLPreElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLPreElement (); + HTMLPreElement (const DOM::HTMLPreElement&); + HTMLPreElement (const DOM::Node&); + +protected: +//ig HTMLPreElement (HTMLPreElementImpl*); + +public: + long width () const; + void setWidth (long); + +}; // class HTMLPreElement + + +%If ( KDE_3_3_2 - ) + +class HTMLLayerElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLayerElement (); + HTMLLayerElement (const DOM::HTMLLayerElement&); + HTMLLayerElement (const DOM::Node&); + +protected: +//igx HTMLLayerElement (HTMLLayerElementImpl*); + +public: + long top () const; + void setTop (long); + long left () const; + void setLeft (long); + DOM::DOMString visibility () const; + void setVisibility (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::HTMLCollection layers () const; + +}; // class HTMLLayerElement + +%End + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_document.sip b/python/pykde/sip/khtml/html_document.sip new file mode 100644 index 00000000..93b24470 --- /dev/null +++ b/python/pykde/sip/khtml/html_document.sip @@ -0,0 +1,77 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLDocument : DOM::Document +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLDocument (); + HTMLDocument (KHTMLView* /TransferThis/); + HTMLDocument (const DOM::HTMLDocument&); + HTMLDocument (const DOM::Node&); + +protected: +//ig HTMLDocument (HTMLDocumentImpl*); + +public: + DOM::DOMString title () const; + void setTitle (const DOM::DOMString&); + DOM::DOMString referrer () const; + DOM::DOMString domain () const; + DOM::DOMString URL () const; + DOM::HTMLElement body () const; + void setBody (const DOM::HTMLElement&); + DOM::HTMLCollection images () const; + DOM::HTMLCollection applets () const; + DOM::HTMLCollection links () const; + DOM::HTMLCollection forms () const; + +%If ( KDE_3_3_2 - ) + DOM::HTMLCollection layers () const; +%End + + DOM::HTMLCollection anchors () const; + DOM::DOMString cookie () const; + void setCookie (const DOM::DOMString&); + void open (); + void close (); + void write (const DOM::DOMString&); + void writeln (const DOM::DOMString&); + DOM::NodeList getElementsByName (const DOM::DOMString&); + DOM::DOMString completeURL (const DOM::DOMString&) const; + DOM::DOMString lastModified () const; + DOM::HTMLCollection all () const; + +}; // class HTMLDocument + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_element.sip b/python/pykde/sip/khtml/html_element.sip new file mode 100644 index 00000000..de99a00f --- /dev/null +++ b/python/pykde/sip/khtml/html_element.sip @@ -0,0 +1,78 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLElement : DOM::Element +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLElement (); + HTMLElement (const DOM::HTMLElement&); + HTMLElement (const DOM::Node&); + +protected: +//ig HTMLElement (HTMLElementImpl*); + +public: + DOM::DOMString id () const; + void setId (const DOM::DOMString&); + DOM::DOMString title () const; + void setTitle (const DOM::DOMString&); + DOM::DOMString lang () const; + void setLang (const DOM::DOMString&); + DOM::DOMString dir () const; + void setDir (const DOM::DOMString&); + DOM::DOMString className () const; + void setClassName (const DOM::DOMString&); + DOM::DOMString innerHTML () const; + void setInnerHTML (const DOM::DOMString&); + DOM::DOMString innerText () const; + void setInnerText (const DOM::DOMString&); + DOM::HTMLCollection children () const; + +%If ( KDE_3_1_0 - ) + DOM::HTMLCollection all () const; +%End + + void removeCSSProperty (const DOM::DOMString&); + void addCSSProperty (const DOM::DOMString&, const DOM::DOMString&); + +protected: + +%If ( KDE_3_0_1 - ) + void assignOther (const DOM::Node&, int); +%End + + +}; // class HTMLElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_form.sip b/python/pykde/sip/khtml/html_form.sip new file mode 100644 index 00000000..e386a445 --- /dev/null +++ b/python/pykde/sip/khtml/html_form.sip @@ -0,0 +1,436 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLButtonElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLButtonElement (); + HTMLButtonElement (const DOM::HTMLButtonElement&); + HTMLButtonElement (const DOM::Node&); + +protected: +//ig HTMLButtonElement (HTMLButtonElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + +%If ( KDE_3_5_0 - ) + void blur (); + void focus (); +%End + + +}; // class HTMLButtonElement + + +class HTMLFieldSetElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFieldSetElement (); + HTMLFieldSetElement (const DOM::HTMLFieldSetElement&); + HTMLFieldSetElement (const DOM::Node&); + +protected: +//ig HTMLFieldSetElement (HTMLFieldSetElementImpl*); + +public: + DOM::HTMLFormElement form () const; + +}; // class HTMLFieldSetElement + + +class HTMLFormElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFormElement (); + HTMLFormElement (const DOM::HTMLFormElement&); + HTMLFormElement (const DOM::Node&); + +protected: +//ig HTMLFormElement (HTMLFormElementImpl*); + +public: + DOM::HTMLCollection elements () const; + long length () const; + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString acceptCharset () const; + void setAcceptCharset (const DOM::DOMString&); + DOM::DOMString action () const; + void setAction (const DOM::DOMString&); + DOM::DOMString enctype () const; + void setEnctype (const DOM::DOMString&); + DOM::DOMString method () const; + void setMethod (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + void submit (); + void reset (); + +}; // class HTMLFormElement + + +class HTMLInputElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLInputElement (); + HTMLInputElement (const DOM::HTMLInputElement&); + HTMLInputElement (const DOM::Node&); + +protected: +//ig HTMLInputElement (HTMLInputElementImpl*); + +public: + DOM::DOMString defaultValue () const; + void setDefaultValue (const DOM::DOMString&); + bool defaultChecked () const; + void setDefaultChecked (bool); + DOM::HTMLFormElement form () const; + DOM::DOMString accept () const; + void setAccept (const DOM::DOMString&); + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + bool checked () const; + void setChecked (bool); + +%If ( KDE_3_5_3 - ) + bool indeterminate () const; + void setIndeterminate (bool); +%End + + bool disabled () const; + void setDisabled (bool); + long maxLength () const; + void setMaxLength (long); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool readOnly () const; + void setReadOnly (bool); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getSize () const; + void setSize (long); +%End + + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + void blur (); + void focus (); + void select (); + void click (); + +%If ( KDE_3_5_2 - ) + long selectionStart (); + void setSelectionStart (long); + long selectionEnd (); + void setSelectionEnd (long); + void setSelectionRange (long, long); +%End + + +}; // class HTMLInputElement + + +class HTMLLabelElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLabelElement (); + HTMLLabelElement (const DOM::HTMLLabelElement&); + HTMLLabelElement (const DOM::Node&); + +protected: +//ig HTMLLabelElement (HTMLLabelElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString htmlFor () const; + void setHtmlFor (const DOM::DOMString&); + +public: + +%If ( - KDE_3_1_0 ) + DOM::HTMLFormElement form () const; +%End + + +}; // class HTMLLabelElement + + +class HTMLLegendElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLegendElement (); + HTMLLegendElement (const DOM::HTMLLegendElement&); + HTMLLegendElement (const DOM::Node&); + +protected: +//ig HTMLLegendElement (HTMLLegendElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLLegendElement + + +class HTMLOptGroupElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLOptGroupElement (); + HTMLOptGroupElement (const DOM::HTMLOptGroupElement&); + HTMLOptGroupElement (const DOM::Node&); + +protected: +//ig HTMLOptGroupElement (HTMLOptGroupElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString label () const; + void setLabel (const DOM::DOMString&); + +}; // class HTMLOptGroupElement + + +class HTMLSelectElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLSelectElement (); + HTMLSelectElement (const DOM::HTMLSelectElement&); + HTMLSelectElement (const DOM::Node&); + +protected: +//ig HTMLSelectElement (HTMLSelectElementImpl*); + +public: + DOM::DOMString type () const; + long selectedIndex () const; + void setSelectedIndex (long); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + long length () const; + DOM::HTMLFormElement form () const; + DOM::HTMLCollection options () const; + bool disabled () const; + void setDisabled (bool); + bool multiple () const; + void setMultiple (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + long size () const; + void setSize (long); + long tabIndex () const; + void setTabIndex (long); + void add (const DOM::HTMLElement&, const DOM::HTMLElement&); + void remove (long); + void blur (); + void focus (); + +}; // class HTMLSelectElement + + +class HTMLTextAreaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTextAreaElement (); + HTMLTextAreaElement (const DOM::HTMLTextAreaElement&); + HTMLTextAreaElement (const DOM::Node&); + +protected: +//ig HTMLTextAreaElement (HTMLTextAreaElementImpl*); + +public: + DOM::DOMString defaultValue () const; + void setDefaultValue (const DOM::DOMString&); + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + long cols () const; + void setCols (long); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool readOnly () const; + void setReadOnly (bool); + long rows () const; + void setRows (long); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + void blur (); + void focus (); + void select (); + +%If ( KDE_3_5_2 - ) + long selectionStart (); + void setSelectionStart (long); + long selectionEnd (); + void setSelectionEnd (long); + void setSelectionRange (long, long); + long textLength (); +%End + + +}; // class HTMLTextAreaElement + + +class HTMLOptionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLOptionElement (); + HTMLOptionElement (const DOM::HTMLOptionElement&); + HTMLOptionElement (const DOM::Node&); + +protected: +//ig HTMLOptionElement (HTMLOptionElementImpl*); + +public: + DOM::HTMLFormElement form () const; + bool defaultSelected () const; + void setDefaultSelected (bool); + DOM::DOMString text () const; + long index () const; + void setIndex (long); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString label () const; + void setLabel (const DOM::DOMString&); + bool selected () const; + void setSelected (bool); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + +}; // class HTMLOptionElement + + +class HTMLIsIndexElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLIsIndexElement (); + HTMLIsIndexElement (const DOM::HTMLIsIndexElement&); + HTMLIsIndexElement (const DOM::Node&); + +protected: +//ig HTMLIsIndexElement (HTMLIsIndexElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString prompt () const; + void setPrompt (const DOM::DOMString&); + +}; // class HTMLIsIndexElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_head.sip b/python/pykde/sip/khtml/html_head.sip new file mode 100644 index 00000000..eb6d705c --- /dev/null +++ b/python/pykde/sip/khtml/html_head.sip @@ -0,0 +1,203 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLBaseElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBaseElement (); + HTMLBaseElement (const DOM::HTMLBaseElement&); + HTMLBaseElement (const DOM::Node&); + +protected: +//ig HTMLBaseElement (HTMLBaseElementImpl*); + +public: + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + +}; // class HTMLBaseElement + + +class HTMLLinkElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLinkElement (); + HTMLLinkElement (const DOM::HTMLLinkElement&); + HTMLLinkElement (const DOM::Node&); + +protected: +//ig HTMLLinkElement (HTMLLinkElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString hreflang () const; + void setHreflang (const DOM::DOMString&); + DOM::DOMString media () const; + void setMedia (const DOM::DOMString&); + DOM::DOMString rel () const; + void setRel (const DOM::DOMString&); + DOM::DOMString rev () const; + void setRev (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +}; // class HTMLLinkElement + + +class HTMLMetaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLMetaElement (); + HTMLMetaElement (const DOM::HTMLMetaElement&); + HTMLMetaElement (const DOM::Node&); + +protected: +//ig HTMLMetaElement (HTMLMetaElementImpl*); + +public: + DOM::DOMString content () const; + void setContent (const DOM::DOMString&); + DOM::DOMString httpEquiv () const; + void setHttpEquiv (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString scheme () const; + void setScheme (const DOM::DOMString&); + +}; // class HTMLMetaElement + + +class HTMLScriptElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLScriptElement (); + HTMLScriptElement (const DOM::HTMLScriptElement&); + HTMLScriptElement (const DOM::Node&); + +protected: +//ig HTMLScriptElement (HTMLScriptElementImpl*); + +public: + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + DOM::DOMString htmlFor () const; + void setHtmlFor (const DOM::DOMString&); + DOM::DOMString event () const; + void setEvent (const DOM::DOMString&); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + bool defer () const; + void setDefer (bool); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLScriptElement + + +class HTMLStyleElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLStyleElement (); + HTMLStyleElement (const DOM::HTMLStyleElement&); + HTMLStyleElement (const DOM::Node&); + +protected: +//ig HTMLStyleElement (HTMLStyleElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString media () const; + void setMedia (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +}; // class HTMLStyleElement + + +class HTMLTitleElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTitleElement (); + HTMLTitleElement (const DOM::HTMLTitleElement&); + HTMLTitleElement (const DOM::Node&); + +protected: +//ig HTMLTitleElement (HTMLTitleElementImpl*); + +public: + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + +}; // class HTMLTitleElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_image.sip b/python/pykde/sip/khtml/html_image.sip new file mode 100644 index 00000000..a039211f --- /dev/null +++ b/python/pykde/sip/khtml/html_image.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLAreaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLAreaElement (); + HTMLAreaElement (const DOM::HTMLAreaElement&); + HTMLAreaElement (const DOM::Node&); + +protected: +//ig HTMLAreaElement (HTMLAreaElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + DOM::DOMString coords () const; + void setCoords (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + bool noHref () const; + void setNoHref (bool); + DOM::DOMString shape () const; + void setShape (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + +}; // class HTMLAreaElement + + +class HTMLImageElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLImageElement (); + HTMLImageElement (const DOM::HTMLImageElement&); + HTMLImageElement (const DOM::Node&); + +protected: +//ig HTMLImageElement (HTMLImageElementImpl*); + +public: + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + DOM::DOMString getBorder () const; + void setBorder (const DOM::DOMString&); +%End + + long border () const; + void setBorder (long); + long height () const; + void setHeight (long); + long hspace () const; + void setHspace (long); + bool isMap () const; + void setIsMap (bool); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + long vspace () const; + void setVspace (long); + long width () const; + void setWidth (long); + +%If ( KDE_3_2_0 - ) + long x () const; + long y () const; +%End + + +}; // class HTMLImageElement + + +class HTMLMapElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLMapElement (); + HTMLMapElement (const DOM::HTMLMapElement&); + HTMLMapElement (const DOM::Node&); + +protected: +//ig HTMLMapElement (HTMLMapElementImpl*); + +public: + DOM::HTMLCollection areas () const; + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + +}; // class HTMLMapElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_inline.sip b/python/pykde/sip/khtml/html_inline.sip new file mode 100644 index 00000000..22714fa9 --- /dev/null +++ b/python/pykde/sip/khtml/html_inline.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLAnchorElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLAnchorElement (); + HTMLAnchorElement (const DOM::HTMLAnchorElement&); + HTMLAnchorElement (const DOM::Node&); + +protected: +//ig HTMLAnchorElement (HTMLAnchorElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + DOM::DOMString coords () const; + void setCoords (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString hreflang () const; + void setHreflang (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString rel () const; + void setRel (const DOM::DOMString&); + DOM::DOMString rev () const; + void setRev (const DOM::DOMString&); + DOM::DOMString shape () const; + void setShape (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + void blur (); + void focus (); + +}; // class HTMLAnchorElement + + +class HTMLBRElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBRElement (); + HTMLBRElement (const DOM::HTMLBRElement&); + HTMLBRElement (const DOM::Node&); + +protected: +//ig HTMLBRElement (HTMLBRElementImpl*); + +public: + DOM::DOMString clear () const; + void setClear (const DOM::DOMString&); + +}; // class HTMLBRElement + + +class HTMLFontElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFontElement (); + HTMLFontElement (const DOM::HTMLFontElement&); + HTMLFontElement (const DOM::Node&); + +protected: +//ig HTMLFontElement (HTMLFontElementImpl*); + +public: + DOM::DOMString color () const; + void setColor (const DOM::DOMString&); + DOM::DOMString face () const; + void setFace (const DOM::DOMString&); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +}; // class HTMLFontElement + + +class HTMLModElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLModElement (); + HTMLModElement (const DOM::HTMLModElement&); + HTMLModElement (const DOM::Node&); + +protected: +//ig HTMLModElement (HTMLElementImpl*); + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + DOM::DOMString dateTime () const; + void setDateTime (const DOM::DOMString&); + +}; // class HTMLModElement + + +class HTMLQuoteElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLQuoteElement (); + HTMLQuoteElement (const DOM::HTMLQuoteElement&); + HTMLQuoteElement (const DOM::Node&); + +protected: +//ig HTMLQuoteElement (HTMLGenericElementImpl*); + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + +}; // class HTMLQuoteElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_list.sip b/python/pykde/sip/khtml/html_list.sip new file mode 100644 index 00000000..224d8d7c --- /dev/null +++ b/python/pykde/sip/khtml/html_list.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLDListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLDListElement (); + HTMLDListElement (const DOM::HTMLDListElement&); + HTMLDListElement (const DOM::Node&); + +protected: +//ig HTMLDListElement (HTMLDListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLDListElement + + +class HTMLDirectoryElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLDirectoryElement (); + HTMLDirectoryElement (const DOM::HTMLDirectoryElement&); + HTMLDirectoryElement (const DOM::Node&); + +protected: +//ig HTMLDirectoryElement (HTMLDirectoryElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLDirectoryElement + + +class HTMLLIElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLIElement (); + HTMLLIElement (const DOM::HTMLLIElement&); + HTMLLIElement (const DOM::Node&); + +protected: +//ig HTMLLIElement (HTMLLIElementImpl*); + +public: + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + long value () const; + void setValue (long); + +}; // class HTMLLIElement + + +class HTMLMenuElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLMenuElement (); + HTMLMenuElement (const DOM::HTMLMenuElement&); + HTMLMenuElement (const DOM::Node&); + +protected: +//ig HTMLMenuElement (HTMLMenuElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLMenuElement + + +class HTMLOListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLOListElement (); + HTMLOListElement (const DOM::HTMLOListElement&); + HTMLOListElement (const DOM::Node&); + +protected: +//ig HTMLOListElement (HTMLOListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + long start () const; + void setStart (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLOListElement + + +class HTMLUListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLUListElement (); + HTMLUListElement (const DOM::HTMLUListElement&); + HTMLUListElement (const DOM::Node&); + +protected: +//ig HTMLUListElement (HTMLUListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLUListElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_misc.sip b/python/pykde/sip/khtml/html_misc.sip new file mode 100644 index 00000000..10abdddb --- /dev/null +++ b/python/pykde/sip/khtml/html_misc.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLBaseFontElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBaseFontElement (); + HTMLBaseFontElement (const DOM::HTMLBaseFontElement&); + HTMLBaseFontElement (const DOM::Node&); + +protected: +//ig HTMLBaseFontElement (HTMLBaseFontElementImpl*); + +public: + DOM::DOMString color () const; + void setColor (const DOM::DOMString&); + DOM::DOMString face () const; + void setFace (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getSize () const; + void setSize (long); +%End + + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +}; // class HTMLBaseFontElement + + +class HTMLCollection +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLCollection (); + HTMLCollection (const DOM::HTMLCollection&); + +protected: +//ig HTMLCollection (NodeImpl*, int); + +public: + ulong length () const; + DOM::Node item (ulong) const; + DOM::Node namedItem (const DOM::DOMString&) const; + DOM::Node base () const; +//ig HTMLCollectionImpl* handle () const; + bool isNull () const; + DOM::Node firstItem () const; + DOM::Node nextItem () const; + DOM::Node nextNamedItem (const DOM::DOMString&) const; + +protected: + +}; // class HTMLCollection + + +//ig class HTMLFormCollection : DOM::HTMLCollection; + + +//ig class HTMLMappedNameCollection : DOM::HTMLCollection; + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_object.sip b/python/pykde/sip/khtml/html_object.sip new file mode 100644 index 00000000..850cf49b --- /dev/null +++ b/python/pykde/sip/khtml/html_object.sip @@ -0,0 +1,179 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLAppletElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLAppletElement (); + HTMLAppletElement (const DOM::HTMLAppletElement&); + HTMLAppletElement (const DOM::Node&); + +protected: +//ig HTMLAppletElement (HTMLAppletElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + DOM::DOMString archive () const; + void setArchive (const DOM::DOMString&); + DOM::DOMString code () const; + void setCode (const DOM::DOMString&); + DOM::DOMString codeBase () const; + void setCodeBase (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getHspace () const; + void setHspace (long); +%End + + DOM::DOMString hspace () const; + void setHspace (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString object () const; + void setObject (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getVspace () const; + void setVspace (long); +%End + + DOM::DOMString vspace () const; + void setVspace (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLAppletElement + + +class HTMLObjectElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLObjectElement (); + HTMLObjectElement (const DOM::HTMLObjectElement&); + HTMLObjectElement (const DOM::Node&); + +protected: +//ig HTMLObjectElement (HTMLObjectElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString code () const; + void setCode (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString archive () const; + void setArchive (const DOM::DOMString&); + DOM::DOMString border () const; + void setBorder (const DOM::DOMString&); + DOM::DOMString codeBase () const; + void setCodeBase (const DOM::DOMString&); + DOM::DOMString codeType () const; + void setCodeType (const DOM::DOMString&); + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + bool declare () const; + void setDeclare (bool); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getHspace () const; + void setHspace (long); +%End + + DOM::DOMString hspace () const; + void setHspace (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString standby () const; + void setStandby (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getVspace () const; + void setVspace (long); +%End + + DOM::DOMString vspace () const; + void setVspace (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLObjectElement + + +class HTMLParamElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLParamElement (); + HTMLParamElement (const DOM::HTMLParamElement&); + HTMLParamElement (const DOM::Node&); + +protected: +//ig HTMLParamElement (HTMLParamElementImpl*); + +public: + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + DOM::DOMString valueType () const; + void setValueType (const DOM::DOMString&); + +}; // class HTMLParamElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/html_table.sip b/python/pykde/sip/khtml/html_table.sip new file mode 100644 index 00000000..8c765763 --- /dev/null +++ b/python/pykde/sip/khtml/html_table.sip @@ -0,0 +1,256 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace DOM +{ + +class HTMLTableCaptionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableCaptionElement (); + HTMLTableCaptionElement (const DOM::HTMLTableCaptionElement&); + HTMLTableCaptionElement (const DOM::Node&); + +protected: +//ig HTMLTableCaptionElement (HTMLTableCaptionElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLTableCaptionElement + + +class HTMLTableCellElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableCellElement (); + HTMLTableCellElement (const DOM::HTMLTableCellElement&); + HTMLTableCellElement (const DOM::Node&); + +protected: +//ig HTMLTableCellElement (HTMLTableCellElementImpl*); + +public: + long cellIndex () const; + void setCellIndex (long); + DOM::DOMString abbr () const; + void setAbbr (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString axis () const; + void setAxis (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + long colSpan () const; + void setColSpan (long); + DOM::DOMString headers () const; + void setHeaders (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + bool noWrap () const; + void setNoWrap (bool); + long rowSpan () const; + void setRowSpan (long); + DOM::DOMString scope () const; + void setScope (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLTableCellElement + + +class HTMLTableColElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableColElement (); + HTMLTableColElement (const DOM::HTMLTableColElement&); + HTMLTableColElement (const DOM::Node&); + +protected: +//ig HTMLTableColElement (HTMLTableColElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + long span () const; + void setSpan (long); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLTableColElement + + +class HTMLTableElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableElement (); + HTMLTableElement (const DOM::HTMLTableElement&); + HTMLTableElement (const DOM::Node&); + +protected: +//ig HTMLTableElement (HTMLTableElementImpl*); + +public: + DOM::HTMLTableCaptionElement caption () const; + void setCaption (const DOM::HTMLTableCaptionElement&); + DOM::HTMLTableSectionElement tHead () const; + void setTHead (const DOM::HTMLTableSectionElement&); + DOM::HTMLTableSectionElement tFoot () const; + void setTFoot (const DOM::HTMLTableSectionElement&); + DOM::HTMLCollection rows () const; + DOM::HTMLCollection tBodies () const; + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString border () const; + void setBorder (const DOM::DOMString&); + DOM::DOMString cellPadding () const; + void setCellPadding (const DOM::DOMString&); + DOM::DOMString cellSpacing () const; + void setCellSpacing (const DOM::DOMString&); + DOM::DOMString frame () const; + void setFrame (const DOM::DOMString&); + DOM::DOMString rules () const; + void setRules (const DOM::DOMString&); + DOM::DOMString summary () const; + void setSummary (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::HTMLElement createTHead (); + void deleteTHead (); + DOM::HTMLElement createTFoot (); + void deleteTFoot (); + DOM::HTMLElement createCaption (); + void deleteCaption (); + DOM::HTMLElement insertRow (long); + void deleteRow (long); + +}; // class HTMLTableElement + + +class HTMLTableRowElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableRowElement (); + HTMLTableRowElement (const DOM::HTMLTableRowElement&); + HTMLTableRowElement (const DOM::Node&); + +protected: +//ig HTMLTableRowElement (HTMLTableRowElementImpl*); + +public: + long rowIndex () const; + void setRowIndex (long); + long sectionRowIndex () const; + void setSectionRowIndex (long); + DOM::HTMLCollection cells () const; + void setCells (const DOM::HTMLCollection&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::HTMLElement insertCell (long); + void deleteCell (long); + +}; // class HTMLTableRowElement + + +class HTMLTableSectionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableSectionElement (); + HTMLTableSectionElement (const DOM::HTMLTableSectionElement&); + HTMLTableSectionElement (const DOM::Node&); + +protected: +//ig HTMLTableSectionElement (HTMLTableSectionElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::HTMLCollection rows () const; + DOM::HTMLElement insertRow (long); + void deleteRow (long); + +}; // class HTMLTableSectionElement + +}; // namespace DOM + diff --git a/python/pykde/sip/khtml/khtml_part.sip b/python/pykde/sip/khtml/khtml_part.sip new file mode 100644 index 00000000..8e22b4f0 --- /dev/null +++ b/python/pykde/sip/khtml/khtml_part.sip @@ -0,0 +1,282 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::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 khtml::RenderPart*) const; +%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; + QVariant executeScript (const DOM::Node&, const QString&); + 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); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + +%If ( KDE_3_3_0 - ) + + enum FindOptions + { + FindLinksOnly, + FindNoPopups + }; + + void findText (); + void findText (const QString&, long, QWidget* /Transfer/ = 0, KFindDialog* = 0); +%End + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString 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 (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + 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: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + 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 QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/python/pykde/sip/khtml/khtml_part.sip.323 b/python/pykde/sip/khtml/khtml_part.sip.323 new file mode 100644 index 00000000..3423dfb9 --- /dev/null +++ b/python/pykde/sip/khtml/khtml_part.sip.323 @@ -0,0 +1,272 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::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 khtml::RenderPart*) const; +%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; + QVariant executeScript (const DOM::Node&, const QString&); + 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); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + void findText (); + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString 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 (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + 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: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + 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 QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/python/pykde/sip/khtml/khtml_part.sip.330 b/python/pykde/sip/khtml/khtml_part.sip.330 new file mode 100644 index 00000000..8e22b4f0 --- /dev/null +++ b/python/pykde/sip/khtml/khtml_part.sip.330 @@ -0,0 +1,282 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::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 khtml::RenderPart*) const; +%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; + QVariant executeScript (const DOM::Node&, const QString&); + 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); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + +%If ( KDE_3_3_0 - ) + + enum FindOptions + { + FindLinksOnly, + FindNoPopups + }; + + void findText (); + void findText (const QString&, long, QWidget* /Transfer/ = 0, KFindDialog* = 0); +%End + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString 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 (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + 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: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + 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 QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/python/pykde/sip/khtml/khtml_settings.sip b/python/pykde/sip/khtml/khtml_settings.sip new file mode 100644 index 00000000..84889b47 --- /dev/null +++ b/python/pykde/sip/khtml/khtml_settings.sip @@ -0,0 +1,293 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KHTMLSettings +{ +%TypeHeaderCode +#include +%End + + +public: + + enum KJavaScriptAdvice + { + KJavaScriptDunno, + KJavaScriptAccept, + KJavaScriptReject + }; + + + enum KAnimationAdvice + { + KAnimationDisabled, + KAnimationLoopOnce, + KAnimationEnabled + }; + + +%If ( KDE_3_2_0 - ) + + enum KJSWindowOpenPolicy + { + KJSWindowOpenAllow, + KJSWindowOpenAsk, + KJSWindowOpenDeny, + KJSWindowOpenSmart + }; + + + enum KJSWindowStatusPolicy + { + KJSWindowStatusAllow, + KJSWindowStatusIgnore + }; + + + enum KJSWindowMovePolicy + { + KJSWindowMoveAllow, + KJSWindowMoveIgnore + }; + + + enum KJSWindowResizePolicy + { + KJSWindowResizeAllow, + KJSWindowResizeIgnore + }; + + + enum KJSWindowFocusPolicy + { + KJSWindowFocusAllow, + KJSWindowFocusIgnore + }; + +%End + + KHTMLSettings (); + KHTMLSettings (const KHTMLSettings&); + void init (); + void init (KConfig*, bool = 1); + bool changeCursor (); + bool underlineLink (); + bool hoverLink (); + +%If ( KDE_3_4_0 - ) + bool allowTabulation () const; + bool autoSpellCheck () const; +%End + + KHTMLSettings::KAnimationAdvice showAnimations () const; + QString stdFontName () const; + QString fixedFontName () const; + QString serifFontName () const; + QString sansSerifFontName () const; + QString cursiveFontName () const; + QString fantasyFontName () const; + void setStdFontName (const QString&); + void setFixedFontName (const QString&); + int minFontSize () const; + int mediumFontSize () const; + +%If ( KDE_3_2_0 - ) + bool jsErrorsEnabled () const; + void setJSErrorsEnabled (bool); +%End + + const QString& encoding () const; + +%If ( KDE_3_4_0 - ) + bool followSystemColors () const; +%End + + const QColor& textColor (); + +%If ( KDE_3_4_0 - ) + const QColor& baseColor () const; +%End + + const QColor& linkColor (); + const QColor& vLinkColor (); + bool autoLoadImages (); + +%If ( KDE_3_4_0 - ) + bool unfinishedImageFrame () const; +%End + + +%If ( KDE_3_3_0 - ) + bool isOpenMiddleClickEnabled (); +%End + + +%If ( KDE_3_1_0 - ) + bool isBackRightClickEnabled (); +%End + + bool isJavaEnabled (const QString& = QString ::null ); + bool isJavaScriptEnabled (const QString& = QString ::null ); + bool isJavaScriptDebugEnabled (const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + bool isJavaScriptErrorReportingEnabled (const QString& = QString ::null ) const; +%End + + bool isPluginsEnabled (const QString& = QString ::null ); + +%If ( KDE_3_5_0 - ) + bool isAdFiltered (const QString&) const; + bool isAdFilterEnabled () const; + bool isHideAdsEnabled () const; + void addAdFilter (const QString&); + bool accessKeysEnabled () const; +%End + + +%If ( KDE_3_2_0 - ) + KHTMLSettings::KJSWindowOpenPolicy windowOpenPolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowMovePolicy windowMovePolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowResizePolicy windowResizePolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowStatusPolicy windowStatusPolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowFocusPolicy windowFocusPolicy (const QString& = QString ::null ) const; +%End + + static KJavaScriptAdvice strToAdvice (const QString&); +//ig static void splitDomainAdvice (const QString&, QString&, KHTMLSettings::KJavaScriptAdvice&, KHTMLSettings::KJavaScriptAdvice&); + static const char* adviceToStr (KHTMLSettings::KJavaScriptAdvice); + +%If ( KDE_3_2_0 - ) +//ig void readDomainSettings (KConfig*, bool, bool, KPerDomainSettings&); +%End + + QString settingsToCSS () const; + static const QString& availableFamilies (); + QString userStyleSheet () const; + bool isFormCompletionEnabled () const; + int maxFormCompletionItems () const; + +%If ( KDE_3_1_1 - ) + bool isAutoDelayedActionsEnabled () const; + +%If ( KDE_3_5_0 - ) + QValueList> fallbackAccessKeysAssignments () const; + void setJSPopupBlockerPassivePopup (bool); + bool jsPopupBlockerPassivePopup () const; +%End + +%End + + +}; // class KHTMLSettings + + + +%If (KDE_3_5_0 - ) +%MappedType QValueList> +//converts a Python list of tuples (QString,QChar) +{ +%TypeHeaderCode +#include +#include +#include +#include +#include +#include +typedef QPair AssignPair; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + QString s = (*it).first; + QChar c = (*it).second; + PyObject *pys = sipBuildResult (NULL, "N", new QString (s), sipClass_QString); + PyObject *pyc = sipBuildResult (NULL, "N", new QChar (c), sipClass_QChar); + if ((pys == NULL) || ((inst = Py_BuildValue ("NN", pys, pyc)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_XDECREF (inst); + Py_XDECREF (pys); + Py_XDECREF (pyc); + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + QString p1; + QChar p2; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + PyObject *elem = PyList_GET_ITEM (sipPy, i); + PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); + PyObject *pyp2 = PyTuple_GET_ITEM (elem, 1); + p1 = *(QString *)sipForceConvertTo_QString (pyp1, &iserr); + p2 = *(QChar *)sipForceConvertTo_QChar (pyp2, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (AssignPair (p1, p2)); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/python/pykde/sip/khtml/khtmlmod.sip.in b/python/pykde/sip/khtml/khtmlmod.sip.in new file mode 100644 index 00000000..2311d7c8 --- /dev/null +++ b/python/pykde/sip/khtml/khtmlmod.sip.in @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE_3_5_2 + +%Copying + + 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., + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +%End + +%Module khtml + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip +%Import kutilsmod.sip +%Import kpartsmod.sip + +%Include css_rule.sip +%Include css_stylesheet.sip +%Include css_value.sip +%Include dom2_events.sip +%Include dom2_range.sip +%Include dom2_traversal.sip +%Include dom2_views.sip +%Include dom_doc.sip +%Include dom_element.sip +%Include dom_exception.sip +%Include dom_misc.sip +%Include dom_node.sip +%Include dom_string.sip +%Include dom_text.sip +%Include dom_xml.sip +%Include html_base.sip +%Include html_block.sip +%Include html_document.sip +%Include html_element.sip +%Include html_form.sip +%Include html_head.sip +%Include html_image.sip +%Include html_inline.sip +%Include html_list.sip +%Include html_misc.sip +%Include html_object.sip +%Include html_table.sip +%Include khtml_part.sip +%Include khtml_settings.sip +%Include khtmlview.sip +@mark@ diff --git a/python/pykde/sip/khtml/khtmlview.sip b/python/pykde/sip/khtml/khtmlview.sip new file mode 100644 index 00000000..bc1d5716 --- /dev/null +++ b/python/pykde/sip/khtml/khtmlview.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +//ig namespace khtml; + + +class KHTMLView : QScrollView +{ +%TypeHeaderCode +#include +%End + + +public: + KHTMLView (KHTMLPart*, QWidget* /TransferThis/, const char* = 0); + KHTMLPart* part () const; + int frameWidth () const; + void setMarginWidth (int); + int marginWidth () const; + void setMarginHeight (int); + int marginHeight (); + virtual void setVScrollBarMode (ScrollBarMode); + virtual void setHScrollBarMode (ScrollBarMode); + void print () /PyName=print_/; + +%If ( KDE_3_2_0 - ) + void print (bool); +%End + + void layout (); + +%If ( KDE_3_3_0 - ) + void displayAccessKeys (); +%End + + +signals: + +%If ( KDE_3_3_0 - ) + void finishedLayout (); +%End + + void cleared (); + +%If ( KDE_3_1_0 - ) + void zoomView (int); + +%If ( KDE_3_3_0 - ) + void hideAccessKeys (); + void repaintAccessKeys (); + +%If ( KDE_3_5_0 - ) + void findAheadActive (bool); +%End + +%End + +%End + + +protected: + void clear (); + virtual void resizeEvent (QResizeEvent*); + virtual void showEvent (QShowEvent*); + virtual void hideEvent (QHideEvent*); + virtual bool focusNextPrevChild (bool); + virtual void drawContents (QPainter*, int, int, int, int); + virtual void drawContents (QPainter*); + virtual void viewportMousePressEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void focusInEvent (QFocusEvent*); +%End + + virtual void focusOutEvent (QFocusEvent*); + virtual void viewportMouseDoubleClickEvent (QMouseEvent*); + virtual void viewportMouseMoveEvent (QMouseEvent*); + virtual void viewportMouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void viewportResizeEvent (QResizeEvent*); +%End + + virtual void viewportWheelEvent (QWheelEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +%If ( KDE_3_1_0 - ) + virtual void closeEvent (QCloseEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); +%End + +%End + + void keyPressEvent (QKeyEvent*); + void keyReleaseEvent (QKeyEvent*); + void contentsContextMenuEvent (QContextMenuEvent*); + void doAutoScroll (); + void timerEvent (QTimerEvent*); + +protected slots: + void slotPaletteChanged (); + void slotScrollBarMoved (); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KHTMLView, &sipClass_KHTMLView}, + {sipName_KHTMLPart, &sipClass_KHTMLPart}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KHTMLView + -- cgit v1.2.1