X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetBibtex.cpp;h=13c91b0739e6b5a25cb5b853bd6b6991fbf76cd4;hb=860accd01fb8115ec7c6ad80b054f1046e19c62f;hp=eb0cf8ff922ba0a86eb013ac165b6eeb1e2aae40;hpb=8c351e32be92fca91e2dd1f9ec478d5cb1ce6c8c;p=lyx.git diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index eb0cf8ff92..13c91b0739 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -27,6 +27,7 @@ #include "output_xhtml.h" #include "OutputParams.h" #include "PDFOptions.h" +#include "texstream.h" #include "TextClass.h" #include "frontends/alert.h" @@ -103,7 +104,7 @@ void InsetBibtex::doDispatch(Cursor & cur, FuncRequest & cmd) Alert::warning(message.title_, message.details_); cur.noScreenUpdate(); } else - throw message; + throw; break; } @@ -173,21 +174,16 @@ docstring InsetBibtex::screenLabel() const docstring InsetBibtex::toolTip(BufferView const & /*bv*/, int /*x*/, int /*y*/) const { - docstring item = from_ascii("* "); - docstring tip = _("Databases:") + "\n"; + docstring tip = _("Databases:"); vector bibfilelist = getVectorFromString(getParam("bibfiles")); - if (bibfilelist.empty()) { - tip += item; - tip += _("none"); - } else { - vector::const_iterator it = bibfilelist.begin(); - vector::const_iterator en = bibfilelist.end(); - for (; it != en; ++it) { - tip += item; - tip += *it + "\n"; - } - } + tip += "
    "; + if (bibfilelist.empty()) + tip += "
  • " + _("none") + "
  • "; + else + for (docstring const & bibfile : bibfilelist) + tip += "
  • " + bibfile + "
  • "; + tip += "
"; // Style-Options bool toc = false; @@ -199,14 +195,10 @@ docstring InsetBibtex::toolTip(BufferView const & /*bv*/, int /*x*/, int /*y*/) style = split(style, bibtotoc, char_type(',')); } - tip += _("Style File:") +"\n"; - tip += item; - if (!style.empty()) - tip += style; - else - tip += _("none"); + tip += _("Style File:"); + tip += "
  • " + (style.empty() ? _("none") : style) + "
"; - tip += "\n" + _("Lists:") + " "; + tip += _("Lists:") + " "; docstring btprint = getParam("btprint"); if (btprint == "btPrintAll") tip += _("all references");