Helper class that manages the different aspects of import: interacting with user, settings and then delegating the real work...
コード例 #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();
        }
コード例 #2
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();
        }
コード例 #3
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();
		}
コード例 #4
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Perform a Paratext streamlined import
		/// </summary>
		/// <param name="mainWnd">The main window.</param>
		/// <param name="stylesheet">The Scripture stylesheet.</param>
		/// <param name="app">The app.</param>
		/// <returns><c>true</c> if something got imported; <c>false</c> otherwise</returns>
		/// ------------------------------------------------------------------------------------
		public static bool ImportParatext(Form mainWnd, FwStyleSheet stylesheet, FwApp app)
		{
			TeImportManager mgr = new TeImportManager(mainWnd, stylesheet, app, true);
			return mgr.ImportSf();
		}
コード例 #5
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Perform a Paratext streamlined import
        /// </summary>
        /// <param name="mainWnd">The main window.</param>
        /// <param name="stylesheet">The Scripture stylesheet.</param>
        /// <param name="app">The app.</param>
        /// <returns><c>true</c> if something got imported; <c>false</c> otherwise</returns>
        /// ------------------------------------------------------------------------------------
        public static bool ImportParatext(Form mainWnd, FwStyleSheet stylesheet, FwApp app)
        {
            TeImportManager mgr = new TeImportManager(mainWnd, stylesheet, app, true);

            return(mgr.ImportSf());
        }
コード例 #6
0
ファイル: TeImportManager.cs プロジェクト: sillsdev/WorldPad
		/// ------------------------------------------------------------------------------------
		/// <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();
		}