public void SetRoot(int hvo)
{
CheckDisposed();
if (hvo != 0)
{
IStText stText = Cache.ServiceLocator.GetInstance<IStTextRepository>().GetObject(hvo);
if (ScriptureServices.ScriptureIsResponsibleFor(stText))
{
m_hvoRoot = hvo; // StText (i.e. Scripture)
}
else
{
m_hvoRoot = stText.Owner.Hvo; // Text (i.e. non-scripture). Editable.
}
SetupVc();
}
else
{
m_hvoRoot = 0;
ReadOnlyView = true;
if (m_vc != null)
{
m_vc.IsScripture = false;
m_vc.Editable = false;
}
}
ChangeOrMakeRoot(m_hvoRoot, m_vc, TitleContentsVc.kfragRoot, m_styleSheet);
}