/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Makes a call to MakeSubordinateView, to add a view containing footnotes.
		/// </summary>
		/// <param name="div">The PrintLayout manager object</param>
		/// ------------------------------------------------------------------------------------
		public override void ConfigureSubordinateViews(DivisionLayoutMgr div)
		{
			int hvoScripture = m_fdoCache.LangProject.TranslatedScriptureOA.Hvo;

			BtFootnotePrintLayoutSideBySideVc footnoteVc = new BtFootnotePrintLayoutSideBySideVc(
				TeStVc.LayoutViewTarget.targetPrint, div.FilterInstance, m_styleSheet,
				m_fdoCache, m_ws);
			NLevelOwnerSvd ownerSvd = new NLevelOwnerSvd(2,
				new ScrBookFilterDecorator(m_fdoCache, m_bookFilterInstance), hvoScripture);

			div.AddSubordinateStream(hvoScripture, (int)FootnoteFrags.kfrScripture,
				footnoteVc,	ownerSvd);
		}
Ejemplo n.º 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Makes a call to MakeSubordinateView, to add a view containing footnotes.
		/// </summary>
		/// <param name="div">The PrintLayout manager object</param>
		/// ------------------------------------------------------------------------------------
		public override void ConfigureSubordinateViews(DivisionLayoutMgr div)
		{
			int hvoScripture = m_fdoCache.LangProject.TranslatedScriptureOAHvo;

			BtFootnotePrintLayoutSideBySideVc footnoteVc = new BtFootnotePrintLayoutSideBySideVc(
				TeStVc.LayoutViewTarget.targetPrint, div.FilterInstance, m_styleSheet,
				m_fdoCache, m_ws);
			NLevelOwnerSvd ownerSvd = new NLevelOwnerSvd(2, m_fdoCache.MainCacheAccessor,
				hvoScripture);

			IVwVirtualHandler vh =
				FilteredScrBooks.GetFilterInstance(m_fdoCache, div.FilterInstance);

			if (vh != null)
			{
				ownerSvd.AddTagLookup((int)Scripture.ScriptureTags.kflidScriptureBooks,
					vh.Tag);
			}

			div.AddSubordinateStream(hvoScripture, (int)FootnoteFrags.kfrScripture,
				footnoteVc,	ownerSvd);
		}