mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +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
|
EndHTMLStyle
|
||||||
HTMLTag span
|
HTMLTag span
|
||||||
MultiPar false
|
MultiPar false
|
||||||
|
SpellCheck false
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Info:menu
|
InsetLayout Info:menu
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#include "frontends/Application.h"
|
#include "frontends/Application.h"
|
||||||
|
|
||||||
|
#include "support/Changer.h"
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/docstream.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)
|
void InsetInfo::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -203,7 +203,11 @@ public:
|
|||||||
void setInfo(std::string const & info);
|
void setInfo(std::string const & info);
|
||||||
///
|
///
|
||||||
void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false) override;
|
void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false) override;
|
||||||
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const 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;
|
docstring toolTip(BufferView const & bv, int x, int y) const override;
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user