/// ------------------------------------------------------------------------------------ /// <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(); }
/// ------------------------------------------------------------------------------------ /// <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(); }
/// ------------------------------------------------------------------------------------ /// <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(); }
/// ------------------------------------------------------------------------------------ /// <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()); }