public override void Display(IVwEnv vwenv, int hvo, int frag)
{
switch (frag)
{
case (int)ScrFrags.kfrScripture:
{
vwenv.AddLazyVecItems(ScriptureTags.kflidBookAnnotations, this,
(int)ScrFrags.kfrBook);
break;
}
case (int)ScrFrags.kfrBook:
{
vwenv.AddLazyVecItems(ScrBookAnnotationsTags.kflidNotes, this,
(int)NotesFrags.kfrAnnotation);
break;
}
case (int)NotesFrags.kfrAnnotation:
{
DisplayAnnotationFragment(vwenv, hvo);
break;
}
case (int)NotesFrags.kfrResponse:
{
DisplayResponseFragment(vwenv, hvo);
break;
}
case (int)NotesFrags.kfrExpansion:
{
vwenv.OpenParagraph();
//if (m_expanderPadding == -1)
// m_expanderPadding = GetImagePadding(vwenv, m_picMinus);
vwenv.set_IntProperty((int)FwTextPropType.ktptPadTop,
(int)FwTextPropVar.ktpvMilliPoint, 2500);
ICmObject obj = m_cache.ServiceLocator.GetInstance<ICmObjectRepository>().GetObject(hvo);
vwenv.AddPicture((m_expandTable.ContainsKey(hvo) && m_expandTable[hvo]) ?
m_picMinus : m_picPlus, (int)obj.OwningFlid, 0, 0);
vwenv.CloseParagraph();
break;
}
default:
base.Display(vwenv, hvo, frag);
break;
}
}