/***************************************************************************
                            HTMLImageElement.m -  description
                             -------------------
    begin                : Fri Mar  8 13:55:08 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar  8 13:55:08 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <kdec/kde_HTMLImageElement.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/HTMLImageElement.h>

@implementation  HTMLImageElement


- init
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_HTMLImageElement()];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- copyWithZone: (NSZone *) zone
{
	HTMLImageElement * aCopy;
	aCopy = [[(HTMLImageElement *)[[self class] allocWithZone: zone] setQt: kde_new_HTMLImageElement1([self qt])] init];
	[aCopy setAllocatedInObjcWorld: YES];
	[QtSupport setObject: aCopy forQtKey: [aCopy qt]];
	return aCopy;
}

- initWithDOMNode: (DOMNode*)other
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_HTMLImageElement2((kde_DOMNode*) [other qt])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- (void) dealloc
{
	if ([self qt] != 0L) {
		if ([self allocatedInObjcWorld]) {
			kde_del_HTMLImageElement((kde_HTMLImageElement *)[self qt]);
		}
		[QtSupport removeQtKey: [self qt]];
		[self setQt: 0L];
	}
	[super dealloc];
}

- (NSString *) name
{
static kde_DOMString * _domstring = 0L;
	_domstring = kde_HTMLImageElement_name((kde_HTMLImageElement *)[self qt]);
	return [NSString fromDOMString: _domstring];
}

- setName: (NSString *)arg1
{
static kde_DOMString * _domstring_arg1 = 0L;
	kde_HTMLImageElement_setName((kde_HTMLImageElement *)[self qt], (kde_DOMString*) [arg1 toDOMString: &_domstring_arg1]);
	return self;
}

- (NSString *) align
{
static kde_DOMString * _domstring = 0L;
	_domstring = kde_HTMLImageElement_align((kde_HTMLImageElement *)[self qt]);
	return [NSString fromDOMString: _domstring];
}

- setAlign: (NSString *)arg1
{
static kde_DOMString * _domstring_arg1 = 0L;
	kde_HTMLImageElement_setAlign((kde_HTMLImageElement *)[self qt], (kde_DOMString*) [arg1 toDOMString: &_domstring_arg1]);
	return self;
}

- (NSString *) alt
{
static kde_DOMString * _domstring = 0L;
	_domstring = kde_HTMLImageElement_alt((kde_HTMLImageElement *)[self qt]);
	return [NSString fromDOMString: _domstring];
}

- setAlt: (NSString *)arg1
{
static kde_DOMString * _domstring_arg1 = 0L;
	kde_HTMLImageElement_setAlt((kde_HTMLImageElement *)[self qt], (kde_DOMString*) [arg1 toDOMString: &_domstring_arg1]);
	return self;
}

- (long) border
{
	return (long) kde_HTMLImageElement_border((kde_HTMLImageElement *)[self qt]);
}

- setBorder: (long)arg1
{
	kde_HTMLImageElement_setBorder((kde_HTMLImageElement *)[self qt], (long)arg1);
	return self;
}

- (long) height
{
	return (long) kde_HTMLImageElement_height((kde_HTMLImageElement *)[self qt]);
}

- setHeight: (long)arg1
{
	kde_HTMLImageElement_setHeight((kde_HTMLImageElement *)[self qt], (long)arg1);
	return self;
}

- (long) hspace
{
	return (long) kde_HTMLImageElement_hspace((kde_HTMLImageElement *)[self qt]);
}

- setHspace: (long)arg1
{
	kde_HTMLImageElement_setHspace((kde_HTMLImageElement *)[self qt], (long)arg1);
	return self;
}

- (BOOL) isMap
{
	return (BOOL) kde_HTMLImageElement_isMap((kde_HTMLImageElement *)[self qt]);
}

- setIsMap: (BOOL)arg1
{
	kde_HTMLImageElement_setIsMap((kde_HTMLImageElement *)[self qt], (int)arg1);
	return self;
}

- (NSString *) longDesc
{
static kde_DOMString * _domstring = 0L;
	_domstring = kde_HTMLImageElement_longDesc((kde_HTMLImageElement *)[self qt]);
	return [NSString fromDOMString: _domstring];
}

- setLongDesc: (NSString *)arg1
{
static kde_DOMString * _domstring_arg1 = 0L;
	kde_HTMLImageElement_setLongDesc((kde_HTMLImageElement *)[self qt], (kde_DOMString*) [arg1 toDOMString: &_domstring_arg1]);
	return self;
}

- (NSString *) src
{
static kde_DOMString * _domstring = 0L;
	_domstring = kde_HTMLImageElement_src((kde_HTMLImageElement *)[self qt]);
	return [NSString fromDOMString: _domstring];
}

- setSrc: (NSString *)arg1
{
static kde_DOMString * _domstring_arg1 = 0L;
	kde_HTMLImageElement_setSrc((kde_HTMLImageElement *)[self qt], (kde_DOMString*) [arg1 toDOMString: &_domstring_arg1]);
	return self;
}

- (NSString *) useMap
{
static kde_DOMString * _domstring = 0L;
	_domstring = kde_HTMLImageElement_useMap((kde_HTMLImageElement *)[self qt]);
	return [NSString fromDOMString: _domstring];
}

- setUseMap: (NSString *)arg1
{
static kde_DOMString * _domstring_arg1 = 0L;
	kde_HTMLImageElement_setUseMap((kde_HTMLImageElement *)[self qt], (kde_DOMString*) [arg1 toDOMString: &_domstring_arg1]);
	return self;
}

- (long) vspace
{
	return (long) kde_HTMLImageElement_vspace((kde_HTMLImageElement *)[self qt]);
}

- setVspace: (long)arg1
{
	kde_HTMLImageElement_setVspace((kde_HTMLImageElement *)[self qt], (long)arg1);
	return self;
}

- (long) width
{
	return (long) kde_HTMLImageElement_width((kde_HTMLImageElement *)[self qt]);
}

- setWidth: (long)arg1
{
	kde_HTMLImageElement_setWidth((kde_HTMLImageElement *)[self qt], (long)arg1);
	return self;
}

@end
