mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
small Note cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19655 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5c1ffabd05
commit
063a289171
@ -184,8 +184,6 @@ void InsetNote::setButtonLabel()
|
|||||||
{
|
{
|
||||||
docstring const label = notetranslator_loc().find(params_.type);
|
docstring const label = notetranslator_loc().find(params_.type);
|
||||||
setLabel(label);
|
setLabel(label);
|
||||||
// isn't this an identity? - MV
|
|
||||||
setLabelFont(layout_.labelfont);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -280,23 +278,17 @@ int InsetNote::latex(Buffer const & buf, odocstream & os,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
OutputParams runparams(runparams_in);
|
OutputParams runparams(runparams_in);
|
||||||
string type;
|
|
||||||
if (params_.type == InsetNoteParams::Comment) {
|
if (params_.type == InsetNoteParams::Comment) {
|
||||||
type = "comment";
|
|
||||||
runparams.inComment = true;
|
runparams.inComment = true;
|
||||||
// Ignore files that are exported inside a comment
|
// Ignore files that are exported inside a comment
|
||||||
runparams.exportdata.reset(new ExportData);
|
runparams.exportdata.reset(new ExportData);
|
||||||
} else if (params_.type == InsetNoteParams::Greyedout)
|
}
|
||||||
type = "lyxgreyedout";
|
|
||||||
else if (params_.type == InsetNoteParams::Framed)
|
|
||||||
type = "framed";
|
|
||||||
else if (params_.type == InsetNoteParams::Shaded)
|
|
||||||
type = "shaded";
|
|
||||||
|
|
||||||
odocstringstream ss;
|
odocstringstream ss;
|
||||||
ss << "%\n\\begin{" << from_ascii(type) << "}\n";
|
//ss << "%\n\\begin{" << from_ascii(type) << "}\n";
|
||||||
|
ss << "%\n\\begin{" << from_ascii(layout_.latexname) << "}\n";
|
||||||
InsetText::latex(buf, ss, runparams);
|
InsetText::latex(buf, ss, runparams);
|
||||||
ss << "\n\\end{" << from_ascii(type) << "}\n";
|
ss << "\n\\end{" << from_ascii(layout_.latexname) << "}\n";
|
||||||
// the space after the comment in 'a[comment] b' will be eaten by the
|
// the space after the comment in 'a[comment] b' will be eaten by the
|
||||||
// comment environment since the space before b is ignored with the
|
// comment environment since the space before b is ignored with the
|
||||||
// following latex output:
|
// following latex output:
|
||||||
|
Loading…
Reference in New Issue
Block a user