KHtml

html_inline.h
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright 1999 Lars Knoll ([email protected])
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  * https://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_INLINE_H
30 #define HTML_INLINE_H
31 
32 #include <khtml_export.h>
33 #include <dom/html_element.h>
34 
35 namespace DOM
36 {
37 class HTMLGenericElementImpl;
38 class HTMLAnchorElementImpl;
39 class DOMString;
40 
47 class KHTML_EXPORT HTMLAnchorElement : public HTMLElement
48 {
49 public:
52  HTMLAnchorElement(const Node &other) : HTMLElement()
53  {
54  (*this) = other;
55  }
56 protected:
57  HTMLAnchorElement(HTMLAnchorElementImpl *impl);
58 public:
59 
60  HTMLAnchorElement &operator = (const HTMLAnchorElement &other);
61  HTMLAnchorElement &operator = (const Node &other);
62 
64 
72  DOMString accessKey() const;
73 
77  void setAccessKey(const DOMString &);
78 
85  DOMString charset() const;
86 
90  void setCharset(const DOMString &);
91 
100  DOMString coords() const;
101 
105  void setCoords(const DOMString &);
106 
113  DOMString href() const;
114 
118  void setHref(const DOMString &);
119 
126  DOMString hreflang() const;
127 
131  void setHreflang(const DOMString &);
132 
139  DOMString name() const;
140 
144  void setName(const DOMString &);
145 
152  DOMString rel() const;
153 
157  void setRel(const DOMString &);
158 
165  DOMString rev() const;
166 
170  void setRev(const DOMString &);
171 
179  DOMString shape() const;
180 
184  void setShape(const DOMString &);
185 
193  long tabIndex() const;
194 
198  void setTabIndex(long);
199 
206  DOMString target() const;
207 
211  void setTarget(const DOMString &);
212 
219  DOMString type() const;
220 
224  void setType(const DOMString &);
225 
232  void blur();
233 
240  void focus();
241 };
242 
243 // --------------------------------------------------------------------------
244 
245 class HTMLBRElementImpl;
246 
253 class KHTML_EXPORT HTMLBRElement : public HTMLElement
254 {
255 public:
256  HTMLBRElement();
257  HTMLBRElement(const HTMLBRElement &other);
258  HTMLBRElement(const Node &other) : HTMLElement()
259  {
260  (*this) = other;
261  }
262 protected:
263  HTMLBRElement(HTMLBRElementImpl *impl);
264 public:
265 
266  HTMLBRElement &operator = (const HTMLBRElement &other);
267  HTMLBRElement &operator = (const Node &other);
268 
269  ~HTMLBRElement();
270 
278  DOMString clear() const;
279 
283  void setClear(const DOMString &);
284 };
285 
286 // --------------------------------------------------------------------------
287 
288 class HTMLFontElementImpl;
289 class DOMString;
290 
298 class KHTML_EXPORT HTMLFontElement : public HTMLElement
299 {
300 public:
301  HTMLFontElement();
302  HTMLFontElement(const HTMLFontElement &other);
303  HTMLFontElement(const Node &other) : HTMLElement()
304  {
305  (*this) = other;
306  }
307 protected:
308  HTMLFontElement(HTMLFontElementImpl *impl);
309 public:
310 
311  HTMLFontElement &operator = (const HTMLFontElement &other);
312  HTMLFontElement &operator = (const Node &other);
313 
314  ~HTMLFontElement();
315 
323  DOMString color() const;
324 
328  void setColor(const DOMString &);
329 
337  DOMString face() const;
338 
342  void setFace(const DOMString &);
343 
351  DOMString size() const;
352 
356  void setSize(const DOMString &);
357 };
358 
359 class DOMString;
360 
369 class KHTML_EXPORT HTMLModElement : public HTMLElement
370 {
371 public:
372  HTMLModElement();
373  HTMLModElement(const HTMLModElement &other);
374  HTMLModElement(const Node &other) : HTMLElement()
375  {
376  (*this) = other;
377  }
378 protected:
379  HTMLModElement(HTMLElementImpl *impl);
380 public:
381 
382  HTMLModElement &operator = (const HTMLModElement &other);
383  HTMLModElement &operator = (const Node &other);
384 
385  ~HTMLModElement();
386 
393  DOMString cite() const;
394 
398  void setCite(const DOMString &);
399 
406  DOMString dateTime() const;
407 
411  void setDateTime(const DOMString &);
412 };
413 
414 // --------------------------------------------------------------------------
415 
427 class KHTML_EXPORT HTMLQuoteElement : public HTMLElement
428 {
429 public:
431  HTMLQuoteElement(const HTMLQuoteElement &other);
432  HTMLQuoteElement(const Node &other) : HTMLElement()
433  {
434  (*this) = other;
435  }
436 protected:
437  HTMLQuoteElement(HTMLGenericElementImpl *impl);
438 public:
439 
440  HTMLQuoteElement &operator = (const HTMLQuoteElement &other);
441  HTMLQuoteElement &operator = (const Node &other);
442 
443  ~HTMLQuoteElement();
444 
452  DOMString cite() const;
453 
457  void setCite(const DOMString &);
458 };
459 
460 } //namespace
461 
462 #endif
Notice of modification to part of a document.
Definition: html_inline.h:369
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:278
For the Q and BLOCKQUOTE elements.
Definition: html_inline.h:427
The anchor element.
Definition: html_inline.h:47
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
This library provides a full-featured HTML parser and widget.
Local change to font.
Definition: html_inline.h:298
All HTML element interfaces derive from this class.
Definition: html_element.h:70
Force a line break.
Definition: html_inline.h:253
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Sep 21 2020 22:46:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.