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

KHTML

  • khtml
  • dom
html_base.cpp
Go to the documentation of this file.
1 
21 // --------------------------------------------------------------------------
22 
23 #include "html_base.h"
24 #include "dom_doc.h"
25 #include <xml/dom_docimpl.h>
26 #include <html/html_baseimpl.h>
27 
28 using namespace DOM;
29 
30 HTMLBodyElement::HTMLBodyElement() : HTMLElement()
31 {
32 }
33 
34 HTMLBodyElement::HTMLBodyElement(const HTMLBodyElement &other) : HTMLElement(other)
35 {
36 }
37 
38 HTMLBodyElement::HTMLBodyElement(HTMLBodyElementImpl *impl) : HTMLElement(impl)
39 {
40 }
41 
42 HTMLBodyElement &HTMLBodyElement::operator = (const Node &other)
43 {
44  assignOther( other, ID_BODY );
45  return *this;
46 }
47 
48 HTMLBodyElement &HTMLBodyElement::operator = (const HTMLBodyElement &other)
49 {
50  HTMLElement::operator = (other);
51  return *this;
52 }
53 
54 HTMLBodyElement::~HTMLBodyElement()
55 {
56 }
57 
58 DOMString HTMLBodyElement::aLink() const
59 {
60  return impl ? ((HTMLBodyElementImpl*)impl)->aLink() : DOMString();
61 }
62 
63 void HTMLBodyElement::setALink( const DOMString &value )
64 {
65  if(impl) ((HTMLBodyElementImpl *)impl)->setALink(value);
66 }
67 
68 DOMString HTMLBodyElement::background() const
69 {
70  return impl ? ((ElementImpl *)impl)->getAttribute(ATTR_BACKGROUND) : DOMString();
71 }
72 
73 void HTMLBodyElement::setBackground( const DOMString &value )
74 {
75  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_BACKGROUND, value);
76 }
77 
78 DOMString HTMLBodyElement::bgColor() const
79 {
80  return impl ? ((HTMLBodyElementImpl*)impl)->bgColor() : DOMString();
81 }
82 
83 void HTMLBodyElement::setBgColor( const DOMString &value )
84 {
85  if(impl) ((HTMLBodyElementImpl *)impl)->setBgColor(value);
86 }
87 
88 DOMString HTMLBodyElement::link() const
89 {
90  return impl ? ((HTMLBodyElementImpl*)impl)->link() : DOMString();
91 }
92 
93 void HTMLBodyElement::setLink( const DOMString &value )
94 {
95  if(impl) ((HTMLBodyElementImpl *)impl)->setLink(value);
96 }
97 
98 DOMString HTMLBodyElement::text() const
99 {
100  return impl ? ((HTMLBodyElementImpl*)impl)->text() : DOMString();
101 }
102 
103 void HTMLBodyElement::setText( const DOMString &value )
104 {
105  if(impl) ((HTMLBodyElementImpl *)impl)->setText(value);
106 }
107 
108 DOMString HTMLBodyElement::vLink() const
109 {
110  return impl ? ((HTMLBodyElementImpl*)impl)->vLink() : DOMString();
111 }
112 
113 void HTMLBodyElement::setVLink( const DOMString &value )
114 {
115  if(impl) ((HTMLBodyElementImpl *)impl)->setVLink(value);
116 }
117 
118 // --------------------------------------------------------------------------
119 
120 HTMLFrameElement::HTMLFrameElement() : HTMLElement()
121 {
122 }
123 
124 HTMLFrameElement::HTMLFrameElement(const HTMLFrameElement &other) : HTMLElement(other)
125 {
126 }
127 
128 HTMLFrameElement::HTMLFrameElement(HTMLFrameElementImpl *impl) : HTMLElement(impl)
129 {
130 }
131 
132 HTMLFrameElement &HTMLFrameElement::operator = (const Node &other)
133 {
134  assignOther( other, ID_FRAME );
135  return *this;
136 }
137 
138 HTMLFrameElement &HTMLFrameElement::operator = (const HTMLFrameElement &other)
139 {
140  HTMLElement::operator = (other);
141  return *this;
142 }
143 
144 HTMLFrameElement::~HTMLFrameElement()
145 {
146 }
147 
148 DOMString HTMLFrameElement::frameBorder() const
149 {
150  if(!impl) return DOMString();
151  return ((ElementImpl *)impl)->getAttribute(ATTR_FRAMEBORDER);
152 }
153 
154 void HTMLFrameElement::setFrameBorder( const DOMString &value )
155 {
156  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_FRAMEBORDER, value);
157 }
158 
159 DOMString HTMLFrameElement::longDesc() const
160 {
161  if(!impl) return DOMString();
162  return ((ElementImpl *)impl)->getAttribute(ATTR_LONGDESC);
163 }
164 
165 void HTMLFrameElement::setLongDesc( const DOMString &value )
166 {
167  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_LONGDESC, value);
168 }
169 
170 DOMString HTMLFrameElement::marginHeight() const
171 {
172  if(!impl) return DOMString();
173  return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINHEIGHT);
174 }
175 
176 void HTMLFrameElement::setMarginHeight( const DOMString &value )
177 {
178  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_MARGINHEIGHT, value);
179 }
180 
181 DOMString HTMLFrameElement::marginWidth() const
182 {
183  if(!impl) return DOMString();
184  return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINWIDTH);
185 }
186 
187 void HTMLFrameElement::setMarginWidth( const DOMString &value )
188 {
189  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_MARGINWIDTH, value);
190 }
191 
192 DOMString HTMLFrameElement::name() const
193 {
194  if(!impl) return DOMString();
195  return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
196 }
197 
198 void HTMLFrameElement::setName( const DOMString &value )
199 {
200  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
201 }
202 
203 bool HTMLFrameElement::noResize() const
204 {
205  if(!impl) return false;
206  return !((ElementImpl *)impl)->getAttribute(ATTR_NORESIZE).isNull();
207 }
208 
209 void HTMLFrameElement::setNoResize( bool _noResize )
210 {
211  if(impl)
212  {
213  DOMString str;
214  if( _noResize )
215  str = "";
216  ((ElementImpl *)impl)->setAttribute(ATTR_NORESIZE, str);
217  }
218 }
219 
220 DOMString HTMLFrameElement::scrolling() const
221 {
222  if(!impl) return DOMString();
223  return ((ElementImpl *)impl)->getAttribute(ATTR_SCROLLING);
224 }
225 
226 void HTMLFrameElement::setScrolling( const DOMString &value )
227 {
228  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SCROLLING, value);
229 }
230 
231 DOMString HTMLFrameElement::src() const
232 {
233  if(!impl) return DOMString();
234  return ((ElementImpl *)impl)->getAttribute(ATTR_SRC);
235 }
236 
237 void HTMLFrameElement::setSrc( const DOMString &value )
238 {
239  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SRC, value);
240 }
241 
242 Document HTMLFrameElement::contentDocument() const
243 {
244  if (impl) return static_cast<HTMLFrameElementImpl*>(impl)->contentDocument();
245  return Document();
246 }
247 
248 // --------------------------------------------------------------------------
249 
250 HTMLIFrameElement::HTMLIFrameElement() : HTMLElement()
251 {
252 }
253 
254 HTMLIFrameElement::HTMLIFrameElement(const HTMLIFrameElement &other) : HTMLElement(other)
255 {
256 }
257 
258 HTMLIFrameElement::HTMLIFrameElement(HTMLIFrameElementImpl *impl) : HTMLElement(impl)
259 {
260 }
261 
262 HTMLIFrameElement &HTMLIFrameElement::operator = (const Node &other)
263 {
264  assignOther( other, ID_IFRAME );
265  return *this;
266 }
267 
268 HTMLIFrameElement &HTMLIFrameElement::operator = (const HTMLIFrameElement &other)
269 {
270  HTMLElement::operator = (other);
271  return *this;
272 }
273 
274 HTMLIFrameElement::~HTMLIFrameElement()
275 {
276 }
277 
278 DOMString HTMLIFrameElement::align() const
279 {
280  if(!impl) return DOMString();
281  return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
282 }
283 
284 void HTMLIFrameElement::setAlign( const DOMString &value )
285 {
286  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
287 }
288 
289 DOMString HTMLIFrameElement::frameBorder() const
290 {
291  if(!impl) return DOMString();
292  return ((ElementImpl *)impl)->getAttribute(ATTR_FRAMEBORDER);
293 }
294 
295 void HTMLIFrameElement::setFrameBorder( const DOMString &value )
296 {
297  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_FRAMEBORDER, value);
298 }
299 
300 DOMString HTMLIFrameElement::height() const
301 {
302  if(!impl) return DOMString();
303  return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
304 }
305 
306 void HTMLIFrameElement::setHeight( const DOMString &value )
307 {
308  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
309 }
310 
311 DOMString HTMLIFrameElement::longDesc() const
312 {
313  if(!impl) return DOMString();
314  return ((ElementImpl *)impl)->getAttribute(ATTR_LONGDESC);
315 }
316 
317 void HTMLIFrameElement::setLongDesc( const DOMString &value )
318 {
319  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_LONGDESC, value);
320 }
321 
322 DOMString HTMLIFrameElement::marginHeight() const
323 {
324  if(!impl) return DOMString();
325  return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINHEIGHT);
326 }
327 
328 void HTMLIFrameElement::setMarginHeight( const DOMString &value )
329 {
330  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_MARGINHEIGHT, value);
331 }
332 
333 DOMString HTMLIFrameElement::marginWidth() const
334 {
335  if(!impl) return DOMString();
336  return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINWIDTH);
337 }
338 
339 void HTMLIFrameElement::setMarginWidth( const DOMString &value )
340 {
341  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_MARGINWIDTH, value);
342 }
343 
344 DOMString HTMLIFrameElement::name() const
345 {
346  if(!impl) return DOMString();
347  return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
348 }
349 
350 void HTMLIFrameElement::setName( const DOMString &value )
351 {
352  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
353 }
354 
355 DOMString HTMLIFrameElement::scrolling() const
356 {
357  if(!impl) return DOMString();
358  return ((ElementImpl *)impl)->getAttribute(ATTR_SCROLLING);
359 }
360 
361 void HTMLIFrameElement::setScrolling( const DOMString &value )
362 {
363  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SCROLLING, value);
364 }
365 
366 DOMString HTMLIFrameElement::src() const
367 {
368  if(!impl) return DOMString();
369  DOMString s = ((ElementImpl *)impl)->getAttribute(ATTR_SRC);
370  return !s.isNull() ? impl->document()->completeURL( s.string() ) : s;
371 }
372 
373 void HTMLIFrameElement::setSrc( const DOMString &value )
374 {
375  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SRC, value);
376 }
377 
378 DOMString HTMLIFrameElement::width() const
379 {
380  if(!impl) return DOMString();
381  return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
382 }
383 
384 void HTMLIFrameElement::setWidth( const DOMString &value )
385 {
386  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
387 }
388 
389 Document HTMLIFrameElement::contentDocument() const
390 {
391  if (impl) return static_cast<HTMLIFrameElementImpl*>(impl)->contentDocument();
392  return Document();
393 }
394 
395 // --------------------------------------------------------------------------
396 
397 HTMLFrameSetElement::HTMLFrameSetElement() : HTMLElement()
398 {
399 }
400 
401 HTMLFrameSetElement::HTMLFrameSetElement(const HTMLFrameSetElement &other) : HTMLElement(other)
402 {
403 }
404 
405 HTMLFrameSetElement::HTMLFrameSetElement(HTMLFrameSetElementImpl *impl) : HTMLElement(impl)
406 {
407 }
408 
409 HTMLFrameSetElement &HTMLFrameSetElement::operator = (const Node &other)
410 {
411  assignOther( other, ID_FRAMESET );
412  return *this;
413 }
414 
415 HTMLFrameSetElement &HTMLFrameSetElement::operator = (const HTMLFrameSetElement &other)
416 {
417  HTMLElement::operator = (other);
418  return *this;
419 }
420 
421 HTMLFrameSetElement::~HTMLFrameSetElement()
422 {
423 }
424 
425 DOMString HTMLFrameSetElement::cols() const
426 {
427  if(!impl) return DOMString();
428  return ((ElementImpl *)impl)->getAttribute(ATTR_COLS);
429 }
430 
431 void HTMLFrameSetElement::setCols( const DOMString &value )
432 {
433  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_COLS, value);
434 }
435 
436 DOMString HTMLFrameSetElement::rows() const
437 {
438  if(!impl) return DOMString();
439  return ((ElementImpl *)impl)->getAttribute(ATTR_ROWS);
440 }
441 
442 void HTMLFrameSetElement::setRows( const DOMString &value )
443 {
444  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ROWS, value);
445 }
446 
447 // --------------------------------------------------------------------------
448 
449 HTMLHeadElement::HTMLHeadElement() : HTMLElement()
450 {
451 }
452 
453 HTMLHeadElement::HTMLHeadElement(const HTMLHeadElement &other) : HTMLElement(other)
454 {
455 }
456 
457 HTMLHeadElement::HTMLHeadElement(HTMLHeadElementImpl *impl) : HTMLElement(impl)
458 {
459 }
460 
461 HTMLHeadElement &HTMLHeadElement::operator = (const Node &other)
462 {
463  assignOther( other, ID_HEAD );
464  return *this;
465 }
466 
467 HTMLHeadElement &HTMLHeadElement::operator = (const HTMLHeadElement &other)
468 {
469  HTMLElement::operator = (other);
470  return *this;
471 }
472 
473 HTMLHeadElement::~HTMLHeadElement()
474 {
475 }
476 
477 DOMString HTMLHeadElement::profile() const
478 {
479  if(!impl) return DOMString();
480  return ((ElementImpl *)impl)->getAttribute(ATTR_PROFILE);
481 }
482 
483 void HTMLHeadElement::setProfile( const DOMString &value )
484 {
485  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_PROFILE, value);
486 }
487 
488 // --------------------------------------------------------------------------
489 
490 HTMLHtmlElement::HTMLHtmlElement() : HTMLElement()
491 {
492 }
493 
494 HTMLHtmlElement::HTMLHtmlElement(const HTMLHtmlElement &other) : HTMLElement(other)
495 {
496 }
497 
498 HTMLHtmlElement::HTMLHtmlElement(HTMLHtmlElementImpl *impl) : HTMLElement(impl)
499 {
500 }
501 
502 HTMLHtmlElement &HTMLHtmlElement::operator = (const Node &other)
503 {
504  assignOther( other, ID_HTML );
505  return *this;
506 }
507 
508 HTMLHtmlElement &HTMLHtmlElement::operator = (const HTMLHtmlElement &other)
509 {
510  HTMLElement::operator = (other);
511  return *this;
512 }
513 
514 HTMLHtmlElement::~HTMLHtmlElement()
515 {
516 }
517 
518 DOMString HTMLHtmlElement::version() const
519 {
520  if(!impl) return DOMString();
521  return ((ElementImpl *)impl)->getAttribute(ATTR_VERSION);
522 }
523 
524 void HTMLHtmlElement::setVersion( const DOMString &value )
525 {
526  if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VERSION, value);
527 }
528 
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