#include "gosGml.hpp"

//===========================================================================//
// File:	 CacheString.cpp														 //
// Project:  gosGml				                                         //
// Contents:																 //
//---------------------------------------------------------------------------//
// Date      Who    Modification                                             //
// 4/10/00   DP     Created													 //
//---------------------------------------------------------------------------//
// Copyright (C) 2000 Microsoft Corp.						                 //
// All Rights reserved worldwide                                             //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL               //
//===========================================================================//


#include "CacheString.h"


CacheString::CacheString(int CSType, int X, int Y, int image)
	:Type(CSType),x(X),y(Y),Image(image){}

CacheString::CacheString(int CSType, const char* text)
	:Type(CSType)
{
	if(!text)
	{
		Text=NULL;
		return;
	}
	Text=new char[mstrlen(text)+1];
	mstrcpy(Text,text);
}

CacheString::CacheString(int CSType, int X, int Y)
	:Type(CSType),x(X),y(Y){}
CacheString::CacheString(int CSType, int font, int color, bool wrap, int size)
	:Type(CSType),Font(font),Color(color),Wrap(wrap),Size(size){}

CacheString::~CacheString()
{
	if(Type==CacheString_DrawText && Text)
		delete[] Text;
};
