Ejemplo n.º 1
0
void
Blockquote::printTex( PrintWriter& p ) const
{
	switch ( this->type )
	{
	case START:
		p.printf( "\\begin{quote}\n" );
		break;
	case END:
		p.printf( "\\end{quote}\n" );
	}
}
Ejemplo n.º 2
0
void
Blockquote::print( PrintWriter& p ) const
{
	switch ( this->type )
	{
	case START:
		p.printf( "<blockquote>\n" );
		break;
	case END:
		p.printf( "</blockquote>\n" );
	}
}
Ejemplo n.º 3
0
void
Paragraph::printTex( PrintWriter& p ) const
{
	p.printf( "\n" );
	IPIterator<Line>* it = this->lines->positions();
	while ( it->hasNext() )
	{
		IPosition<Line>* pos = it->next();
		{
			pos->getElement().printTex( p );
		}
		delete pos;
	}
	delete it;
	p.printf( "\n" );
}