77using Rubberduck . UI . Command ;
88using Rubberduck . VBEditor ;
99using Rubberduck . VBEditor . ComManagement ;
10+ using Rubberduck . VBEditor . Extensions ;
1011using Rubberduck . VBEditor . SafeComWrappers ;
1112using Rubberduck . VBEditor . SafeComWrappers . Abstract ;
1213
@@ -16,22 +17,22 @@ public class ExportCommand : CommandBase
1617 {
1718 private static readonly Dictionary < ComponentType , string > VBAExportableFileExtensions = new Dictionary < ComponentType , string >
1819 {
19- { ComponentType . StandardModule , ".bas" } ,
20- { ComponentType . ClassModule , ".cls" } ,
21- { ComponentType . Document , ".cls" } ,
22- { ComponentType . UserForm , ".frm" }
20+ { ComponentType . StandardModule , ComponentTypeExtensions . StandardExtension } ,
21+ { ComponentType . ClassModule , ComponentTypeExtensions . ClassExtension } ,
22+ { ComponentType . Document , ComponentTypeExtensions . DocClassExtension } ,
23+ { ComponentType . UserForm , ComponentTypeExtensions . FormExtension }
2324 } ;
2425
2526 private static readonly Dictionary < ComponentType , string > VB6ExportableFileExtensions = new Dictionary < ComponentType , string >
2627 {
27- { ComponentType . StandardModule , ".bas" } ,
28- { ComponentType . ClassModule , ".cls" } ,
29- { ComponentType . VBForm , ".frm" } ,
30- { ComponentType . MDIForm , ".frm" } ,
31- { ComponentType . UserControl , ".ctl" } ,
32- { ComponentType . DocObject , ".dob" } ,
28+ { ComponentType . StandardModule , ComponentTypeExtensions . StandardExtension } ,
29+ { ComponentType . ClassModule , ComponentTypeExtensions . ClassExtension } ,
30+ { ComponentType . VBForm , ComponentTypeExtensions . FormExtension } ,
31+ { ComponentType . MDIForm , ComponentTypeExtensions . FormExtension } ,
32+ { ComponentType . UserControl , ComponentTypeExtensions . UserControlExtension } ,
33+ { ComponentType . DocObject , ComponentTypeExtensions . DocObjectExtension } ,
3334 { ComponentType . ActiveXDesigner , ".dsr" } ,
34- { ComponentType . PropPage , ".pag" } ,
35+ { ComponentType . PropPage , ComponentTypeExtensions . PropertyPageExtension } ,
3536 { ComponentType . ResFile , ".res" } ,
3637 } ;
3738
0 commit comments