html_object.cpp
#include "dom/dom_doc.h"
#include "dom/html_object.h"
#include "html/html_objectimpl.h"
#include "misc/htmlhashes.h"
HTMLAppletElement::HTMLAppletElement() : HTMLElement()
{
}
HTMLAppletElement::HTMLAppletElement(const HTMLAppletElement &other)
: HTMLElement(other)
{
}
HTMLAppletElement::HTMLAppletElement(HTMLAppletElementImpl *impl)
: HTMLElement(impl)
{
}
HTMLAppletElement &HTMLAppletElement::operator = (const Node &other)
{
assignOther( other, ID_APPLET );
return *this;
}
HTMLAppletElement &HTMLAppletElement::operator = (const HTMLAppletElement &other)
{
HTMLElement::operator = (other);
return *this;
}
HTMLAppletElement::~HTMLAppletElement()
{
}
DOMString HTMLAppletElement::align() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
}
void HTMLAppletElement::setAlign( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
}
DOMString HTMLAppletElement::alt() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_ALT);
}
void HTMLAppletElement::setAlt( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALT, value);
}
DOMString HTMLAppletElement::archive() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_ARCHIVE);
}
void HTMLAppletElement::setArchive( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ARCHIVE, value);
}
DOMString HTMLAppletElement::code() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_CODE);
}
void HTMLAppletElement::setCode( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODE, value);
}
DOMString HTMLAppletElement::codeBase() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_CODEBASE);
}
void HTMLAppletElement::setCodeBase( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODEBASE, value);
}
DOMString HTMLAppletElement::height() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
}
void HTMLAppletElement::setHeight( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
}
DOMString HTMLAppletElement::hspace() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE);
}
void HTMLAppletElement::setHspace( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, value);
}
long HTMLAppletElement::getHspace() const
{
if(!impl) return 0;
return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE).toInt();
}
void HTMLAppletElement::setHspace( long value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, QString::number(value));
}
DOMString HTMLAppletElement::name() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
}
void HTMLAppletElement::setName( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
}
DOMString HTMLAppletElement::object() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_OBJECT);
}
void HTMLAppletElement::setObject( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_OBJECT, value);
}
DOMString HTMLAppletElement::vspace() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE);
}
void HTMLAppletElement::setVspace( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, value);
}
long HTMLAppletElement::getVspace() const
{
if(!impl) return 0;
return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE).toInt();
}
void HTMLAppletElement::setVspace( long value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, QString::number(value));
}
DOMString HTMLAppletElement::width() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
}
void HTMLAppletElement::setWidth( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
}
// --------------------------------------------------------------------------
HTMLObjectElement::HTMLObjectElement() : HTMLElement()
{
}
HTMLObjectElement::HTMLObjectElement(const HTMLObjectElement &other) : HTMLElement(other)
{
}
HTMLObjectElement::HTMLObjectElement(HTMLObjectElementImpl *impl) : HTMLElement(impl)
{
}
HTMLObjectElement &HTMLObjectElement::operator = (const Node &other)
{
assignOther( other, ID_OBJECT );
return *this;
}
HTMLObjectElement &HTMLObjectElement::operator = (const HTMLObjectElement &other)
{
HTMLElement::operator = (other);
return *this;
}
HTMLObjectElement::~HTMLObjectElement()
{
}
HTMLFormElement HTMLObjectElement::form() const
{
if(!impl) return 0;
return ((HTMLObjectElementImpl *)impl)->form();
}
DOMString HTMLObjectElement::code() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_CODE);
}
void HTMLObjectElement::setCode( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODE, value);
}
DOMString HTMLObjectElement::align() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
}
void HTMLObjectElement::setAlign( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
}
DOMString HTMLObjectElement::archive() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_ARCHIVE);
}
void HTMLObjectElement::setArchive( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ARCHIVE, value);
}
DOMString HTMLObjectElement::border() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_BORDER);
}
void HTMLObjectElement::setBorder( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_BORDER, value);
}
DOMString HTMLObjectElement::codeBase() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_CODEBASE);
}
void HTMLObjectElement::setCodeBase( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODEBASE, value);
}
DOMString HTMLObjectElement::codeType() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_CODETYPE);
}
void HTMLObjectElement::setCodeType( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODETYPE, value);
}
DOMString HTMLObjectElement::data() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_DATA);
}
void HTMLObjectElement::setData( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_DATA, value);
}
bool HTMLObjectElement::declare() const
{
if(!impl) return 0;
return !((ElementImpl *)impl)->getAttribute(ATTR_DECLARE).isNull();
}
void HTMLObjectElement::setDeclare( bool _declare )
{
if(impl)
{
DOMString str;
if( _declare )
str = "";
((ElementImpl *)impl)->setAttribute(ATTR_DECLARE, str);
}
}
DOMString HTMLObjectElement::height() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
}
void HTMLObjectElement::setHeight( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
}
DOMString HTMLObjectElement::hspace() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE);
}
void HTMLObjectElement::setHspace( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, value);
}
long HTMLObjectElement::getHspace() const
{
if(!impl) return 0;
return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE).toInt();
}
void HTMLObjectElement::setHspace( long value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, QString::number(value));
}
DOMString HTMLObjectElement::name() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
}
void HTMLObjectElement::setName( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
}
DOMString HTMLObjectElement::standby() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_STANDBY);
}
void HTMLObjectElement::setStandby( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_STANDBY, value);
}
long HTMLObjectElement::tabIndex() const
{
if(!impl) return 0;
return ((ElementImpl *)impl)->getAttribute(ATTR_TABINDEX).toInt();
}
void HTMLObjectElement::setTabIndex( long _tabIndex )
{
if(impl) {
DOMString value(QString::number(_tabIndex));
((ElementImpl *)impl)->setAttribute(ATTR_TABINDEX,value);
}
}
DOMString HTMLObjectElement::type() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
}
void HTMLObjectElement::setType( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
}
DOMString HTMLObjectElement::useMap() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_USEMAP);
}
void HTMLObjectElement::setUseMap( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_USEMAP, value);
}
DOMString HTMLObjectElement::vspace() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE);
}
void HTMLObjectElement::setVspace( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, value);
}
long HTMLObjectElement::getVspace() const
{
if(!impl) return 0;
return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE).toInt();
}
void HTMLObjectElement::setVspace( long value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, QString::number(value));
}
DOMString HTMLObjectElement::width() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
}
void HTMLObjectElement::setWidth( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
}
Document HTMLObjectElement::contentDocument() const
{
if (impl) return static_cast<HTMLObjectElementImpl*>(impl)->contentDocument();
return Document();
}
// --------------------------------------------------------------------------
HTMLParamElement::HTMLParamElement() : HTMLElement()
{
}
HTMLParamElement::HTMLParamElement(const HTMLParamElement &other) : HTMLElement(other)
{
}
HTMLParamElement::HTMLParamElement(HTMLParamElementImpl *impl) : HTMLElement(impl)
{
}
HTMLParamElement &HTMLParamElement::operator = (const Node &other)
{
assignOther( other, ID_PARAM );
return *this;
}
HTMLParamElement &HTMLParamElement::operator = (const HTMLParamElement &other)
{
HTMLElement::operator = (other);
return *this;
}
HTMLParamElement::~HTMLParamElement()
{
}
DOMString HTMLParamElement::name() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
}
void HTMLParamElement::setName( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
}
DOMString HTMLParamElement::type() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
}
void HTMLParamElement::setType( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
}
DOMString HTMLParamElement::value() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_VALUE);
}
void HTMLParamElement::setValue( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VALUE, value);
}
DOMString HTMLParamElement::valueType() const
{
if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_VALUETYPE);
}
void HTMLParamElement::setValueType( const DOMString &value )
{
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VALUETYPE, value);
}
DOM::HTMLAppletElement::object
DOMString object() const
Serialized applet file.
Definition: html_object.cpp:157
DOM::HTMLAppletElement::archive
DOMString archive() const
Comma-separated archive list.
Definition: html_object.cpp:80
DOM::HTMLAppletElement::width
DOMString width() const
Override width.
Definition: html_object.cpp:191
DOM::HTMLObjectElement::setBorder
void setBorder(const DOMString &)
see border
Definition: html_object.cpp:277
DOM::HTMLParamElement::name
DOMString name() const
The name of a run-time parameter.
Definition: html_object.cpp:492
DOM::HTMLAppletElement::getHspace
long getHspace() const
Horizontal space, in pixels, to the left and right of this image, applet, or object.
Definition: html_object.cpp:135
DOM::HTMLObjectElement::form
HTMLFormElement form() const
Returns the FORM element containing this control.
Definition: html_object.cpp:232
DOM::HTMLAppletElement::hspace
DOMString hspace() const KDE_DEPRECATED
Definition: html_object.cpp:124
DOM::HTMLAppletElement::setCode
void setCode(const DOMString &)
see code
Definition: html_object.cpp:97
DOM::HTMLAppletElement::setHspace
void setHspace(long)
see hspace
DOM::HTMLObjectElement::setName
void setName(const DOMString &)
see name
Definition: html_object.cpp:371
DOM::HTMLObjectElement::getVspace
long getVspace() const
Vertical space, in pixels, above and below this image, applet, or object.
Definition: html_object.cpp:434
DOM::HTMLObjectElement::declare
bool declare() const
Declare (for future reference), but do not instantiate, this object.
Definition: html_object.cpp:315
DOM::HTMLObjectElement::setHspace
void setHspace(long)
see hspace
DOM::HTMLObjectElement::setArchive
void setArchive(const DOMString &)
see archive
Definition: html_object.cpp:266
DOM::HTMLParamElement::valueType
DOMString valueType() const
Information about the meaning of the value attribute value.
Definition: html_object.cpp:525
DOM::HTMLParamElement::setType
void setType(const DOMString &)
see type
Definition: html_object.cpp:509
DOM::HTMLObjectElement::setCode
void setCode(const DOMString &)
see code
Definition: html_object.cpp:244
DOM::HTMLFormElement
The FORM element encompasses behavior similar to a collection and an element.
Definition: html_form.h:206
DOM::HTMLAppletElement::setAlign
void setAlign(const DOMString &)
see align
Definition: html_object.cpp:64
DOM::HTMLParamElement::value
DOMString value() const
The value of a run-time parameter.
Definition: html_object.cpp:514
DOM::HTMLObjectElement::setVspace
void setVspace(long)
see vspace
DOM::HTMLObjectElement::setHeight
void setHeight(const DOMString &)
see height
Definition: html_object.cpp:338
DOM::HTMLObjectElement::contentDocument
Document contentDocument() const
Introduced in DOM Level 2.
Definition: html_object.cpp:456
DOM::HTMLObjectElement::border
DOMString border() const
Width of border around the object.
Definition: html_object.cpp:271
DOM::HTMLObjectElement::setDeclare
void setDeclare(bool)
see declare
Definition: html_object.cpp:321
DOM::HTMLAppletElement::code
DOMString code() const
Applet class file.
Definition: html_object.cpp:91
DOM::HTMLObjectElement::archive
DOMString archive() const
Space-separated list of archives.
Definition: html_object.cpp:260
DOM::HTMLObjectElement::codeBase
DOMString codeBase() const
Base URI for classid , data , and archive attributes.
Definition: html_object.cpp:282
DOM::HTMLParamElement::setValue
void setValue(const DOMString &)
see value
Definition: html_object.cpp:520
DOM::HTMLObjectElement::setData
void setData(const DOMString &)
see data
Definition: html_object.cpp:310
DOM::HTMLObjectElement::getHspace
long getHspace() const
Horizontal space, in pixels, to the left and right of this image, applet, or object.
Definition: html_object.cpp:354
DOM::HTMLObjectElement::setCodeType
void setCodeType(const DOMString &)
see codeType
Definition: html_object.cpp:299
DOM::HTMLAppletElement
An embedded Java applet.
Definition: html_object.h:50
DOM::HTMLObjectElement::vspace
DOMString vspace() const KDE_DEPRECATED
Definition: html_object.cpp:423
DOM::HTMLObjectElement::tabIndex
long tabIndex() const
Index that represents the element's position in the tabbing order.
Definition: html_object.cpp:387
DOM::HTMLObjectElement::align
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
Definition: html_object.cpp:249
DOM::HTMLAppletElement::setArchive
void setArchive(const DOMString &)
see archive
Definition: html_object.cpp:86
DOM::HTMLAppletElement::HTMLAppletElement
HTMLAppletElement()
This file is part of the DOM implementation for KDE.
Definition: html_object.cpp:28
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
DOM::HTMLObjectElement::name
DOMString name() const
Form control or object name when submitted with a form.
Definition: html_object.cpp:365
DOM::HTMLObjectElement::type
DOMString type() const
Content type for data downloaded via data attribute.
Definition: html_object.cpp:401
DOM::HTMLObjectElement::hspace
DOMString hspace() const KDE_DEPRECATED
Definition: html_object.cpp:343
DOM::HTMLObjectElement::setUseMap
void setUseMap(const DOMString &)
see useMap
Definition: html_object.cpp:418
DOM::HTMLObjectElement::data
DOMString data() const
A URI specifying the location of the object's data.
Definition: html_object.cpp:304
DOM::HTMLAppletElement::height
DOMString height() const
Override height.
Definition: html_object.cpp:113
DOM::HTMLParamElement::type
DOMString type() const
Content type for the value attribute when valuetype has the value "ref".
Definition: html_object.cpp:503
DOM::HTMLAppletElement::setVspace
void setVspace(long)
see vspace
DOM::HTMLParamElement::setName
void setName(const DOMString &)
see name
Definition: html_object.cpp:498
DOM::HTMLObjectElement::setWidth
void setWidth(const DOMString &)
see width
Definition: html_object.cpp:451
DOM::HTMLObjectElement::setType
void setType(const DOMString &)
see type
Definition: html_object.cpp:407
DOM::HTMLAppletElement::codeBase
DOMString codeBase() const
Optional base URI for applet.
Definition: html_object.cpp:102
DOM::HTMLAppletElement::setObject
void setObject(const DOMString &)
see object
Definition: html_object.cpp:163
DOM::HTMLAppletElement::name
DOMString name() const
The name of the applet.
Definition: html_object.cpp:146
DOM::HTMLObjectElement::code
DOMString code() const
Applet class file.
Definition: html_object.cpp:238
DOM::HTMLObjectElement::setAlign
void setAlign(const DOMString &)
see align
Definition: html_object.cpp:255
DOM::HTMLParamElement::setValueType
void setValueType(const DOMString &)
see valueType
Definition: html_object.cpp:531
DOM::Element::form
Element form() const
KHTML extension to DOM This method returns the associated form element.
Definition: dom_element.cpp:338
DOM::HTMLObjectElement::setTabIndex
void setTabIndex(long)
see tabIndex
Definition: html_object.cpp:393
DOM::HTMLAppletElement::setAlt
void setAlt(const DOMString &)
see alt
Definition: html_object.cpp:75
DOM::HTMLAppletElement::setHeight
void setHeight(const DOMString &)
see height
Definition: html_object.cpp:119
DOM::HTMLAppletElement::align
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
Definition: html_object.cpp:58
DOM::HTMLObjectElement::setStandby
void setStandby(const DOMString &)
see standby
Definition: html_object.cpp:382
DOM::HTMLAppletElement::vspace
DOMString vspace() const KDE_DEPRECATED
Definition: html_object.cpp:168
DOM::HTMLObjectElement::codeType
DOMString codeType() const
Content type for data downloaded via classid attribute.
Definition: html_object.cpp:293
DOM::HTMLAppletElement::getVspace
long getVspace() const
Vertical space, in pixels, above and below this image, applet, or object.
Definition: html_object.cpp:179
DOM::HTMLObjectElement::standby
DOMString standby() const
Message to render while loading the object.
Definition: html_object.cpp:376
DOM::HTMLObjectElement::setCodeBase
void setCodeBase(const DOMString &)
see codeBase
Definition: html_object.cpp:288
DOM::HTMLObjectElement::height
DOMString height() const
Override height.
Definition: html_object.cpp:332
DOM::HTMLObjectElement::width
DOMString width() const
Override width.
Definition: html_object.cpp:445
DOM::HTMLAppletElement::setWidth
void setWidth(const DOMString &)
see width
Definition: html_object.cpp:197
DOM::HTMLObjectElement::useMap
DOMString useMap() const
Use client-side image map.
Definition: html_object.cpp:412
DOM::HTMLAppletElement::setName
void setName(const DOMString &)
see name
Definition: html_object.cpp:152
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69
DOM::HTMLAppletElement::setCodeBase
void setCodeBase(const DOMString &value)
see codeBase
Definition: html_object.cpp:108
DOM::HTMLAppletElement::alt
DOMString alt() const
Alternate text for user agents not rendering the normal content of this element.
Definition: html_object.cpp:69

KDE Home | KDE Accessibility Home | Description of Access Keys