Get rid of spelling and language marks in info inset

These are just annoying. Note that the language mark cannot currently
be specified in a layout file, but it is not clear that there is a
need for that. Therefore I used the simple and hackish way.
This commit is contained in:
Jean-Marc Lasgouttes 2022-03-10 13:35:45 +01:00
parent 12dfdbf0a3
commit a6db1383f5
3 changed files with 12 additions and 0 deletions

View File

@ -622,6 +622,7 @@ InsetLayout Info
EndHTMLStyle
HTMLTag span
MultiPar false
SpellCheck false
End
InsetLayout Info:menu

View File

@ -38,6 +38,7 @@
#include "frontends/Application.h"
#include "support/Changer.h"
#include "support/convert.h"
#include "support/debug.h"
#include "support/docstream.h"
@ -779,6 +780,12 @@ void InsetInfo::metrics(MetricsInfo & mi, Dimension & dim) const
}
void InsetInfo::draw(PainterInfo & pi, int x, int y) const
{
Changer chg = changeVar(lyxrc.mark_foreign_language, false);
InsetCollapsible::draw(pi, x, y);
}
void InsetInfo::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted)
{

View File

@ -203,7 +203,11 @@ public:
void setInfo(std::string const & info);
///
void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false) override;
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
void draw(PainterInfo & pi, int x, int y) const override;
///
docstring toolTip(BufferView const & bv, int x, int y) const override;
///