• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
  • dom
html_table.h
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * (C) 1999 Lars Knoll (knoll@kde.org)
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 * http://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 <dom/html_element.h>
34#include <tdelibs_export.h>
35
36namespace DOM {
37
38class HTMLTableCaptionElementImpl;
39class DOMString;
40
47class TDEHTML_EXPORT HTMLTableCaptionElement : public HTMLElement
48{
49 friend class HTMLTableElement;
50
51public:
52 HTMLTableCaptionElement();
53 HTMLTableCaptionElement(const HTMLTableCaptionElement &other);
54 HTMLTableCaptionElement(const Node &other) : HTMLElement()
55 {(*this)=other;}
56protected:
57 HTMLTableCaptionElement(HTMLTableCaptionElementImpl *impl);
58public:
59
60 HTMLTableCaptionElement & operator = (const HTMLTableCaptionElement &other);
61 HTMLTableCaptionElement & operator = (const Node &other);
62
63 ~HTMLTableCaptionElement();
64
72 DOMString align() const;
73
77 void setAlign( const DOMString & );
78};
79
80// --------------------------------------------------------------------------
81
82class HTMLTableCellElementImpl;
83
91class TDEHTML_EXPORT HTMLTableCellElement : public HTMLElement
92{
93 friend class HTMLTableElement;
94
95public:
96 HTMLTableCellElement();
97 HTMLTableCellElement(const HTMLTableCellElement &other);
98 HTMLTableCellElement(const Node &other) : HTMLElement()
99 {(*this)=other;}
100protected:
101 HTMLTableCellElement(HTMLTableCellElementImpl *impl);
102public:
103
104 HTMLTableCellElement & operator = (const HTMLTableCellElement &other);
105 HTMLTableCellElement & operator = (const Node &other);
106
107 ~HTMLTableCellElement();
108
113 long cellIndex() const;
114
121 void setCellIndex( long );
122
129 DOMString abbr() const;
130
134 void setAbbr( const DOMString & );
135
142 DOMString align() const;
143
147 void setAlign( const DOMString & );
148
155 DOMString axis() const;
156
160 void setAxis( const DOMString & );
161
169 DOMString bgColor() const;
170
174 void setBgColor( const DOMString & );
175
182 DOMString ch() const;
183
187 void setCh( const DOMString & );
188
195 DOMString chOff() const;
196
200 void setChOff( const DOMString & );
201
208 long colSpan() const;
209
213 void setColSpan( long );
214
222 DOMString headers() const;
223
227 void setHeaders( const DOMString & );
228
236 DOMString height() const;
237
241 void setHeight( const DOMString & );
242
250 bool noWrap() const;
251
255 void setNoWrap( bool );
256
263 long rowSpan() const;
264
268 void setRowSpan( long );
269
276 DOMString scope() const;
277
281 void setScope( const DOMString & );
282
289 DOMString vAlign() const;
290
294 void setVAlign( const DOMString & );
295
303 DOMString width() const;
304
308 void setWidth( const DOMString & );
309};
310
311// --------------------------------------------------------------------------
312
313class HTMLTableColElementImpl;
314
322class TDEHTML_EXPORT HTMLTableColElement : public HTMLElement
323{
324 friend class HTMLTableElement;
325
326public:
327 HTMLTableColElement();
328 HTMLTableColElement(const HTMLTableColElement &other);
329 HTMLTableColElement(const Node &other) : HTMLElement()
330 {(*this)=other;}
331protected:
332 HTMLTableColElement(HTMLTableColElementImpl *impl);
333public:
334
335 HTMLTableColElement & operator = (const HTMLTableColElement &other);
336 HTMLTableColElement & operator = (const Node &other);
337
338 ~HTMLTableColElement();
339
346 DOMString align() const;
347
351 void setAlign( const DOMString & );
352
359 DOMString ch() const;
360
364 void setCh( const DOMString & );
365
372 DOMString chOff() const;
373
377 void setChOff( const DOMString & );
378
386 long span() const;
387
391 void setSpan( long );
392
399 DOMString vAlign() const;
400
404 void setVAlign( const DOMString & );
405
412 DOMString width() const;
413
417 void setWidth( const DOMString & );
418};
419
420// --------------------------------------------------------------------------
421
422class HTMLTableElementImpl;
423class HTMLCollection;
424class HTMLTableSectionElement;
425class HTMLTableCaptionElement;
426class HTMLElement;
427class DOMString;
428
441class TDEHTML_EXPORT HTMLTableElement : public HTMLElement
442{
443public:
444 HTMLTableElement();
445 HTMLTableElement(const HTMLTableElement &other);
446 HTMLTableElement(const Node &other) : HTMLElement()
447 {(*this)=other;}
448
449protected:
450 HTMLTableElement(HTMLTableElementImpl *impl);
451public:
452
453 HTMLTableElement & operator = (const HTMLTableElement &other);
454 HTMLTableElement & operator = (const Node &other);
455
456 ~HTMLTableElement();
457
463 HTMLTableCaptionElement caption() const;
464
468 void setCaption( const HTMLTableCaptionElement & );
469
475 HTMLTableSectionElement tHead() const;
476
480 void setTHead( const HTMLTableSectionElement & );
481
487 HTMLTableSectionElement tFoot() const;
488
492 void setTFoot( const HTMLTableSectionElement & );
493
500 HTMLCollection rows() const;
501
506 HTMLCollection tBodies() const;
507
516 DOMString align() const;
517
521 void setAlign( const DOMString & );
522
530 DOMString bgColor() const;
531
535 void setBgColor( const DOMString & );
536
543 DOMString border() const;
544
548 void setBorder( const DOMString & );
549
557 DOMString cellPadding() const;
558
562 void setCellPadding( const DOMString & );
563
571 DOMString cellSpacing() const;
572
576 void setCellSpacing( const DOMString & );
577
584 DOMString frame() const;
585
589 void setFrame( const DOMString & );
590
597 DOMString rules() const;
598
602 void setRules( const DOMString & );
603
611 DOMString summary() const;
612
616 void setSummary( const DOMString & );
617
624 DOMString width() const;
625
629 void setWidth( const DOMString & );
630
637 HTMLElement createTHead ( );
638
645 void deleteTHead ( );
646
653 HTMLElement createTFoot ( );
654
661 void deleteTFoot ( );
662
669 HTMLElement createCaption ( );
670
677 void deleteCaption ( );
678
696 HTMLElement insertRow ( long index );
697
709 void deleteRow ( long index );
710};
711
712// --------------------------------------------------------------------------
713
714class HTMLTableRowElementImpl;
715class HTMLCollection;
716class HTMLElement;
717class DOMString;
718
725class TDEHTML_EXPORT HTMLTableRowElement : public HTMLElement
726{
727 friend class HTMLTableElement;
728
729public:
730 HTMLTableRowElement();
731 HTMLTableRowElement(const HTMLTableRowElement &other);
732 HTMLTableRowElement(const Node &other) : HTMLElement()
733 {(*this)=other;}
734
735protected:
736 HTMLTableRowElement(HTMLTableRowElementImpl *impl);
737public:
738
739 HTMLTableRowElement & operator = (const HTMLTableRowElement &other);
740 HTMLTableRowElement & operator = (const Node &other);
741
742 ~HTMLTableRowElement();
743
752 long rowIndex() const;
753
760 void setRowIndex( long );
761
768 long sectionRowIndex() const;
769
776 void setSectionRowIndex( long );
777
782 HTMLCollection cells() const;
783
790 void setCells( const HTMLCollection & );
791
799 DOMString align() const;
800
804 void setAlign( const DOMString & );
805
813 DOMString bgColor() const;
814
818 void setBgColor( const DOMString & );
819
826 DOMString ch() const;
827
831 void setCh( const DOMString & );
832
839 DOMString chOff() const;
840
844 void setChOff( const DOMString & );
845
852 DOMString vAlign() const;
853
857 void setVAlign( const DOMString & );
858
869 HTMLElement insertCell ( long index );
870
880 void deleteCell ( long index );
881};
882
883// --------------------------------------------------------------------------
884
885class HTMLTableSectionElementImpl;
886class HTMLCollection;
887class HTMLElement;
888class DOMString;
889
895class TDEHTML_EXPORT HTMLTableSectionElement : public HTMLElement
896{
897 friend class HTMLTableElement;
898
899public:
900 HTMLTableSectionElement();
901 HTMLTableSectionElement(const HTMLTableSectionElement &other);
902 HTMLTableSectionElement(const Node &other) : HTMLElement()
903 {(*this)=other;}
904
905
906protected:
907 HTMLTableSectionElement(HTMLTableSectionElementImpl *impl);
908public:
909
910 HTMLTableSectionElement & operator = (const HTMLTableSectionElement &other);
911 HTMLTableSectionElement & operator = (const Node &other);
912
913 ~HTMLTableSectionElement();
914
920 DOMString align() const;
921
925 void setAlign( const DOMString & );
926
933 DOMString ch() const;
934
938 void setCh( const DOMString & );
939
946 DOMString chOff() const;
947
951 void setChOff( const DOMString & );
952
958 DOMString vAlign() const;
959
963 void setVAlign( const DOMString & );
964
969 HTMLCollection rows() const;
970
982 HTMLElement insertRow ( long index );
983
992 void deleteRow ( long index );
993};
994
995} //namespace
996
997#endif
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:127
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:70
DOM::HTMLTableCaptionElement
Table caption See the CAPTION element definition in HTML 4.0.
Definition: html_table.h:48
DOM::HTMLTableCellElement
The object used to represent the TH and TD elements.
Definition: html_table.h:92
DOM::HTMLTableColElement
Regroups the COL and COLGROUP elements.
Definition: html_table.h:323
DOM::HTMLTableElement
The create* and delete* methods on the table allow authors to construct and modify tables.
Definition: html_table.h:442
DOM::HTMLTableRowElement
A row in a table.
Definition: html_table.h:726
DOM::HTMLTableSectionElement
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:896
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:275
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition: design.h:57

tdehtml

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

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.9.4
This website is maintained by Timothy Pearson.