html_object.h
00001 /* 00002 * This file is part of the DOM implementation for KDE. 00003 * 00004 * (C) 1999 Lars Knoll (knoll@kde.org) 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public License 00017 * along with this library; see the file COPYING.LIB. If not, write to 00018 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 * Boston, MA 02111-1307, USA. 00020 * 00021 * This file includes excerpts from the Document Object Model (DOM) 00022 * Level 1 Specification (Recommendation) 00023 * http://www.w3.org/TR/REC-DOM-Level-1/ 00024 * Copyright © World Wide Web Consortium , (Massachusetts Institute of 00025 * Technology , Institut National de Recherche en Informatique et en 00026 * Automatique , Keio University ). All Rights Reserved. 00027 * 00028 * $Id: html_object.h,v 1.9.4.1 2003/01/03 21:09:24 mueller Exp $ 00029 */ 00030 00031 // -------------------------------------------------------------------------- 00032 00033 #ifndef HTML_OBJECT_H 00034 #define HTML_OBJECT_H 00035 00036 #include <dom/html_element.h> 00037 #include <dom/html_form.h> 00038 00039 namespace DOM { 00040 00041 class HTMLAppletElementImpl; 00042 00050 class HTMLAppletElement : public HTMLElement 00051 { 00052 public: 00053 HTMLAppletElement(); 00054 HTMLAppletElement(const HTMLAppletElement &other); 00055 HTMLAppletElement(const Node &other) : HTMLElement() 00056 {(*this)=other;} 00057 protected: 00058 HTMLAppletElement(HTMLAppletElementImpl *impl); 00059 public: 00060 00061 HTMLAppletElement & operator = (const HTMLAppletElement &other); 00062 HTMLAppletElement & operator = (const Node &other); 00063 00064 ~HTMLAppletElement(); 00065 00074 DOMString align() const; 00075 00079 void setAlign( const DOMString & ); 00080 00089 DOMString alt() const; 00090 00094 void setAlt( const DOMString & ); 00095 00103 DOMString archive() const; 00104 00108 void setArchive( const DOMString & ); 00109 00117 DOMString code() const; 00118 00122 void setCode( const DOMString & ); 00123 00131 DOMString codeBase() const; 00132 00136 void setCodeBase( const DOMString & ); 00137 00145 DOMString height() const; 00146 00150 void setHeight( const DOMString & ); 00151 00160 long getHspace() const; 00161 00165 void setHspace( long ); 00166 00170 DOMString hspace() const; 00171 00175 void setHspace( const DOMString & ); 00176 00184 DOMString name() const; 00185 00189 void setName( const DOMString & ); 00190 00198 DOMString object() const; 00199 00203 void setObject( const DOMString & ); 00204 00213 long getVspace() const; 00214 00218 void setVspace( long ); 00219 00223 DOMString vspace() const; 00224 00228 void setVspace( const DOMString & ); 00229 00237 DOMString width() const; 00238 00242 void setWidth( const DOMString & ); 00243 }; 00244 00245 // -------------------------------------------------------------------------- 00246 00247 class HTMLObjectElementImpl; 00248 00258 class HTMLObjectElement : public HTMLElement 00259 { 00260 public: 00261 HTMLObjectElement(); 00262 HTMLObjectElement(const HTMLObjectElement &other); 00263 HTMLObjectElement(const Node &other) : HTMLElement() 00264 {(*this)=other;} 00265 protected: 00266 HTMLObjectElement(HTMLObjectElementImpl *impl); 00267 public: 00268 00269 HTMLObjectElement & operator = (const HTMLObjectElement &other); 00270 HTMLObjectElement & operator = (const Node &other); 00271 00272 ~HTMLObjectElement(); 00273 00280 HTMLFormElement form() const; 00281 00287 DOMString code() const; 00288 00292 void setCode( const DOMString & ); 00293 00302 DOMString align() const; 00303 00307 void setAlign( const DOMString & ); 00308 00315 DOMString archive() const; 00316 00320 void setArchive( const DOMString & ); 00321 00329 DOMString border() const; 00330 00334 void setBorder( const DOMString & ); 00335 00343 DOMString codeBase() const; 00344 00348 void setCodeBase( const DOMString & ); 00349 00357 DOMString codeType() const; 00358 00362 void setCodeType( const DOMString & ); 00363 00370 DOMString data() const; 00371 00375 void setData( const DOMString & ); 00376 00384 bool declare() const; 00385 00389 void setDeclare( bool ); 00390 00397 DOMString height() const; 00398 00402 void setHeight( const DOMString & ); 00403 00412 long getHspace() const; 00413 00417 void setHspace( long ); 00418 00422 DOMString hspace() const; 00423 00427 void setHspace( const DOMString & ); 00428 00436 DOMString name() const; 00437 00441 void setName( const DOMString & ); 00442 00449 DOMString standby() const; 00450 00454 void setStandby( const DOMString & ); 00455 00463 long tabIndex() const; 00464 00468 void setTabIndex( long ); 00469 00477 DOMString type() const; 00478 00482 void setType( const DOMString & ); 00483 00490 DOMString useMap() const; 00491 00495 void setUseMap( const DOMString & ); 00496 00505 long getVspace() const; 00506 00510 void setVspace( long ); 00511 00515 DOMString vspace() const; 00516 00520 void setVspace( const DOMString & ); 00521 00528 DOMString width() const; 00529 00533 void setWidth( const DOMString & ); 00534 00544 Document contentDocument() const; 00545 }; 00546 00547 // -------------------------------------------------------------------------- 00548 00549 class HTMLParamElementImpl; 00550 00557 class HTMLParamElement : public HTMLElement 00558 { 00559 public: 00560 HTMLParamElement(); 00561 HTMLParamElement(const HTMLParamElement &other); 00562 HTMLParamElement(const Node &other) : HTMLElement() 00563 {(*this)=other;} 00564 protected: 00565 HTMLParamElement(HTMLParamElementImpl *impl); 00566 public: 00567 00568 HTMLParamElement & operator = (const HTMLParamElement &other); 00569 HTMLParamElement & operator = (const Node &other); 00570 00571 ~HTMLParamElement(); 00572 00579 DOMString name() const; 00580 00584 void setName( const DOMString & ); 00585 00593 DOMString type() const; 00594 00598 void setType( const DOMString & ); 00599 00606 DOMString value() const; 00607 00611 void setValue( const DOMString & ); 00612 00620 DOMString valueType() const; 00621 00625 void setValueType( const DOMString & ); 00626 }; 00627 00628 }; 00629 00630 #endif