/// <summary> /// Returns a file type information object. /// </summary> /// <param name="name">The <see cref="IFileTypeDefinition"/> will pass "" as the name for this parameter</param> /// <returns>an SimpleText file type information object</returns> public IFileTypeInformation BuildFileTypeInformation(string name) { var info = FileTypeManager.BuildFileTypeInformation(); info.FileTypeDefinitionId = new FileTypeDefinitionId(GetAssemblyVersion()); info.FileTypeName = new LocalizableString("XML: WordFast TXML"); info.FileTypeDocumentName = new LocalizableString("TXML Document"); info.FileTypeDocumentsName = new LocalizableString("TXML Documents"); info.Description = new LocalizableString("TXML documents, as generated by WordFast Professional. Documents may be untranslated, partially or fully translated."); info.FileDialogWildcardExpression = "*.txml"; info.DefaultFileExtension = "*.txml"; info.Icon = new IconDescriptor(PluginResources.icon); info.Enabled = true; return(info); }
/// <summary> /// Returns a file type information object. /// </summary> /// <param name="name">The <see cref="IFileTypeDefinition"/> will pass "" as the name for this parameter</param> /// <returns>an SimpleText file type information object</returns> public IFileTypeInformation BuildFileTypeInformation(string name) { var info = FileTypeManager.BuildFileTypeInformation(); info.FileTypeDefinitionId = new FileTypeDefinitionId("BIL File Type 1.0.0.0"); info.FileTypeName = new LocalizableString("Bilingual Sample File"); info.FileTypeDocumentName = new LocalizableString("Bilingual XML Documen"); info.FileTypeDocumentsName = new LocalizableString("Bilingual XML Documents"); info.Description = new LocalizableString("Bilingual document format created for this SDK"); info.FileDialogWildcardExpression = "*.bil"; info.DefaultFileExtension = "bil"; info.Icon = new IconDescriptor(PluginResources.bil); info.Enabled = true; return(info); }
/// <summary> /// Returns a file type information object. /// </summary> /// <param name="name">The <see cref="IFileTypeDefinition"/> will pass "" as the name for this parameter</param> /// <returns>an SimpleText file type information object</returns> public IFileTypeInformation BuildFileTypeInformation(string name) { var fileTypeDetails = new FiletypeDetails(); var info = FileTypeManager.BuildFileTypeInformation(); info.FileTypeDefinitionId = new FileTypeDefinitionId("Transit File Type 1.0.0.0"); info.FileTypeName = new LocalizableString("Transit bilingual documents"); info.FileTypeDocumentName = new LocalizableString("Transit Document"); info.FileTypeDocumentsName = new LocalizableString("Transit Documents"); info.Description = new LocalizableString("Documents, as generated by Transit. Documents may be untranslated, partially or fully translated."); info.FileDialogWildcardExpression = fileTypeDetails.FileExtensions; info.DefaultFileExtension = fileTypeDetails.FileExtensions; info.Icon = new IconDescriptor(PluginResources.bil); info.Enabled = true; return(info); }
/// <summary> /// Returns a file type information object. /// </summary> /// <param name="name">The <see cref="IFileTypeDefinition"/> will pass "" as the name for this parameter</param> /// <returns>an SimpleText file type information object</returns> public virtual IFileTypeInformation BuildFileTypeInformation(string name) { var info = FileTypeManager.BuildFileTypeInformation(); info.FileTypeDefinitionId = new FileTypeDefinitionId("Simple Text Filter 1.0.0.0"); info.FileTypeName = new LocalizableString("Simple text files"); info.FileTypeDocumentName = new LocalizableString("Test text files"); info.FileTypeDocumentsName = new LocalizableString("Simple text files"); info.Description = new LocalizableString("This sample filter is used to process simple text files."); info.FileDialogWildcardExpression = "*.text"; info.DefaultFileExtension = "text"; info.Icon = new IconDescriptor(PluginResources.SimpleTextIcon); info.WinFormSettingsPageIds = new string[] { "SimpleText_Settings", "QuickInserts_Settings", }; return(info); }
public IFileTypeInformation BuildFileTypeInformation(string name) { var info = FileTypeManager.BuildFileTypeInformation(); info.FileTypeDefinitionId = new FileTypeDefinitionId("PO file type 1.7.0.0"); info.FileTypeName = new LocalizableString(PoFileTypeResources.Po_File); info.FileTypeDocumentName = new LocalizableString(PoFileTypeResources.Po_File); info.FileTypeDocumentsName = new LocalizableString(PoFileTypeResources.Po_Files); info.Description = new LocalizableString(PoFileTypeResources.Po_File_Filter_Description); info.FileDialogWildcardExpression = "*.po"; info.DefaultFileExtension = "po"; info.Icon = new IconDescriptor(PoFileTypeResources.PoFileIcon); info.WinFormSettingsPageIds = new[] { "PoFile_Segment_Settings", "Community_Embeddded_Content_Processor_Settings" }; return(info); }