summaryrefslogtreecommitdiffstats
path: root/sip/tdehtml/tdehtml_part.sip.330
blob: 4af60f06cdf64fba44b2982d8170903aa103a5ec (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
273
274
275
276
277
278
279
280
281
282
//
//     Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
//     Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
//     may also apply


//                 Generated by preSip
//            module tdehtml  version KDE_3_3_0


// This software is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this library; see the file COPYING.
// If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


class TDEHTMLPart : KParts::ReadOnlyPart
{
%TypeHeaderCode
#include <tdehtml_part.h>
%End


public:

    enum GUIProfile
    {
        DefaultGUI,
        BrowserViewGUI
    };

                         TDEHTMLPart (TQWidget* = 0, const char* = 0, TQObject* /TransferThis/ = 0, const char* = 0, TDEHTMLPart::GUIProfile = DefaultGUI );
                         TDEHTMLPart (TDEHTMLView*, TQObject* /TransferThis/ = 0, const char* = 0, TDEHTMLPart::GUIProfile = DefaultGUI );
    virtual bool         openURL (const KURL&);
    virtual bool         closeURL ();
    virtual void         showError (TDEIO::Job*);
    DOM::HTMLDocument    htmlDocument () const;
    DOM::Document        document () const;
    DOM::Node            activeNode () const;
    KParts::BrowserExtension* browserExtension () const;

%If ( KDE_3_1_0 -  )
//ig     KParts::LiveConnectExtension* liveConnectExtension (const tdehtml::RenderPart*) const;
%End

    TDEHTMLView*           view () const;
    void                 setJScriptEnabled (bool);
    bool                 jScriptEnabled () const;

%If ( KDE_3_2_0 -  )
//ig     KJS::Interpreter*    jScriptInterpreter ();
    void                 setStatusMessagesEnabled (bool);
    bool                 statusMessagesEnabled () const;
%End

    void                 setMetaRefreshEnabled (bool);
    bool                 metaRefreshEnabled () const;
    TQVariant             executeScript (const DOM::Node&, const TQString&);
    void                 setDNDEnabled (bool);
    bool                 dndEnabled () const;
    void                 setJavaEnabled (bool);
    bool                 javaEnabled () const;
//ig     KJavaAppletContext*  javaContext ();
//ig     KJavaAppletContext*  createJavaContext ();
    void                 setPluginsEnabled (bool);
    bool                 pluginsEnabled () const;
    void                 setAutoloadImages (bool);
    bool                 autoloadImages () const;
    void                 setOnlyLocalReferences (bool);
    bool                 onlyLocalReferences () const;

%If ( KDE_3_2_0 -  )
    bool                 isCaretMode () const;
    bool                 isEditable () const;
    void                 setCaretPosition (DOM::Node, long, bool = 0);

    enum CaretDisplayPolicy
    {
        CaretVisible,
        CaretInvisible,
        CaretBlink
    };

    TDEHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const;
    void                 setCaretDisplayPolicyNonFocused (TDEHTMLPart::CaretDisplayPolicy);
%End

    void                 enableJScript (bool);
    void                 enableJava (bool);
    void                 enablePlugins (bool);
    void                 autoloadImages (bool);
    void                 enableMetaRefresh (bool);
    bool                 setCharset (const TQString&, bool = 0);
    KURL                 baseURL () const;
    TQString              baseTarget () const;
    KURL                 backgroundURL () const;
    void                 scheduleRedirection (int, const TQString&, bool = 1);
    virtual void         begin (const KURL& = KURL (), int = 0, int = 0);
    virtual void         write (const char*, int = -1);
    virtual void         write (const TQString&);
    virtual void         end ();
    void                 paint (TQPainter*, const TQRect&, int = 0, bool* = 0);
    bool                 setEncoding (const TQString&, bool = 0);
    TQString              encoding ();
    void                 setUserStyleSheet (const KURL&);
    void                 setUserStyleSheet (const TQString&);

public:
    void                 setStandardFont (const TQString&);
    void                 setFixedFont (const TQString&);
    bool                 gotoAnchor (const TQString&);

%If ( KDE_3_2_0 -  )
    bool                 nextAnchor ();
    bool                 prevAnchor ();
%End

    void                 setURLCursor (const TQCursor&);
    TQCursor              urlCursor () const;

%If ( KDE_3_3_0 -  )

    enum FindOptions
    {
        FindLinksOnly,
        FindNoPopups
    };

    void                 findText ();
    void                 findText (const TQString&, long, TQWidget* /Transfer/ = 0, KFindDialog* = 0);
%End

    void                 findTextBegin ();
    bool                 findTextNext (const TQString&, bool, bool, bool);

%If ( KDE_3_3_0 -  )
    bool                 findTextNext ();
%End

    void                 setZoomFactor (int);
    int                  zoomFactor () const;
    virtual TQString      selectedText () const;
    DOM::Range           selection () const;

%If ( KDE_3_2_0 -  )
    void                 selection (DOM::Node&, long&, DOM::Node&, long&) const;
%End

    void                 setSelection (const DOM::Range&);
    bool                 hasSelection () const;
    void                 selectAll ();
    void                 show ();
    void                 hide ();
    KParts::PartManager* partManager ();
    virtual void         saveState (TQDataStream&);
    virtual void         restoreState (TQDataStream&);
    DOM::Node            nodeUnderMouse () const;
    const TDEHTMLSettings* settings () const;
    TDEHTMLPart*           parentPart ();
    TQStringList          frameNames () const;
    TQPtrList<KParts::ReadOnlyPart> frames () const;
    TDEHTMLPart*           findFrame (const TQString&);
    KParts::ReadOnlyPart* currentFrame () const;
    bool                 frameExists (const TQString&);
    void                 setJSStatusBarText (const TQString&);
    void                 setJSDefaultStatusBarText (const TQString&);
    TQString              jsStatusBarText () const;
    TQString              jsDefaultStatusBarText () const;
    TQString              referrer () const;

%If ( KDE_3_1_3 -  )
    TQString              pageReferrer () const;
%End

    TQString              lastModified () const;
    void                 preloadStyleSheet (const TQString&, const TQString&);
    void                 preloadScript (const TQString&, const TQString&);
    bool                 restored () const;

%If ( KDE_3_2_0 -  )

    enum FormNotification
    {
        NoNotification = 0,
        Before,
        Only,
        Unused = 255
    };

    void                 setFormNotification (TDEHTMLPart::FormNotification);
    TDEHTMLPart::FormNotification formNotification () const;
    KURL                 toplevelURL ();

%If ( KDE_3_3_0 -  )
    bool                 isModified () const;
%End

%End


signals:
    void                 onURL (const TQString&);
    void                 popupMenu (const TQString&, const TQPoint&);
    void                 selectionChanged ();
    void                 nodeActivated (const DOM::Node&);

%If ( KDE_3_1_0 -  )
    void                 docCreated ();

%If ( KDE_3_2_0 -  )
    void                 caretPositionChanged (const DOM::Node&, long);
    void                 formSubmitNotification (const char*, const TQString&, const TQByteArray&, const TQString&, const TQString&, const TQString&);
%End

%End


protected:
    KURL                 completeURL (const TQString&);
    void                 htmlError (int, const TQString&, const KURL&);
    virtual void         customEvent (TQCustomEvent*);
//ig     virtual void         tdehtmlMousePressEvent (tdehtml::MousePressEvent*);
//ig     virtual void         tdehtmlMouseDoubleClickEvent (tdehtml::MouseDoubleClickEvent*);
//ig     virtual void         tdehtmlMouseMoveEvent (tdehtml::MouseMoveEvent*);
//ig     virtual void         tdehtmlMouseReleaseEvent (tdehtml::MouseReleaseEvent*);
//ig     virtual void         tdehtmlDrawContentsEvent (tdehtml::DrawContentsEvent*);
    virtual void         guiActivateEvent (KParts::GUIActivateEvent*);
    virtual bool         openFile ();
    virtual void         urlSelected (const TQString&, int, int, const TQString&, KParts::URLArgs = KParts ::URLArgs ());
    virtual KParts::ReadOnlyPart* createPart (TQWidget*, const char*, TQObject* /Transfer/, const char*, const TQString&, TQString&, TQStringList&, const TQStringList&);

%If ( KDE_3_1_0 -  )
    bool                 pluginPageQuestionAsked (const TQString&) const;
    void                 setPluginPageQuestionAsked (const TQString&);

%If ( KDE_3_2_0 -  )
//ig     void                 setPageSecurity (TDEHTMLPart::PageSecurity);
    virtual bool         doOpenStream (const TQString&);
    virtual bool         doWriteStream (const TQByteArray&);
    virtual bool         doCloseStream ();
%End

%End


public slots:
    void                 setActiveNode (const DOM::Node&);
    void                 stopAnimations ();
    TQCString             dcopObjectId () const;

%If ( KDE_3_2_0 -  )
    TQVariant             executeScript (const TQString&);
    void                 setCaretMode (bool);
    void                 setEditable (bool);
    void                 setCaretVisible (bool);
    void                 submitFormProxy (const char*, const TQString&, const TQByteArray&, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null );
%End

public:

%If (  - KDE_3_2_0 )
    TQVariant             executeScript (const TQString&);
%End

//force

private:
    void                 setStatusBarText (const TQString&, int);
//end

};  // class TDEHTMLPart