KHtml

html_object.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 // --------------------------------------------------------------------------
31 
32 #ifndef HTML_OBJECT_H
33 #define HTML_OBJECT_H
34 
35 #include <dom/html_element.h>
36 #include <dom/html_form.h>
37 
38 namespace DOM
39 {
40 
41 class HTMLAppletElementImpl;
42 
50 class KHTML_EXPORT HTMLAppletElement : public HTMLElement
51 {
52 public:
55  HTMLAppletElement(const Node &other) : HTMLElement()
56  {
57  (*this) = other;
58  }
59 protected:
60  HTMLAppletElement(HTMLAppletElementImpl *impl);
61 public:
62 
63  HTMLAppletElement &operator = (const HTMLAppletElement &other);
64  HTMLAppletElement &operator = (const Node &other);
65 
67 
76  DOMString align() const;
77 
81  void setAlign(const DOMString &);
82 
91  DOMString alt() const;
92 
96  void setAlt(const DOMString &);
97 
105  DOMString archive() const;
106 
110  void setArchive(const DOMString &);
111 
119  DOMString code() const;
120 
124  void setCode(const DOMString &);
125 
133  DOMString codeBase() const;
134 
138  void setCodeBase(const DOMString &value);
139 
147  DOMString height() const;
148 
152  void setHeight(const DOMString &);
153 
162  long getHspace() const;
163 
167  void setHspace(long);
168 
172 #ifndef KHTML_NO_DEPRECATED
173  KHTML_DEPRECATED DOMString hspace() const;
174 #endif
175 
179 #ifndef KHTML_NO_DEPRECATED
180  KHTML_DEPRECATED void setHspace(const DOMString &value);
181 #endif
182 
190  DOMString name() const;
191 
195  void setName(const DOMString &);
196 
204  DOMString object() const;
205 
209  void setObject(const DOMString &);
210 
219  long getVspace() const;
220 
224  void setVspace(long);
225 
229 #ifndef KHTML_NO_DEPRECATED
230  KHTML_DEPRECATED DOMString vspace() const;
231 #endif
232 
236 #ifndef KHTML_NO_DEPRECATED
237  KHTML_DEPRECATED void setVspace(const DOMString &);
238 #endif
239 
247  DOMString width() const;
248 
252  void setWidth(const DOMString &);
253 };
254 
255 // --------------------------------------------------------------------------
256 
257 class HTMLObjectElementImpl;
258 
268 class KHTML_EXPORT HTMLObjectElement : public HTMLElement
269 {
270 public:
272  HTMLObjectElement(const HTMLObjectElement &other);
273  HTMLObjectElement(const Node &other) : HTMLElement()
274  {
275  (*this) = other;
276  }
277 protected:
278  HTMLObjectElement(HTMLObjectElementImpl *impl);
279 public:
280 
281  HTMLObjectElement &operator = (const HTMLObjectElement &other);
282  HTMLObjectElement &operator = (const Node &other);
283 
285 
292  HTMLFormElement form() const;
293 
299  DOMString code() const;
300 
304  void setCode(const DOMString &);
305 
314  DOMString align() const;
315 
319  void setAlign(const DOMString &);
320 
327  DOMString archive() const;
328 
332  void setArchive(const DOMString &);
333 
341  DOMString border() const;
342 
346  void setBorder(const DOMString &);
347 
355  DOMString codeBase() const;
356 
360  void setCodeBase(const DOMString &);
361 
369  DOMString codeType() const;
370 
374  void setCodeType(const DOMString &);
375 
382  DOMString data() const;
383 
387  void setData(const DOMString &);
388 
396  bool declare() const;
397 
401  void setDeclare(bool);
402 
409  DOMString height() const;
410 
414  void setHeight(const DOMString &);
415 
424  long getHspace() const;
425 
429  void setHspace(long);
430 
434 #ifndef KHTML_NO_DEPRECATED
435  KHTML_DEPRECATED DOMString hspace() const;
436 #endif
437 
441 #ifndef KHTML_NO_DEPRECATED
442  KHTML_DEPRECATED void setHspace(const DOMString &);
443 #endif
444 
452  DOMString name() const;
453 
457  void setName(const DOMString &);
458 
465  DOMString standby() const;
466 
470  void setStandby(const DOMString &);
471 
479  long tabIndex() const;
480 
484  void setTabIndex(long);
485 
493  DOMString type() const;
494 
498  void setType(const DOMString &);
499 
506  DOMString useMap() const;
507 
511  void setUseMap(const DOMString &);
512 
521  long getVspace() const;
522 
526  void setVspace(long);
527 
531 #ifndef KHTML_NO_DEPRECATED
532  KHTML_DEPRECATED DOMString vspace() const;
533 #endif
534 
538 #ifndef KHTML_NO_DEPRECATED
539  KHTML_DEPRECATED void setVspace(const DOMString &);
540 #endif
541 
548  DOMString width() const;
549 
553  void setWidth(const DOMString &);
554 
564  Document contentDocument() const;
565 };
566 
567 // --------------------------------------------------------------------------
568 
569 class HTMLParamElementImpl;
570 
577 class KHTML_EXPORT HTMLParamElement : public HTMLElement
578 {
579 public:
581  HTMLParamElement(const HTMLParamElement &other);
582  HTMLParamElement(const Node &other) : HTMLElement()
583  {
584  (*this) = other;
585  }
586 protected:
587  HTMLParamElement(HTMLParamElementImpl *impl);
588 public:
589 
590  HTMLParamElement &operator = (const HTMLParamElement &other);
591  HTMLParamElement &operator = (const Node &other);
592 
593  ~HTMLParamElement();
594 
601  DOMString name() const;
602 
606  void setName(const DOMString &);
607 
615  DOMString type() const;
616 
620  void setType(const DOMString &);
621 
628  DOMString value() const;
629 
633  void setValue(const DOMString &);
634 
642  DOMString valueType() const;
643 
647  void setValueType(const DOMString &);
648 };
649 
650 } // namespace
651 
652 #endif
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:278
The FORM element encompasses behavior similar to a collection and an element.
Definition: html_form.h:207
An embedded Java applet.
Definition: html_object.h:50
Parameters fed to the OBJECT element.
Definition: html_object.h:577
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
Generic embedded object.
Definition: html_object.h:268
This library provides a full-featured HTML parser and widget.
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:46:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.