Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="cache"></param>
        /// <param name="hvoEntryToDisplay"></param>
        /// <param name="wsVern"></param>
        /// <param name="ler"></param>
        /// <returns></returns>
        static public ITsString GetLexEntryTss(LcmCache cache, int hvoEntryToDisplay, int wsVern, ILexEntryRef ler)
        {
            LexEntryVc vcEntry = new LexEntryVc(cache);

            vcEntry.WritingSystemCode = wsVern;
            TsStringCollectorEnv collector = new TsStringCollectorEnv(null, cache.MainCacheAccessor, hvoEntryToDisplay);

            collector.RequestAppendSpaceForFirstWordInNewParagraph = false;
            vcEntry.Display(collector, hvoEntryToDisplay, (int)VcFrags.kfragHeadWord);
            if (ler != null)
            {
                vcEntry.Display(collector, ler.Hvo, LexEntryVc.kfragVariantTypes);
            }
            return(collector.Result);
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="morphBundle"></param>
        /// <param name="wsVern"></param>
        /// <returns></returns>
        static public ITsString GetLexEntryTss(IWfiMorphBundle morphBundle, int wsVern)
        {
            LcmCache   cache   = morphBundle.Cache;
            LexEntryVc vcEntry = new LexEntryVc(cache);

            vcEntry.WritingSystemCode = wsVern;
            TsStringCollectorEnv collector = new TsStringCollectorEnv(null, cache.MainCacheAccessor, morphBundle.Hvo);

            collector.RequestAppendSpaceForFirstWordInNewParagraph = false;
            vcEntry.Display(collector, morphBundle.Hvo, (int)LexEntryVc.kfragEntryAndVariant);
            return(collector.Result);
        }
Beispiel #3
0
		/// <summary>
		///
		/// </summary>
		/// <param name="morphBundle"></param>
		/// <param name="wsVern"></param>
		/// <returns></returns>
		static public ITsString GetLexEntryTss(IWfiMorphBundle morphBundle, int wsVern)
		{
			FdoCache cache = morphBundle.Cache;
			LexEntryVc vcEntry = new LexEntryVc(cache);
			vcEntry.WritingSystemCode = wsVern;
			TsStringCollectorEnv collector = new TsStringCollectorEnv(null, cache.MainCacheAccessor, morphBundle.Hvo);
			collector.RequestAppendSpaceForFirstWordInNewParagraph = false;
			vcEntry.Display(collector, morphBundle.Hvo, (int)LexEntryVc.kfragEntryAndVariant);
			return collector.Result;
		}
Beispiel #4
0
		/// <summary>
		///
		/// </summary>
		/// <param name="cache"></param>
		/// <param name="hvoEntryToDisplay"></param>
		/// <param name="wsVern"></param>
		/// <param name="ler"></param>
		/// <returns></returns>
		static public ITsString GetLexEntryTss(FdoCache cache, int hvoEntryToDisplay, int wsVern, ILexEntryRef ler)
		{
			LexEntryVc vcEntry = new LexEntryVc(cache);
			vcEntry.WritingSystemCode = wsVern;
			TsStringCollectorEnv collector = new TsStringCollectorEnv(null, cache.MainCacheAccessor, hvoEntryToDisplay);
			collector.RequestAppendSpaceForFirstWordInNewParagraph = false;
			vcEntry.Display(collector, hvoEntryToDisplay, (int)VcFrags.kfragHeadWord);
			if (ler != null)
				vcEntry.Display(collector, ler.Hvo, LexEntryVc.kfragVariantTypes);
			return collector.Result;
		}