aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/HelpPluginTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/HelpPluginTuple.cs')
-rw-r--r--src/wixext/Tuples/HelpPluginTuple.cs79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/wixext/Tuples/HelpPluginTuple.cs b/src/wixext/Tuples/HelpPluginTuple.cs
new file mode 100644
index 00000000..5f146199
--- /dev/null
+++ b/src/wixext/Tuples/HelpPluginTuple.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
3namespace WixToolset.VisualStudio
4{
5 using WixToolset.Data;
6 using WixToolset.VisualStudio.Tuples;
7
8 public static partial class VSTupleDefinitions
9 {
10 public static readonly IntermediateTupleDefinition HelpPlugin = new IntermediateTupleDefinition(
11 VSTupleDefinitionType.HelpPlugin.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(HelpPluginTupleFields.HelpNamespaceRef), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(HelpPluginTupleFields.ParentHelpNamespaceRef), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(HelpPluginTupleFields.HxTFileRef), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(HelpPluginTupleFields.HxAFileRef), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(HelpPluginTupleFields.ParentHxTFileRef), IntermediateFieldType.String),
19 },
20 typeof(HelpPluginTuple));
21 }
22}
23
24namespace WixToolset.VisualStudio.Tuples
25{
26 using WixToolset.Data;
27
28 public enum HelpPluginTupleFields
29 {
30 HelpNamespaceRef,
31 ParentHelpNamespaceRef,
32 HxTFileRef,
33 HxAFileRef,
34 ParentHxTFileRef,
35 }
36
37 public class HelpPluginTuple : IntermediateTuple
38 {
39 public HelpPluginTuple() : base(VSTupleDefinitions.HelpPlugin, null, null)
40 {
41 }
42
43 public HelpPluginTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(VSTupleDefinitions.HelpPlugin, sourceLineNumber, id)
44 {
45 }
46
47 public IntermediateField this[HelpPluginTupleFields index] => this.Fields[(int)index];
48
49 public string HelpNamespaceRef
50 {
51 get => this.Fields[(int)HelpPluginTupleFields.HelpNamespaceRef].AsString();
52 set => this.Set((int)HelpPluginTupleFields.HelpNamespaceRef, value);
53 }
54
55 public string ParentHelpNamespaceRef
56 {
57 get => this.Fields[(int)HelpPluginTupleFields.ParentHelpNamespaceRef].AsString();
58 set => this.Set((int)HelpPluginTupleFields.ParentHelpNamespaceRef, value);
59 }
60
61 public string HxTFileRef
62 {
63 get => this.Fields[(int)HelpPluginTupleFields.HxTFileRef].AsString();
64 set => this.Set((int)HelpPluginTupleFields.HxTFileRef, value);
65 }
66
67 public string HxAFileRef
68 {
69 get => this.Fields[(int)HelpPluginTupleFields.HxAFileRef].AsString();
70 set => this.Set((int)HelpPluginTupleFields.HxAFileRef, value);
71 }
72
73 public string ParentHxTFileRef
74 {
75 get => this.Fields[(int)HelpPluginTupleFields.ParentHxTFileRef].AsString();
76 set => this.Set((int)HelpPluginTupleFields.ParentHxTFileRef, value);
77 }
78 }
79} \ No newline at end of file