]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.cpp
Replace a half-baked attempt to remove \lyxdot from the directory part of
[lyx.git] / src / insets / InsetScript.cpp
index 76f5757c38f147766530059380d4f43b2607a537..1328e3847a593e216a2b1d868f9f3a75102f0f5b 100644 (file)
@@ -143,7 +143,7 @@ InsetScript::~InsetScript()
 }
 
 
-docstring InsetScript::name() const 
+docstring InsetScript::layoutName() const
 {
        return from_ascii("script:" + scripttranslator().find(params_.type));
 }
@@ -334,7 +334,7 @@ void InsetScript::validate(LaTeXFeatures & features) const
 }
 
 
-int InsetScript::latex(odocstream & os, OutputParams const & runparams) const
+void InsetScript::latex(otexstream & os, OutputParams const & runparams) const
 {
        switch (params_.type) {
        case InsetScriptParams::Subscript:
@@ -344,10 +344,8 @@ int InsetScript::latex(odocstream & os, OutputParams const & runparams) const
                os << "\\textsuperscript{";
                break;
        }
-       int const i = InsetText::latex(os, runparams);
+       InsetText::latex(os, runparams);
        os << "}";
-
-       return i;
 }
 
 
@@ -423,9 +421,9 @@ docstring InsetScript::xhtml(XHTMLStream & xs, OutputParams const & runparams) c
 }
 
 
-docstring InsetScript::contextMenu(BufferView const &, int, int) const
+string InsetScript::contextMenuName() const
 {
-       return from_ascii("context-script");
+       return "context-script";
 }