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