blob: 5d647fdaaf23a336ad7e93d97b9f8add4110fc76 (
plain)
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
|
// 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.Extensibility.Services
{
using WixToolset.Data;
public interface IVariableResolver
{
void AddLocalization(Localization localization);
/// <summary>
/// Add a variable.
/// </summary>
/// <param name="name">The name of the variable.</param>
/// <param name="value">The value of the variable.</param>
/// <param name="overridable">Indicates whether the variable can be overridden by an existing variable.</param>
void AddVariable(SourceLineNumber sourceLineNumber, string name, string value, bool overridable);
/// <summary>
/// Resolve the wix variables in a value.
/// </summary>
/// <param name="sourceLineNumbers">The source line information for the value.</param>
/// <param name="value">The value to resolve.</param>
/// <returns>The resolved result.</returns>
IVariableResolution ResolveVariables(SourceLineNumber sourceLineNumbers, string value);
/// <summary>
/// Try to find localization information for dialog and (optional) control.
/// </summary>
/// <param name="dialog">Dialog identifier.</param>
/// <param name="control">Optional control identifier.</param>
/// <param name="localizedControl">Found localization information.</param>
/// <returns>True if localized control was found, otherwise false.</returns>
bool TryGetLocalizedControl(string dialog, string control, out LocalizedControl localizedControl);
}
}
|