Ejemplo n.º 1
0
/// Adds x children. Subclassed in e.g. Matrix-class in order to setup contents properly.
bool UIMatrix::SetContents(List<UIElement*> children)
{
	DeleteContents();	
	matrixElements = children;	
	FormatContents();
	return true;
}
Ejemplo n.º 2
0
void XNODE::Format( OUTPUTFORMATTER* out, int nestLevel )
{
    switch( GetType() )
    {
    case wxXML_ELEMENT_NODE:
        out->Print( nestLevel, "(%s", TO_UTF8( GetName() ) );
        FormatContents( out, nestLevel );
        if( GetNext() )
            out->Print( 0, ")\n" );
        else
            out->Print( 0, ")" );
        break;

    default:
        FormatContents( out, nestLevel );
    }
}