• 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_block.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  * Copyright 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public License
18  * along with this library; see the file COPYING.LIB. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  * This file includes excerpts from the Document Object Model (DOM)
23  * Level 1 Specification (Recommendation)
24  * http://www.w3.org/TR/REC-DOM-Level-1/
25  * Copyright © World Wide Web Consortium , (Massachusetts Institute of
26  * Technology , Institut National de Recherche en Informatique et en
27  * Automatique , Keio University ). All Rights Reserved.
28  *
29  */
30 // --------------------------------------------------------------------------
31 
32 #ifndef HTML_BLOCK_H
33 #define HTML_BLOCK_H
34 
35 #include <khtml_export.h>
36 #include <dom/html_element.h>
37 
38 namespace DOM {
39 
40 class HTMLElementImpl;
41 class DOMString;
42 
49 class KHTML_EXPORT HTMLBlockquoteElement : public HTMLElement
50 {
51 public:
52  HTMLBlockquoteElement();
53  HTMLBlockquoteElement(const HTMLBlockquoteElement &other);
54  HTMLBlockquoteElement(const Node &other) : HTMLElement()
55  {(*this)=other;}
56 protected:
57  HTMLBlockquoteElement(HTMLElementImpl *impl);
58 public:
59 
60  HTMLBlockquoteElement & operator = (const HTMLBlockquoteElement &other);
61  HTMLBlockquoteElement & operator = (const Node &other);
62 
63  ~HTMLBlockquoteElement();
64 
71  DOMString cite() const;
72 
76  void setCite( const DOMString & );
77 };
78 
79 // --------------------------------------------------------------------------
80 
81 class HTMLDivElementImpl;
82 class DOMString;
83 
90 class KHTML_EXPORT HTMLDivElement : public HTMLElement
91 {
92 public:
93  HTMLDivElement();
94  HTMLDivElement(const HTMLDivElement &other);
95  HTMLDivElement(const Node &other) : HTMLElement()
96  {(*this)=other;}
97 protected:
98  HTMLDivElement(HTMLDivElementImpl *impl);
99 public:
100 
101  HTMLDivElement & operator = (const HTMLDivElement &other);
102  HTMLDivElement & operator = (const Node &other);
103 
104  ~HTMLDivElement();
105 
113  DOMString align() const;
114 
118  void setAlign( const DOMString & );
119 };
120 
121 // --------------------------------------------------------------------------
122 
123 class HTMLHRElementImpl;
124 class DOMString;
125 
132 class KHTML_EXPORT HTMLHRElement : public HTMLElement
133 {
134 public:
135  HTMLHRElement();
136  HTMLHRElement(const HTMLHRElement &other);
137  HTMLHRElement(const Node &other) : HTMLElement()
138  {(*this)=other;}
139 protected:
140  HTMLHRElement(HTMLHRElementImpl *impl);
141 public:
142 
143  HTMLHRElement & operator = (const HTMLHRElement &other);
144  HTMLHRElement & operator = (const Node &other);
145 
146  ~HTMLHRElement();
147 
155  DOMString align() const;
156 
160  void setAlign( const DOMString & );
161 
170  bool noShade() const;
171 
175  void setNoShade( bool );
176 
184  DOMString size() const;
185 
189  void setSize( const DOMString & );
190 
198  DOMString width() const;
199 
203  void setWidth( const DOMString & );
204 };
205 
206 // --------------------------------------------------------------------------
207 
208 class DOMString;
209 
216 class KHTML_EXPORT HTMLHeadingElement : public HTMLElement
217 {
218 public:
219  HTMLHeadingElement();
220  HTMLHeadingElement(const HTMLHeadingElement &other);
221  HTMLHeadingElement(const Node &other) : HTMLElement()
222  {(*this)=other;}
223 protected:
224  HTMLHeadingElement(HTMLElementImpl *impl);
225 public:
226 
227  HTMLHeadingElement & operator = (const HTMLHeadingElement &other);
228  HTMLHeadingElement & operator = (const Node &other);
229 
230  ~HTMLHeadingElement();
231 
239  DOMString align() const;
240 
244  void setAlign( const DOMString & );
245 };
246 
247 // --------------------------------------------------------------------------
248 
249 class DOMString;
250 
257 class KHTML_EXPORT HTMLParagraphElement : public HTMLElement
258 {
259 public:
260  HTMLParagraphElement();
261  HTMLParagraphElement(const HTMLParagraphElement &other);
262  HTMLParagraphElement(const Node &other) : HTMLElement()
263  {(*this)=other;}
264 protected:
265  HTMLParagraphElement(HTMLElementImpl *impl);
266 public:
267 
268  HTMLParagraphElement & operator = (const HTMLParagraphElement &other);
269  HTMLParagraphElement & operator = (const Node &other);
270 
271  ~HTMLParagraphElement();
272 
280  DOMString align() const;
281 
285  void setAlign( const DOMString & );
286 };
287 
288 // --------------------------------------------------------------------------
289 
290 class HTMLPreElementImpl;
291 
298 class KHTML_EXPORT HTMLPreElement : public HTMLElement
299 {
300 public:
301  HTMLPreElement();
302  HTMLPreElement(const HTMLPreElement &other);
303  HTMLPreElement(const Node &other) : HTMLElement()
304  {(*this)=other;}
305 protected:
306  HTMLPreElement(HTMLPreElementImpl *impl);
307 public:
308 
309  HTMLPreElement & operator = (const HTMLPreElement &other);
310  HTMLPreElement & operator = (const Node &other);
311 
312  ~HTMLPreElement();
313 
321  long width() const;
322 
326  void setWidth( long );
327 };
328 
329 class HTMLLayerElementImpl;
330 
336 class KHTML_EXPORT HTMLLayerElement : public HTMLElement
337 {
338 public:
339  HTMLLayerElement();
340  HTMLLayerElement(const HTMLLayerElement &other);
341  HTMLLayerElement(const Node &other) : HTMLElement()
342  {(*this)=other;}
343 protected:
344  HTMLLayerElement(HTMLLayerElementImpl *impl);
345 public:
346 
347  HTMLLayerElement & operator = (const HTMLLayerElement &other);
348  HTMLLayerElement & operator = (const Node &other);
349 
350  ~HTMLLayerElement();
351 
356  long top() const;
357 
361  void setTop( long );
362 
367  long left() const;
368 
372  void setLeft( long );
373 
378  DOMString visibility() const;
379 
383  void setVisibility( const DOMString & );
384 
389  DOMString bgColor() const;
390 
394  void setBgColor( const DOMString & );
395 
400  HTMLCollection layers() const;
401 };
402 
403 } //namespace
404 
405 #endif
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:270
DOM::HTMLLayerElement
Layer container for Netscape 4.x compatibility.
Definition: html_block.h:336
DOM::HTMLHRElement::HTMLHRElement
HTMLHRElement(const Node &other)
Definition: html_block.h:137
DOM::HTMLLayerElement::HTMLLayerElement
HTMLLayerElement(const Node &other)
Definition: html_block.h:341
html_element.h
DOM::HTMLHeadingElement::HTMLHeadingElement
HTMLHeadingElement(const Node &other)
Definition: html_block.h:221
DOM::HTMLDivElement::HTMLDivElement
HTMLDivElement(const Node &other)
Definition: html_block.h:95
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:130
DOM::HTMLParagraphElement
Paragraphs.
Definition: html_block.h:257
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::HTMLHeadingElement
For the H1 to H6 elements.
Definition: html_block.h:216
DOM::HTMLPreElement::HTMLPreElement
HTMLPreElement(const Node &other)
Definition: html_block.h:303
DOM::HTMLBlockquoteElement::HTMLBlockquoteElement
HTMLBlockquoteElement(const Node &other)
Definition: html_block.h:54
DOM::HTMLBlockquoteElement
??? See the BLOCKQUOTE element definition in HTML 4.0.
Definition: html_block.h:49
DOM::HTMLPreElement
Preformatted text.
Definition: html_block.h:298
khtml_export.h
DOM::HTMLDivElement
Generic block container.
Definition: html_block.h:90
DOM::HTMLParagraphElement::HTMLParagraphElement
HTMLParagraphElement(const Node &other)
Definition: html_block.h:262
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69
DOM::HTMLHRElement
Create a horizontal rule.
Definition: html_block.h:132
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:20 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