]> git.lyx.org Git - features.git/blobdiff - src/BufferParams.cpp
DocBook: add a parameter to change the namespace prefix for MathML.
[features.git] / src / BufferParams.cpp
index d4fb384f1836bc337fab4fa5bd01286c3e39bae1..35c2172340f01ba52e077bfd7cd50220e79dfa6a 100644 (file)
@@ -616,6 +616,23 @@ IgnoreList const & BufferParams::spellignore() const
 }
 
 
+bool BufferParams::spellignored(WordLangTuple const & wl) const
+{
+       bool has_item = false;
+       vector<WordLangTuple> il = spellignore();
+       vector<WordLangTuple>::const_iterator it = il.begin();
+       for (; it != il.end(); ++it) {
+               if (it->lang()->code() != wl.lang()->code())
+                       continue;
+               if (it->word() == wl.word()) {
+                       has_item = true;
+                       break;
+               }
+       }
+       return has_item;
+}
+
+
 Bullet & BufferParams::temp_bullet(lyx::size_type const index)
 {
        LASSERT(index < 4, return pimpl_->temp_bullets[0]);