diff options
Diffstat (limited to 'src/ext/VisualStudio/wixext/Symbols/HelpPluginSymbol.cs')
-rw-r--r-- | src/ext/VisualStudio/wixext/Symbols/HelpPluginSymbol.cs | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/ext/VisualStudio/wixext/Symbols/HelpPluginSymbol.cs b/src/ext/VisualStudio/wixext/Symbols/HelpPluginSymbol.cs new file mode 100644 index 00000000..a452fbd5 --- /dev/null +++ b/src/ext/VisualStudio/wixext/Symbols/HelpPluginSymbol.cs | |||
@@ -0,0 +1,79 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.VisualStudio | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.VisualStudio.Symbols; | ||
7 | |||
8 | public static partial class VSSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition HelpPlugin = new IntermediateSymbolDefinition( | ||
11 | VSSymbolDefinitionType.HelpPlugin.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(HelpPluginSymbolFields.HelpNamespaceRef), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(HelpPluginSymbolFields.ParentHelpNamespaceRef), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(HelpPluginSymbolFields.HxTFileRef), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(HelpPluginSymbolFields.HxAFileRef), IntermediateFieldType.String), | ||
18 | new IntermediateFieldDefinition(nameof(HelpPluginSymbolFields.ParentHxTFileRef), IntermediateFieldType.String), | ||
19 | }, | ||
20 | typeof(HelpPluginSymbol)); | ||
21 | } | ||
22 | } | ||
23 | |||
24 | namespace WixToolset.VisualStudio.Symbols | ||
25 | { | ||
26 | using WixToolset.Data; | ||
27 | |||
28 | public enum HelpPluginSymbolFields | ||
29 | { | ||
30 | HelpNamespaceRef, | ||
31 | ParentHelpNamespaceRef, | ||
32 | HxTFileRef, | ||
33 | HxAFileRef, | ||
34 | ParentHxTFileRef, | ||
35 | } | ||
36 | |||
37 | public class HelpPluginSymbol : IntermediateSymbol | ||
38 | { | ||
39 | public HelpPluginSymbol() : base(VSSymbolDefinitions.HelpPlugin, null, null) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public HelpPluginSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(VSSymbolDefinitions.HelpPlugin, sourceLineNumber, id) | ||
44 | { | ||
45 | } | ||
46 | |||
47 | public IntermediateField this[HelpPluginSymbolFields index] => this.Fields[(int)index]; | ||
48 | |||
49 | public string HelpNamespaceRef | ||
50 | { | ||
51 | get => this.Fields[(int)HelpPluginSymbolFields.HelpNamespaceRef].AsString(); | ||
52 | set => this.Set((int)HelpPluginSymbolFields.HelpNamespaceRef, value); | ||
53 | } | ||
54 | |||
55 | public string ParentHelpNamespaceRef | ||
56 | { | ||
57 | get => this.Fields[(int)HelpPluginSymbolFields.ParentHelpNamespaceRef].AsString(); | ||
58 | set => this.Set((int)HelpPluginSymbolFields.ParentHelpNamespaceRef, value); | ||
59 | } | ||
60 | |||
61 | public string HxTFileRef | ||
62 | { | ||
63 | get => this.Fields[(int)HelpPluginSymbolFields.HxTFileRef].AsString(); | ||
64 | set => this.Set((int)HelpPluginSymbolFields.HxTFileRef, value); | ||
65 | } | ||
66 | |||
67 | public string HxAFileRef | ||
68 | { | ||
69 | get => this.Fields[(int)HelpPluginSymbolFields.HxAFileRef].AsString(); | ||
70 | set => this.Set((int)HelpPluginSymbolFields.HxAFileRef, value); | ||
71 | } | ||
72 | |||
73 | public string ParentHxTFileRef | ||
74 | { | ||
75 | get => this.Fields[(int)HelpPluginSymbolFields.ParentHxTFileRef].AsString(); | ||
76 | set => this.Set((int)HelpPluginSymbolFields.ParentHxTFileRef, value); | ||
77 | } | ||
78 | } | ||
79 | } \ No newline at end of file | ||