mpFileBinderCtx = new spFile();
// the default script is HTML
- mTags = get_HTML_markup_tags();
+ m_Tags = get_HTML_markup_tags();
mpParser = 0; // no default parser!
}
size_t start = str.length();
- str += mTags[TAG_BOLD].end;
- str += mTags[TAG_PARAGRAPH].start;
+ str += m_Tags[TAG_BOLD].end;
+ str += m_Tags[TAG_PARAGRAPH].start;
MCommentListT& lst = fromContext.GetCommentList();
if ( lst[i]->StartsParagraph() )
{
- str += mTags[TAG_PARAGRAPH].start;
+ str += m_Tags[TAG_PARAGRAPH].start;
}
str += lst[i]->m_Text;
}
str[n] = _T(' ');
}
- str += mTags[TAG_PARAGRAPH].end;
+ str += m_Tags[TAG_PARAGRAPH].end;
}
void RipperDocGen::AppendMulitilineStr( wxString& st, wxString& mlStr )
{
- st = mTags[TAG_FIXED_FONT].start;
+ st = m_Tags[TAG_FIXED_FONT].start;
st += mlStr;
- st += mTags[TAG_FIXED_FONT].end;
+ st += m_Tags[TAG_FIXED_FONT].end;
}
void RipperDocGen::AppendHighlightedSource( wxString& st, wxString source )
// highlight things
mSrcPainter.Init();
mSrcPainter.ProcessSource( buf, strlen(buf) );
- mSrcPainter.GetResultString( st, mTags );
+ mSrcPainter.GetResultString( st, m_Tags );
}
bool RipperDocGen::CheckIfUncommented( spContext& ctx, ScriptSection& toSect )
void RipperDocGen::AddToCurrentClass( ScriptSection* pSection, spContext& ctx,
const char* subSectionName )
{
- string sName;
+ wxString sName;
if ( ctx.mVisibility == SP_VIS_PROTECTED )
sName = "Protected members/";
ScriptSection* pClSect = (ScriptSection*)cl.GetUserData();
ScriptSection* pSuperSect = pClSect->GetSubsection("Derived from");
- for( size_t n = 0; n != cl.mSuperClassNames.size(); ++n )
+ for( size_t n = 0; n != cl.m_SuperClassNames.size(); ++n )
{
- string& superClName = cl.mSuperClassNames[n];
+ wxString& superClName = cl.m_SuperClassNames[n];
spClass* pFound = NULL;
return;
wxString body;
- body += mTags[TAG_BOLD].start;
+ body += m_Tags[TAG_BOLD].start;
AppendMulitilineStr( body, en.m_EnumContent );
- body += mTags[TAG_BOLD].end;
+ body += m_Tags[TAG_BOLD].end;
wxString line;
AppendHighlightedSource( line, body );
return;
wxString body;
- body += mTags[TAG_BOLD].start;
+ body += m_Tags[TAG_BOLD].start;
body += "typdef ";
- body += mTags[TAG_BOLD].end;
+ body += m_Tags[TAG_BOLD].end;
AppendMulitilineStr( body, td.m_OriginalType );
body += td.m_OriginalType;
body += ' ';
- body += mTags[TAG_BOLD].start;
+ body += m_Tags[TAG_BOLD].start;
body += td.GetName();
- body += mTags[TAG_BOLD].end;
+ body += m_Tags[TAG_BOLD].end;
wxString line;
AppendHighlightedSource( line, body );
return;
wxString body;
- body += mTags[TAG_FIXED_FONT].start;
+ body += m_Tags[TAG_FIXED_FONT].start;
wxString coloredLine = pd.m_Line;
AppendHighlightedSource( coloredLine, pd.m_Line );
AppendMulitilineStr( body, coloredLine );
- body += mTags[TAG_FIXED_FONT].end;
+ body += m_Tags[TAG_FIXED_FONT].end;
AppendComments( pd, body );
void RipperDocGen::VisitAttribute( spAttribute& attr )
{
wxString body;
- body += mTags[TAG_BOLD].start;
+ body += m_Tags[TAG_BOLD].start;
body += attr.m_Type;
- body += mTags[TAG_BOLD].end;
+ body += m_Tags[TAG_BOLD].end;
- body += mTags[TAG_ITALIC].start;
+ body += m_Tags[TAG_ITALIC].start;
body += ' ';
body += attr.GetName();
- body += mTags[TAG_ITALIC].end;
+ body += m_Tags[TAG_ITALIC].end;
wxString line;
AppendHighlightedSource( line, body );
{
wxString body;
- AppendHighlightedSource( body, op.GetFullName(mTags) );
+ AppendHighlightedSource( body, op.GetFullName(m_Tags) );
AppendComments( op, body );