1
1
using System ;
2
2
using System . Collections . Generic ;
3
- using System . Linq ;
4
3
using System . Windows . Forms ;
5
4
using Rubberduck . Interaction ;
6
5
using Rubberduck . Navigation . CodeExplorer ;
7
6
using Rubberduck . UI . Command ;
8
7
using Rubberduck . VBEditor ;
9
8
using Rubberduck . VBEditor . ComManagement ;
9
+ using Rubberduck . VBEditor . Extensions ;
10
10
using Rubberduck . VBEditor . SafeComWrappers ;
11
11
using Rubberduck . VBEditor . SafeComWrappers . Abstract ;
12
12
@@ -16,23 +16,23 @@ public class ExportCommand : CommandBase
16
16
{
17
17
private static readonly Dictionary < ComponentType , string > VBAExportableFileExtensions = new Dictionary < ComponentType , string >
18
18
{
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 }
23
23
} ;
24
24
25
25
private static readonly Dictionary < ComponentType , string > VB6ExportableFileExtensions = new Dictionary < ComponentType , string >
26
26
{
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 } ,
36
36
} ;
37
37
38
38
private readonly IFileSystemBrowserFactory _dialogFactory ;
0 commit comments