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

KHTML

  • khtml
  • dom
html_head.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#ifndef HTML_HEAD_H
30#define HTML_HEAD_H
31
32#include <dom/html_element.h>
33#include <dom/css_stylesheet.h>
34
35namespace DOM {
36
37class HTMLBaseElementImpl;
38class DOMString;
39
46class KHTML_EXPORT HTMLBaseElement : public HTMLElement
47{
48public:
49 HTMLBaseElement();
50 HTMLBaseElement(const HTMLBaseElement &other);
51 HTMLBaseElement(const Node &other) : HTMLElement()
52 {(*this)=other;}
53protected:
54 HTMLBaseElement(HTMLBaseElementImpl *impl);
55public:
56
57 HTMLBaseElement & operator = (const HTMLBaseElement &other);
58 HTMLBaseElement & operator = (const Node &other);
59
60 ~HTMLBaseElement();
61
68 DOMString href() const;
69
73 void setHref( const DOMString & );
74
81 DOMString target() const;
82
86 void setTarget( const DOMString & );
87};
88
89// --------------------------------------------------------------------------
90
91class HTMLLinkElementImpl;
92
101class KHTML_EXPORT HTMLLinkElement : public HTMLElement
102{
103public:
104 HTMLLinkElement();
105 HTMLLinkElement(const HTMLLinkElement &other);
106 HTMLLinkElement(const Node &other) : HTMLElement()
107 {(*this)=other;}
108protected:
109 HTMLLinkElement(HTMLLinkElementImpl *impl);
110public:
111
112 HTMLLinkElement & operator = (const HTMLLinkElement &other);
113 HTMLLinkElement & operator = (const Node &other);
114
115 ~HTMLLinkElement();
116
123 bool disabled() const;
124
128 void setDisabled( bool );
129
137 DOMString charset() const;
138
142 void setCharset( const DOMString & );
143
150 DOMString href() const;
151
155 void setHref( const DOMString & );
156
163 DOMString hreflang() const;
164
168 void setHreflang( const DOMString & );
169
176 DOMString media() const;
177
181 void setMedia( const DOMString & );
182
189 DOMString rel() const;
190
194 void setRel( const DOMString & );
195
202 DOMString rev() const;
203
207 void setRev( const DOMString & );
208
215 DOMString target() const;
216
220 void setTarget( const DOMString & );
221
228 DOMString type() const;
229
233 void setType( const DOMString & );
234
241 StyleSheet sheet() const;
242
243};
244
245// --------------------------------------------------------------------------
246
247class HTMLMetaElementImpl;
248
256class KHTML_EXPORT HTMLMetaElement : public HTMLElement
257{
258public:
259 HTMLMetaElement();
260 HTMLMetaElement(const HTMLMetaElement &other);
261 HTMLMetaElement(const Node &other) : HTMLElement()
262 {(*this)=other;}
263protected:
264 HTMLMetaElement(HTMLMetaElementImpl *impl);
265public:
266
267 HTMLMetaElement & operator = (const HTMLMetaElement &other);
268 HTMLMetaElement & operator = (const Node &other);
269
270 ~HTMLMetaElement();
271
278 DOMString content() const;
279
283 void setContent( const DOMString & );
284
291 DOMString httpEquiv() const;
292
296 void setHttpEquiv( const DOMString & );
297
304 DOMString name() const;
305
309 void setName( const DOMString & );
310
317 DOMString scheme() const;
318
322 void setScheme( const DOMString & );
323};
324
325// --------------------------------------------------------------------------
326
327class HTMLScriptElementImpl;
328
335class KHTML_EXPORT HTMLScriptElement : public HTMLElement
336{
337public:
338 HTMLScriptElement();
339 HTMLScriptElement(const HTMLScriptElement &other);
340 HTMLScriptElement(const Node &other) : HTMLElement()
341 {(*this)=other;}
342protected:
343 HTMLScriptElement(HTMLScriptElementImpl *impl);
344public:
345
346 HTMLScriptElement & operator = (const HTMLScriptElement &other);
347 HTMLScriptElement & operator = (const Node &other);
348
349 ~HTMLScriptElement();
350
355 DOMString text() const;
356
360 void setText( const DOMString & );
361
366 DOMString htmlFor() const;
367
371 void setHtmlFor( const DOMString & );
372
377 DOMString event() const;
378
382 void setEvent( const DOMString & );
383
390 DOMString charset() const;
391
395 void setCharset( const DOMString & );
396
404 bool defer() const;
405
409 void setDefer( bool );
410
417 DOMString src() const;
418
422 void setSrc( const DOMString & );
423
430 DOMString type() const;
431
435 void setType( const DOMString & );
436};
437
438// --------------------------------------------------------------------------
439
440class HTMLStyleElementImpl;
441
449class KHTML_EXPORT HTMLStyleElement : public HTMLElement
450{
451public:
452 HTMLStyleElement();
453 HTMLStyleElement(const HTMLStyleElement &other);
454 HTMLStyleElement(const Node &other) : HTMLElement()
455 {(*this)=other;}
456protected:
457 HTMLStyleElement(HTMLStyleElementImpl *impl);
458public:
459
460 HTMLStyleElement & operator = (const HTMLStyleElement &other);
461 HTMLStyleElement & operator = (const Node &other);
462
463 ~HTMLStyleElement();
464
469 bool disabled() const;
470
474 void setDisabled( bool );
475
482 DOMString media() const;
483
487 void setMedia( const DOMString & );
488
495 DOMString type() const;
496
500 void setType( const DOMString & );
501
508 StyleSheet sheet() const;
509
510};
511
512// --------------------------------------------------------------------------
513
514class HTMLTitleElementImpl;
515
522class KHTML_EXPORT HTMLTitleElement : public HTMLElement
523{
524public:
525 HTMLTitleElement();
526 HTMLTitleElement(const HTMLTitleElement &other);
527 HTMLTitleElement(const Node &other) : HTMLElement()
528 {(*this)=other;}
529protected:
530 HTMLTitleElement(HTMLTitleElementImpl *impl);
531public:
532
533 HTMLTitleElement & operator = (const HTMLTitleElement &other);
534 HTMLTitleElement & operator = (const Node &other);
535
536 ~HTMLTitleElement();
537
542 DOMString text() const;
543
547 void setText( const DOMString & );
548};
549
550} //namespace
551
552#endif
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::HTMLBaseElement
Document base URI.
Definition: html_head.h:47
DOM::HTMLBaseElement::HTMLBaseElement
HTMLBaseElement(const Node &other)
Definition: html_head.h:51
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:70
DOM::HTMLLinkElement
The LINK element specifies a link to an external resource, and defines this document's relationship t...
Definition: html_head.h:102
DOM::HTMLLinkElement::HTMLLinkElement
HTMLLinkElement(const Node &other)
Definition: html_head.h:106
DOM::HTMLMetaElement
This contains generic meta-information about the document.
Definition: html_head.h:257
DOM::HTMLMetaElement::HTMLMetaElement
HTMLMetaElement(const Node &other)
Definition: html_head.h:261
DOM::HTMLScriptElement
Script statements.
Definition: html_head.h:336
DOM::HTMLScriptElement::HTMLScriptElement
HTMLScriptElement(const Node &other)
Definition: html_head.h:340
DOM::HTMLStyleElement
Style information.
Definition: html_head.h:450
DOM::HTMLStyleElement::HTMLStyleElement
HTMLStyleElement(const Node &other)
Definition: html_head.h:454
DOM::HTMLTitleElement
The document title.
Definition: html_head.h:523
DOM::HTMLTitleElement::HTMLTitleElement
HTMLTitleElement(const Node &other)
Definition: html_head.h:527
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:271
DOM::StyleSheet
The StyleSheet interface is the abstract base interface for any type of style sheet.
Definition: css_stylesheet.h:59
css_stylesheet.h
html_element.h
DOM
This library provides a full-featured HTML parser and widget.
Definition: design.h:55
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