/***************************************************************************
                            kde_CSSPrimitiveValue.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_CSSPrimitiveValue.h"
}

#include <dom/css_value.h>

class CSSPrimitiveValueBridge : public DOM::CSSPrimitiveValue
{
public:
	CSSPrimitiveValueBridge() : CSSPrimitiveValue() {}
	CSSPrimitiveValueBridge(const CSSPrimitiveValue& other) : CSSPrimitiveValue(other) {}
	CSSPrimitiveValueBridge(const CSSValue& other) : CSSPrimitiveValue(other) {}
	~CSSPrimitiveValueBridge() {}
};

kde_CSSPrimitiveValue * kde_new_CSSPrimitiveValue(){
	return (kde_CSSPrimitiveValue *) new CSSPrimitiveValueBridge();
}
kde_CSSPrimitiveValue * kde_new_CSSPrimitiveValue1(kde_CSSPrimitiveValue* other){
	return (kde_CSSPrimitiveValue *) new CSSPrimitiveValueBridge((DOM::CSSPrimitiveValue&)* (DOM::CSSPrimitiveValue*)other);
}
kde_CSSPrimitiveValue * kde_new_CSSPrimitiveValue2(kde_CSSValue* other){
	return (kde_CSSPrimitiveValue *) new CSSPrimitiveValueBridge((DOM::CSSValue&)* (DOM::CSSValue*)other);
}
void kde_del_CSSPrimitiveValue( kde_CSSPrimitiveValue* p ){
	delete (CSSPrimitiveValueBridge*) p;
}
unsigned short kde_CSSPrimitiveValue_primitiveType( kde_CSSPrimitiveValue* instPointer){
	return (unsigned short) ((CSSPrimitiveValueBridge*)instPointer)->primitiveType();
}
void kde_CSSPrimitiveValue_setFloatValue( kde_CSSPrimitiveValue* instPointer,unsigned short unitType, float floatValue){
	((CSSPrimitiveValueBridge*)instPointer)->setFloatValue((unsigned short)unitType, (float)floatValue);
	return;
}
float kde_CSSPrimitiveValue_getFloatValue( kde_CSSPrimitiveValue* instPointer,unsigned short unitType){
	return (float) ((CSSPrimitiveValueBridge*)instPointer)->getFloatValue((unsigned short)unitType);
}
void kde_CSSPrimitiveValue_setStringValue( kde_CSSPrimitiveValue* instPointer,unsigned short stringType, kde_DOMString* stringValue){
	((CSSPrimitiveValueBridge*)instPointer)->setStringValue((unsigned short)stringType, (DOM::DOMString&)* (DOM::DOMString*)stringValue);
	return;
}
//kde_DOMString* kde_CSSPrimitiveValue_getStringValue( kde_CSSPrimitiveValue* instPointer){
//	return (kde_DOMString*) ((CSSPrimitiveValueBridge*)instPointer)->getStringValue();
//}
kde_Counter* kde_CSSPrimitiveValue_getCounterValue( kde_CSSPrimitiveValue* instPointer){
	return (kde_Counter*)new DOM::Counter(((CSSPrimitiveValueBridge*)instPointer)->getCounterValue());
}
kde_Rect* kde_CSSPrimitiveValue_getRectValue( kde_CSSPrimitiveValue* instPointer){
	return (kde_Rect*)new DOM::Rect(((CSSPrimitiveValueBridge*)instPointer)->getRectValue());
}
kde_RGBColor* kde_CSSPrimitiveValue_getRGBColorValue( kde_CSSPrimitiveValue* instPointer){
	return (kde_RGBColor*)new DOM::RGBColor(((CSSPrimitiveValueBridge*)instPointer)->getRGBColorValue());
}
