• 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_base.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  *
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  * http://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 class HTMLBodyElementImpl;
39 class DOMString;
40 
49 class KHTML_EXPORT HTMLBodyElement : public HTMLElement
50 {
51 public:
52  HTMLBodyElement();
53  HTMLBodyElement(const HTMLBodyElement &other);
54  HTMLBodyElement(const Node &other) : HTMLElement()
55  {(*this)=other;}
56 protected:
57  HTMLBodyElement(HTMLBodyElementImpl *impl);
58 public:
59 
60  HTMLBodyElement & operator = (const HTMLBodyElement &other);
61  HTMLBodyElement & operator = (const Node &other);
62 
63  ~HTMLBodyElement();
64 
73  DOMString aLink() const;
74 
78  void setALink( const DOMString & );
79 
87  DOMString background() const;
88 
92  void setBackground( const DOMString & );
93 
101  DOMString bgColor() const;
102 
106  void setBgColor( const DOMString & );
107 
115  DOMString link() const;
116 
120  void setLink( const DOMString & );
121 
129  DOMString text() const;
130 
134  void setText( const DOMString & );
135 
143  DOMString vLink() const;
144 
148  void setVLink( const DOMString & );
149 };
150 
151 // --------------------------------------------------------------------------
152 
153 class HTMLFrameElementImpl;
154 class DOMString;
155 
162 class KHTML_EXPORT HTMLFrameElement : public HTMLElement
163 {
164 public:
165  HTMLFrameElement();
166  HTMLFrameElement(const HTMLFrameElement &other);
167  HTMLFrameElement(const Node &other) : HTMLElement()
168  {(*this)=other;}
169 protected:
170  HTMLFrameElement(HTMLFrameElementImpl *impl);
171 public:
172 
173  HTMLFrameElement & operator = (const HTMLFrameElement &other);
174  HTMLFrameElement & operator = (const Node &other);
175 
176  ~HTMLFrameElement();
177 
184  DOMString frameBorder() const;
185 
189  void setFrameBorder( const DOMString & );
190 
198  DOMString longDesc() const;
199 
203  void setLongDesc( const DOMString & );
204 
211  DOMString marginHeight() const;
212 
216  void setMarginHeight( const DOMString & );
217 
224  DOMString marginWidth() const;
225 
229  void setMarginWidth( const DOMString & );
230 
238  DOMString name() const;
239 
243  void setName( const DOMString & );
244 
251  bool noResize() const;
252 
256  void setNoResize( bool );
257 
265  DOMString scrolling() const;
266 
270  void setScrolling( const DOMString & );
271 
278  DOMString src() const;
279 
283  void setSrc( const DOMString & );
284 
294  Document contentDocument() const;
295 };
296 
297 // --------------------------------------------------------------------------
298 
299 class HTMLFrameSetElementImpl;
300 class DOMString;
301 
308 class KHTML_EXPORT HTMLFrameSetElement : public HTMLElement
309 {
310 public:
311  HTMLFrameSetElement();
312  HTMLFrameSetElement(const HTMLFrameSetElement &other);
313  HTMLFrameSetElement(const Node &other) : HTMLElement()
314  {(*this)=other;}
315 protected:
316  HTMLFrameSetElement(HTMLFrameSetElementImpl *impl);
317 public:
318 
319  HTMLFrameSetElement & operator = (const HTMLFrameSetElement &other);
320  HTMLFrameSetElement & operator = (const Node &other);
321 
322  ~HTMLFrameSetElement();
323 
330  DOMString cols() const;
331 
335  void setCols( const DOMString & );
336 
343  DOMString rows() const;
344 
348  void setRows( const DOMString & );
349 };
350 
351 // --------------------------------------------------------------------------
352 
353 class HTMLIFrameElementImpl;
354 
361 class KHTML_EXPORT HTMLIFrameElement : public HTMLElement
362 {
363 public:
364  HTMLIFrameElement();
365  HTMLIFrameElement(const HTMLIFrameElement &other);
366  HTMLIFrameElement(const Node &other) : HTMLElement()
367  {(*this)=other;}
368 protected:
369  HTMLIFrameElement(HTMLIFrameElementImpl *impl);
370 public:
371 
372  HTMLIFrameElement & operator = (const HTMLIFrameElement &other);
373  HTMLIFrameElement & operator = (const Node &other);
374 
375  ~HTMLIFrameElement();
376 
385  DOMString align() const;
386 
390  void setAlign( const DOMString & );
391 
398  DOMString frameBorder() const;
399 
403  void setFrameBorder( const DOMString & );
404 
411  DOMString height() const;
412 
416  void setHeight( const DOMString & );
417 
425  DOMString longDesc() const;
426 
430  void setLongDesc( const DOMString & );
431 
438  DOMString marginHeight() const;
439 
443  void setMarginHeight( const DOMString & );
444 
451  DOMString marginWidth() const;
452 
456  void setMarginWidth( const DOMString & );
457 
465  DOMString name() const;
466 
470  void setName( const DOMString & );
471 
479  DOMString scrolling() const;
480 
484  void setScrolling( const DOMString & );
485 
492  DOMString src() const;
493 
497  void setSrc( const DOMString & );
498 
505  DOMString width() const;
506 
510  void setWidth( const DOMString & );
511 
521  Document contentDocument() const;
522 };
523 
524 // --------------------------------------------------------------------------
525 
526 class HTMLHeadElementImpl;
527 class DOMString;
528 
535 class KHTML_EXPORT HTMLHeadElement : public HTMLElement
536 {
537 public:
538  HTMLHeadElement();
539  HTMLHeadElement(const HTMLHeadElement &other);
540  HTMLHeadElement(const Node &other) : HTMLElement()
541  {(*this)=other;}
542 protected:
543  HTMLHeadElement(HTMLHeadElementImpl *impl);
544 public:
545 
546  HTMLHeadElement & operator = (const HTMLHeadElement &other);
547  HTMLHeadElement & operator = (const Node &other);
548 
549  ~HTMLHeadElement();
550 
557  DOMString profile() const;
558 
562  void setProfile( const DOMString & );
563 };
564 
565 // --------------------------------------------------------------------------
566 
567 class HTMLHtmlElementImpl;
568 class DOMString;
569 
576 class KHTML_EXPORT HTMLHtmlElement : public HTMLElement
577 {
578 public:
579  HTMLHtmlElement();
580  HTMLHtmlElement(const HTMLHtmlElement &other);
581  HTMLHtmlElement(const Node &other) : HTMLElement()
582  {(*this)=other;}
583 protected:
584  HTMLHtmlElement(HTMLHtmlElementImpl *impl);
585 public:
586 
587  HTMLHtmlElement & operator = (const HTMLHtmlElement &other);
588  HTMLHtmlElement & operator = (const Node &other);
589 
590  ~HTMLHtmlElement();
591 
599  DOMString version() const;
600 
604  void setVersion( const DOMString & );
605 };
606 
607 } //namespace
608 
609 #endif
DOM::HTMLBodyElement
The HTML document body.
Definition: html_base.h:49
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:270
DOM::HTMLHtmlElement::HTMLHtmlElement
HTMLHtmlElement(const Node &other)
Definition: html_base.h:581
DOM::HTMLIFrameElement::HTMLIFrameElement
HTMLIFrameElement(const Node &other)
Definition: html_base.h:366
name
const char * name(StandardAction id)
DOM::HTMLBodyElement::HTMLBodyElement
HTMLBodyElement(const Node &other)
Definition: html_base.h:54
html_element.h
DOM::HTMLFrameElement
Create a frame.
Definition: html_base.h:162
DOM::HTMLFrameElement::HTMLFrameElement
HTMLFrameElement(const Node &other)
Definition: html_base.h:167
DOM::HTMLFrameSetElement::HTMLFrameSetElement
HTMLFrameSetElement(const Node &other)
Definition: html_base.h:313
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::Document
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:245
link
CopyJob * link(const KUrl &src, const KUrl &destDir, JobFlags flags=DefaultFlags)
khtml_export.h
version
unsigned int version()
DOM::HTMLFrameSetElement
Create a grid of frames.
Definition: html_base.h:308
DOM::HTMLIFrameElement
Inline subwindows.
Definition: html_base.h:361
DOM::HTMLHeadElement::HTMLHeadElement
HTMLHeadElement(const Node &other)
Definition: html_base.h:540
DOM::HTMLHtmlElement
Root of an HTML document.
Definition: html_base.h:576
DOM::HTMLHeadElement
Document head information.
Definition: html_base.h:535
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69
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