Example #1
0
void SchemeConfigParser::onStyleGroup(const XMLAttributes& att, const StylePtr& pClass)
{
	PNASSERT(m_pCurrent != NULL);

	LPCTSTR name = att.getValue(_T("name"));
	if(name)
	{
		m_pCurrent->BeginStyleGroup(name, att.getValue(_T("description")), (pClass.get() ? pClass->Style->name.c_str() : NULL) );
	}
}
Example #2
0
void SchemeConfigParser::onStyle(const StylePtr& style, bool isBaseStyle)
{
	PNASSERT(m_pCurrent != NULL);
	
	if(isBaseStyle)
	{
		// Not already stored in the current one...
        StylePtr p(new FullStyleDetails(*style.get()));
		m_pCurrent->Styles.push_back(p);
	}
}