mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
12dfdbf0a3
commit
a6db1383f5
@ -622,6 +622,7 @@ InsetLayout Info
|
||||
EndHTMLStyle
|
||||
HTMLTag span
|
||||
MultiPar false
|
||||
SpellCheck false
|
||||
End
|
||||
|
||||
InsetLayout Info:menu
|
||||
|
@ -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)
|
||||
|
||||
{
|
||||
|
@ -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;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user