• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • dom
html_table.h
Go to the documentation of this file.
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * Copyright 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 <khtml_export.h>
34#include <dom/html_element.h>
35
36namespace DOM {
37
38class HTMLTableCaptionElementImpl;
39class DOMString;
40
47class KHTML_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 KHTML_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 KHTML_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 KHTML_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 KHTML_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 KHTML_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:131
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::HTMLTableCaptionElement::HTMLTableCaptionElement
HTMLTableCaptionElement(const Node &other)
Definition: html_table.h:54
DOM::HTMLTableCellElement
The object used to represent the TH and TD elements.
Definition: html_table.h:92
DOM::HTMLTableCellElement::HTMLTableCellElement
HTMLTableCellElement(const Node &other)
Definition: html_table.h:98
DOM::HTMLTableColElement
Regroups the COL and COLGROUP elements.
Definition: html_table.h:323
DOM::HTMLTableColElement::HTMLTableColElement
HTMLTableColElement(const Node &other)
Definition: html_table.h:329
DOM::HTMLTableElement
The create* and delete* methods on the table allow authors to construct and modify tables.
Definition: html_table.h:442
DOM::HTMLTableElement::HTMLTableElement
HTMLTableElement(const Node &other)
Definition: html_table.h:446
DOM::HTMLTableRowElement
A row in a table.
Definition: html_table.h:726
DOM::HTMLTableRowElement::HTMLTableRowElement
HTMLTableRowElement(const Node &other)
Definition: html_table.h:732
DOM::HTMLTableSectionElement
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:896
DOM::HTMLTableSectionElement::HTMLTableSectionElement
HTMLTableSectionElement(const Node &other)
Definition: html_table.h:902
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:271
html_element.h
khtml_export.h
DOM
This library provides a full-featured HTML parser and widget.
Definition: design.h:55
caption
QString caption()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal