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

KHTML

  • sources
  • kde-4.12
  • kdelibs
  • 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 
35 namespace DOM {
36 
37 class HTMLDListElementImpl;
38 class HTMLUListElementImpl;
39 class HTMLOListElementImpl;
40 class HTMLDirectoryElementImpl;
41 class HTMLMenuElementImpl;
42 class HTMLLIElementImpl;
43 
44 class DOMString;
45 
52 class KHTML_EXPORT HTMLDListElement : public HTMLElement
53 {
54 public:
55  HTMLDListElement();
56  HTMLDListElement(const HTMLDListElement &other);
57  HTMLDListElement(const Node &other) : HTMLElement()
58  {(*this)=other;}
59 protected:
60  HTMLDListElement(HTMLDListElementImpl *impl);
61 public:
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 
92 class KHTML_EXPORT HTMLDirectoryElement : public HTMLElement
93 {
94 public:
95  HTMLDirectoryElement();
96  HTMLDirectoryElement(const HTMLDirectoryElement &other);
97  HTMLDirectoryElement(const Node &other) : HTMLElement()
98  {(*this)=other;}
99 protected:
100  HTMLDirectoryElement(HTMLDirectoryElementImpl *impl);
101 public:
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 
131 class KHTML_EXPORT HTMLLIElement : public HTMLElement
132 {
133 public:
134  HTMLLIElement();
135  HTMLLIElement(const HTMLLIElement &other);
136  HTMLLIElement(const Node &other) : HTMLElement()
137  {(*this)=other;}
138 
139 protected:
140  HTMLLIElement(HTMLLIElementImpl *impl);
141 public:
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 
186 class KHTML_EXPORT HTMLMenuElement : public HTMLElement
187 {
188 public:
189  HTMLMenuElement();
190  HTMLMenuElement(const HTMLMenuElement &other);
191  HTMLMenuElement(const Node &other) : HTMLElement()
192  {(*this)=other;}
193 
194 protected:
195  HTMLMenuElement(HTMLMenuElementImpl *impl);
196 public:
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 
226 class KHTML_EXPORT HTMLOListElement : public HTMLElement
227 {
228 public:
229  HTMLOListElement();
230  HTMLOListElement(const HTMLOListElement &other);
231  HTMLOListElement(const Node &other) : HTMLElement()
232  {(*this)=other;}
233 protected:
234  HTMLOListElement(HTMLOListElementImpl *impl);
235 public:
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 
294 class KHTML_EXPORT HTMLUListElement : public HTMLElement
295 {
296 public:
297  HTMLUListElement();
298  HTMLUListElement(const HTMLUListElement &other);
299  HTMLUListElement(const Node &other) : HTMLElement()
300  {(*this)=other;}
301 protected:
302  HTMLUListElement(HTMLUListElementImpl *impl);
303 public:
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::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:270
DOM::HTMLDirectoryElement
Directory list.
Definition: html_list.h:92
DOM::HTMLMenuElement::HTMLMenuElement
HTMLMenuElement(const Node &other)
Definition: html_list.h:191
DOM::HTMLDListElement::HTMLDListElement
HTMLDListElement(const Node &other)
Definition: html_list.h:57
DOM::HTMLLIElement
List item.
Definition: html_list.h:131
html_element.h
DOM::HTMLLIElement::HTMLLIElement
HTMLLIElement(const Node &other)
Definition: html_list.h:136
DOM::HTMLOListElement
Ordered list.
Definition: html_list.h:226
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::HTMLMenuElement
Menu list.
Definition: html_list.h:186
DOM::HTMLDListElement
Definition list.
Definition: html_list.h:52
DOM::HTMLOListElement::HTMLOListElement
HTMLOListElement(const Node &other)
Definition: html_list.h:231
DOM::HTMLDirectoryElement::HTMLDirectoryElement
HTMLDirectoryElement(const Node &other)
Definition: html_list.h:97
khtml_export.h
DOM::HTMLUListElement::HTMLUListElement
HTMLUListElement(const Node &other)
Definition: html_list.h:299
DOM::HTMLUListElement
Unordered list.
Definition: html_list.h:294
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:21 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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