]> git.lyx.org Git - lyx.git/blobdiff - src/FontList.cpp
add a \unbind keyword and a few utility functions (unbind, write, delkey) to KeyMap...
[lyx.git] / src / FontList.cpp
index a9e9b7901110ab9ab8c4491b434cdbdbf446b497..7ffd6ed036d1a0ced6143b312eb7858ff5d171cd 100644 (file)
@@ -211,4 +211,29 @@ Font_size FontList::highestInRange
        return maxsize;
 }
 
+
+bool FontList::hasChangeInRange(pos_type pos, int len) const
+{
+       // FIXME: can't we use fontIterator(pos) instead?
+       const_iterator cit = list_.begin();
+       const_iterator end = list_.end();
+       for (; cit != end; ++cit) {
+               if (cit->pos() >= pos)
+                       break;
+       }
+       if (cit != end && pos + len - 1 > cit->pos())
+               return false;
+
+       return true;
+}
+
+
+void FontList::validate(LaTeXFeatures & features) const
+{
+       const_iterator fcit = list_.begin();
+       const_iterator fend = list_.end();
+       for (; fcit != fend; ++fcit)
+               fcit->font().validate(features);
+}
+
 } // namespace lyx