KHtml

html_table.h
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright 1999 Lars Knoll ([email protected])
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * This file includes excerpts from the Document Object Model (DOM)
22  * Level 1 Specification (Recommendation)
23  * https://www.w3.org/TR/REC-DOM-Level-1/
24  * Copyright © World Wide Web Consortium , (Massachusetts Institute of
25  * Technology , Institut National de Recherche en Informatique et en
26  * Automatique , Keio University ). All Rights Reserved.
27  *
28  */
29 #ifndef HTML_TABLE_H
30 #define HTML_TABLE_H
31 
32 // --------------------------------------------------------------------------
33 #include <khtml_export.h>
34 #include <dom/html_element.h>
35 
36 namespace DOM
37 {
38 
39 class HTMLTableCaptionElementImpl;
40 class DOMString;
41 
48 class KHTML_EXPORT HTMLTableCaptionElement : public HTMLElement
49 {
50  friend class HTMLTableElement;
51 
52 public:
55  HTMLTableCaptionElement(const Node &other) : HTMLElement()
56  {
57  (*this) = other;
58  }
59 protected:
60  HTMLTableCaptionElement(HTMLTableCaptionElementImpl *impl);
61 public:
62 
63  HTMLTableCaptionElement &operator = (const HTMLTableCaptionElement &other);
64  HTMLTableCaptionElement &operator = (const Node &other);
65 
67 
75  DOMString align() const;
76 
80  void setAlign(const DOMString &);
81 };
82 
83 // --------------------------------------------------------------------------
84 
85 class HTMLTableCellElementImpl;
86 
94 class KHTML_EXPORT HTMLTableCellElement : public HTMLElement
95 {
96  friend class HTMLTableElement;
97 
98 public:
101  HTMLTableCellElement(const Node &other) : HTMLElement()
102  {
103  (*this) = other;
104  }
105 protected:
106  HTMLTableCellElement(HTMLTableCellElementImpl *impl);
107 public:
108 
109  HTMLTableCellElement &operator = (const HTMLTableCellElement &other);
110  HTMLTableCellElement &operator = (const Node &other);
111 
113 
118  long cellIndex() const;
119 
126  void setCellIndex(long);
127 
134  DOMString abbr() const;
135 
139  void setAbbr(const DOMString &);
140 
147  DOMString align() const;
148 
152  void setAlign(const DOMString &);
153 
160  DOMString axis() const;
161 
165  void setAxis(const DOMString &);
166 
174  DOMString bgColor() const;
175 
179  void setBgColor(const DOMString &);
180 
187  DOMString ch() const;
188 
192  void setCh(const DOMString &);
193 
200  DOMString chOff() const;
201 
205  void setChOff(const DOMString &);
206 
213  long colSpan() const;
214 
218  void setColSpan(long);
219 
227  DOMString headers() const;
228 
232  void setHeaders(const DOMString &);
233 
241  DOMString height() const;
242 
246  void setHeight(const DOMString &);
247 
255  bool noWrap() const;
256 
260  void setNoWrap(bool);
261 
268  long rowSpan() const;
269 
273  void setRowSpan(long);
274 
281  DOMString scope() const;
282 
286  void setScope(const DOMString &);
287 
294  DOMString vAlign() const;
295 
299  void setVAlign(const DOMString &);
300 
308  DOMString width() const;
309 
313  void setWidth(const DOMString &);
314 };
315 
316 // --------------------------------------------------------------------------
317 
318 class HTMLTableColElementImpl;
319 
327 class KHTML_EXPORT HTMLTableColElement : public HTMLElement
328 {
329  friend class HTMLTableElement;
330 
331 public:
334  HTMLTableColElement(const Node &other) : HTMLElement()
335  {
336  (*this) = other;
337  }
338 protected:
339  HTMLTableColElement(HTMLTableColElementImpl *impl);
340 public:
341 
342  HTMLTableColElement &operator = (const HTMLTableColElement &other);
343  HTMLTableColElement &operator = (const Node &other);
344 
346 
353  DOMString align() const;
354 
358  void setAlign(const DOMString &);
359 
366  DOMString ch() const;
367 
371  void setCh(const DOMString &);
372 
379  DOMString chOff() const;
380 
384  void setChOff(const DOMString &);
385 
393  long span() const;
394 
398  void setSpan(long);
399 
406  DOMString vAlign() const;
407 
411  void setVAlign(const DOMString &);
412 
419  DOMString width() const;
420 
424  void setWidth(const DOMString &);
425 };
426 
427 // --------------------------------------------------------------------------
428 
429 class HTMLTableElementImpl;
430 class HTMLCollection;
433 class HTMLElement;
434 class DOMString;
435 
448 class KHTML_EXPORT HTMLTableElement : public HTMLElement
449 {
450 public:
452  HTMLTableElement(const HTMLTableElement &other);
453  HTMLTableElement(const Node &other) : HTMLElement()
454  {
455  (*this) = other;
456  }
457 
458 protected:
459  HTMLTableElement(HTMLTableElementImpl *impl);
460 public:
461 
462  HTMLTableElement &operator = (const HTMLTableElement &other);
463  HTMLTableElement &operator = (const Node &other);
464 
465  ~HTMLTableElement();
466 
472  HTMLTableCaptionElement caption() const;
473 
477  void setCaption(const HTMLTableCaptionElement &);
478 
484  HTMLTableSectionElement tHead() const;
485 
489  void setTHead(const HTMLTableSectionElement &);
490 
496  HTMLTableSectionElement tFoot() const;
497 
501  void setTFoot(const HTMLTableSectionElement &);
502 
509  HTMLCollection rows() const;
510 
515  HTMLCollection tBodies() const;
516 
525  DOMString align() const;
526 
530  void setAlign(const DOMString &);
531 
539  DOMString bgColor() const;
540 
544  void setBgColor(const DOMString &);
545 
552  DOMString border() const;
553 
557  void setBorder(const DOMString &);
558 
566  DOMString cellPadding() const;
567 
571  void setCellPadding(const DOMString &);
572 
580  DOMString cellSpacing() const;
581 
585  void setCellSpacing(const DOMString &);
586 
593  DOMString frame() const;
594 
598  void setFrame(const DOMString &);
599 
606  DOMString rules() const;
607 
611  void setRules(const DOMString &);
612 
620  DOMString summary() const;
621 
625  void setSummary(const DOMString &);
626 
633  DOMString width() const;
634 
638  void setWidth(const DOMString &);
639 
646  HTMLElement createTHead();
647 
654  void deleteTHead();
655 
662  HTMLElement createTFoot();
663 
670  void deleteTFoot();
671 
678  HTMLElement createCaption();
679 
686  void deleteCaption();
687 
705  HTMLElement insertRow(long index);
706 
718  void deleteRow(long index);
719 };
720 
721 // --------------------------------------------------------------------------
722 
723 class HTMLTableRowElementImpl;
724 class HTMLCollection;
725 class HTMLElement;
726 class DOMString;
727 
734 class KHTML_EXPORT HTMLTableRowElement : public HTMLElement
735 {
736  friend class HTMLTableElement;
737 
738 public:
741  HTMLTableRowElement(const Node &other) : HTMLElement()
742  {
743  (*this) = other;
744  }
745 
746 protected:
747  HTMLTableRowElement(HTMLTableRowElementImpl *impl);
748 public:
749 
750  HTMLTableRowElement &operator = (const HTMLTableRowElement &other);
751  HTMLTableRowElement &operator = (const Node &other);
752 
754 
763  long rowIndex() const;
764 
771  void setRowIndex(long);
772 
779  long sectionRowIndex() const;
780 
787  void setSectionRowIndex(long);
788 
793  HTMLCollection cells() const;
794 
801  void setCells(const HTMLCollection &);
802 
810  DOMString align() const;
811 
815  void setAlign(const DOMString &);
816 
824  DOMString bgColor() const;
825 
829  void setBgColor(const DOMString &);
830 
837  DOMString ch() const;
838 
842  void setCh(const DOMString &);
843 
850  DOMString chOff() const;
851 
855  void setChOff(const DOMString &);
856 
863  DOMString vAlign() const;
864 
868  void setVAlign(const DOMString &);
869 
880  HTMLElement insertCell(long index);
881 
891  void deleteCell(long index);
892 };
893 
894 // --------------------------------------------------------------------------
895 
896 class HTMLTableSectionElementImpl;
897 class HTMLCollection;
898 class HTMLElement;
899 class DOMString;
900 
906 class KHTML_EXPORT HTMLTableSectionElement : public HTMLElement
907 {
908  friend class HTMLTableElement;
909 
910 public:
913  HTMLTableSectionElement(const Node &other) : HTMLElement()
914  {
915  (*this) = other;
916  }
917 
918 protected:
919  HTMLTableSectionElement(HTMLTableSectionElementImpl *impl);
920 public:
921 
922  HTMLTableSectionElement &operator = (const HTMLTableSectionElement &other);
923  HTMLTableSectionElement &operator = (const Node &other);
924 
926 
932  DOMString align() const;
933 
937  void setAlign(const DOMString &);
938 
945  DOMString ch() const;
946 
950  void setCh(const DOMString &);
951 
958  DOMString chOff() const;
959 
963  void setChOff(const DOMString &);
964 
970  DOMString vAlign() const;
971 
975  void setVAlign(const DOMString &);
976 
981  HTMLCollection rows() const;
982 
994  HTMLElement insertRow(long index);
995 
1004  void deleteRow(long index);
1005 };
1006 
1007 } //namespace
1008 
1009 #endif
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:278
Table caption See the CAPTION element definition in HTML 4.0.
Definition: html_table.h:48
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:906
The object used to represent the TH and TD elements.
Definition: html_table.h:94
Regroups the COL and COLGROUP elements.
Definition: html_table.h:327
An HTMLCollection is a list of nodes.
Definition: html_misc.h:133
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
This library provides a full-featured HTML parser and widget.
A row in a table.
Definition: html_table.h:734
The create* and delete* methods on the table allow authors to construct and modify tables...
Definition: html_table.h:448
All HTML element interfaces derive from this class.
Definition: html_element.h:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 11 2020 22:45:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.