2014-04-09 17:43:14 +04:00
|
|
|
namespace LAview {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Text in the LaTeX document.
|
|
|
|
*/
|
|
|
|
public class Text : ADoc {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Plain text in UTF-8 string.
|
|
|
|
*/
|
2014-10-30 16:58:23 +03:00
|
|
|
public string text { get; set; default = ""; }
|
2014-04-09 17:43:14 +04:00
|
|
|
|
|
|
|
/**
|
2014-07-25 18:30:55 +04:00
|
|
|
* Constructs a new ``Text``.
|
2014-04-09 17:43:14 +04:00
|
|
|
*
|
|
|
|
* @param text UTF-8 string.
|
|
|
|
*/
|
|
|
|
public Text (string text) {
|
|
|
|
this.text = text;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-07-25 18:30:55 +04:00
|
|
|
* Gets a copy of the ``Text``.
|
2014-04-09 17:43:14 +04:00
|
|
|
*/
|
|
|
|
public override IDoc copy () {
|
|
|
|
return new Text (text);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-07-25 18:30:55 +04:00
|
|
|
* Generates LaTeX string for the ``Text``.
|
2014-04-09 17:43:14 +04:00
|
|
|
*/
|
|
|
|
public override string generate () {
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|