Пример #1
0
MCEPS::MCEPS()
{
	flags |= F_RETAIN_POSTSCRIPT;
	size = 0;
	postscript = MCU_empty();
	prolog = MCU_empty();
	tx = 0;
	ty = 0;
	ex = 612;
	ey = 792;
	angle = 0;
	xscale = yscale = 0.5;
	xf = (MCscreen->getwidthmm() * 72.0) / (MCscreen->getwidth() * 25.4);
	yf = (MCscreen->getheightmm() * 72.0)  / (MCscreen->getheight() * 25.4);
	rect.width = (uint2)(ex * xscale / xf);
	rect.height = (uint2)(ey * yscale / yf);
	if (flags & F_SHOW_BORDER)
	{
		rect.width += borderwidth << 1;
		rect.height += borderwidth << 1;
	}
	image = NULL;
	pagecount = 0;
	curpage = 1;
	pageIndex = NULL;
}
Пример #2
0
void MCError::clear()
{
	delete buffer;
	errorline = errorpos = 0;
	depth = 0;
	buffer = MCU_empty();
	thrown = False;
	if (this == MCeerror)
		MCerrorptr = NULL;
}
Пример #3
0
MCOldFonttablenode::MCOldFonttablenode()
{
	charset = NULL;
	bstring = MCU_empty();
	psizes = NULL;
	bsizes = NULL;
	isizes = NULL;
	bisizes = NULL;
	nplain = 0;
	nbold = 0;
	nitalic = 0;
	nbolditalic = 0;
	next = NULL;
	name = NULL;
}