Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
DocumentPlaceholderResolverBase.cs
3
5{
10 public abstract class DocumentPlaceholderResolverBase<T> : IDocumentPlaceholderResolver<T>
11 {
12 protected IWorkspaceService _workspaceService;
13
19 {
20 _workspaceService = workspaceService;
21 }
22
30
38 {
39 List<DocXPlaceholderHelper.TextPlaceholders> textPlaceholdersList = new List<DocXPlaceholderHelper.TextPlaceholders>();
40 foreach (T item in items)
41 {
43 textPlaceholdersList.Add(textPlaceholders);
44 }
45 return DocXPlaceholderHelper.ConvertTextToTablePlaceholders(textPlaceholdersList);
46 }
47
49 public abstract List<string> SupportedPlaceholderKeys { get; }
50
52 public virtual List<int> PostfixNumbersSupported { get; } = null;
53 }
54}
DocumentPlaceholderResolverBase(IWorkspaceService workspaceService)
Base constructor for a document placeholder resolver.
DocXPlaceholderHelper.TextPlaceholders ResolveTextPlaceholders(T item)
Take the T item and create DocXPlaceholderHelper.TextPlaceholders.
virtual DocXPlaceholderHelper.TablePlaceholders ResolveTablePlaceholders(IEnumerable< T > items)
Take the list of T items and create DocXPlaceholderHelper.TablePlaceholders.
virtual List< int > PostfixNumbersSupported
List of all postfix numbers that are supported by this resolver.
List< string > SupportedPlaceholderKeys
List of all placeholder keys that are supported by this resolver.
Class to hold table placeholders and their list of values.
Interface for a service used to manage a workspace.