Create rudimentary view models, default settings.
This commit is contained in:
@ -25,22 +25,16 @@ namespace zaaReloaded2.Controller.Elements
|
||||
/// <summary>
|
||||
/// Controller element that writes arbitrary text to the document.
|
||||
/// </summary>
|
||||
class CustomText : ElementBase
|
||||
class CustomText : FormatElementBase
|
||||
{
|
||||
public override string Label
|
||||
{
|
||||
get { return String.Format("\"{0}\"", Text); }
|
||||
get { return String.Format("\"{0}\"", Content); }
|
||||
}
|
||||
|
||||
public override void Run(Formatter.Formatter formatter)
|
||||
{
|
||||
formatter.Write(Text);
|
||||
formatter.WriteParagraph(Content);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the arbitrary text that will be written
|
||||
/// to the document.
|
||||
/// </summary>
|
||||
public string Text { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user