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:
Georg Baum 2006-11-04 14:55:15 +00:00
parent d06475855c
commit dfee517417
3 changed files with 4 additions and 11 deletions

View File

@ -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;
}

View File

@ -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
{

View File

@ -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;
///