X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetWrap.cpp;h=79dd8065bf25a305ff56a86925728ea6fbe7eae3;hb=dbb1ac30e9a87007af7c53f0f93ec9e21826f90b;hp=a3eca3c5a2f57f7fb1f19cbcde5beeb772ab4f36;hpb=838af80834ac38c231ff080acc3a6d60ad664ede;p=lyx.git diff --git a/src/insets/InsetWrap.cpp b/src/insets/InsetWrap.cpp index a3eca3c5a2..79dd8065bf 100644 --- a/src/insets/InsetWrap.cpp +++ b/src/insets/InsetWrap.cpp @@ -58,7 +58,7 @@ InsetWrap::~InsetWrap() } -docstring InsetWrap::name() const +docstring InsetWrap::layoutName() const { return "Wrap:" + from_utf8(params_.type); } @@ -182,7 +182,7 @@ void InsetWrap::validate(LaTeXFeatures & features) const } -int InsetWrap::latex(odocstream & os, OutputParams const & runparams_in) const +void InsetWrap::latex(otexstream & os, OutputParams const & runparams_in) const { OutputParams runparams(runparams_in); runparams.inFloat = OutputParams::MAINFLOAT; @@ -196,9 +196,8 @@ int InsetWrap::latex(odocstream & os, OutputParams const & runparams_in) const if (over.value() != 0) os << '[' << from_ascii(params_.overhang.asLatexString()) << ']'; os << '{' << from_ascii(params_.width.asLatexString()) << "}%\n"; - int const i = InsetText::latex(os, runparams); + InsetText::latex(os, runparams); os << "\\end{wrap" << from_ascii(params_.type) << "}%\n"; - return i + 2; } @@ -227,7 +226,7 @@ docstring InsetWrap::xhtml(XHTMLStream & xs, OutputParams const & rp) const { string const len = params_.width.asHTMLString(); string const width = len.empty() ? "50%" : len; - string const attr = "class='wrap' style='width: " + len + ";'"; + string const attr = "class='wrap' style='width: " + width + ";'"; xs << html::StartTag("div", attr); docstring const deferred = InsetText::insetAsXHTML(xs, rp, InsetText::WriteInnerTag);