KHtml

html_base.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 
30 #ifndef HTML_BASE_H
31 #define HTML_BASE_H
32 
33 #include <khtml_export.h>
34 #include <dom/html_element.h>
35 
36 namespace DOM
37 {
38 
39 class HTMLBodyElementImpl;
40 class DOMString;
41 
50 class KHTML_EXPORT HTMLBodyElement : public HTMLElement
51 {
52 public:
54  HTMLBodyElement(const HTMLBodyElement &other);
55  HTMLBodyElement(const Node &other) : HTMLElement()
56  {
57  (*this) = other;
58  }
59 protected:
60  HTMLBodyElement(HTMLBodyElementImpl *impl);
61 public:
62 
63  HTMLBodyElement &operator = (const HTMLBodyElement &other);
64  HTMLBodyElement &operator = (const Node &other);
65 
66  ~HTMLBodyElement();
67 
76  DOMString aLink() const;
77 
81  void setALink(const DOMString &);
82 
90  DOMString background() const;
91 
95  void setBackground(const DOMString &);
96 
104  DOMString bgColor() const;
105 
109  void setBgColor(const DOMString &);
110 
118  DOMString link() const;
119 
123  void setLink(const DOMString &);
124 
132  DOMString text() const;
133 
137  void setText(const DOMString &);
138 
146  DOMString vLink() const;
147 
151  void setVLink(const DOMString &);
152 };
153 
154 // --------------------------------------------------------------------------
155 
156 class HTMLFrameElementImpl;
157 class DOMString;
158 
165 class KHTML_EXPORT HTMLFrameElement : public HTMLElement
166 {
167 public:
169  HTMLFrameElement(const HTMLFrameElement &other);
170  HTMLFrameElement(const Node &other) : HTMLElement()
171  {
172  (*this) = other;
173  }
174 protected:
175  HTMLFrameElement(HTMLFrameElementImpl *impl);
176 public:
177 
178  HTMLFrameElement &operator = (const HTMLFrameElement &other);
179  HTMLFrameElement &operator = (const Node &other);
180 
181  ~HTMLFrameElement();
182 
189  DOMString frameBorder() const;
190 
194  void setFrameBorder(const DOMString &);
195 
203  DOMString longDesc() const;
204 
208  void setLongDesc(const DOMString &);
209 
216  DOMString marginHeight() const;
217 
221  void setMarginHeight(const DOMString &);
222 
229  DOMString marginWidth() const;
230 
234  void setMarginWidth(const DOMString &);
235 
243  DOMString name() const;
244 
248  void setName(const DOMString &);
249 
256  bool noResize() const;
257 
261  void setNoResize(bool);
262 
270  DOMString scrolling() const;
271 
275  void setScrolling(const DOMString &);
276 
283  DOMString src() const;
284 
288  void setSrc(const DOMString &);
289 
299  Document contentDocument() const;
300 };
301 
302 // --------------------------------------------------------------------------
303 
304 class HTMLFrameSetElementImpl;
305 class DOMString;
306 
313 class KHTML_EXPORT HTMLFrameSetElement : public HTMLElement
314 {
315 public:
318  HTMLFrameSetElement(const Node &other) : HTMLElement()
319  {
320  (*this) = other;
321  }
322 protected:
323  HTMLFrameSetElement(HTMLFrameSetElementImpl *impl);
324 public:
325 
326  HTMLFrameSetElement &operator = (const HTMLFrameSetElement &other);
327  HTMLFrameSetElement &operator = (const Node &other);
328 
330 
337  DOMString cols() const;
338 
342  void setCols(const DOMString &);
343 
350  DOMString rows() const;
351 
355  void setRows(const DOMString &);
356 };
357 
358 // --------------------------------------------------------------------------
359 
360 class HTMLIFrameElementImpl;
361 
368 class KHTML_EXPORT HTMLIFrameElement : public HTMLElement
369 {
370 public:
372  HTMLIFrameElement(const HTMLIFrameElement &other);
373  HTMLIFrameElement(const Node &other) : HTMLElement()
374  {
375  (*this) = other;
376  }
377 protected:
378  HTMLIFrameElement(HTMLIFrameElementImpl *impl);
379 public:
380 
381  HTMLIFrameElement &operator = (const HTMLIFrameElement &other);
382  HTMLIFrameElement &operator = (const Node &other);
383 
385 
394  DOMString align() const;
395 
399  void setAlign(const DOMString &);
400 
407  DOMString frameBorder() const;
408 
412  void setFrameBorder(const DOMString &);
413 
420  DOMString height() const;
421 
425  void setHeight(const DOMString &);
426 
434  DOMString longDesc() const;
435 
439  void setLongDesc(const DOMString &);
440 
447  DOMString marginHeight() const;
448 
452  void setMarginHeight(const DOMString &);
453 
460  DOMString marginWidth() const;
461 
465  void setMarginWidth(const DOMString &);
466 
474  DOMString name() const;
475 
479  void setName(const DOMString &);
480 
488  DOMString scrolling() const;
489 
493  void setScrolling(const DOMString &);
494 
501  DOMString src() const;
502 
506  void setSrc(const DOMString &);
507 
514  DOMString width() const;
515 
519  void setWidth(const DOMString &);
520 
530  Document contentDocument() const;
531 };
532 
533 // --------------------------------------------------------------------------
534 
535 class HTMLHeadElementImpl;
536 class DOMString;
537 
544 class KHTML_EXPORT HTMLHeadElement : public HTMLElement
545 {
546 public:
547  HTMLHeadElement();
548  HTMLHeadElement(const HTMLHeadElement &other);
549  HTMLHeadElement(const Node &other) : HTMLElement()
550  {
551  (*this) = other;
552  }
553 protected:
554  HTMLHeadElement(HTMLHeadElementImpl *impl);
555 public:
556 
557  HTMLHeadElement &operator = (const HTMLHeadElement &other);
558  HTMLHeadElement &operator = (const Node &other);
559 
560  ~HTMLHeadElement();
561 
568  DOMString profile() const;
569 
573  void setProfile(const DOMString &);
574 };
575 
576 // --------------------------------------------------------------------------
577 
578 class HTMLHtmlElementImpl;
579 class DOMString;
580 
587 class KHTML_EXPORT HTMLHtmlElement : public HTMLElement
588 {
589 public:
590  HTMLHtmlElement();
591  HTMLHtmlElement(const HTMLHtmlElement &other);
592  HTMLHtmlElement(const Node &other) : HTMLElement()
593  {
594  (*this) = other;
595  }
596 protected:
597  HTMLHtmlElement(HTMLHtmlElementImpl *impl);
598 public:
599 
600  HTMLHtmlElement &operator = (const HTMLHtmlElement &other);
601  HTMLHtmlElement &operator = (const Node &other);
602 
603  ~HTMLHtmlElement();
604 
612  DOMString version() const;
613 
617  void setVersion(const DOMString &);
618 };
619 
620 } //namespace
621 
622 #endif
The HTML document body.
Definition: html_base.h:50
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:278
Create a frame.
Definition: html_base.h:165
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
This library provides a full-featured HTML parser and widget.
Create a grid of frames.
Definition: html_base.h:313
Inline subwindows.
Definition: html_base.h:368
Root of an HTML document.
Definition: html_base.h:587
Document head information.
Definition: html_base.h:544
All HTML element interfaces derive from this class.
Definition: html_element.h:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Sep 19 2020 22:45:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.