Show symbol name and description in plaintext export of nomenclature entries.

This addresses one of the issues highlighted in #10459.
See http://www.lyx.org/trac/ticket/10459
This commit is contained in:
Tommaso Cucinotta 2016-10-29 12:32:51 +02:00
parent 42d900c2a7
commit fcaec6166b
2 changed files with 11 additions and 0 deletions

View File

@ -93,6 +93,14 @@ docstring InsetNomencl::toolTip(BufferView const & /*bv*/, int /*x*/, int /*y*/)
}
int InsetNomencl::plaintext(odocstringstream & os,
OutputParams const &, size_t) const
{
docstring s = "[" + getParam("symbol") + ": " + getParam("description") + "]";
os << s;
return s.size();
}
int InsetNomencl::docbook(odocstream & os, OutputParams const &) const
{

View File

@ -45,6 +45,9 @@ public:
///
InsetCode lyxCode() const { return NOMENCL_CODE; }
///
int plaintext(odocstringstream & ods, OutputParams const & op,
size_t max_length = INT_MAX) const;
///
int docbook(odocstream &, OutputParams const &) const;
/// Does nothing at the moment.
docstring xhtml(XHTMLStream &, OutputParams const &) const;