Describes the configuration options of importing a file as a document into a server projects.
public class ImportTranslationDocumentOptions
Enables or disables preview creation during import.
public PreviewCreation CreatePreview
An identifier of this document that is provided by the caller and stored by memoQ. The value is not interpreted, only stored and used for example when signalling delivery through a callback to the external tool.
public string ExternalDocumentId
The guid of the file to import. The file have to be uploaded before using IFileManagerService. The guid is returned by IFileManagerService.BeginChunkedFileUpload.
public Guid FileGuid
The guid of the filter configuration resource to be used during the import.
When this member is set, ImportSettingsXML must not be set. If neither this member nor ImportSettingsXML is set, the file will be imported with default configuration matching the file extension.
public Guid FilterConfigResGuid
Determines whether to import embedded images from the file. The images will appear as translatable documents. Embedded images can be imported from Office Open XML documents (docx, pptx, xlsx).
public bool ImportEmbeddedImages
Determines whether to import embedded objects from the file. Embedded objects are for example an embedded Excel spreadsheet in a Word document. Supported embedded objects will appear as translatable documents. Embedded objects can be imported from Office Open XML documents (docx, pptx, xlsx). If the specified filter configuration does not specify the configuration of embedded objects, they will be imported with default configurations.
public bool ImportEmbeddedObjects
The settings of the import in memoQ import filter XML format.
When this member is set, FilterConfigResGuid must not be set. If neither this member nor FilterConfigResGuid is set, the file will be imported with default configuration matching the file extension.
public string ImportSettingsXML
The full path which should be set as the import path of the file. Since the files are uploaded via IFileManagerService, their original location is not retained during import. If this path is specified, this string will be saved as the import path of the document, and will be the bases for calculating the export path.
public string PathToSetAsImportPath
The three+(two) letter code of the target languages the document is to be imported into. If null, the document is imported into all target languages of the project. If not null, only target languages that are subset of the target languages of the project can be specified.
public string TargetLangCodes