]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetNote.cpp
index 8a0f657ac597e0176ca8ff336b2cd4bb6c9e15a1..de03d61b6b46a4e95e5f94daa78a9e6472ecf043 100644 (file)
@@ -27,7 +27,7 @@
 #include "InsetIterator.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
-#include "MetricsInfo.h"
+#include "LyXRC.h"
 #include "OutputParams.h"
 #include "ParIterator.h"
 #include "TextClass.h"
@@ -351,6 +351,11 @@ docstring InsetNote::contextMenu(BufferView const &, int, int) const
        return from_ascii("context-note");
 }
 
+bool InsetNote::allowSpellCheck() const
+{
+       return (params_.type == InsetNoteParams::Greyedout || lyxrc.spellcheck_notes);
+}
+
 
 string InsetNote::params2string(InsetNoteParams const & params)
 {