Ejemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="BtPrintLayoutSideBySideVc"/> 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 BtPrintLayoutSideBySideVc(TeStVc.LayoutViewTarget target, int filterInstance,
                                         IVwStylesheet styleSheet, FdoCache cache, int btWs) :
            base(target, filterInstance, styleSheet, false)
        {
            Cache       = cache;
            PrintLayout = true;

            m_VcImpl = new BtPrintLayoutSideBySideVcImpl <BtPrintLayoutSideBySideVc>(target,
                                                                                     filterInstance, styleSheet, cache, btWs, false, this, BooksTag);
        }
Ejemplo 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(TeStVc.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.
 }
Ejemplo n.º 3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the BtPrintLayoutSideBySideVcImpl 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>
        /// <param name="fForFootnotes">True if we are displaying footnotes, false otherwise
        /// </param>
        /// <param name="realVc">The parent VC</param>
        /// <param name="bookTag">The book tag</param>
        /// ------------------------------------------------------------------------------------
        public BtPrintLayoutSideBySideVcImpl(TeStVc.LayoutViewTarget target, int filterInstance,
                                             IVwStylesheet styleSheet, FdoCache cache, int btWs, bool fForFootnotes, T realVc,
                                             int bookTag)
        {
            m_cache   = cache;
            m_RealVc  = realVc;
            m_bookTag = bookTag;

            m_btVc = (fForFootnotes) ?
                     (TeStVc) new FootnoteVc(TeStVc.LayoutViewTarget.targetPrint, filterInstance) :
                     new DraftViewVc(target, filterInstance, styleSheet, false);
            m_btVc.DefaultWs   = btWs;
            m_btVc.ContentType = Options.UseInterlinearBackTranslation ? StVc.ContentTypes.kctSegmentBT : StVc.ContentTypes.kctSimpleBT;
            m_btVc.Cache       = cache;
            m_btVc.PrintLayout = true;
        }
Ejemplo n.º 4
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="fShowInTable">True to show in table, otherwise false</param>
 /// ------------------------------------------------------------------------------------
 public DummyDraftViewVC(TeStVc.LayoutViewTarget target, int filterInstance,
                         IVwStylesheet styleSheet, bool fShowInTable)
     : base(target, filterInstance, styleSheet, fShowInTable)
 {
 }