ECode TestCase::Run( /* [out] */ ITestResult** result) { VALIDATE_NOT_NULL(result); AutoPtr<ITestResult> r = CreateResult(); Run(result); *result = r; REFCOUNT_ADD(*result); return NOERROR; }
DocFileField::DocFileField(const WrdCharacterProperties& props, WordParserInfo& wpi) : RTFfield(wpi.GetFileContext()) { the_RTFFieldInst = new RTFfldinst(m_pContext); CStdStringA sFont = wpi.m_FontTable.getFontFamilyName(props.getFontIndexForSymbol()).getFaceName().c_str(); if ((int)sFont.find(" ") > 0) { sFont = "\"" + sFont + "\""; } CStdStringA sInst; if (1 & props.getFontSize()) sInst.Format("SYMBOL %d \\f %s \\s %.1f", props.getSymbolCharacter() & 0xFF, sFont.c_str(), ((double)props.getFontSize())/2); else sInst.Format("SYMBOL %d \\f %s \\s %d", props.getSymbolCharacter() & 0xFF, sFont.c_str(), props.getFontSize()/2); the_RTFFieldInst->AddObject(new DocFilePCData(m_pContext, sInst)); CreateResult(); // the_RTFFieldResult->AddObject( new DocFileChrfmt(props , wpi, false) );//TODO - need a double check }