• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

html_base.cpp

Go to the documentation of this file.
00001 
00021 // --------------------------------------------------------------------------
00022 
00023 #include "html_base.h"
00024 #include "dom_doc.h"
00025 #include <xml/dom_docimpl.h>
00026 #include <html/html_baseimpl.h>
00027 #include <misc/htmlhashes.h>
00028 
00029 using namespace DOM;
00030 
00031 HTMLBodyElement::HTMLBodyElement() : HTMLElement()
00032 {
00033 }
00034 
00035 HTMLBodyElement::HTMLBodyElement(const HTMLBodyElement &other) : HTMLElement(other)
00036 {
00037 }
00038 
00039 HTMLBodyElement::HTMLBodyElement(HTMLBodyElementImpl *impl) : HTMLElement(impl)
00040 {
00041 }
00042 
00043 HTMLBodyElement &HTMLBodyElement::operator = (const Node &other)
00044 {
00045     assignOther( other, ID_BODY );
00046     return *this;
00047 }
00048 
00049 HTMLBodyElement &HTMLBodyElement::operator = (const HTMLBodyElement &other)
00050 {
00051     HTMLElement::operator = (other);
00052     return *this;
00053 }
00054 
00055 HTMLBodyElement::~HTMLBodyElement()
00056 {
00057 }
00058 
00059 DOMString HTMLBodyElement::aLink() const
00060 {
00061     return impl ? ((HTMLBodyElementImpl*)impl)->aLink() : DOMString();
00062 }
00063 
00064 void HTMLBodyElement::setALink( const DOMString &value )
00065 {
00066     if(impl) ((HTMLBodyElementImpl *)impl)->setALink(value);
00067 }
00068 
00069 DOMString HTMLBodyElement::background() const
00070 {
00071     return impl ? ((ElementImpl *)impl)->getAttribute(ATTR_BACKGROUND) : DOMString();
00072 }
00073 
00074 void HTMLBodyElement::setBackground( const DOMString &value )
00075 {
00076     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_BACKGROUND, value);
00077 }
00078 
00079 DOMString HTMLBodyElement::bgColor() const
00080 {
00081     return impl ? ((HTMLBodyElementImpl*)impl)->bgColor() : DOMString();
00082 }
00083 
00084 void HTMLBodyElement::setBgColor( const DOMString &value )
00085 {
00086     if(impl) ((HTMLBodyElementImpl *)impl)->setBgColor(value);
00087 }
00088 
00089 DOMString HTMLBodyElement::link() const
00090 {
00091     return impl ? ((HTMLBodyElementImpl*)impl)->link() : DOMString();
00092 }
00093 
00094 void HTMLBodyElement::setLink( const DOMString &value )
00095 {
00096     if(impl) ((HTMLBodyElementImpl *)impl)->setLink(value);
00097 }
00098 
00099 DOMString HTMLBodyElement::text() const
00100 {
00101     return impl ? ((HTMLBodyElementImpl*)impl)->text() : DOMString();
00102 }
00103 
00104 void HTMLBodyElement::setText( const DOMString &value )
00105 {
00106     if(impl) ((HTMLBodyElementImpl *)impl)->setText(value);
00107 }
00108 
00109 DOMString HTMLBodyElement::vLink() const
00110 {
00111     return impl ? ((HTMLBodyElementImpl*)impl)->vLink() : DOMString();
00112 }
00113 
00114 void HTMLBodyElement::setVLink( const DOMString &value )
00115 {
00116     if(impl) ((HTMLBodyElementImpl *)impl)->setVLink(value);
00117 }
00118 
00119 // --------------------------------------------------------------------------
00120 
00121 HTMLFrameElement::HTMLFrameElement() : HTMLElement()
00122 {
00123 }
00124 
00125 HTMLFrameElement::HTMLFrameElement(const HTMLFrameElement &other) : HTMLElement(other)
00126 {
00127 }
00128 
00129 HTMLFrameElement::HTMLFrameElement(HTMLFrameElementImpl *impl) : HTMLElement(impl)
00130 {
00131 }
00132 
00133 HTMLFrameElement &HTMLFrameElement::operator = (const Node &other)
00134 {
00135     assignOther( other, ID_FRAME );
00136     return *this;
00137 }
00138 
00139 HTMLFrameElement &HTMLFrameElement::operator = (const HTMLFrameElement &other)
00140 {
00141     HTMLElement::operator = (other);
00142     return *this;
00143 }
00144 
00145 HTMLFrameElement::~HTMLFrameElement()
00146 {
00147 }
00148 
00149 DOMString HTMLFrameElement::frameBorder() const
00150 {
00151     if(!impl) return DOMString();
00152     return ((ElementImpl *)impl)->getAttribute(ATTR_FRAMEBORDER);
00153 }
00154 
00155 void HTMLFrameElement::setFrameBorder( const DOMString &value )
00156 {
00157     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_FRAMEBORDER, value);
00158 }
00159 
00160 DOMString HTMLFrameElement::longDesc() const
00161 {
00162     if(!impl) return DOMString();
00163     return ((ElementImpl *)impl)->getAttribute(ATTR_LONGDESC);
00164 }
00165 
00166 void HTMLFrameElement::setLongDesc( const DOMString &value )
00167 {
00168     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_LONGDESC, value);
00169 }
00170 
00171 DOMString HTMLFrameElement::marginHeight() const
00172 {
00173     if(!impl) return DOMString();
00174     return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINHEIGHT);
00175 }
00176 
00177 void HTMLFrameElement::setMarginHeight( const DOMString &value )
00178 {
00179     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_MARGINHEIGHT, value);
00180 }
00181 
00182 DOMString HTMLFrameElement::marginWidth() const
00183 {
00184     if(!impl) return DOMString();
00185     return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINWIDTH);
00186 }
00187 
00188 void HTMLFrameElement::setMarginWidth( const DOMString &value )
00189 {
00190     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_MARGINWIDTH, value);
00191 }
00192 
00193 DOMString HTMLFrameElement::name() const
00194 {
00195     if(!impl) return DOMString();
00196     return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
00197 }
00198 
00199 void HTMLFrameElement::setName( const DOMString &value )
00200 {
00201     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
00202 }
00203 
00204 bool HTMLFrameElement::noResize() const
00205 {
00206     if(!impl) return false;
00207     return !((ElementImpl *)impl)->getAttribute(ATTR_NORESIZE).isNull();
00208 }
00209 
00210 void HTMLFrameElement::setNoResize( bool _noResize )
00211 {
00212     if(impl)
00213     {
00214     DOMString str;
00215     if( _noResize )
00216         str = "";
00217     ((ElementImpl *)impl)->setAttribute(ATTR_NORESIZE, str);
00218     }
00219 }
00220 
00221 DOMString HTMLFrameElement::scrolling() const
00222 {
00223     if(!impl) return DOMString();
00224     return ((ElementImpl *)impl)->getAttribute(ATTR_SCROLLING);
00225 }
00226 
00227 void HTMLFrameElement::setScrolling( const DOMString &value )
00228 {
00229     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SCROLLING, value);
00230 }
00231 
00232 DOMString HTMLFrameElement::src() const
00233 {
00234     if(!impl) return DOMString();
00235     return ((ElementImpl *)impl)->getAttribute(ATTR_SRC);
00236 }
00237 
00238 void HTMLFrameElement::setSrc( const DOMString &value )
00239 {
00240     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SRC, value);
00241 }
00242 
00243 Document HTMLFrameElement::contentDocument() const
00244 {
00245     if (impl) return static_cast<HTMLFrameElementImpl*>(impl)->contentDocument();
00246     return Document();
00247 }
00248 
00249 // --------------------------------------------------------------------------
00250 
00251 HTMLIFrameElement::HTMLIFrameElement() : HTMLElement()
00252 {
00253 }
00254 
00255 HTMLIFrameElement::HTMLIFrameElement(const HTMLIFrameElement &other) : HTMLElement(other)
00256 {
00257 }
00258 
00259 HTMLIFrameElement::HTMLIFrameElement(HTMLIFrameElementImpl *impl) : HTMLElement(impl)
00260 {
00261 }
00262 
00263 HTMLIFrameElement &HTMLIFrameElement::operator = (const Node &other)
00264 {
00265     assignOther( other, ID_IFRAME );
00266     return *this;
00267 }
00268 
00269 HTMLIFrameElement &HTMLIFrameElement::operator = (const HTMLIFrameElement &other)
00270 {
00271     HTMLElement::operator = (other);
00272     return *this;
00273 }
00274 
00275 HTMLIFrameElement::~HTMLIFrameElement()
00276 {
00277 }
00278 
00279 DOMString HTMLIFrameElement::align() const
00280 {
00281     if(!impl) return DOMString();
00282     return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
00283 }
00284 
00285 void HTMLIFrameElement::setAlign( const DOMString &value )
00286 {
00287     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
00288 }
00289 
00290 DOMString HTMLIFrameElement::frameBorder() const
00291 {
00292     if(!impl) return DOMString();
00293     return ((ElementImpl *)impl)->getAttribute(ATTR_FRAMEBORDER);
00294 }
00295 
00296 void HTMLIFrameElement::setFrameBorder( const DOMString &value )
00297 {
00298     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_FRAMEBORDER, value);
00299 }
00300 
00301 DOMString HTMLIFrameElement::height() const
00302 {
00303     if(!impl) return DOMString();
00304     return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
00305 }
00306 
00307 void HTMLIFrameElement::setHeight( const DOMString &value )
00308 {
00309     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
00310 }
00311 
00312 DOMString HTMLIFrameElement::longDesc() const
00313 {
00314     if(!impl) return DOMString();
00315     return ((ElementImpl *)impl)->getAttribute(ATTR_LONGDESC);
00316 }
00317 
00318 void HTMLIFrameElement::setLongDesc( const DOMString &value )
00319 {
00320     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_LONGDESC, value);
00321 }
00322 
00323 DOMString HTMLIFrameElement::marginHeight() const
00324 {
00325     if(!impl) return DOMString();
00326     return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINHEIGHT);
00327 }
00328 
00329 void HTMLIFrameElement::setMarginHeight( const DOMString &value )
00330 {
00331     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_MARGINHEIGHT, value);
00332 }
00333 
00334 DOMString HTMLIFrameElement::marginWidth() const
00335 {
00336     if(!impl) return DOMString();
00337     return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINWIDTH);
00338 }
00339 
00340 void HTMLIFrameElement::setMarginWidth( const DOMString &value )
00341 {
00342     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_MARGINWIDTH, value);
00343 }
00344 
00345 DOMString HTMLIFrameElement::name() const
00346 {
00347     if(!impl) return DOMString();
00348     return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
00349 }
00350 
00351 void HTMLIFrameElement::setName( const DOMString &value )
00352 {
00353     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
00354 }
00355 
00356 DOMString HTMLIFrameElement::scrolling() const
00357 {
00358     if(!impl) return DOMString();
00359     return ((ElementImpl *)impl)->getAttribute(ATTR_SCROLLING);
00360 }
00361 
00362 void HTMLIFrameElement::setScrolling( const DOMString &value )
00363 {
00364     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SCROLLING, value);
00365 }
00366 
00367 DOMString HTMLIFrameElement::src() const
00368 {
00369     if(!impl) return DOMString();
00370     DOMString s = ((ElementImpl *)impl)->getAttribute(ATTR_SRC);
00371     return !s.isNull() ? impl->document()->completeURL( s.string() ) : s;
00372 }
00373 
00374 void HTMLIFrameElement::setSrc( const DOMString &value )
00375 {
00376     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SRC, value);
00377 }
00378 
00379 DOMString HTMLIFrameElement::width() const
00380 {
00381     if(!impl) return DOMString();
00382     return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
00383 }
00384 
00385 void HTMLIFrameElement::setWidth( const DOMString &value )
00386 {
00387     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
00388 }
00389 
00390 Document HTMLIFrameElement::contentDocument() const
00391 {
00392     if (impl) return static_cast<HTMLIFrameElementImpl*>(impl)->contentDocument();
00393     return Document();
00394 }
00395 
00396 // --------------------------------------------------------------------------
00397 
00398 HTMLFrameSetElement::HTMLFrameSetElement() : HTMLElement()
00399 {
00400 }
00401 
00402 HTMLFrameSetElement::HTMLFrameSetElement(const HTMLFrameSetElement &other) : HTMLElement(other)
00403 {
00404 }
00405 
00406 HTMLFrameSetElement::HTMLFrameSetElement(HTMLFrameSetElementImpl *impl) : HTMLElement(impl)
00407 {
00408 }
00409 
00410 HTMLFrameSetElement &HTMLFrameSetElement::operator = (const Node &other)
00411 {
00412     assignOther( other, ID_FRAMESET );
00413     return *this;
00414 }
00415 
00416 HTMLFrameSetElement &HTMLFrameSetElement::operator = (const HTMLFrameSetElement &other)
00417 {
00418     HTMLElement::operator = (other);
00419     return *this;
00420 }
00421 
00422 HTMLFrameSetElement::~HTMLFrameSetElement()
00423 {
00424 }
00425 
00426 DOMString HTMLFrameSetElement::cols() const
00427 {
00428     if(!impl) return DOMString();
00429     return ((ElementImpl *)impl)->getAttribute(ATTR_COLS);
00430 }
00431 
00432 void HTMLFrameSetElement::setCols( const DOMString &value )
00433 {
00434     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_COLS, value);
00435 }
00436 
00437 DOMString HTMLFrameSetElement::rows() const
00438 {
00439     if(!impl) return DOMString();
00440     return ((ElementImpl *)impl)->getAttribute(ATTR_ROWS);
00441 }
00442 
00443 void HTMLFrameSetElement::setRows( const DOMString &value )
00444 {
00445     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ROWS, value);
00446 }
00447 
00448 // --------------------------------------------------------------------------
00449 
00450 HTMLHeadElement::HTMLHeadElement() : HTMLElement()
00451 {
00452 }
00453 
00454 HTMLHeadElement::HTMLHeadElement(const HTMLHeadElement &other) : HTMLElement(other)
00455 {
00456 }
00457 
00458 HTMLHeadElement::HTMLHeadElement(HTMLHeadElementImpl *impl) : HTMLElement(impl)
00459 {
00460 }
00461 
00462 HTMLHeadElement &HTMLHeadElement::operator = (const Node &other)
00463 {
00464     assignOther( other, ID_HEAD );
00465     return *this;
00466 }
00467 
00468 HTMLHeadElement &HTMLHeadElement::operator = (const HTMLHeadElement &other)
00469 {
00470     HTMLElement::operator = (other);
00471     return *this;
00472 }
00473 
00474 HTMLHeadElement::~HTMLHeadElement()
00475 {
00476 }
00477 
00478 DOMString HTMLHeadElement::profile() const
00479 {
00480     if(!impl) return DOMString();
00481     return ((ElementImpl *)impl)->getAttribute(ATTR_PROFILE);
00482 }
00483 
00484 void HTMLHeadElement::setProfile( const DOMString &value )
00485 {
00486     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_PROFILE, value);
00487 }
00488 
00489 // --------------------------------------------------------------------------
00490 
00491 HTMLHtmlElement::HTMLHtmlElement() : HTMLElement()
00492 {
00493 }
00494 
00495 HTMLHtmlElement::HTMLHtmlElement(const HTMLHtmlElement &other) : HTMLElement(other)
00496 {
00497 }
00498 
00499 HTMLHtmlElement::HTMLHtmlElement(HTMLHtmlElementImpl *impl) : HTMLElement(impl)
00500 {
00501 }
00502 
00503 HTMLHtmlElement &HTMLHtmlElement::operator = (const Node &other)
00504 {
00505     assignOther( other, ID_HTML );
00506     return *this;
00507 }
00508 
00509 HTMLHtmlElement &HTMLHtmlElement::operator = (const HTMLHtmlElement &other)
00510 {
00511     HTMLElement::operator = (other);
00512     return *this;
00513 }
00514 
00515 HTMLHtmlElement::~HTMLHtmlElement()
00516 {
00517 }
00518 
00519 DOMString HTMLHtmlElement::version() const
00520 {
00521     if(!impl) return DOMString();
00522     return ((ElementImpl *)impl)->getAttribute(ATTR_VERSION);
00523 }
00524 
00525 void HTMLHtmlElement::setVersion( const DOMString &value )
00526 {
00527     if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VERSION, value);
00528 }
00529 

KHTML

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal