Метод | Описание | |
---|---|---|
ImportParatext ( |
Perform a Paratext streamlined import
|
|
ImportSf ( |
Perform the Standard Format import
|
|
ImportXml ( |
Import an OXES (Open XML for Editing Scripture) file.
|
Метод | Описание | |
---|---|---|
CompleteImport ( ScrReference firstImported ) : ScrReference |
Completes the import.
|
|
CreateTeImportUi ( |
Creates a TeImportUi object. Can be overriden in tests |
|
DisplayImportedBooksDlg ( IScrDraft backupSavedVersion ) : void |
Displays the imported books dialog box (virtual to allow tests to suppress display of dialog box).
|
|
GetImportSettings ( ) : IScrImportSet |
Get the settings for Import, either from database or from wizard
|
|
Import ( IScrImportSet importSettings, SIL.FieldWorks.TE.UndoImportManager undoManager, |
Calls the importer.
|
|
ImportSf ( ) : bool |
Get settings for and perform the Standard Format import
|
|
ImportWithUndoTask ( IScrImportSet importSettings, bool fDisplayUi, string updateDescription ) : ScrReference |
Import scripture and embed it in a Undo task so that it is undoable. Nb: this creates a Mark in the undo stack (unless no books at all are imported or an error occurs), which is designed to be 'collapsed' to after all books in the batch are imported, so we get a single Undo task for the whole Import in the end. Code (such as tests) that calls this directly should call UndoManager.CollapseAllUndoActions().
|
|
ImportXml ( ) : void |
Prepare for and perform the OXES import.
|
|
ParatextProjHasUnmappedMarkers ( IScrImportSet settings ) : bool |
Iterate through the ScriptureTexts' lists of tags. If any missing mappings are found return true to give the user a chance to use the ImportWizard to map everything.
|
|
ParatextProjHasUnmappedMarkers ( string sParatextProjectId ) : bool |
Iterate through the ScriptureText's list of tags. If any missing mappings are found return true to give the user a chance to use the ImportWizard to map everything.
|
|
TeImportManager ( SIL.FieldWorks.FDO.FdoCache cache, FwStyleSheet styleSheet, IApp app, bool fParatextStreamlinedImport ) : System |
Initializes a new instance of the TeImportManager class. This version is for testing only |
Метод | Описание | |
---|---|---|
DoImport ( IScrImportSet importSettings, string updateDescription ) : bool |
Does the import.
|
|
GetDialogCaption ( ErrorCodeType codeType ) : string |
Gets the caption for the Unable to Import message box.
|
|
ImportTask ( IProgress progressDlg, object parameters ) : object |
The import task.
|
|
InternalImport ( IScrImportSet importSettings, bool fDisplayUi ) : ScrReference | ||
SetSelectionsAfterImport ( ScrReference firstReference ) : void |
Set selections after import.
|
|
TeImportManager ( |
Initializes a new instance of the TeImportManager class.
|
|
TeImportManager ( |
Initializes a new instance of the TeImportManager class.
|
protected CompleteImport ( ScrReference firstImported ) : ScrReference | ||
firstImported | ScrReference | The reference of the first thing that was imported |
Результат | ScrReference |
protected CreateTeImportUi ( |
||
progressDialog | The progress dialog. | |
Результат |
protected DisplayImportedBooksDlg ( IScrDraft backupSavedVersion ) : void | ||
backupSavedVersion | IScrDraft | The saved version for backups of any overwritten /// books. |
Результат | void |
protected GetImportSettings ( ) : IScrImportSet | ||
Результат | IScrImportSet |
protected Import ( IScrImportSet importSettings, SIL.FieldWorks.TE.UndoImportManager undoManager, |
||
importSettings | IScrImportSet | The import settings. |
undoManager | SIL.FieldWorks.TE.UndoImportManager | The undo manager. |
importUi | The import UI. | |
Результат | ScrReference |
public static ImportParatext ( |
||
mainWnd | The main window. | |
stylesheet | FwStyleSheet | The Scripture stylesheet. |
app | The app. | |
Результат | bool |
public static ImportSf ( |
||
mainWnd | The main window. | |
importCallbacks | ITeImportCallbacks | The import callbacks. |
app | The app. | |
Результат | void |
protected ImportWithUndoTask ( IScrImportSet importSettings, bool fDisplayUi, string updateDescription ) : ScrReference | ||
importSettings | IScrImportSet | The SFM import settings. If null, then this is an XML import. |
fDisplayUi | bool | set to |
updateDescription | string | description of the data update being done (i.e., /// which type of import). |
Результат | ScrReference |
public static ImportXml ( |
||
mainWnd | The main WND. | |
importCallbacks | ITeImportCallbacks | The import callbacks. |
app | The app. | |
Результат | void |
protected ParatextProjHasUnmappedMarkers ( IScrImportSet settings ) : bool | ||
settings | IScrImportSet | Import settings object |
Результат | bool |
protected ParatextProjHasUnmappedMarkers ( string sParatextProjectId ) : bool | ||
sParatextProjectId | string | P6 project id |
Результат | bool |
protected TeImportManager ( SIL.FieldWorks.FDO.FdoCache cache, FwStyleSheet styleSheet, IApp app, bool fParatextStreamlinedImport ) : System | ||
cache | SIL.FieldWorks.FDO.FdoCache | The cache. |
styleSheet | FwStyleSheet | The style sheet. |
app | IApp | The app. |
fParatextStreamlinedImport | bool | if set to |
Результат | System |