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

KHTML

  • 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
38namespace DOM {
39
40class HTMLElementImpl;
41class DOMString;
42
49class KHTML_EXPORT HTMLBlockquoteElement : public HTMLElement
50{
51public:
52 HTMLBlockquoteElement();
53 HTMLBlockquoteElement(const HTMLBlockquoteElement &other);
54 HTMLBlockquoteElement(const Node &other) : HTMLElement()
55 {(*this)=other;}
56protected:
57 HTMLBlockquoteElement(HTMLElementImpl *impl);
58public:
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
81class HTMLDivElementImpl;
82class DOMString;
83
90class KHTML_EXPORT HTMLDivElement : public HTMLElement
91{
92public:
93 HTMLDivElement();
94 HTMLDivElement(const HTMLDivElement &other);
95 HTMLDivElement(const Node &other) : HTMLElement()
96 {(*this)=other;}
97protected:
98 HTMLDivElement(HTMLDivElementImpl *impl);
99public:
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
123class HTMLHRElementImpl;
124class DOMString;
125
132class KHTML_EXPORT HTMLHRElement : public HTMLElement
133{
134public:
135 HTMLHRElement();
136 HTMLHRElement(const HTMLHRElement &other);
137 HTMLHRElement(const Node &other) : HTMLElement()
138 {(*this)=other;}
139protected:
140 HTMLHRElement(HTMLHRElementImpl *impl);
141public:
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
208class DOMString;
209
216class KHTML_EXPORT HTMLHeadingElement : public HTMLElement
217{
218public:
219 HTMLHeadingElement();
220 HTMLHeadingElement(const HTMLHeadingElement &other);
221 HTMLHeadingElement(const Node &other) : HTMLElement()
222 {(*this)=other;}
223protected:
224 HTMLHeadingElement(HTMLElementImpl *impl);
225public:
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
249class DOMString;
250
257class KHTML_EXPORT HTMLParagraphElement : public HTMLElement
258{
259public:
260 HTMLParagraphElement();
261 HTMLParagraphElement(const HTMLParagraphElement &other);
262 HTMLParagraphElement(const Node &other) : HTMLElement()
263 {(*this)=other;}
264protected:
265 HTMLParagraphElement(HTMLElementImpl *impl);
266public:
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
290class HTMLPreElementImpl;
291
298class KHTML_EXPORT HTMLPreElement : public HTMLElement
299{
300public:
301 HTMLPreElement();
302 HTMLPreElement(const HTMLPreElement &other);
303 HTMLPreElement(const Node &other) : HTMLElement()
304 {(*this)=other;}
305protected:
306 HTMLPreElement(HTMLPreElementImpl *impl);
307public:
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
329class HTMLLayerElementImpl;
330
336class KHTML_EXPORT HTMLLayerElement : public HTMLElement
337{
338public:
339 HTMLLayerElement();
340 HTMLLayerElement(const HTMLLayerElement &other);
341 HTMLLayerElement(const Node &other) : HTMLElement()
342 {(*this)=other;}
343protected:
344 HTMLLayerElement(HTMLLayerElementImpl *impl);
345public:
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::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::HTMLBlockquoteElement
??? See the BLOCKQUOTE element definition in HTML 4.0.
Definition: html_block.h:50
DOM::HTMLBlockquoteElement::HTMLBlockquoteElement
HTMLBlockquoteElement(const Node &other)
Definition: html_block.h:54
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:131
DOM::HTMLDivElement
Generic block container.
Definition: html_block.h:91
DOM::HTMLDivElement::HTMLDivElement
HTMLDivElement(const Node &other)
Definition: html_block.h:95
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:70
DOM::HTMLHRElement
Create a horizontal rule.
Definition: html_block.h:133
DOM::HTMLHRElement::HTMLHRElement
HTMLHRElement(const Node &other)
Definition: html_block.h:137
DOM::HTMLHeadingElement
For the H1 to H6 elements.
Definition: html_block.h:217
DOM::HTMLHeadingElement::HTMLHeadingElement
HTMLHeadingElement(const Node &other)
Definition: html_block.h:221
DOM::HTMLLayerElement
Layer container for Netscape 4.x compatibility.
Definition: html_block.h:337
DOM::HTMLLayerElement::HTMLLayerElement
HTMLLayerElement(const Node &other)
Definition: html_block.h:341
DOM::HTMLParagraphElement
Paragraphs.
Definition: html_block.h:258
DOM::HTMLParagraphElement::HTMLParagraphElement
HTMLParagraphElement(const Node &other)
Definition: html_block.h:262
DOM::HTMLPreElement
Preformatted text.
Definition: html_block.h:299
DOM::HTMLPreElement::HTMLPreElement
HTMLPreElement(const Node &other)
Definition: html_block.h:303
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