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

tdehtml

  • tdehtml
  • dom
html_base.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
30#ifndef HTML_BASE_H
31#define HTML_BASE_H
32
33#include <dom/html_element.h>
34
35#include <tdelibs_export.h>
36
37namespace DOM {
38
39class HTMLBodyElementImpl;
40class DOMString;
41
50class TDEHTML_EXPORT HTMLBodyElement : public HTMLElement
51{
52public:
53 HTMLBodyElement();
54 HTMLBodyElement(const HTMLBodyElement &other);
55 HTMLBodyElement(const Node &other) : HTMLElement()
56 {(*this)=other;}
57protected:
58 HTMLBodyElement(HTMLBodyElementImpl *impl);
59public:
60
61 HTMLBodyElement & operator = (const HTMLBodyElement &other);
62 HTMLBodyElement & operator = (const Node &other);
63
64 ~HTMLBodyElement();
65
74 DOMString aLink() const;
75
79 void setALink( const DOMString & );
80
88 DOMString background() const;
89
93 void setBackground( const DOMString & );
94
102 DOMString bgColor() const;
103
107 void setBgColor( const DOMString & );
108
116 DOMString link() const;
117
121 void setLink( const DOMString & );
122
130 DOMString text() const;
131
135 void setText( const DOMString & );
136
144 DOMString vLink() const;
145
149 void setVLink( const DOMString & );
150};
151
152// --------------------------------------------------------------------------
153
154class HTMLFrameElementImpl;
155class DOMString;
156
163class TDEHTML_EXPORT HTMLFrameElement : public HTMLElement
164{
165public:
166 HTMLFrameElement();
167 HTMLFrameElement(const HTMLFrameElement &other);
168 HTMLFrameElement(const Node &other) : HTMLElement()
169 {(*this)=other;}
170protected:
171 HTMLFrameElement(HTMLFrameElementImpl *impl);
172public:
173
174 HTMLFrameElement & operator = (const HTMLFrameElement &other);
175 HTMLFrameElement & operator = (const Node &other);
176
177 ~HTMLFrameElement();
178
185 DOMString frameBorder() const;
186
190 void setFrameBorder( const DOMString & );
191
199 DOMString longDesc() const;
200
204 void setLongDesc( const DOMString & );
205
212 DOMString marginHeight() const;
213
217 void setMarginHeight( const DOMString & );
218
225 DOMString marginWidth() const;
226
230 void setMarginWidth( const DOMString & );
231
239 DOMString name() const;
240
244 void setName( const DOMString & );
245
252 bool noResize() const;
253
257 void setNoResize( bool );
258
266 DOMString scrolling() const;
267
271 void setScrolling( const DOMString & );
272
279 DOMString src() const;
280
284 void setSrc( const DOMString & );
285
295 Document contentDocument() const;
296};
297
298// --------------------------------------------------------------------------
299
300class HTMLFrameSetElementImpl;
301class DOMString;
302
309class TDEHTML_EXPORT HTMLFrameSetElement : public HTMLElement
310{
311public:
312 HTMLFrameSetElement();
313 HTMLFrameSetElement(const HTMLFrameSetElement &other);
314 HTMLFrameSetElement(const Node &other) : HTMLElement()
315 {(*this)=other;}
316protected:
317 HTMLFrameSetElement(HTMLFrameSetElementImpl *impl);
318public:
319
320 HTMLFrameSetElement & operator = (const HTMLFrameSetElement &other);
321 HTMLFrameSetElement & operator = (const Node &other);
322
323 ~HTMLFrameSetElement();
324
331 DOMString cols() const;
332
336 void setCols( const DOMString & );
337
344 DOMString rows() const;
345
349 void setRows( const DOMString & );
350};
351
352// --------------------------------------------------------------------------
353
354class HTMLIFrameElementImpl;
355
362class TDEHTML_EXPORT HTMLIFrameElement : public HTMLElement
363{
364public:
365 HTMLIFrameElement();
366 HTMLIFrameElement(const HTMLIFrameElement &other);
367 HTMLIFrameElement(const Node &other) : HTMLElement()
368 {(*this)=other;}
369protected:
370 HTMLIFrameElement(HTMLIFrameElementImpl *impl);
371public:
372
373 HTMLIFrameElement & operator = (const HTMLIFrameElement &other);
374 HTMLIFrameElement & operator = (const Node &other);
375
376 ~HTMLIFrameElement();
377
386 DOMString align() const;
387
391 void setAlign( const DOMString & );
392
399 DOMString frameBorder() const;
400
404 void setFrameBorder( const DOMString & );
405
412 DOMString height() const;
413
417 void setHeight( const DOMString & );
418
426 DOMString longDesc() const;
427
431 void setLongDesc( const DOMString & );
432
439 DOMString marginHeight() const;
440
444 void setMarginHeight( const DOMString & );
445
452 DOMString marginWidth() const;
453
457 void setMarginWidth( const DOMString & );
458
466 DOMString name() const;
467
471 void setName( const DOMString & );
472
480 DOMString scrolling() const;
481
485 void setScrolling( const DOMString & );
486
493 DOMString src() const;
494
498 void setSrc( const DOMString & );
499
506 DOMString width() const;
507
511 void setWidth( const DOMString & );
512
522 Document contentDocument() const;
523};
524
525// --------------------------------------------------------------------------
526
527class HTMLHeadElementImpl;
528class DOMString;
529
536class TDEHTML_EXPORT HTMLHeadElement : public HTMLElement
537{
538public:
539 HTMLHeadElement();
540 HTMLHeadElement(const HTMLHeadElement &other);
541 HTMLHeadElement(const Node &other) : HTMLElement()
542 {(*this)=other;}
543protected:
544 HTMLHeadElement(HTMLHeadElementImpl *impl);
545public:
546
547 HTMLHeadElement & operator = (const HTMLHeadElement &other);
548 HTMLHeadElement & operator = (const Node &other);
549
550 ~HTMLHeadElement();
551
558 DOMString profile() const;
559
563 void setProfile( const DOMString & );
564};
565
566// --------------------------------------------------------------------------
567
568class HTMLHtmlElementImpl;
569class DOMString;
570
577class TDEHTML_EXPORT HTMLHtmlElement : public HTMLElement
578{
579public:
580 HTMLHtmlElement();
581 HTMLHtmlElement(const HTMLHtmlElement &other);
582 HTMLHtmlElement(const Node &other) : HTMLElement()
583 {(*this)=other;}
584protected:
585 HTMLHtmlElement(HTMLHtmlElementImpl *impl);
586public:
587
588 HTMLHtmlElement & operator = (const HTMLHtmlElement &other);
589 HTMLHtmlElement & operator = (const Node &other);
590
591 ~HTMLHtmlElement();
592
600 DOMString version() const;
601
605 void setVersion( const DOMString & );
606};
607
608} //namespace
609
610#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::text
DOMString text() const
Document text color.
Definition html_base.cpp:101
DOM::HTMLBodyElement::setVLink
void setVLink(const DOMString &)
see vLink
Definition html_base.cpp:118
DOM::HTMLBodyElement::link
DOMString link() const
Color of links that are not active and unvisited.
Definition html_base.cpp:90
DOM::HTMLBodyElement::setBackground
void setBackground(const DOMString &)
see background
Definition html_base.cpp:74
DOM::HTMLBodyElement::setALink
void setALink(const DOMString &)
see aLink
Definition html_base.cpp:64
DOM::HTMLBodyElement::setLink
void setLink(const DOMString &)
see link
Definition html_base.cpp:96
DOM::HTMLBodyElement::background
DOMString background() const
URI of the background texture tile image.
Definition html_base.cpp:69
DOM::HTMLBodyElement::setText
void setText(const DOMString &)
see text
Definition html_base.cpp:107
DOM::HTMLBodyElement::bgColor
DOMString bgColor() const
Document background color.
Definition html_base.cpp:79
DOM::HTMLBodyElement::aLink
DOMString aLink() const
Color of active links (after mouse-button down, but before mouse-button up).
Definition html_base.cpp:59
DOM::HTMLBodyElement::setBgColor
void setBgColor(const DOMString &)
see bgColor
Definition html_base.cpp:85
DOM::HTMLBodyElement::vLink
DOMString vLink() const
Color of links that have been visited by the user.
Definition html_base.cpp:112
DOM::HTMLFrameElement::src
DOMString src() const
A URI designating the initial frame contents.
Definition html_base.cpp:236
DOM::HTMLFrameElement::noResize
bool noResize() const
When true, forbid user from resizing frame.
Definition html_base.cpp:208
DOM::HTMLFrameElement::longDesc
DOMString longDesc() const
URI designating a long description of this image or frame.
Definition html_base.cpp:164
DOM::HTMLFrameElement::setScrolling
void setScrolling(const DOMString &)
see scrolling
Definition html_base.cpp:231
DOM::HTMLFrameElement::setNoResize
void setNoResize(bool)
see noResize
Definition html_base.cpp:214
DOM::HTMLFrameElement::setSrc
void setSrc(const DOMString &)
see src
Definition html_base.cpp:242
DOM::HTMLFrameElement::scrolling
DOMString scrolling() const
Specify whether or not the frame should have scrollbars.
Definition html_base.cpp:225
DOM::HTMLFrameElement::name
DOMString name() const
The frame name (object of the target attribute).
Definition html_base.cpp:197
DOM::HTMLFrameElement::contentDocument
Document contentDocument() const
Introduced in DOM Level 2.
Definition html_base.cpp:247
DOM::HTMLFrameElement::setLongDesc
void setLongDesc(const DOMString &)
see longDesc
Definition html_base.cpp:170
DOM::HTMLFrameElement::setFrameBorder
void setFrameBorder(const DOMString &)
see frameBorder
Definition html_base.cpp:159
DOM::HTMLFrameElement::marginWidth
DOMString marginWidth() const
Frame margin width, in pixels.
Definition html_base.cpp:186
DOM::HTMLFrameElement::setName
void setName(const DOMString &)
see name
Definition html_base.cpp:203
DOM::HTMLFrameElement::setMarginWidth
void setMarginWidth(const DOMString &)
see marginWidth
Definition html_base.cpp:192
DOM::HTMLFrameElement::setMarginHeight
void setMarginHeight(const DOMString &)
see marginHeight
Definition html_base.cpp:181
DOM::HTMLFrameElement::frameBorder
DOMString frameBorder() const
Request frame borders.
Definition html_base.cpp:153
DOM::HTMLFrameElement::marginHeight
DOMString marginHeight() const
Frame margin height, in pixels.
Definition html_base.cpp:175
DOM::HTMLFrameSetElement::setRows
void setRows(const DOMString &)
see rows
Definition html_base.cpp:447
DOM::HTMLFrameSetElement::setCols
void setCols(const DOMString &)
see cols
Definition html_base.cpp:436
DOM::HTMLFrameSetElement::cols
DOMString cols() const
The number of columns of frames in the frameset.
Definition html_base.cpp:430
DOM::HTMLFrameSetElement::rows
DOMString rows() const
The number of rows of frames in the frameset.
Definition html_base.cpp:441
DOM::HTMLHeadElement::profile
DOMString profile() const
URI designating a metadata profile.
Definition html_base.cpp:482
DOM::HTMLHeadElement::setProfile
void setProfile(const DOMString &)
see profile
Definition html_base.cpp:488
DOM::HTMLHtmlElement::setVersion
void setVersion(const DOMString &)
see version
Definition html_base.cpp:529
DOM::HTMLHtmlElement::version
DOMString version() const
Version information about the document's DTD.
Definition html_base.cpp:523
DOM::HTMLIFrameElement::setWidth
void setWidth(const DOMString &)
see width
Definition html_base.cpp:389
DOM::HTMLIFrameElement::setName
void setName(const DOMString &)
see name
Definition html_base.cpp:355
DOM::HTMLIFrameElement::align
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
Definition html_base.cpp:283
DOM::HTMLIFrameElement::setLongDesc
void setLongDesc(const DOMString &)
see longDesc
Definition html_base.cpp:322
DOM::HTMLIFrameElement::src
DOMString src() const
A URI designating the initial frame contents.
Definition html_base.cpp:371
DOM::HTMLIFrameElement::setAlign
void setAlign(const DOMString &)
see align
Definition html_base.cpp:289
DOM::HTMLIFrameElement::frameBorder
DOMString frameBorder() const
Request frame borders.
Definition html_base.cpp:294
DOM::HTMLIFrameElement::setHeight
void setHeight(const DOMString &)
see height
Definition html_base.cpp:311
DOM::HTMLIFrameElement::height
DOMString height() const
Frame height.
Definition html_base.cpp:305
DOM::HTMLIFrameElement::longDesc
DOMString longDesc() const
URI designating a long description of this image or frame.
Definition html_base.cpp:316
DOM::HTMLIFrameElement::setFrameBorder
void setFrameBorder(const DOMString &)
see frameBorder
Definition html_base.cpp:300
DOM::HTMLIFrameElement::scrolling
DOMString scrolling() const
Specify whether or not the frame should have scrollbars.
Definition html_base.cpp:360
DOM::HTMLIFrameElement::contentDocument
Document contentDocument() const
Introduced in DOM Level 2.
Definition html_base.cpp:394
DOM::HTMLIFrameElement::marginWidth
DOMString marginWidth() const
Frame margin width, in pixels.
Definition html_base.cpp:338
DOM::HTMLIFrameElement::marginHeight
DOMString marginHeight() const
Frame margin height, in pixels.
Definition html_base.cpp:327
DOM::HTMLIFrameElement::setMarginWidth
void setMarginWidth(const DOMString &)
see marginWidth
Definition html_base.cpp:344
DOM::HTMLIFrameElement::name
DOMString name() const
The frame name (object of the target attribute).
Definition html_base.cpp:349
DOM::HTMLIFrameElement::setSrc
void setSrc(const DOMString &)
see src
Definition html_base.cpp:378
DOM::HTMLIFrameElement::width
DOMString width() const
Frame width.
Definition html_base.cpp:383
DOM::HTMLIFrameElement::setScrolling
void setScrolling(const DOMString &)
see scrolling
Definition html_base.cpp:366
DOM::HTMLIFrameElement::setMarginHeight
void setMarginHeight(const DOMString &)
see marginHeight
Definition html_base.cpp:333
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition dom_node.h:275
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.