• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
  • dom
html_head.h
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * (C) 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 TDEHTML_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 TDEHTML_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 TDEHTML_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 TDEHTML_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 TDEHTML_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 TDEHTML_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::setHref
void setHref(const DOMString &)
see href
Definition html_head.cpp:66
DOM::HTMLBaseElement::href
DOMString href() const
The base URI See the href attribute definition in HTML 4.0.
Definition html_head.cpp:59
DOM::HTMLBaseElement::target
DOMString target() const
The default target frame.
Definition html_head.cpp:71
DOM::HTMLBaseElement::setTarget
void setTarget(const DOMString &)
see target
Definition html_head.cpp:77
DOM::HTMLLinkElement::setHref
void setHref(const DOMString &)
see href
Definition html_head.cpp:142
DOM::HTMLLinkElement::sheet
StyleSheet sheet() const
Introduced in DOM Level 2 This method is from the LinkStyle interface.
Definition html_head.cpp:213
DOM::HTMLLinkElement::disabled
bool disabled() const
Enables/disables the link.
Definition html_head.cpp:112
DOM::HTMLLinkElement::charset
DOMString charset() const
The character encoding of the resource being linked to.
Definition html_head.cpp:124
DOM::HTMLLinkElement::setTarget
void setTarget(const DOMString &)
see target
Definition html_head.cpp:197
DOM::HTMLLinkElement::setType
void setType(const DOMString &)
see type
Definition html_head.cpp:208
DOM::HTMLLinkElement::setRel
void setRel(const DOMString &)
see rel
Definition html_head.cpp:175
DOM::HTMLLinkElement::type
DOMString type() const
Advisory content type.
Definition html_head.cpp:202
DOM::HTMLLinkElement::hreflang
DOMString hreflang() const
Language code of the linked resource.
Definition html_head.cpp:147
DOM::HTMLLinkElement::media
DOMString media() const
Designed for use with one or more target media.
Definition html_head.cpp:158
DOM::HTMLLinkElement::target
DOMString target() const
Frame to render the resource in.
Definition html_head.cpp:191
DOM::HTMLLinkElement::setHreflang
void setHreflang(const DOMString &)
see hreflang
Definition html_head.cpp:153
DOM::HTMLLinkElement::setCharset
void setCharset(const DOMString &)
see charset
Definition html_head.cpp:130
DOM::HTMLLinkElement::setMedia
void setMedia(const DOMString &)
see media
Definition html_head.cpp:164
DOM::HTMLLinkElement::rev
DOMString rev() const
Reverse link type.
Definition html_head.cpp:180
DOM::HTMLLinkElement::setRev
void setRev(const DOMString &)
see rev
Definition html_head.cpp:186
DOM::HTMLLinkElement::rel
DOMString rel() const
Forward link type.
Definition html_head.cpp:169
DOM::HTMLLinkElement::setDisabled
void setDisabled(bool)
see disabled
Definition html_head.cpp:118
DOM::HTMLLinkElement::href
DOMString href() const
The URI of the linked resource.
Definition html_head.cpp:135
DOM::HTMLMetaElement::setScheme
void setScheme(const DOMString &)
see scheme
Definition html_head.cpp:288
DOM::HTMLMetaElement::name
DOMString name() const
Meta information name.
Definition html_head.cpp:271
DOM::HTMLMetaElement::httpEquiv
DOMString httpEquiv() const
HTTP response header name.
Definition html_head.cpp:260
DOM::HTMLMetaElement::setName
void setName(const DOMString &)
see name
Definition html_head.cpp:277
DOM::HTMLMetaElement::setHttpEquiv
void setHttpEquiv(const DOMString &)
see httpEquiv
Definition html_head.cpp:266
DOM::HTMLMetaElement::setContent
void setContent(const DOMString &)
see content
Definition html_head.cpp:255
DOM::HTMLMetaElement::scheme
DOMString scheme() const
Select form of content.
Definition html_head.cpp:282
DOM::HTMLMetaElement::content
DOMString content() const
Associated information.
Definition html_head.cpp:249
DOM::HTMLScriptElement::htmlFor
DOMString htmlFor() const
Reserved for future use.
Definition html_head.cpp:334
DOM::HTMLScriptElement::setDefer
void setDefer(bool)
see defer
Definition html_head.cpp:373
DOM::HTMLScriptElement::text
DOMString text() const
The script content of the element.
Definition html_head.cpp:323
DOM::HTMLScriptElement::event
DOMString event() const
Reserved for future use.
Definition html_head.cpp:345
DOM::HTMLScriptElement::setSrc
void setSrc(const DOMString &)
see src
Definition html_head.cpp:387
DOM::HTMLScriptElement::defer
bool defer() const
Indicates that the user agent can defer processing of the script.
Definition html_head.cpp:367
DOM::HTMLScriptElement::setType
void setType(const DOMString &)
see type
Definition html_head.cpp:398
DOM::HTMLScriptElement::src
DOMString src() const
URI designating an external script.
Definition html_head.cpp:380
DOM::HTMLScriptElement::type
DOMString type() const
The content type of the script language.
Definition html_head.cpp:392
DOM::HTMLScriptElement::setText
void setText(const DOMString &)
see text
Definition html_head.cpp:329
DOM::HTMLScriptElement::setEvent
void setEvent(const DOMString &)
see event
Definition html_head.cpp:351
DOM::HTMLScriptElement::setCharset
void setCharset(const DOMString &)
see charset
Definition html_head.cpp:362
DOM::HTMLScriptElement::charset
DOMString charset() const
The character encoding of the linked resource.
Definition html_head.cpp:356
DOM::HTMLScriptElement::setHtmlFor
void setHtmlFor(const DOMString &)
see htmlFor
Definition html_head.cpp:340
DOM::HTMLStyleElement::setType
void setType(const DOMString &)
see type
Definition html_head.cpp:463
DOM::HTMLStyleElement::sheet
StyleSheet sheet() const
Introduced in DOM Level 2 This method is from the LinkStyle interface.
Definition html_head.cpp:468
DOM::HTMLStyleElement::setMedia
void setMedia(const DOMString &)
see media
Definition html_head.cpp:452
DOM::HTMLStyleElement::disabled
bool disabled() const
Enables/disables the style sheet.
Definition html_head.cpp:433
DOM::HTMLStyleElement::media
DOMString media() const
Designed for use with one or more target media.
Definition html_head.cpp:446
DOM::HTMLStyleElement::setDisabled
void setDisabled(bool)
see disabled
Definition html_head.cpp:439
DOM::HTMLStyleElement::type
DOMString type() const
The style sheet language (Internet media type).
Definition html_head.cpp:457
DOM::HTMLTitleElement::setText
void setText(const DOMString &)
see text
Definition html_head.cpp:511
DOM::HTMLTitleElement::text
DOMString text() const
The specified title as a string.
Definition html_head.cpp:505
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition dom_node.h:275
DOM::StyleSheet
The StyleSheet interface is the abstract base interface for any type of style sheet.
Definition css_stylesheet.h:59
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition design.h:57

tdehtml

Skip menu "tdehtml"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.15.0
This website is maintained by Timothy Pearson.