}
-docstring InsetScript::name() const
+docstring InsetScript::layoutName() const
{
- return from_ascii("script:" + scripttranslator().find(params_.type));
+ return from_ascii("Script:" + scripttranslator().find(params_.type));
}
FuncStatus & flag) const
{
switch (cmd.action()) {
- case LFUN_BREAK_PARAGRAPH:
+ case LFUN_PARAGRAPH_BREAK:
case LFUN_LAYOUT:
case LFUN_LAYOUT_PARAGRAPH:
case LFUN_MATH_DISPLAY:
case LFUN_FLOAT_LIST_INSERT:
case LFUN_FLOAT_WIDE_INSERT:
case LFUN_FOOTNOTE_INSERT:
- case LFUN_HFILL_INSERT:
case LFUN_INDEX_PRINT:
case LFUN_LISTING_INSERT:
case LFUN_MARGINALNOTE_INSERT:
}
-void InsetScript::validate(LaTeXFeatures & features) const
-{
- if (params_.type == InsetScriptParams::Subscript)
- features.require("subscript");
- InsetText::validate(features);
-}
-
-
-void InsetScript::latex(otexstream & os, OutputParams const & runparams) const
-{
- switch (params_.type) {
- case InsetScriptParams::Subscript:
- os << "\\textsubscript{";
- break;
- case InsetScriptParams::Superscript:
- os << "\\textsuperscript{";
- break;
- }
- InsetText::latex(os, runparams);
- os << "}";
-}
-
-
int InsetScript::plaintext(odocstream & os, OutputParams const & runparams) const
{
odocstringstream oss;
}
-docstring InsetScript::xhtml(XHTMLStream & xs, OutputParams const & runparams) const
-{
- string cmdname;
- switch (params_.type) {
- case InsetScriptParams::Subscript:
- cmdname = "sub";
- break;
- case InsetScriptParams::Superscript:
- cmdname = "sup";
- break;
- }
-
- xs << html::StartTag(cmdname);
- docstring const ret = InsetText::xhtml(xs, runparams);
- xs << html::EndTag(cmdname);
- return ret;
-}
-
-
-docstring InsetScript::contextMenuName() const
+string InsetScript::contextMenuName() const
{
- return from_ascii("context-script");
+ return "context-script";
}