khtml Library API Documentation

html_table.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_TABLE_H
00030 #define HTML_TABLE_H
00031 
00032 // --------------------------------------------------------------------------
00033 #include <dom/html_element.h>
00034 
00035 namespace DOM {
00036 
00037 class HTMLTableCaptionElementImpl;
00038 class DOMString;
00039 
00046 class HTMLTableCaptionElement : public HTMLElement
00047 {
00048     friend class HTMLTableElement;
00049 
00050 public:
00051     HTMLTableCaptionElement();
00052     HTMLTableCaptionElement(const HTMLTableCaptionElement &other);
00053     HTMLTableCaptionElement(const Node &other) : HTMLElement()
00054          {(*this)=other;}
00055 protected:
00056     HTMLTableCaptionElement(HTMLTableCaptionElementImpl *impl);
00057 public:
00058 
00059     HTMLTableCaptionElement & operator = (const HTMLTableCaptionElement &other);
00060     HTMLTableCaptionElement & operator = (const Node &other);
00061 
00062     ~HTMLTableCaptionElement();
00063 
00071     DOMString align() const;
00072 
00076     void setAlign( const DOMString & );
00077 };
00078 
00079 // --------------------------------------------------------------------------
00080 
00081 class HTMLTableCellElementImpl;
00082 
00090 class HTMLTableCellElement : public HTMLElement
00091 {
00092     friend class HTMLTableElement;
00093 
00094 public:
00095     HTMLTableCellElement();
00096     HTMLTableCellElement(const HTMLTableCellElement &other);
00097     HTMLTableCellElement(const Node &other) : HTMLElement()
00098          {(*this)=other;}
00099 protected:
00100     HTMLTableCellElement(HTMLTableCellElementImpl *impl);
00101 public:
00102 
00103     HTMLTableCellElement & operator = (const HTMLTableCellElement &other);
00104     HTMLTableCellElement & operator = (const Node &other);
00105 
00106     ~HTMLTableCellElement();
00107 
00112     long cellIndex() const;
00113 
00120     void setCellIndex( long  );
00121 
00128     DOMString abbr() const;
00129 
00133     void setAbbr( const DOMString & );
00134 
00141     DOMString align() const;
00142 
00146     void setAlign( const DOMString & );
00147 
00154     DOMString axis() const;
00155 
00159     void setAxis( const DOMString & );
00160 
00168     DOMString bgColor() const;
00169 
00173     void setBgColor( const DOMString & );
00174 
00181     DOMString ch() const;
00182 
00186     void setCh( const DOMString & );
00187 
00194     DOMString chOff() const;
00195 
00199     void setChOff( const DOMString & );
00200 
00207     long colSpan() const;
00208 
00212     void setColSpan( long  );
00213 
00221     DOMString headers() const;
00222 
00226     void setHeaders( const DOMString & );
00227 
00235     DOMString height() const;
00236 
00240     void setHeight( const DOMString & );
00241 
00249     bool noWrap() const;
00250 
00254     void setNoWrap( bool );
00255 
00262     long rowSpan() const;
00263 
00267     void setRowSpan( long );
00268 
00275     DOMString scope() const;
00276 
00280     void setScope( const DOMString & );
00281 
00288     DOMString vAlign() const;
00289 
00293     void setVAlign( const DOMString & );
00294 
00302     DOMString width() const;
00303 
00307     void setWidth( const DOMString & );
00308 };
00309 
00310 // --------------------------------------------------------------------------
00311 
00312 class HTMLTableColElementImpl;
00313 
00321 class HTMLTableColElement : public HTMLElement
00322 {
00323     friend class HTMLTableElement;
00324 
00325 public:
00326     HTMLTableColElement();
00327     HTMLTableColElement(const HTMLTableColElement &other);
00328     HTMLTableColElement(const Node &other) : HTMLElement()
00329          {(*this)=other;}
00330 protected:
00331     HTMLTableColElement(HTMLTableColElementImpl *impl);
00332 public:
00333 
00334     HTMLTableColElement & operator = (const HTMLTableColElement &other);
00335     HTMLTableColElement & operator = (const Node &other);
00336 
00337     ~HTMLTableColElement();
00338 
00345     DOMString align() const;
00346 
00350     void setAlign( const DOMString & );
00351 
00358     DOMString ch() const;
00359 
00363     void setCh( const DOMString & );
00364 
00371     DOMString chOff() const;
00372 
00376     void setChOff( const DOMString & );
00377 
00385     long span() const;
00386 
00390     void setSpan( long  );
00391 
00398     DOMString vAlign() const;
00399 
00403     void setVAlign( const DOMString & );
00404 
00411     DOMString width() const;
00412 
00416     void setWidth( const DOMString & );
00417 };
00418 
00419 // --------------------------------------------------------------------------
00420 
00421 class HTMLTableElementImpl;
00422 class HTMLCollection;
00423 class HTMLTableSectionElement;
00424 class HTMLTableCaptionElement;
00425 class HTMLElement;
00426 class DOMString;
00427 
00440 class HTMLTableElement : public HTMLElement
00441 {
00442 public:
00443     HTMLTableElement();
00444     HTMLTableElement(const HTMLTableElement &other);
00445     HTMLTableElement(const Node &other) : HTMLElement()
00446          {(*this)=other;}
00447 
00448 protected:
00449     HTMLTableElement(HTMLTableElementImpl *impl);
00450 public:
00451 
00452     HTMLTableElement & operator = (const HTMLTableElement &other);
00453     HTMLTableElement & operator = (const Node &other);
00454 
00455     ~HTMLTableElement();
00456 
00462     HTMLTableCaptionElement caption() const;
00463 
00467     void setCaption( const HTMLTableCaptionElement & );
00468 
00474     HTMLTableSectionElement tHead() const;
00475 
00479     void setTHead( const HTMLTableSectionElement & );
00480 
00486     HTMLTableSectionElement tFoot() const;
00487 
00491     void setTFoot( const HTMLTableSectionElement & );
00492 
00499     HTMLCollection rows() const;
00500 
00505     HTMLCollection tBodies() const;
00506 
00515     DOMString align() const;
00516 
00520     void setAlign( const DOMString & );
00521 
00529     DOMString bgColor() const;
00530 
00534     void setBgColor( const DOMString & );
00535 
00542     DOMString border() const;
00543 
00547     void setBorder( const DOMString & );
00548 
00556     DOMString cellPadding() const;
00557 
00561     void setCellPadding( const DOMString & );
00562 
00570     DOMString cellSpacing() const;
00571 
00575     void setCellSpacing( const DOMString & );
00576 
00583     DOMString frame() const;
00584 
00588     void setFrame( const DOMString & );
00589 
00596     DOMString rules() const;
00597 
00601     void setRules( const DOMString & );
00602 
00610     DOMString summary() const;
00611 
00615     void setSummary( const DOMString & );
00616 
00623     DOMString width() const;
00624 
00628     void setWidth( const DOMString & );
00629 
00636     HTMLElement createTHead (  );
00637 
00644     void deleteTHead (  );
00645 
00652     HTMLElement createTFoot (  );
00653 
00660     void deleteTFoot (  );
00661 
00668     HTMLElement createCaption (  );
00669 
00676     void deleteCaption (  );
00677 
00695     HTMLElement insertRow ( long index );
00696 
00708     void deleteRow ( long index );
00709 };
00710 
00711 // --------------------------------------------------------------------------
00712 
00713 class HTMLTableRowElementImpl;
00714 class HTMLCollection;
00715 class HTMLElement;
00716 class DOMString;
00717 
00724 class HTMLTableRowElement : public HTMLElement
00725 {
00726     friend class HTMLTableElement;
00727 
00728 public:
00729     HTMLTableRowElement();
00730     HTMLTableRowElement(const HTMLTableRowElement &other);
00731     HTMLTableRowElement(const Node &other) : HTMLElement()
00732          {(*this)=other;}
00733 
00734 protected:
00735     HTMLTableRowElement(HTMLTableRowElementImpl *impl);
00736 public:
00737 
00738     HTMLTableRowElement & operator = (const HTMLTableRowElement &other);
00739     HTMLTableRowElement & operator = (const Node &other);
00740 
00741     ~HTMLTableRowElement();
00742 
00751     long rowIndex() const;
00752 
00759     void setRowIndex( long  );
00760 
00767     long sectionRowIndex() const;
00768 
00775     void setSectionRowIndex( long  );
00776 
00781     HTMLCollection cells() const;
00782 
00789     void setCells( const HTMLCollection & );
00790 
00798     DOMString align() const;
00799 
00803     void setAlign( const DOMString & );
00804 
00812     DOMString bgColor() const;
00813 
00817     void setBgColor( const DOMString & );
00818 
00825     DOMString ch() const;
00826 
00830     void setCh( const DOMString & );
00831 
00838     DOMString chOff() const;
00839 
00843     void setChOff( const DOMString & );
00844 
00851     DOMString vAlign() const;
00852 
00856     void setVAlign( const DOMString & );
00857 
00868     HTMLElement insertCell ( long index );
00869 
00879     void deleteCell ( long index );
00880 };
00881 
00882 // --------------------------------------------------------------------------
00883 
00884 class HTMLTableSectionElementImpl;
00885 class HTMLCollection;
00886 class HTMLElement;
00887 class DOMString;
00888 
00894 class HTMLTableSectionElement : public HTMLElement
00895 {
00896     friend class HTMLTableElement;
00897 
00898 public:
00899     HTMLTableSectionElement();
00900     HTMLTableSectionElement(const HTMLTableSectionElement &other);
00901     HTMLTableSectionElement(const Node &other) : HTMLElement()
00902          {(*this)=other;}
00903 
00904 
00905 protected:
00906     HTMLTableSectionElement(HTMLTableSectionElementImpl *impl);
00907 public:
00908 
00909     HTMLTableSectionElement & operator = (const HTMLTableSectionElement &other);
00910     HTMLTableSectionElement & operator = (const Node &other);
00911 
00912     ~HTMLTableSectionElement();
00913 
00919     DOMString align() const;
00920 
00924     void setAlign( const DOMString & );
00925 
00932     DOMString ch() const;
00933 
00937     void setCh( const DOMString & );
00938 
00945     DOMString chOff() const;
00946 
00950     void setChOff( const DOMString & );
00951 
00957     DOMString vAlign() const;
00958 
00962     void setVAlign( const DOMString & );
00963 
00968     HTMLCollection rows() const;
00969 
00981     HTMLElement insertRow ( long index );
00982 
00991     void deleteRow ( long index );
00992 };
00993 
00994 } //namespace
00995 
00996 #endif
KDE Logo
This file is part of the documentation for khtml Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Jul 22 10:18:31 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003