• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.2 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • dom
html_object.cpp
Go to the documentation of this file.
1 
23 #include "html_object.h"
24 #include "dom_doc.h"
25 
26 #include <html/html_objectimpl.h>
27 
28 using namespace DOM;
29 
30 HTMLAppletElement::HTMLAppletElement() : HTMLElement()
31 {
32 }
33 
34 HTMLAppletElement::HTMLAppletElement(const HTMLAppletElement &other)
35  : HTMLElement(other)
36 {
37 }
38 
39 HTMLAppletElement::HTMLAppletElement(HTMLAppletElementImpl *impl)
40  : HTMLElement(impl)
41 {
42 }
43 
44 HTMLAppletElement &HTMLAppletElement::operator = (const Node &other)
45 {
46  assignOther( other, ID_APPLET );
47  return *this;
48 }
49 
50 HTMLAppletElement &HTMLAppletElement::operator = (const HTMLAppletElement &other)
51 {
52  HTMLElement::operator = (other);
53  return *this;
54 }
55 
56 HTMLAppletElement::~HTMLAppletElement()
57 {
58 }
59 
60 DOMString HTMLAppletElement::align() const
61 {
62  if(!impl) return DOMString();
63  return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
64 }
65 
66 void HTMLAppletElement::setAlign( const DOMString &value )
67 {
68  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
69 }
70 
71 DOMString HTMLAppletElement::alt() const
72 {
73  if(!impl) return DOMString();
74  return ((ElementImpl *)impl)->getAttribute(ATTR_ALT);
75 }
76 
77 void HTMLAppletElement::setAlt( const DOMString &value )
78 {
79  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALT, value);
80 }
81 
82 DOMString HTMLAppletElement::archive() const
83 {
84  if(!impl) return DOMString();
85  return ((ElementImpl *)impl)->getAttribute(ATTR_ARCHIVE);
86 }
87 
88 void HTMLAppletElement::setArchive( const DOMString &value )
89 {
90  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ARCHIVE, value);
91 }
92 
93 DOMString HTMLAppletElement::code() const
94 {
95  if(!impl) return DOMString();
96  return ((ElementImpl *)impl)->getAttribute(ATTR_CODE);
97 }
98 
99 void HTMLAppletElement::setCode( const DOMString &value )
100 {
101  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODE, value);
102 }
103 
104 DOMString HTMLAppletElement::codeBase() const
105 {
106  if(!impl) return DOMString();
107  return ((ElementImpl *)impl)->getAttribute(ATTR_CODEBASE);
108 }
109 
110 void HTMLAppletElement::setCodeBase( const DOMString &value )
111 {
112  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODEBASE, value);
113 }
114 
115 DOMString HTMLAppletElement::height() const
116 {
117  if(!impl) return DOMString();
118  return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
119 }
120 
121 void HTMLAppletElement::setHeight( const DOMString &value )
122 {
123  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
124 }
125 
126 #ifndef KDE_NO_DEPRECATED
127 DOMString HTMLAppletElement::hspace() const
128 {
129  if(!impl) return DOMString();
130  return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE);
131 }
132 #endif
133 
134 #ifndef KDE_NO_DEPRECATED
135 void HTMLAppletElement::setHspace( const DOMString &value )
136 {
137  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, value);
138 }
139 #endif
140 
141 long HTMLAppletElement::getHspace() const
142 {
143  if(!impl) return 0;
144  return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE).toInt();
145 }
146 
147 void HTMLAppletElement::setHspace( long value )
148 {
149  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, QString::number(value));
150 }
151 
152 DOMString HTMLAppletElement::name() const
153 {
154  if(!impl) return DOMString();
155  return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
156 }
157 
158 void HTMLAppletElement::setName( const DOMString &value )
159 {
160  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
161 }
162 
163 DOMString HTMLAppletElement::object() const
164 {
165  if(!impl) return DOMString();
166  return ((ElementImpl *)impl)->getAttribute(ATTR_OBJECT);
167 }
168 
169 void HTMLAppletElement::setObject( const DOMString &value )
170 {
171  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_OBJECT, value);
172 }
173 
174 #ifndef KDE_NO_DEPRECATED
175 DOMString HTMLAppletElement::vspace() const
176 {
177  if(!impl) return DOMString();
178  return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE);
179 }
180 #endif
181 
182 #ifndef KDE_NO_DEPRECATED
183 void HTMLAppletElement::setVspace( const DOMString &value )
184 {
185  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, value);
186 }
187 #endif
188 
189 long HTMLAppletElement::getVspace() const
190 {
191  if(!impl) return 0;
192  return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE).toInt();
193 }
194 
195 void HTMLAppletElement::setVspace( long value )
196 {
197  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, QString::number(value));
198 }
199 
200 
201 DOMString HTMLAppletElement::width() const
202 {
203  if(!impl) return DOMString();
204  return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
205 }
206 
207 void HTMLAppletElement::setWidth( const DOMString &value )
208 {
209  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
210 }
211 
212 // --------------------------------------------------------------------------
213 
214 HTMLObjectElement::HTMLObjectElement() : HTMLElement()
215 {
216 }
217 
218 HTMLObjectElement::HTMLObjectElement(const HTMLObjectElement &other) : HTMLElement(other)
219 {
220 }
221 
222 HTMLObjectElement::HTMLObjectElement(HTMLObjectElementImpl *impl) : HTMLElement(impl)
223 {
224 }
225 
226 HTMLObjectElement &HTMLObjectElement::operator = (const Node &other)
227 {
228  assignOther( other, ID_OBJECT );
229  return *this;
230 }
231 
232 HTMLObjectElement &HTMLObjectElement::operator = (const HTMLObjectElement &other)
233 {
234  HTMLElement::operator = (other);
235  return *this;
236 }
237 
238 HTMLObjectElement::~HTMLObjectElement()
239 {
240 }
241 
242 HTMLFormElement HTMLObjectElement::form() const
243 {
244  if(!impl) return 0;
245  return ((HTMLObjectElementImpl *)impl)->form();
246 }
247 
248 DOMString HTMLObjectElement::code() const
249 {
250  if(!impl) return DOMString();
251  return ((ElementImpl *)impl)->getAttribute(ATTR_CODE);
252 }
253 
254 void HTMLObjectElement::setCode( const DOMString &value )
255 {
256  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODE, value);
257 }
258 
259 DOMString HTMLObjectElement::align() const
260 {
261  if(!impl) return DOMString();
262  return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
263 }
264 
265 void HTMLObjectElement::setAlign( const DOMString &value )
266 {
267  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
268 }
269 
270 DOMString HTMLObjectElement::archive() const
271 {
272  if(!impl) return DOMString();
273  return ((ElementImpl *)impl)->getAttribute(ATTR_ARCHIVE);
274 }
275 
276 void HTMLObjectElement::setArchive( const DOMString &value )
277 {
278  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ARCHIVE, value);
279 }
280 
281 DOMString HTMLObjectElement::border() const
282 {
283  if(!impl) return DOMString();
284  return ((ElementImpl *)impl)->getAttribute(ATTR_BORDER);
285 }
286 
287 void HTMLObjectElement::setBorder( const DOMString &value )
288 {
289  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_BORDER, value);
290 }
291 
292 DOMString HTMLObjectElement::codeBase() const
293 {
294  if(!impl) return DOMString();
295  return ((ElementImpl *)impl)->getAttribute(ATTR_CODEBASE);
296 }
297 
298 void HTMLObjectElement::setCodeBase( const DOMString &value )
299 {
300  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODEBASE, value);
301 }
302 
303 DOMString HTMLObjectElement::codeType() const
304 {
305  if(!impl) return DOMString();
306  return ((ElementImpl *)impl)->getAttribute(ATTR_CODETYPE);
307 }
308 
309 void HTMLObjectElement::setCodeType( const DOMString &value )
310 {
311  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODETYPE, value);
312 }
313 
314 DOMString HTMLObjectElement::data() const
315 {
316  if(!impl) return DOMString();
317  return ((ElementImpl *)impl)->getAttribute(ATTR_DATA);
318 }
319 
320 void HTMLObjectElement::setData( const DOMString &value )
321 {
322  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_DATA, value);
323 }
324 
325 bool HTMLObjectElement::declare() const
326 {
327  if(!impl) return 0;
328  return !((ElementImpl *)impl)->getAttribute(ATTR_DECLARE).isNull();
329 }
330 
331 void HTMLObjectElement::setDeclare( bool _declare )
332 {
333  if(impl)
334  {
335  DOMString str;
336  if( _declare )
337  str = "";
338  ((ElementImpl *)impl)->setAttribute(ATTR_DECLARE, str);
339  }
340 }
341 
342 DOMString HTMLObjectElement::height() const
343 {
344  if(!impl) return DOMString();
345  return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
346 }
347 
348 void HTMLObjectElement::setHeight( const DOMString &value )
349 {
350  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
351 }
352 
353 #ifndef KDE_NO_DEPRECATED
354 DOMString HTMLObjectElement::hspace() const
355 {
356  if(!impl) return DOMString();
357  return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE);
358 }
359 #endif
360 
361 #ifndef KDE_NO_DEPRECATED
362 void HTMLObjectElement::setHspace( const DOMString &value )
363 {
364  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, value);
365 }
366 #endif
367 
368 long HTMLObjectElement::getHspace() const
369 {
370  if(!impl) return 0;
371  return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE).toInt();
372 }
373 
374 void HTMLObjectElement::setHspace( long value )
375 {
376  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, QString::number(value));
377 }
378 
379 DOMString HTMLObjectElement::name() const
380 {
381  if(!impl) return DOMString();
382  return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
383 }
384 
385 void HTMLObjectElement::setName( const DOMString &value )
386 {
387  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
388 }
389 
390 DOMString HTMLObjectElement::standby() const
391 {
392  if(!impl) return DOMString();
393  return ((ElementImpl *)impl)->getAttribute(ATTR_STANDBY);
394 }
395 
396 void HTMLObjectElement::setStandby( const DOMString &value )
397 {
398  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_STANDBY, value);
399 }
400 
401 long HTMLObjectElement::tabIndex() const
402 {
403  if(!impl) return 0;
404  return ((ElementImpl *)impl)->getAttribute(ATTR_TABINDEX).toInt();
405 }
406 
407 void HTMLObjectElement::setTabIndex( long _tabIndex )
408 {
409  if(impl) {
410  DOMString value(QString::number(_tabIndex));
411  ((ElementImpl *)impl)->setAttribute(ATTR_TABINDEX,value);
412  }
413 }
414 
415 DOMString HTMLObjectElement::type() const
416 {
417  if(!impl) return DOMString();
418  return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
419 }
420 
421 void HTMLObjectElement::setType( const DOMString &value )
422 {
423  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
424 }
425 
426 DOMString HTMLObjectElement::useMap() const
427 {
428  if(!impl) return DOMString();
429  return ((ElementImpl *)impl)->getAttribute(ATTR_USEMAP);
430 }
431 
432 void HTMLObjectElement::setUseMap( const DOMString &value )
433 {
434  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_USEMAP, value);
435 }
436 
437 #ifndef KDE_NO_DEPRECATED
438 DOMString HTMLObjectElement::vspace() const
439 {
440  if(!impl) return DOMString();
441  return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE);
442 }
443 #endif
444 
445 #ifndef KDE_NO_DEPRECATED
446 void HTMLObjectElement::setVspace( const DOMString &value )
447 {
448  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, value);
449 }
450 #endif
451 
452 long HTMLObjectElement::getVspace() const
453 {
454  if(!impl) return 0;
455  return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE).toInt();
456 }
457 
458 void HTMLObjectElement::setVspace( long value )
459 {
460  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, QString::number(value));
461 }
462 
463 DOMString HTMLObjectElement::width() const
464 {
465  if(!impl) return DOMString();
466  return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
467 }
468 
469 void HTMLObjectElement::setWidth( const DOMString &value )
470 {
471  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
472 }
473 
474 Document HTMLObjectElement::contentDocument() const
475 {
476  if (impl) return static_cast<HTMLObjectElementImpl*>(impl)->contentDocument();
477  return Document();
478 }
479 
480 // --------------------------------------------------------------------------
481 
482 HTMLParamElement::HTMLParamElement() : HTMLElement()
483 {
484 }
485 
486 HTMLParamElement::HTMLParamElement(const HTMLParamElement &other) : HTMLElement(other)
487 {
488 }
489 
490 HTMLParamElement::HTMLParamElement(HTMLParamElementImpl *impl) : HTMLElement(impl)
491 {
492 }
493 
494 HTMLParamElement &HTMLParamElement::operator = (const Node &other)
495 {
496  assignOther( other, ID_PARAM );
497  return *this;
498 }
499 
500 HTMLParamElement &HTMLParamElement::operator = (const HTMLParamElement &other)
501 {
502  HTMLElement::operator = (other);
503  return *this;
504 }
505 
506 HTMLParamElement::~HTMLParamElement()
507 {
508 }
509 
510 DOMString HTMLParamElement::name() const
511 {
512  if(!impl) return DOMString();
513  return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
514 }
515 
516 void HTMLParamElement::setName( const DOMString &value )
517 {
518  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
519 }
520 
521 DOMString HTMLParamElement::type() const
522 {
523  if(!impl) return DOMString();
524  return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
525 }
526 
527 void HTMLParamElement::setType( const DOMString &value )
528 {
529  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
530 }
531 
532 DOMString HTMLParamElement::value() const
533 {
534  if(!impl) return DOMString();
535  return ((ElementImpl *)impl)->getAttribute(ATTR_VALUE);
536 }
537 
538 void HTMLParamElement::setValue( const DOMString &value )
539 {
540  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VALUE, value);
541 }
542 
543 DOMString HTMLParamElement::valueType() const
544 {
545  if(!impl) return DOMString();
546  return ((ElementImpl *)impl)->getAttribute(ATTR_VALUETYPE);
547 }
548 
549 void HTMLParamElement::setValueType( const DOMString &value )
550 {
551  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VALUETYPE, value);
552 }
553 
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:30:07 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.10.2 API Reference

Skip menu "kdelibs-4.10.2 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal