11using System ;
22using System . Collections . Generic ;
3- using System . Linq ;
43using System . Windows . Forms ;
54using Rubberduck . Interaction ;
65using Rubberduck . Navigation . CodeExplorer ;
76using Rubberduck . UI . Command ;
87using Rubberduck . VBEditor ;
98using Rubberduck . VBEditor . ComManagement ;
9+ using Rubberduck . VBEditor . Extensions ;
1010using Rubberduck . VBEditor . SafeComWrappers ;
1111using Rubberduck . VBEditor . SafeComWrappers . Abstract ;
1212
@@ -16,23 +16,23 @@ public class ExportCommand : CommandBase
1616 {
1717 private static readonly Dictionary < ComponentType , string > VBAExportableFileExtensions = new Dictionary < ComponentType , string >
1818 {
19- { ComponentType . StandardModule , ".bas" } ,
20- { ComponentType . ClassModule , ".cls" } ,
21- { ComponentType . Document , ".cls" } ,
22- { ComponentType . UserForm , ".frm" }
19+ { ComponentType . StandardModule , ComponentTypeExtensions . StandardExtension } ,
20+ { ComponentType . ClassModule , ComponentTypeExtensions . ClassExtension } ,
21+ { ComponentType . Document , ComponentTypeExtensions . DocClassExtension } ,
22+ { ComponentType . UserForm , ComponentTypeExtensions . FormExtension }
2323 } ;
2424
2525 private static readonly Dictionary < ComponentType , string > VB6ExportableFileExtensions = new Dictionary < ComponentType , string >
2626 {
27- { ComponentType . StandardModule , ".bas" } ,
28- { ComponentType . ClassModule , ".cls" } ,
29- { ComponentType . VBForm , ".frm" } ,
30- { ComponentType . MDIForm , ".frm" } ,
31- { ComponentType . UserControl , ".ctl" } ,
32- { ComponentType . DocObject , ".dob" } ,
33- { ComponentType . ActiveXDesigner , ".dsr" } ,
34- { ComponentType . PropPage , ".pag" } ,
35- { ComponentType . ResFile , ".res" } ,
27+ { ComponentType . StandardModule , ComponentTypeExtensions . StandardExtension } ,
28+ { ComponentType . ClassModule , ComponentTypeExtensions . ClassExtension } ,
29+ { ComponentType . VBForm , ComponentTypeExtensions . FormExtension } ,
30+ { ComponentType . MDIForm , ComponentTypeExtensions . FormExtension } ,
31+ { ComponentType . UserControl , ComponentTypeExtensions . UserControlExtension } ,
32+ { ComponentType . DocObject , ComponentTypeExtensions . DocObjectExtension } ,
33+ { ComponentType . ActiveXDesigner , ComponentTypeExtensions . ActiveXDesignerExtension } ,
34+ { ComponentType . PropPage , ComponentTypeExtensions . PropertyPageExtension } ,
35+ { ComponentType . ResFile , ComponentTypeExtensions . ResourceExtension } ,
3636 } ;
3737
3838 private readonly IFileSystemBrowserFactory _dialogFactory ;
0 commit comments