html_list.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 */ 00029 #ifndef HTML_LIST_H 00030 #define HTML_LIST_H 00031 00032 #include <dom/html_element.h> 00033 00034 namespace DOM { 00035 00036 class HTMLDListElementImpl; 00037 class HTMLUListElementImpl; 00038 class HTMLOListElementImpl; 00039 class HTMLDirectoryElementImpl; 00040 class HTMLMenuElementImpl; 00041 class HTMLLIElementImpl; 00042 00043 class DOMString; 00044 00051 class HTMLDListElement : public HTMLElement 00052 { 00053 public: 00054 HTMLDListElement(); 00055 HTMLDListElement(const HTMLDListElement &other); 00056 HTMLDListElement(const Node &other) : HTMLElement() 00057 {(*this)=other;} 00058 protected: 00059 HTMLDListElement(HTMLDListElementImpl *impl); 00060 public: 00061 00062 HTMLDListElement & operator = (const HTMLDListElement &other); 00063 HTMLDListElement & operator = (const Node &other); 00064 00065 ~HTMLDListElement(); 00066 00074 bool compact() const; 00075 00079 void setCompact( bool ); 00080 }; 00081 00082 // -------------------------------------------------------------------------- 00083 00091 class HTMLDirectoryElement : public HTMLElement 00092 { 00093 public: 00094 HTMLDirectoryElement(); 00095 HTMLDirectoryElement(const HTMLDirectoryElement &other); 00096 HTMLDirectoryElement(const Node &other) : HTMLElement() 00097 {(*this)=other;} 00098 protected: 00099 HTMLDirectoryElement(HTMLDirectoryElementImpl *impl); 00100 public: 00101 00102 HTMLDirectoryElement & operator = (const HTMLDirectoryElement &other); 00103 HTMLDirectoryElement & operator = (const Node &other); 00104 00105 ~HTMLDirectoryElement(); 00106 00114 bool compact() const; 00115 00119 void setCompact( bool ); 00120 }; 00121 00122 // -------------------------------------------------------------------------- 00123 00130 class HTMLLIElement : public HTMLElement 00131 { 00132 public: 00133 HTMLLIElement(); 00134 HTMLLIElement(const HTMLLIElement &other); 00135 HTMLLIElement(const Node &other) : HTMLElement() 00136 {(*this)=other;} 00137 00138 protected: 00139 HTMLLIElement(HTMLLIElementImpl *impl); 00140 public: 00141 00142 HTMLLIElement & operator = (const HTMLLIElement &other); 00143 HTMLLIElement & operator = (const Node &other); 00144 00145 ~HTMLLIElement(); 00146 00154 DOMString type() const; 00155 00159 void setType( const DOMString & ); 00160 00168 long value() const; 00169 00173 void setValue( long ); 00174 }; 00175 00176 // -------------------------------------------------------------------------- 00177 00185 class HTMLMenuElement : public HTMLElement 00186 { 00187 public: 00188 HTMLMenuElement(); 00189 HTMLMenuElement(const HTMLMenuElement &other); 00190 HTMLMenuElement(const Node &other) : HTMLElement() 00191 {(*this)=other;} 00192 00193 protected: 00194 HTMLMenuElement(HTMLMenuElementImpl *impl); 00195 public: 00196 00197 HTMLMenuElement & operator = (const HTMLMenuElement &other); 00198 HTMLMenuElement & operator = (const Node &other); 00199 00200 ~HTMLMenuElement(); 00201 00209 bool compact() const; 00210 00214 void setCompact( bool ); 00215 }; 00216 00217 // -------------------------------------------------------------------------- 00218 00225 class HTMLOListElement : public HTMLElement 00226 { 00227 public: 00228 HTMLOListElement(); 00229 HTMLOListElement(const HTMLOListElement &other); 00230 HTMLOListElement(const Node &other) : HTMLElement() 00231 {(*this)=other;} 00232 protected: 00233 HTMLOListElement(HTMLOListElementImpl *impl); 00234 public: 00235 00236 HTMLOListElement & operator = (const HTMLOListElement &other); 00237 HTMLOListElement & operator = (const Node &other); 00238 00239 ~HTMLOListElement(); 00240 00248 bool compact() const; 00249 00253 void setCompact( bool ); 00254 00262 long start() const; 00263 00267 void setStart( long ); 00268 00276 DOMString type() const; 00277 00281 void setType( const DOMString & ); 00282 }; 00283 00284 // -------------------------------------------------------------------------- 00285 00286 00293 class HTMLUListElement : public HTMLElement 00294 { 00295 public: 00296 HTMLUListElement(); 00297 HTMLUListElement(const HTMLUListElement &other); 00298 HTMLUListElement(const Node &other) : HTMLElement() 00299 {(*this)=other;} 00300 protected: 00301 HTMLUListElement(HTMLUListElementImpl *impl); 00302 public: 00303 00304 HTMLUListElement & operator = (const HTMLUListElement &other); 00305 HTMLUListElement & operator = (const Node &other); 00306 00307 ~HTMLUListElement(); 00308 00316 bool compact() const; 00317 00321 void setCompact( bool ); 00322 00330 DOMString type() const; 00331 00335 void setType( const DOMString & ); 00336 }; 00337 00338 } //namespace 00339 00340 #endif