#include "InsetNewline.h"
+#include "Buffer.h"
#include "Dimension.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
int InsetNewline::latex(odocstream & os, OutputParams const &) const
{
+ LYXERR0("Code: " << buffer().inset().lyxCode());
+
switch (params_.kind) {
case InsetNewlineParams::NEWLINE:
os << "\\\\\n";
#include "support/docstream.h"
#include "support/gettext.h"
+#include "support/lstrings.h"
using namespace std;
+using namespace lyx::support;
namespace lyx {
/////////////////////////////////////////////////////////////////////
//
-// InsetPrintNomencl
+// InsetNomencl
//
/////////////////////////////////////////////////////////////////////
}
+docstring InsetNomencl::toolTip(BufferView const & /*bv*/, int /*x*/, int /*y*/) const
+{
+ docstring tip = _("Nomenclature Symbol: ") + getParam("symbol") + "\n";
+ tip += _("Description: ") + "\t"
+ + subst(getParam("description"), from_ascii("\\\\"), from_ascii("\n\t"));
+ if (!getParam("prefix").empty())
+ tip += "\n" + _("Sorting: ") + getParam("prefix");
+ return tip;
+}
+
+
+
int InsetNomencl::docbook(odocstream & os, OutputParams const &) const
{
os << "<glossterm linkend=\"" << nomenclature_entry_id << "\">"
///
docstring screenLabel() const;
///
+ docstring toolTip(BufferView const & bv, int x, int y) const;
+ ///
EDITABLE editable() const { return IS_EDITABLE; }
/// Updates needed features for this inset.
void validate(LaTeXFeatures & features) const;