Esempio n. 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="BtFootnotePrintLayoutSideBySideVc"/> class.
        /// </summary>
        /// <param name="target"></param>
        /// <param name="filterInstance"></param>
        /// <param name="styleSheet"></param>
        /// <param name="cache"></param>
        /// <param name="btWs">The writing system of the back translation side of the view
        /// </param>
        /// ------------------------------------------------------------------------------------
        public BtFootnotePrintLayoutSideBySideVc(LayoutViewTarget target, int filterInstance,
                                                 IVwStylesheet styleSheet, FdoCache cache, int btWs) : base(target, filterInstance)
        {
            Cache       = cache;
            PrintLayout = true;

            m_VcImpl = new BtPrintLayoutSideBySideVcImpl <BtFootnotePrintLayoutSideBySideVc>(target,
                                                                                             filterInstance, styleSheet, cache, btWs, true, this, BooksTag);
        }
Esempio n. 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the DraftViewVc class
		/// </summary>
		/// <param name="target">target of the view (printer or draft)</param>
		/// <param name="filterInstance">Number used to make filters unique for each main
		/// window</param>
		/// <param name="styleSheet">Optional stylesheet. Null is okay if this view constructor
		/// promises never to try to display a back translation</param>
		/// <param name="displayInTable">True to display the paragraphs in a table layout,
		/// false otherwise</param>
		/// ------------------------------------------------------------------------------------
		public DraftViewVc(LayoutViewTarget target, int filterInstance,
			IVwStylesheet styleSheet, bool displayInTable) : base(target, filterInstance)
		{
			m_UnfinishedPic = PrepareImage(TeResourceHelper.BackTranslationUnfinishedImage);
			m_FinishedPic = PrepareImage(TeResourceHelper.BackTranslationFinishedImage);
			m_CheckedPic = PrepareImage(TeResourceHelper.BackTranslationCheckedImage);
			m_stylesheet = styleSheet;
			m_fDisplayInTable = displayInTable;
			//m_fLazy = true; // This makes the paragraphs lazy.
		}
Esempio n. 3
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the DraftViewVc class
 /// </summary>
 /// <param name="target">target of the view (printer or draft)</param>
 /// <param name="filterInstance">Number used to make filters unique for each main
 /// window</param>
 /// <param name="styleSheet">Optional stylesheet. Null is okay if this view constructor
 /// promises never to try to display a back translation</param>
 /// <param name="displayInTable">True to display the paragraphs in a table layout,
 /// false otherwise</param>
 /// ------------------------------------------------------------------------------------
 public DraftViewVc(LayoutViewTarget target, int filterInstance,
                    IVwStylesheet styleSheet, bool displayInTable) : base(target, filterInstance)
 {
     m_UnfinishedPic   = PrepareImage(TeResourceHelper.BackTranslationUnfinishedImage);
     m_FinishedPic     = PrepareImage(TeResourceHelper.BackTranslationFinishedImage);
     m_CheckedPic      = PrepareImage(TeResourceHelper.BackTranslationCheckedImage);
     m_stylesheet      = styleSheet;
     m_fDisplayInTable = displayInTable;
     //m_fLazy = true; // This makes the paragraphs lazy.
 }
Esempio n. 4
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="TeStVc"/> class.
		/// </summary>
		/// <param name="target">The LayoutViewTarget</param>
		/// <param name="filterInstance">Number used to make filters unique for each main
		/// window</param>
		/// ------------------------------------------------------------------------------------
		public TeStVc(LayoutViewTarget target, int filterInstance)
		{
			m_target = target;
			m_filterInstance = filterInstance;
			m_updatedPrompts = new Set<int>();
		}
Esempio n. 5
0
 /// -----------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="ScriptureBookIntroVc"/> class.
 /// </summary>
 /// <param name="target">target of the view (printer or draft)</param>
 /// <param name="filterInstance">Number used to make filters unique for each main
 /// window</param>
 /// <param name="styleSheet">Optional stylesheet. Null is okay if this view constructor
 /// promises never to try to display a back translation</param>
 /// <param name="displayInTable">True to display the paragraphs in a table layout,
 /// false otherwise</param>
 /// <param name="sectionTag">Tag (from virtual property) to use for sections.</param>
 /// ------------------------------------------------------------------------------------
 public ScriptureBookIntroVc(LayoutViewTarget target, int filterInstance,
                             IVwStylesheet styleSheet, bool displayInTable, int sectionTag)
     : base(target, filterInstance, styleSheet, displayInTable)
 {
     m_sectionTag = sectionTag;
 }
