7
7
using Rubberduck . UI . Command ;
8
8
using Rubberduck . VBEditor ;
9
9
using Rubberduck . VBEditor . ComManagement ;
10
+ using Rubberduck . VBEditor . Extensions ;
10
11
using Rubberduck . VBEditor . SafeComWrappers ;
11
12
using Rubberduck . VBEditor . SafeComWrappers . Abstract ;
12
13
@@ -16,22 +17,22 @@ public class ExportCommand : CommandBase
16
17
{
17
18
private static readonly Dictionary < ComponentType , string > VBAExportableFileExtensions = new Dictionary < ComponentType , string >
18
19
{
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 }
23
24
} ;
24
25
25
26
private static readonly Dictionary < ComponentType , string > VB6ExportableFileExtensions = new Dictionary < ComponentType , string >
26
27
{
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 } ,
33
34
{ ComponentType . ActiveXDesigner , ".dsr" } ,
34
- { ComponentType . PropPage , ".pag" } ,
35
+ { ComponentType . PropPage , ComponentTypeExtensions . PropertyPageExtension } ,
35
36
{ ComponentType . ResFile , ".res" } ,
36
37
} ;
37
38
0 commit comments