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

KHTML

  • 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
36namespace DOM {
37
38class HTMLBodyElementImpl;
39class DOMString;
40
49class KHTML_EXPORT HTMLBodyElement : public HTMLElement
50{
51public:
52 HTMLBodyElement();
53 HTMLBodyElement(const HTMLBodyElement &other);
54 HTMLBodyElement(const Node &other) : HTMLElement()
55 {(*this)=other;}
56protected:
57 HTMLBodyElement(HTMLBodyElementImpl *impl);
58public:
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
153class HTMLFrameElementImpl;
154class DOMString;
155
162class KHTML_EXPORT HTMLFrameElement : public HTMLElement
163{
164public:
165 HTMLFrameElement();
166 HTMLFrameElement(const HTMLFrameElement &other);
167 HTMLFrameElement(const Node &other) : HTMLElement()
168 {(*this)=other;}
169protected:
170 HTMLFrameElement(HTMLFrameElementImpl *impl);
171public:
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
299class HTMLFrameSetElementImpl;
300class DOMString;
301
308class KHTML_EXPORT HTMLFrameSetElement : public HTMLElement
309{
310public:
311 HTMLFrameSetElement();
312 HTMLFrameSetElement(const HTMLFrameSetElement &other);
313 HTMLFrameSetElement(const Node &other) : HTMLElement()
314 {(*this)=other;}
315protected:
316 HTMLFrameSetElement(HTMLFrameSetElementImpl *impl);
317public:
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
353class HTMLIFrameElementImpl;
354
361class KHTML_EXPORT HTMLIFrameElement : public HTMLElement
362{
363public:
364 HTMLIFrameElement();
365 HTMLIFrameElement(const HTMLIFrameElement &other);
366 HTMLIFrameElement(const Node &other) : HTMLElement()
367 {(*this)=other;}
368protected:
369 HTMLIFrameElement(HTMLIFrameElementImpl *impl);
370public:
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
526class HTMLHeadElementImpl;
527class DOMString;
528
535class KHTML_EXPORT HTMLHeadElement : public HTMLElement
536{
537public:
538 HTMLHeadElement();
539 HTMLHeadElement(const HTMLHeadElement &other);
540 HTMLHeadElement(const Node &other) : HTMLElement()
541 {(*this)=other;}
542protected:
543 HTMLHeadElement(HTMLHeadElementImpl *impl);
544public:
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
567class HTMLHtmlElementImpl;
568class DOMString;
569
576class KHTML_EXPORT HTMLHtmlElement : public HTMLElement
577{
578public:
579 HTMLHtmlElement();
580 HTMLHtmlElement(const HTMLHtmlElement &other);
581 HTMLHtmlElement(const Node &other) : HTMLElement()
582 {(*this)=other;}
583protected:
584 HTMLHtmlElement(HTMLHtmlElementImpl *impl);
585public:
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::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::Document
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
DOM::HTMLBodyElement
The HTML document body.
Definition: html_base.h:50
DOM::HTMLBodyElement::HTMLBodyElement
HTMLBodyElement(const Node &other)
Definition: html_base.h:54
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:70
DOM::HTMLFrameElement
Create a frame.
Definition: html_base.h:163
DOM::HTMLFrameElement::HTMLFrameElement
HTMLFrameElement(const Node &other)
Definition: html_base.h:167
DOM::HTMLFrameSetElement
Create a grid of frames.
Definition: html_base.h:309
DOM::HTMLFrameSetElement::HTMLFrameSetElement
HTMLFrameSetElement(const Node &other)
Definition: html_base.h:313
DOM::HTMLHeadElement
Document head information.
Definition: html_base.h:536
DOM::HTMLHeadElement::HTMLHeadElement
HTMLHeadElement(const Node &other)
Definition: html_base.h:540
DOM::HTMLHtmlElement
Root of an HTML document.
Definition: html_base.h:577
DOM::HTMLHtmlElement::HTMLHtmlElement
HTMLHtmlElement(const Node &other)
Definition: html_base.h:581
DOM::HTMLIFrameElement
Inline subwindows.
Definition: html_base.h:362
DOM::HTMLIFrameElement::HTMLIFrameElement
HTMLIFrameElement(const Node &other)
Definition: html_base.h:366
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
link
CopyJob * link(const KUrl &src, const KUrl &destDir, JobFlags flags=DefaultFlags)
name
const char * name(StandardAction id)
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