Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Import an OXES (Open XML for Editing Scripture) file.
        /// </summary>
        /// <param name="mainWnd">The main WND.</param>
        /// <param name="importCallbacks">The import callbacks.</param>
        /// <param name="app">The app.</param>
        /// ------------------------------------------------------------------------------------
        public static void ImportXml(FwMainWnd mainWnd, ITeImportCallbacks importCallbacks,
                                     FwApp app)
        {
            TeImportManager mgr = new TeImportManager(mainWnd, importCallbacks, app, false);

            mgr.ImportXml();
        }
Exemplo n.º 2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="TeImportManager"/> class.
 /// </summary>
 /// <param name="mainWnd">The main window initiating the import</param>
 /// <param name="styleSheet">The stylesheet.</param>
 /// <param name="app">The app.</param>
 /// <param name="fParatextStreamlinedImport">if set to <c>true</c> do a Paratext
 /// streamlined import (minimal UI).</param>
 /// ------------------------------------------------------------------------------------
 internal TeImportManager(Form mainWnd, FwStyleSheet styleSheet, FwApp app,
                          bool fParatextStreamlinedImport)
     : this(app.Cache, styleSheet, app, fParatextStreamlinedImport)
 {
     m_mainWnd         = mainWnd;
     m_importCallbacks = new DummyImportCallbacks();
 }
Exemplo n.º 3
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="TeImportManager"/> class.
 /// </summary>
 /// <param name="mainWnd">The main window initiating the import</param>
 /// <param name="importCallbacks">The import callbacks.</param>
 /// <param name="app">The app.</param>
 /// <param name="fParatextStreamlinedImport">if set to <c>true</c> do a Paratext
 /// streamlined import (minimal UI).</param>
 /// ------------------------------------------------------------------------------------
 internal TeImportManager(FwMainWnd mainWnd, ITeImportCallbacks importCallbacks,
                          FwApp app, bool fParatextStreamlinedImport)
     : this(app.Cache, mainWnd.StyleSheet, app, fParatextStreamlinedImport)
 {
     m_mainWnd         = mainWnd;
     m_importCallbacks = importCallbacks;
 }
Exemplo n.º 4
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="TeImportManager"/> class.
 /// </summary>
 /// <param name="mainWnd">The main window we belong to</param>
 /// <param name="importCallbacks">The import callbacks.</param>
 /// ------------------------------------------------------------------------------------
 protected TeImportManager(FwMainWnd mainWnd, ITeImportCallbacks importCallbacks)
 {
     m_mainWnd         = mainWnd;
     m_cache           = m_mainWnd.Cache;
     m_styleSheet      = m_mainWnd.StyleSheet;
     m_importCallbacks = importCallbacks;
     m_bookFilter      = m_importCallbacks.BookFilter;
 }
Exemplo n.º 5
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="TeImportManager"/> class.
		/// </summary>
		/// <param name="mainWnd">The main window we belong to</param>
		/// <param name="importCallbacks">The import callbacks.</param>
		/// ------------------------------------------------------------------------------------
		protected TeImportManager(FwMainWnd mainWnd, ITeImportCallbacks importCallbacks)
		{
			m_mainWnd = mainWnd;
			m_cache = m_mainWnd.Cache;
			m_styleSheet = m_mainWnd.StyleSheet;
			m_importCallbacks = importCallbacks;
			m_bookFilter = m_importCallbacks.BookFilter;
		}
Exemplo n.º 6
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Import an OXES (Open XML for Editing Scripture) file.
        /// </summary>
        /// <param name="mainWnd">The main WND.</param>
        /// <param name="importCallbacks">The import callbacks.</param>
        /// ------------------------------------------------------------------------------------
        public static void ImportXml(FwMainWnd mainWnd, ITeImportCallbacks importCallbacks)
        {
            TeImportManager mgr = new TeImportManager(mainWnd, importCallbacks);

            mgr.ImportXml();
        }
Exemplo n.º 7
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="TeImportManager"/> class.
		/// </summary>
		/// <param name="mainWnd">The main window initiating the import</param>
		/// <param name="importCallbacks">The import callbacks.</param>
		/// <param name="app">The app.</param>
		/// <param name="fParatextStreamlinedImport">if set to <c>true</c> do a Paratext
		/// streamlined import (minimal UI).</param>
		/// ------------------------------------------------------------------------------------
		internal TeImportManager(FwMainWnd mainWnd, ITeImportCallbacks importCallbacks,
			FwApp app, bool fParatextStreamlinedImport)
			: this(app.Cache, mainWnd.StyleSheet, app, fParatextStreamlinedImport)
		{
			m_mainWnd = mainWnd;
			m_importCallbacks = importCallbacks;
		}
Exemplo n.º 8
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Import an OXES (Open XML for Editing Scripture) file.
		/// </summary>
		/// <param name="mainWnd">The main WND.</param>
		/// <param name="importCallbacks">The import callbacks.</param>
		/// <param name="app">The app.</param>
		/// ------------------------------------------------------------------------------------
		public static void ImportXml(FwMainWnd mainWnd, ITeImportCallbacks importCallbacks,
			FwApp app)
		{
			TeImportManager mgr = new TeImportManager(mainWnd, importCallbacks, app, false);
			mgr.ImportXml();
		}
Exemplo n.º 9
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="TeImportManager"/> class.
		/// </summary>
		/// <param name="mainWnd">The main window initiating the import</param>
		/// <param name="styleSheet">The stylesheet.</param>
		/// <param name="app">The app.</param>
		/// <param name="fParatextStreamlinedImport">if set to <c>true</c> do a Paratext
		/// streamlined import (minimal UI).</param>
		/// ------------------------------------------------------------------------------------
		internal TeImportManager(Form mainWnd, FwStyleSheet styleSheet, FwApp app,
			bool fParatextStreamlinedImport)
			: this(app.Cache, styleSheet, app, fParatextStreamlinedImport)
		{
			m_mainWnd = mainWnd;
			m_importCallbacks = new DummyImportCallbacks();
		}
Exemplo n.º 10
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Import an OXES (Open XML for Editing Scripture) file.
		/// </summary>
		/// <param name="mainWnd">The main WND.</param>
		/// <param name="importCallbacks">The import callbacks.</param>
		/// ------------------------------------------------------------------------------------
		public static void ImportXml(FwMainWnd mainWnd, ITeImportCallbacks importCallbacks)
		{
			TeImportManager mgr = new TeImportManager(mainWnd, importCallbacks);
			mgr.ImportXml();
		}