Esempio n. 6
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="ScriptureBookIntroVc"/> class.
		/// </summary>
		/// <param name="target">target of the view (printer or draft)</param>
		/// <param name="filterInstance">Number used to make filters unique for each main
		/// window</param>
		/// <param name="styleSheet">Optional stylesheet. Null is okay if this view constructor
		/// promises never to try to display a back translation</param>
		/// <param name="displayInTable">True to display the paragraphs in a table layout,
		/// false otherwise</param>
		/// <param name="sectionTag">Tag (from virtual property) to use for sections.</param>
		/// ------------------------------------------------------------------------------------
		public ScriptureBookIntroVc(LayoutViewTarget target, int filterInstance,
			IVwStylesheet styleSheet, bool displayInTable, int sectionTag)
			: base(target, filterInstance, styleSheet, displayInTable)
		{
			m_sectionTag = sectionTag;
		}
Esempio n. 7
0
 /// -----------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="TeStVc"/> class.
 /// </summary>
 /// <param name="target">The LayoutViewTarget</param>
 /// <param name="filterInstance">Number used to make filters unique for each main
 /// window</param>
 /// ------------------------------------------------------------------------------------
 public TeStVc(LayoutViewTarget target, int filterInstance)
 {
     m_target         = target;
     m_filterInstance = filterInstance;
     m_updatedPrompts = new Set <int>();
 }
Esempio n. 8
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the FootnoteVc class
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="filterInstance">number used to make filters unique for each main
 /// window</param>
 /// ------------------------------------------------------------------------------------
 public FootnoteVc(LayoutViewTarget target, int filterInstance)
     : base(target, filterInstance)
 {
 }
Esempio n. 9
0
		IVwStylesheet m_stylesheet; // for computing whether a paragraph is cross-ref.
		#endregion

		#region Constructor
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the FootnoteVc class
		/// </summary>
		/// <param name="filterInstance">number used to make filters unique for each main
		/// window</param>
		/// <param name="target">The target.</param>
		/// <param name="wsDefault">HVO of the default WS to be used for footnotes</param>
		/// ------------------------------------------------------------------------------------
		public FootnoteVc(int filterInstance, LayoutViewTarget target, int wsDefault)
			: base(target, filterInstance)
		{
			m_wsDefault = wsDefault;
		}
Esempio n. 10
0
		/// --------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="ScriptureBodyVc"/> class.
		/// </summary>
		/// <param name="target">target of the view (printer or draft)</param>
		/// <param name="filterInstance">Number used to make filters unique for each main
		/// window</param>
		/// <param name="styleSheet">Optional stylesheet. Null is okay if this view constructor
		/// promises never to try to display a back translation</param>
		/// <param name="displayInTable">True to display the paragraphs in a table layout,
		/// false otherwise</param>
		/// --------------------------------------------------------------------------------
		public ScriptureBodyVc(LayoutViewTarget target, int filterInstance,
			IVwStylesheet styleSheet, bool displayInTable)
			: base(target, filterInstance, styleSheet, displayInTable)
		{
		}
Esempio n. 11
0
 /// --------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="ScriptureBodyVc"/> class.
 /// </summary>
 /// <param name="target">target of the view (printer or draft)</param>
 /// <param name="filterInstance">Number used to make filters unique for each main
 /// window</param>
 /// <param name="styleSheet">Optional stylesheet. Null is okay if this view constructor
 /// promises never to try to display a back translation</param>
 /// <param name="displayInTable">True to display the paragraphs in a table layout,
 /// false otherwise</param>
 /// --------------------------------------------------------------------------------
 public ScriptureBodyVc(LayoutViewTarget target, int filterInstance,
                        IVwStylesheet styleSheet, bool displayInTable)
     : base(target, filterInstance, styleSheet, displayInTable)
 {
 }
Esempio n. 12
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the FootnoteVc class
		/// </summary>
		/// <param name="target">The target.</param>
		/// <param name="filterInstance">number used to make filters unique for each main
		/// window</param>
		/// ------------------------------------------------------------------------------------
		public FootnoteVc(LayoutViewTarget target, int filterInstance)
			: base(target, filterInstance)
		{
		}
Esempio n. 13
0
        IVwStylesheet m_stylesheet;         // for computing whether a paragraph is cross-ref.
        #endregion

        #region Constructor
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the FootnoteVc class
        /// </summary>
        /// <param name="filterInstance">number used to make filters unique for each main
        /// window</param>
        /// <param name="target">The target.</param>
        /// <param name="wsDefault">HVO of the default WS to be used for footnotes</param>
        /// ------------------------------------------------------------------------------------
        public FootnoteVc(int filterInstance, LayoutViewTarget target, int wsDefault)
            : base(target, filterInstance)
        {
            m_wsDefault = wsDefault;
        }