mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
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:
parent
3c59cc1c7c
commit
33103ebc37
@ -92,6 +92,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
|
int InsetNomencl::docbook(odocstream & os, OutputParams const &) const
|
||||||
{
|
{
|
||||||
|
@ -45,6 +45,9 @@ public:
|
|||||||
///
|
///
|
||||||
InsetCode lyxCode() const { return NOMENCL_CODE; }
|
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;
|
int docbook(odocstream &, OutputParams const &) const;
|
||||||
/// Does nothing at the moment.
|
/// Does nothing at the moment.
|
||||||
docstring xhtml(XHTMLStream &, OutputParams const &) const;
|
docstring xhtml(XHTMLStream &, OutputParams const &) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user