Ejemplo n.º 1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="T:TeScrDraftViewProxy"/> class.
 /// </summary>
 /// <param name="mainWnd">The main window.</param>
 /// <param name="name">The name of the view.</param>
 /// <param name="fEditable"><c>true</c> if this draft view is editable, <c>false</c>
 /// if it is read-only.</param>
 /// <param name="fShowInTable"><c>true</c> to display the view as a table.</param>
 /// <param name="fMakeRootAutomatically"><c>true</c> to call MakeRoot(), <c>false</c>
 /// if caller will call MakeRoot().</param>
 /// <param name="viewType">Bit-flags indicating type of view.</param>
 /// ------------------------------------------------------------------------------------
 public TeScrDraftViewProxy(TeMainWnd mainWnd, string name, bool fEditable,
                            bool fShowInTable, bool fMakeRootAutomatically, TeViewType viewType) :
     base(mainWnd, name, fEditable, viewType)
 {
     m_showInTable           = fShowInTable;
     m_makeRootAutomatically = fMakeRootAutomatically;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public ContextMenuHelper(TeMainWnd wnd)
 {
     m_mainWnd = wnd;
 }
Ejemplo n.º 3
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="T:TeDraftViewProxy"/> class with a flag
 /// indicating whether it is intended to host a back translation
 /// </summary>
 /// <param name="mainWnd">The main window.</param>
 /// <param name="name">The name of the view.</param>
 /// <param name="fEditable"><c>true</c> if this view is editable, <c>false</c> if
 /// read-only.</param>
 /// <param name="viewType">Bit-flags indicating type of view.</param>
 /// ------------------------------------------------------------------------------------
 public TeDraftViewProxy(TeMainWnd mainWnd, string name, bool fEditable, TeViewType viewType)
     : base(mainWnd, name, fEditable)
 {
     m_viewType = viewType;
 }
Ejemplo n.º 4
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="T:TeViewProxy"/> class
 /// </summary>
 /// <param name="mainWnd">The main window.</param>
 /// <param name="name">The name of the view.</param>
 /// <param name="fEditable"><c>true</c> if this view is editable, <c>false</c> if
 /// read-only.</param>
 /// ------------------------------------------------------------------------------------
 public TeViewProxy(TeMainWnd mainWnd, string name, bool fEditable)
     : base(name, fEditable)
 {
     m_mainWnd = mainWnd;
 }
Ejemplo n.º 5
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="T:CheckingViewProxy"/> class.
 /// </summary>
 /// <param name="mainWnd">The main window.</param>
 /// <param name="name">The name of the view.</param>
 /// ------------------------------------------------------------------------------------
 public CheckingViewProxy(TeMainWnd mainWnd, string name) :
     base(mainWnd, name, true)
 {
 }
Ejemplo n.º 6
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="T:DraftStylebarProxy"/> class.
 /// </summary>
 /// <param name="mainWnd">The main window.</param>
 /// <param name="name">The root name of the view ("StyleBar" will be appended).</param>
 /// <param name="fForFootnotes"><c>true</c> if this stylebar is for footnotes.</param>
 /// ------------------------------------------------------------------------------------
 public DraftStylebarProxy(TeMainWnd mainWnd, string name, bool fForFootnotes) :
     base(mainWnd, name + "StyleBar", false)
 {
     m_forFootnotes = fForFootnotes;
 }
Ejemplo n.º 7
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="T:TeFootnoteDraftViewProxy"/> class.
 /// </summary>
 /// <param name="mainWnd">The main window.</param>
 /// <param name="name">The name of the view.</param>
 /// <param name="fEditable"><c>true</c> if this draft view is editable, <c>false</c>
 /// if it is read-only.</param>
 /// <param name="fBackTrans"><c>true</c> if this view displays a back translation.</param>
 /// ------------------------------------------------------------------------------------
 public TeFootnoteDraftViewProxy(TeMainWnd mainWnd, string name, bool fEditable,
                                 bool fBackTrans)
     : base(mainWnd, name, fEditable, TeViewType.FootnoteView | TeViewType.Horizontal |
            (fBackTrans ? TeViewType.BackTranslation : TeViewType.Scripture))
 {
 }