]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.cpp
#7379 avoid the wrap spell check question when buffer is empty
[lyx.git] / src / insets / InsetScript.cpp
index 76f5757c38f147766530059380d4f43b2607a537..b85b36ee13d8e32f476ccdedd431b66ddc494788 100644 (file)
@@ -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,7 +421,7 @@ docstring InsetScript::xhtml(XHTMLStream & xs, OutputParams const & runparams) c
 }
 
 
-docstring InsetScript::contextMenu(BufferView const &, int, int) const
+docstring InsetScript::contextMenuName() const
 {
        return from_ascii("context-script");
 }