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

KHTML

  • khtml
  • dom
html_list.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_LIST_H
30#define HTML_LIST_H
31
32#include <khtml_export.h>
33#include <dom/html_element.h>
34
35namespace DOM {
36
37class HTMLDListElementImpl;
38class HTMLUListElementImpl;
39class HTMLOListElementImpl;
40class HTMLDirectoryElementImpl;
41class HTMLMenuElementImpl;
42class HTMLLIElementImpl;
43
44class DOMString;
45
52class KHTML_EXPORT HTMLDListElement : public HTMLElement
53{
54public:
55 HTMLDListElement();
56 HTMLDListElement(const HTMLDListElement &other);
57 HTMLDListElement(const Node &other) : HTMLElement()
58 {(*this)=other;}
59protected:
60 HTMLDListElement(HTMLDListElementImpl *impl);
61public:
62
63 HTMLDListElement & operator = (const HTMLDListElement &other);
64 HTMLDListElement & operator = (const Node &other);
65
66 ~HTMLDListElement();
67
75 bool compact() const;
76
80 void setCompact( bool );
81};
82
83// --------------------------------------------------------------------------
84
92class KHTML_EXPORT HTMLDirectoryElement : public HTMLElement
93{
94public:
95 HTMLDirectoryElement();
96 HTMLDirectoryElement(const HTMLDirectoryElement &other);
97 HTMLDirectoryElement(const Node &other) : HTMLElement()
98 {(*this)=other;}
99protected:
100 HTMLDirectoryElement(HTMLDirectoryElementImpl *impl);
101public:
102
103 HTMLDirectoryElement & operator = (const HTMLDirectoryElement &other);
104 HTMLDirectoryElement & operator = (const Node &other);
105
106 ~HTMLDirectoryElement();
107
115 bool compact() const;
116
120 void setCompact( bool );
121};
122
123// --------------------------------------------------------------------------
124
131class KHTML_EXPORT HTMLLIElement : public HTMLElement
132{
133public:
134 HTMLLIElement();
135 HTMLLIElement(const HTMLLIElement &other);
136 HTMLLIElement(const Node &other) : HTMLElement()
137 {(*this)=other;}
138
139protected:
140 HTMLLIElement(HTMLLIElementImpl *impl);
141public:
142
143 HTMLLIElement & operator = (const HTMLLIElement &other);
144 HTMLLIElement & operator = (const Node &other);
145
146 ~HTMLLIElement();
147
155 DOMString type() const;
156
160 void setType( const DOMString & );
161
169 long value() const;
170
174 void setValue( long );
175};
176
177// --------------------------------------------------------------------------
178
186class KHTML_EXPORT HTMLMenuElement : public HTMLElement
187{
188public:
189 HTMLMenuElement();
190 HTMLMenuElement(const HTMLMenuElement &other);
191 HTMLMenuElement(const Node &other) : HTMLElement()
192 {(*this)=other;}
193
194protected:
195 HTMLMenuElement(HTMLMenuElementImpl *impl);
196public:
197
198 HTMLMenuElement & operator = (const HTMLMenuElement &other);
199 HTMLMenuElement & operator = (const Node &other);
200
201 ~HTMLMenuElement();
202
210 bool compact() const;
211
215 void setCompact( bool );
216};
217
218// --------------------------------------------------------------------------
219
226class KHTML_EXPORT HTMLOListElement : public HTMLElement
227{
228public:
229 HTMLOListElement();
230 HTMLOListElement(const HTMLOListElement &other);
231 HTMLOListElement(const Node &other) : HTMLElement()
232 {(*this)=other;}
233protected:
234 HTMLOListElement(HTMLOListElementImpl *impl);
235public:
236
237 HTMLOListElement & operator = (const HTMLOListElement &other);
238 HTMLOListElement & operator = (const Node &other);
239
240 ~HTMLOListElement();
241
249 bool compact() const;
250
254 void setCompact( bool );
255
263 long start() const;
264
268 void setStart( long );
269
277 DOMString type() const;
278
282 void setType( const DOMString & );
283};
284
285// --------------------------------------------------------------------------
286
287
294class KHTML_EXPORT HTMLUListElement : public HTMLElement
295{
296public:
297 HTMLUListElement();
298 HTMLUListElement(const HTMLUListElement &other);
299 HTMLUListElement(const Node &other) : HTMLElement()
300 {(*this)=other;}
301protected:
302 HTMLUListElement(HTMLUListElementImpl *impl);
303public:
304
305 HTMLUListElement & operator = (const HTMLUListElement &other);
306 HTMLUListElement & operator = (const Node &other);
307
308 ~HTMLUListElement();
309
317 bool compact() const;
318
322 void setCompact( bool );
323
331 DOMString type() const;
332
336 void setType( const DOMString & );
337};
338
339} //namespace
340
341#endif
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::HTMLDListElement
Definition list.
Definition: html_list.h:53
DOM::HTMLDListElement::HTMLDListElement
HTMLDListElement(const Node &other)
Definition: html_list.h:57
DOM::HTMLDirectoryElement
Directory list.
Definition: html_list.h:93
DOM::HTMLDirectoryElement::HTMLDirectoryElement
HTMLDirectoryElement(const Node &other)
Definition: html_list.h:97
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:70
DOM::HTMLLIElement
List item.
Definition: html_list.h:132
DOM::HTMLLIElement::HTMLLIElement
HTMLLIElement(const Node &other)
Definition: html_list.h:136
DOM::HTMLMenuElement
Menu list.
Definition: html_list.h:187
DOM::HTMLMenuElement::HTMLMenuElement
HTMLMenuElement(const Node &other)
Definition: html_list.h:191
DOM::HTMLOListElement
Ordered list.
Definition: html_list.h:227
DOM::HTMLOListElement::HTMLOListElement
HTMLOListElement(const Node &other)
Definition: html_list.h:231
DOM::HTMLUListElement
Unordered list.
Definition: html_list.h:295
DOM::HTMLUListElement::HTMLUListElement
HTMLUListElement(const Node &other)
Definition: html_list.h:299
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
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