1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
// 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.
namespace WixToolset.VisualStudio
{
using WixToolset.Data;
using WixToolset.VisualStudio.Symbols;
public static partial class VSSymbolDefinitions
{
public static readonly IntermediateSymbolDefinition HelpFile = new IntermediateSymbolDefinition(
VSSymbolDefinitionType.HelpFile.ToString(),
new[]
{
new IntermediateFieldDefinition(nameof(HelpFileSymbolFields.HelpFileName), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(HelpFileSymbolFields.LangID), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(HelpFileSymbolFields.HxSFileRef), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(HelpFileSymbolFields.HxIFileRef), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(HelpFileSymbolFields.HxQFileRef), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(HelpFileSymbolFields.HxRFileRef), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(HelpFileSymbolFields.SamplesFileRef), IntermediateFieldType.String),
},
typeof(HelpFileSymbol));
}
}
namespace WixToolset.VisualStudio.Symbols
{
using WixToolset.Data;
public enum HelpFileSymbolFields
{
HelpFileName,
LangID,
HxSFileRef,
HxIFileRef,
HxQFileRef,
HxRFileRef,
SamplesFileRef,
}
public class HelpFileSymbol : IntermediateSymbol
{
public HelpFileSymbol() : base(VSSymbolDefinitions.HelpFile, null, null)
{
}
public HelpFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(VSSymbolDefinitions.HelpFile, sourceLineNumber, id)
{
}
public IntermediateField this[HelpFileSymbolFields index] => this.Fields[(int)index];
public string HelpFileName
{
get => this.Fields[(int)HelpFileSymbolFields.HelpFileName].AsString();
set => this.Set((int)HelpFileSymbolFields.HelpFileName, value);
}
public int? LangID
{
get => this.Fields[(int)HelpFileSymbolFields.LangID].AsNullableNumber();
set => this.Set((int)HelpFileSymbolFields.LangID, value);
}
public string HxSFileRef
{
get => this.Fields[(int)HelpFileSymbolFields.HxSFileRef].AsString();
set => this.Set((int)HelpFileSymbolFields.HxSFileRef, value);
}
public string HxIFileRef
{
get => this.Fields[(int)HelpFileSymbolFields.HxIFileRef].AsString();
set => this.Set((int)HelpFileSymbolFields.HxIFileRef, value);
}
public string HxQFileRef
{
get => this.Fields[(int)HelpFileSymbolFields.HxQFileRef].AsString();
set => this.Set((int)HelpFileSymbolFields.HxQFileRef, value);
}
public string HxRFileRef
{
get => this.Fields[(int)HelpFileSymbolFields.HxRFileRef].AsString();
set => this.Set((int)HelpFileSymbolFields.HxRFileRef, value);
}
public string SamplesFileRef
{
get => this.Fields[(int)HelpFileSymbolFields.SamplesFileRef].AsString();
set => this.Set((int)HelpFileSymbolFields.SamplesFileRef, value);
}
}
}
|