diff options
Diffstat (limited to 'src/wixext/Tuples/HelpFileTuple.cs')
| -rw-r--r-- | src/wixext/Tuples/HelpFileTuple.cs | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/src/wixext/Tuples/HelpFileTuple.cs b/src/wixext/Tuples/HelpFileTuple.cs new file mode 100644 index 00000000..9ea5e8e3 --- /dev/null +++ b/src/wixext/Tuples/HelpFileTuple.cs | |||
| @@ -0,0 +1,95 @@ | |||
| 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.Tuples; | ||
| 7 | |||
| 8 | public static partial class VSTupleDefinitions | ||
| 9 | { | ||
| 10 | public static readonly IntermediateTupleDefinition HelpFile = new IntermediateTupleDefinition( | ||
| 11 | VSTupleDefinitionType.HelpFile.ToString(), | ||
| 12 | new[] | ||
| 13 | { | ||
| 14 | new IntermediateFieldDefinition(nameof(HelpFileTupleFields.HelpFileName), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(HelpFileTupleFields.LangID), IntermediateFieldType.Number), | ||
| 16 | new IntermediateFieldDefinition(nameof(HelpFileTupleFields.HxSFileRef), IntermediateFieldType.String), | ||
| 17 | new IntermediateFieldDefinition(nameof(HelpFileTupleFields.HxIFileRef), IntermediateFieldType.String), | ||
| 18 | new IntermediateFieldDefinition(nameof(HelpFileTupleFields.HxQFileRef), IntermediateFieldType.String), | ||
| 19 | new IntermediateFieldDefinition(nameof(HelpFileTupleFields.HxRFileRef), IntermediateFieldType.String), | ||
| 20 | new IntermediateFieldDefinition(nameof(HelpFileTupleFields.SamplesFileRef), IntermediateFieldType.String), | ||
| 21 | }, | ||
| 22 | typeof(HelpFileTuple)); | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | namespace WixToolset.VisualStudio.Tuples | ||
| 27 | { | ||
| 28 | using WixToolset.Data; | ||
| 29 | |||
| 30 | public enum HelpFileTupleFields | ||
| 31 | { | ||
| 32 | HelpFileName, | ||
| 33 | LangID, | ||
| 34 | HxSFileRef, | ||
| 35 | HxIFileRef, | ||
| 36 | HxQFileRef, | ||
| 37 | HxRFileRef, | ||
| 38 | SamplesFileRef, | ||
| 39 | } | ||
| 40 | |||
| 41 | public class HelpFileTuple : IntermediateTuple | ||
| 42 | { | ||
| 43 | public HelpFileTuple() : base(VSTupleDefinitions.HelpFile, null, null) | ||
| 44 | { | ||
| 45 | } | ||
| 46 | |||
| 47 | public HelpFileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(VSTupleDefinitions.HelpFile, sourceLineNumber, id) | ||
| 48 | { | ||
| 49 | } | ||
| 50 | |||
| 51 | public IntermediateField this[HelpFileTupleFields index] => this.Fields[(int)index]; | ||
| 52 | |||
| 53 | public string HelpFileName | ||
| 54 | { | ||
| 55 | get => this.Fields[(int)HelpFileTupleFields.HelpFileName].AsString(); | ||
| 56 | set => this.Set((int)HelpFileTupleFields.HelpFileName, value); | ||
| 57 | } | ||
| 58 | |||
| 59 | public int LangID | ||
| 60 | { | ||
| 61 | get => this.Fields[(int)HelpFileTupleFields.LangID].AsNumber(); | ||
| 62 | set => this.Set((int)HelpFileTupleFields.LangID, value); | ||
| 63 | } | ||
| 64 | |||
| 65 | public string HxSFileRef | ||
| 66 | { | ||
| 67 | get => this.Fields[(int)HelpFileTupleFields.HxSFileRef].AsString(); | ||
| 68 | set => this.Set((int)HelpFileTupleFields.HxSFileRef, value); | ||
| 69 | } | ||
| 70 | |||
| 71 | public string HxIFileRef | ||
| 72 | { | ||
| 73 | get => this.Fields[(int)HelpFileTupleFields.HxIFileRef].AsString(); | ||
| 74 | set => this.Set((int)HelpFileTupleFields.HxIFileRef, value); | ||
| 75 | } | ||
| 76 | |||
| 77 | public string HxQFileRef | ||
| 78 | { | ||
| 79 | get => this.Fields[(int)HelpFileTupleFields.HxQFileRef].AsString(); | ||
| 80 | set => this.Set((int)HelpFileTupleFields.HxQFileRef, value); | ||
| 81 | } | ||
| 82 | |||
| 83 | public string HxRFileRef | ||
| 84 | { | ||
| 85 | get => this.Fields[(int)HelpFileTupleFields.HxRFileRef].AsString(); | ||
| 86 | set => this.Set((int)HelpFileTupleFields.HxRFileRef, value); | ||
| 87 | } | ||
| 88 | |||
| 89 | public string SamplesFileRef | ||
| 90 | { | ||
| 91 | get => this.Fields[(int)HelpFileTupleFields.SamplesFileRef].AsString(); | ||
| 92 | set => this.Set((int)HelpFileTupleFields.SamplesFileRef, value); | ||
| 93 | } | ||
| 94 | } | ||
| 95 | } \ No newline at end of file | ||
