/// <summary> /// Create the ordered vector of writing sytems to try for displaying names. /// </summary> protected void EstablishWritingSystemsToTry(string sDisplayWs) { if (m_writingSystemIds != null || m_cache == null || m_obj == null) { return; } if (string.IsNullOrEmpty(sDisplayWs)) { sDisplayWs = "analysis vernacular"; // very general default. } int flid = 0; if (!string.IsNullOrEmpty(m_displayNameProperty)) { #if WANTPORT // (FWR-2786 to investigate this)(FLEx) Needs replacement for virtual property handler CmObject obj = m_cache.GetObject(Hvo); string className = m_cache.MetaDataCache.GetClassName(obj.ClassID); IVwVirtualHandler vh = m_cache.VwCacheDaAccessor.GetVirtualHandlerName(className, m_displayNameProperty); if (vh != null) { flid = vh.Tag; } #endif } m_writingSystemIds = WritingSystemServices.GetWritingSystemIdsFromLabel(m_cache, sDisplayWs, m_cache.ServiceLocator.WritingSystemManager.UserWritingSystem, m_obj.Hvo, flid, null); }