mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-31 15:46:16 +00:00
Preparation for the nomencl inset: Add {} in InsetCommand rather than
InsetHFill. This is possible because InsetHFill is the only inset so far without parameters. * src/insets/insetcommandparams.C (InsetCommandParams::getCommand): Add {} to commands without parameters. * src/insets/insethfill.[Ch] (InsetHFill::latex): Remove git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15736 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d06475855c
commit
dfee517417
@ -307,6 +307,10 @@ docstring const InsetCommandParams::getCommand() const
|
||||
} else
|
||||
s += '{' + params_[i] + '}';
|
||||
}
|
||||
if (info_->n == 0)
|
||||
// Make sure that following stuff does not change the
|
||||
// command name.
|
||||
s += "{}";
|
||||
return s;
|
||||
}
|
||||
|
||||
|
@ -47,14 +47,6 @@ docstring const InsetHFill::getScreenLabel(Buffer const &) const
|
||||
}
|
||||
|
||||
|
||||
int InsetHFill::latex(Buffer const &, odocstream & os,
|
||||
OutputParams const &) const
|
||||
{
|
||||
os << getCommand() << "{}";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int InsetHFill::plaintext(Buffer const &, odocstream & os,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -29,9 +29,6 @@ public:
|
||||
///
|
||||
InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; }
|
||||
///
|
||||
int latex(Buffer const &, odocstream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int plaintext(Buffer const &, odocstream &,
|
||||
OutputParams const & runparams) const;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user