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

KHTML

html_table.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, 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 #include <kdelibs_export.h>
00035 
00036 namespace DOM {
00037 
00038 class HTMLTableCaptionElementImpl;
00039 class DOMString;
00040 
00047 class KHTML_EXPORT HTMLTableCaptionElement : public HTMLElement
00048 {
00049     friend class HTMLTableElement;
00050 
00051 public:
00052     HTMLTableCaptionElement();
00053     HTMLTableCaptionElement(const HTMLTableCaptionElement &other);
00054     HTMLTableCaptionElement(const Node &other) : HTMLElement()
00055          {(*this)=other;}
00056 protected:
00057     HTMLTableCaptionElement(HTMLTableCaptionElementImpl *impl);
00058 public:
00059 
00060     HTMLTableCaptionElement & operator = (const HTMLTableCaptionElement &other);
00061     HTMLTableCaptionElement & operator = (const Node &other);
00062 
00063     ~HTMLTableCaptionElement();
00064 
00072     DOMString align() const;
00073 
00077     void setAlign( const DOMString & );
00078 };
00079 
00080 // --------------------------------------------------------------------------
00081 
00082 class HTMLTableCellElementImpl;
00083 
00091 class KHTML_EXPORT HTMLTableCellElement : public HTMLElement
00092 {
00093     friend class HTMLTableElement;
00094 
00095 public:
00096     HTMLTableCellElement();
00097     HTMLTableCellElement(const HTMLTableCellElement &other);
00098     HTMLTableCellElement(const Node &other) : HTMLElement()
00099          {(*this)=other;}
00100 protected:
00101     HTMLTableCellElement(HTMLTableCellElementImpl *impl);
00102 public:
00103 
00104     HTMLTableCellElement & operator = (const HTMLTableCellElement &other);
00105     HTMLTableCellElement & operator = (const Node &other);
00106 
00107     ~HTMLTableCellElement();
00108 
00113     long cellIndex() const;
00114 
00121     void setCellIndex( long  );
00122 
00129     DOMString abbr() const;
00130 
00134     void setAbbr( const DOMString & );
00135 
00142     DOMString align() const;
00143 
00147     void setAlign( const DOMString & );
00148 
00155     DOMString axis() const;
00156 
00160     void setAxis( const DOMString & );
00161 
00169     DOMString bgColor() const;
00170 
00174     void setBgColor( const DOMString & );
00175 
00182     DOMString ch() const;
00183 
00187     void setCh( const DOMString & );
00188 
00195     DOMString chOff() const;
00196 
00200     void setChOff( const DOMString & );
00201 
00208     long colSpan() const;
00209 
00213     void setColSpan( long  );
00214 
00222     DOMString headers() const;
00223 
00227     void setHeaders( const DOMString & );
00228 
00236     DOMString height() const;
00237 
00241     void setHeight( const DOMString & );
00242 
00250     bool noWrap() const;
00251 
00255     void setNoWrap( bool );
00256 
00263     long rowSpan() const;
00264 
00268     void setRowSpan( long );
00269 
00276     DOMString scope() const;
00277 
00281     void setScope( const DOMString & );
00282 
00289     DOMString vAlign() const;
00290 
00294     void setVAlign( const DOMString & );
00295 
00303     DOMString width() const;
00304 
00308     void setWidth( const DOMString & );
00309 };
00310 
00311 // --------------------------------------------------------------------------
00312 
00313 class HTMLTableColElementImpl;
00314 
00322 class KHTML_EXPORT HTMLTableColElement : public HTMLElement
00323 {
00324     friend class HTMLTableElement;
00325 
00326 public:
00327     HTMLTableColElement();
00328     HTMLTableColElement(const HTMLTableColElement &other);
00329     HTMLTableColElement(const Node &other) : HTMLElement()
00330          {(*this)=other;}
00331 protected:
00332     HTMLTableColElement(HTMLTableColElementImpl *impl);
00333 public:
00334 
00335     HTMLTableColElement & operator = (const HTMLTableColElement &other);
00336     HTMLTableColElement & operator = (const Node &other);
00337 
00338     ~HTMLTableColElement();
00339 
00346     DOMString align() const;
00347 
00351     void setAlign( const DOMString & );
00352 
00359     DOMString ch() const;
00360 
00364     void setCh( const DOMString & );
00365 
00372     DOMString chOff() const;
00373 
00377     void setChOff( const DOMString & );
00378 
00386     long span() const;
00387 
00391     void setSpan( long  );
00392 
00399     DOMString vAlign() const;
00400 
00404     void setVAlign( const DOMString & );
00405 
00412     DOMString width() const;
00413 
00417     void setWidth( const DOMString & );
00418 };
00419 
00420 // --------------------------------------------------------------------------
00421 
00422 class HTMLTableElementImpl;
00423 class HTMLCollection;
00424 class HTMLTableSectionElement;
00425 class HTMLTableCaptionElement;
00426 class HTMLElement;
00427 class DOMString;
00428 
00441 class KHTML_EXPORT HTMLTableElement : public HTMLElement
00442 {
00443 public:
00444     HTMLTableElement();
00445     HTMLTableElement(const HTMLTableElement &other);
00446     HTMLTableElement(const Node &other) : HTMLElement()
00447          {(*this)=other;}
00448 
00449 protected:
00450     HTMLTableElement(HTMLTableElementImpl *impl);
00451 public:
00452 
00453     HTMLTableElement & operator = (const HTMLTableElement &other);
00454     HTMLTableElement & operator = (const Node &other);
00455 
00456     ~HTMLTableElement();
00457 
00463     HTMLTableCaptionElement caption() const;
00464 
00468     void setCaption( const HTMLTableCaptionElement & );
00469 
00475     HTMLTableSectionElement tHead() const;
00476 
00480     void setTHead( const HTMLTableSectionElement & );
00481 
00487     HTMLTableSectionElement tFoot() const;
00488 
00492     void setTFoot( const HTMLTableSectionElement & );
00493 
00500     HTMLCollection rows() const;
00501 
00506     HTMLCollection tBodies() const;
00507 
00516     DOMString align() const;
00517 
00521     void setAlign( const DOMString & );
00522 
00530     DOMString bgColor() const;
00531 
00535     void setBgColor( const DOMString & );
00536 
00543     DOMString border() const;
00544 
00548     void setBorder( const DOMString & );
00549 
00557     DOMString cellPadding() const;
00558 
00562     void setCellPadding( const DOMString & );
00563 
00571     DOMString cellSpacing() const;
00572 
00576     void setCellSpacing( const DOMString & );
00577 
00584     DOMString frame() const;
00585 
00589     void setFrame( const DOMString & );
00590 
00597     DOMString rules() const;
00598 
00602     void setRules( const DOMString & );
00603 
00611     DOMString summary() const;
00612 
00616     void setSummary( const DOMString & );
00617 
00624     DOMString width() const;
00625 
00629     void setWidth( const DOMString & );
00630 
00637     HTMLElement createTHead (  );
00638 
00645     void deleteTHead (  );
00646 
00653     HTMLElement createTFoot (  );
00654 
00661     void deleteTFoot (  );
00662 
00669     HTMLElement createCaption (  );
00670 
00677     void deleteCaption (  );
00678 
00696     HTMLElement insertRow ( long index );
00697 
00709     void deleteRow ( long index );
00710 };
00711 
00712 // --------------------------------------------------------------------------
00713 
00714 class HTMLTableRowElementImpl;
00715 class HTMLCollection;
00716 class HTMLElement;
00717 class DOMString;
00718 
00725 class KHTML_EXPORT HTMLTableRowElement : public HTMLElement
00726 {
00727     friend class HTMLTableElement;
00728 
00729 public:
00730     HTMLTableRowElement();
00731     HTMLTableRowElement(const HTMLTableRowElement &other);
00732     HTMLTableRowElement(const Node &other) : HTMLElement()
00733          {(*this)=other;}
00734 
00735 protected:
00736     HTMLTableRowElement(HTMLTableRowElementImpl *impl);
00737 public:
00738 
00739     HTMLTableRowElement & operator = (const HTMLTableRowElement &other);
00740     HTMLTableRowElement & operator = (const Node &other);
00741 
00742     ~HTMLTableRowElement();
00743 
00752     long rowIndex() const;
00753 
00760     void setRowIndex( long  );
00761 
00768     long sectionRowIndex() const;
00769 
00776     void setSectionRowIndex( long  );
00777 
00782     HTMLCollection cells() const;
00783 
00790     void setCells( const HTMLCollection & );
00791 
00799     DOMString align() const;
00800 
00804     void setAlign( const DOMString & );
00805 
00813     DOMString bgColor() const;
00814 
00818     void setBgColor( const DOMString & );
00819 
00826     DOMString ch() const;
00827 
00831     void setCh( const DOMString & );
00832 
00839     DOMString chOff() const;
00840 
00844     void setChOff( const DOMString & );
00845 
00852     DOMString vAlign() const;
00853 
00857     void setVAlign( const DOMString & );
00858 
00869     HTMLElement insertCell ( long index );
00870 
00880     void deleteCell ( long index );
00881 };
00882 
00883 // --------------------------------------------------------------------------
00884 
00885 class HTMLTableSectionElementImpl;
00886 class HTMLCollection;
00887 class HTMLElement;
00888 class DOMString;
00889 
00895 class KHTML_EXPORT HTMLTableSectionElement : public HTMLElement
00896 {
00897     friend class HTMLTableElement;
00898 
00899 public:
00900     HTMLTableSectionElement();
00901     HTMLTableSectionElement(const HTMLTableSectionElement &other);
00902     HTMLTableSectionElement(const Node &other) : HTMLElement()
00903          {(*this)=other;}
00904 
00905 
00906 protected:
00907     HTMLTableSectionElement(HTMLTableSectionElementImpl *impl);
00908 public:
00909 
00910     HTMLTableSectionElement & operator = (const HTMLTableSectionElement &other);
00911     HTMLTableSectionElement & operator = (const Node &other);
00912 
00913     ~HTMLTableSectionElement();
00914 
00920     DOMString align() const;
00921 
00925     void setAlign( const DOMString & );
00926 
00933     DOMString ch() const;
00934 
00938     void setCh( const DOMString & );
00939 
00946     DOMString chOff() const;
00947 
00951     void setChOff( const DOMString & );
00952 
00958     DOMString vAlign() const;
00959 
00963     void setVAlign( const DOMString & );
00964 
00969     HTMLCollection rows() const;
00970 
00982     HTMLElement insertRow ( long index );
00983 
00992     void deleteRow ( long index );
00993 };
00994 
00995 } //namespace
00996 
00997 #endif

KHTML

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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