LAview.LaTeX-Struct/src/latex-struct/Text.vala

37 lines
533 B
Vala

namespace LAview {
/**
* Text in the LaTeX document.
*/
public class Text : ADoc {
/**
* Plain text in UTF-8 string.
*/
public string text = "";
/**
* Constructs a new ``Text``.
*
* @param text UTF-8 string.
*/
public Text (string text) {
this.text = text;
}
/**
* Gets a copy of the ``Text``.
*/
public override IDoc copy () {
return new Text (text);
}
/**
* Generates LaTeX string for the ``Text``.
*/
public override string generate () {
return text;
}
}
}