DictViewInstance *DictViewFactory::GetDictView(const FarString &id)
{
  FarString n_id = id.Mid(prefix_length);
  if (!n_id.IsEmpty())
    return new DictViewInstance(reg, n_id, spell_factory);
  else
    return CreateDictView();
}
DictViewInstance *DictViewFactory::GetDictViewByName(const FarString &name)
{
  FarString id(GetDictViewIdStr(name));
  if (!id.IsEmpty())
    return new DictViewInstance(reg, id, spell_factory);
  else
    return CreateDictView();
}