diff options
Diffstat (limited to 'src/WixToolset.Core/Resolver.cs')
-rw-r--r-- | src/WixToolset.Core/Resolver.cs | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/WixToolset.Core/Resolver.cs b/src/WixToolset.Core/Resolver.cs index 1342444f..4f12ae76 100644 --- a/src/WixToolset.Core/Resolver.cs +++ b/src/WixToolset.Core/Resolver.cs | |||
@@ -7,7 +7,7 @@ namespace WixToolset.Core | |||
7 | using System.Linq; | 7 | using System.Linq; |
8 | using WixToolset.Core.Bind; | 8 | using WixToolset.Core.Bind; |
9 | using WixToolset.Data; | 9 | using WixToolset.Data; |
10 | using WixToolset.Data.Tuples; | 10 | using WixToolset.Data.Symbols; |
11 | using WixToolset.Extensibility; | 11 | using WixToolset.Extensibility; |
12 | using WixToolset.Extensibility.Data; | 12 | using WixToolset.Extensibility.Data; |
13 | using WixToolset.Extensibility.Services; | 13 | using WixToolset.Extensibility.Services; |
@@ -132,72 +132,72 @@ namespace WixToolset.Core | |||
132 | { | 132 | { |
133 | foreach (var section in context.IntermediateRepresentation.Sections) | 133 | foreach (var section in context.IntermediateRepresentation.Sections) |
134 | { | 134 | { |
135 | foreach (var tuple in section.Tuples.OfType<DialogTuple>()) | 135 | foreach (var symbol in section.Symbols.OfType<DialogSymbol>()) |
136 | { | 136 | { |
137 | if (this.VariableResolver.TryGetLocalizedControl(tuple.Id.Id, null, out var localizedControl)) | 137 | if (this.VariableResolver.TryGetLocalizedControl(symbol.Id.Id, null, out var localizedControl)) |
138 | { | 138 | { |
139 | if (CompilerConstants.IntegerNotSet != localizedControl.X) | 139 | if (CompilerConstants.IntegerNotSet != localizedControl.X) |
140 | { | 140 | { |
141 | tuple.HCentering = localizedControl.X; | 141 | symbol.HCentering = localizedControl.X; |
142 | } | 142 | } |
143 | 143 | ||
144 | if (CompilerConstants.IntegerNotSet != localizedControl.Y) | 144 | if (CompilerConstants.IntegerNotSet != localizedControl.Y) |
145 | { | 145 | { |
146 | tuple.VCentering = localizedControl.Y; | 146 | symbol.VCentering = localizedControl.Y; |
147 | } | 147 | } |
148 | 148 | ||
149 | if (CompilerConstants.IntegerNotSet != localizedControl.Width) | 149 | if (CompilerConstants.IntegerNotSet != localizedControl.Width) |
150 | { | 150 | { |
151 | tuple.Width = localizedControl.Width; | 151 | symbol.Width = localizedControl.Width; |
152 | } | 152 | } |
153 | 153 | ||
154 | if (CompilerConstants.IntegerNotSet != localizedControl.Height) | 154 | if (CompilerConstants.IntegerNotSet != localizedControl.Height) |
155 | { | 155 | { |
156 | tuple.Height = localizedControl.Height; | 156 | symbol.Height = localizedControl.Height; |
157 | } | 157 | } |
158 | 158 | ||
159 | tuple.RightAligned |= localizedControl.RightAligned; | 159 | symbol.RightAligned |= localizedControl.RightAligned; |
160 | tuple.RightToLeft |= localizedControl.RightToLeft; | 160 | symbol.RightToLeft |= localizedControl.RightToLeft; |
161 | tuple.LeftScroll |= localizedControl.LeftScroll; | 161 | symbol.LeftScroll |= localizedControl.LeftScroll; |
162 | 162 | ||
163 | if (!String.IsNullOrEmpty(localizedControl.Text)) | 163 | if (!String.IsNullOrEmpty(localizedControl.Text)) |
164 | { | 164 | { |
165 | tuple.Title = localizedControl.Text; | 165 | symbol.Title = localizedControl.Text; |
166 | } | 166 | } |
167 | } | 167 | } |
168 | } | 168 | } |
169 | 169 | ||
170 | foreach (var tuple in section.Tuples.OfType<ControlTuple>()) | 170 | foreach (var symbol in section.Symbols.OfType<ControlSymbol>()) |
171 | { | 171 | { |
172 | if (this.VariableResolver.TryGetLocalizedControl(tuple.DialogRef, tuple.Control, out var localizedControl)) | 172 | if (this.VariableResolver.TryGetLocalizedControl(symbol.DialogRef, symbol.Control, out var localizedControl)) |
173 | { | 173 | { |
174 | if (CompilerConstants.IntegerNotSet != localizedControl.X) | 174 | if (CompilerConstants.IntegerNotSet != localizedControl.X) |
175 | { | 175 | { |
176 | tuple.X = localizedControl.X; | 176 | symbol.X = localizedControl.X; |
177 | } | 177 | } |
178 | 178 | ||
179 | if (CompilerConstants.IntegerNotSet != localizedControl.Y) | 179 | if (CompilerConstants.IntegerNotSet != localizedControl.Y) |
180 | { | 180 | { |
181 | tuple.Y = localizedControl.Y; | 181 | symbol.Y = localizedControl.Y; |
182 | } | 182 | } |
183 | 183 | ||
184 | if (CompilerConstants.IntegerNotSet != localizedControl.Width) | 184 | if (CompilerConstants.IntegerNotSet != localizedControl.Width) |
185 | { | 185 | { |
186 | tuple.Width = localizedControl.Width; | 186 | symbol.Width = localizedControl.Width; |
187 | } | 187 | } |
188 | 188 | ||
189 | if (CompilerConstants.IntegerNotSet != localizedControl.Height) | 189 | if (CompilerConstants.IntegerNotSet != localizedControl.Height) |
190 | { | 190 | { |
191 | tuple.Height = localizedControl.Height; | 191 | symbol.Height = localizedControl.Height; |
192 | } | 192 | } |
193 | 193 | ||
194 | tuple.RightAligned |= localizedControl.RightAligned; | 194 | symbol.RightAligned |= localizedControl.RightAligned; |
195 | tuple.RightToLeft |= localizedControl.RightToLeft; | 195 | symbol.RightToLeft |= localizedControl.RightToLeft; |
196 | tuple.LeftScroll |= localizedControl.LeftScroll; | 196 | symbol.LeftScroll |= localizedControl.LeftScroll; |
197 | 197 | ||
198 | if (!String.IsNullOrEmpty(localizedControl.Text)) | 198 | if (!String.IsNullOrEmpty(localizedControl.Text)) |
199 | { | 199 | { |
200 | tuple.Text = localizedControl.Text; | 200 | symbol.Text = localizedControl.Text; |
201 | } | 201 | } |
202 | } | 202 | } |
203 | } | 203 | } |
@@ -215,10 +215,10 @@ namespace WixToolset.Core | |||
215 | } | 215 | } |
216 | 216 | ||
217 | // Gather all the wix variables. | 217 | // Gather all the wix variables. |
218 | var wixVariableTuples = context.IntermediateRepresentation.Sections.SelectMany(s => s.Tuples).OfType<WixVariableTuple>(); | 218 | var wixVariableSymbols = context.IntermediateRepresentation.Sections.SelectMany(s => s.Symbols).OfType<WixVariableSymbol>(); |
219 | foreach (var tuple in wixVariableTuples) | 219 | foreach (var symbol in wixVariableSymbols) |
220 | { | 220 | { |
221 | this.VariableResolver.AddVariable(tuple.SourceLineNumbers, tuple.Id.Id, tuple.Value, tuple.Overridable); | 221 | this.VariableResolver.AddVariable(symbol.SourceLineNumbers, symbol.Id.Id, symbol.Value, symbol.Overridable); |
222 | } | 222 | } |
223 | 223 | ||
224 | return codepage; | 224 | return codepage; |
@@ -234,7 +234,7 @@ namespace WixToolset.Core | |||
234 | AddFilteredLocalizations(result, filter, localizations); | 234 | AddFilteredLocalizations(result, filter, localizations); |
235 | 235 | ||
236 | // Filter localizations provided by extensions with data. | 236 | // Filter localizations provided by extensions with data. |
237 | var creator = context.ServiceProvider.GetService<ITupleDefinitionCreator>(); | 237 | var creator = context.ServiceProvider.GetService<ISymbolDefinitionCreator>(); |
238 | 238 | ||
239 | foreach (var data in context.ExtensionData) | 239 | foreach (var data in context.ExtensionData) |
240 | { | 240 | { |