summaryrefslogtreecommitdiffstats
path: root/sip/khtml/khtml_part.sip.323
blob: 1173eefd17605535aafd468d8064d65a9e8ad1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
//
//     Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
//     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.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


class KHTMLPart : KParts::ReadOnlyPart
{
%TypeHeaderCode
#include <khtml_part.h>
%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<KParts::ReadOnlyPart> 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