]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / BufferList.cpp
index b47057a5ec4b0ead88db31887570da0b098e82d9..61d62206a3f3e35e740c74f2cf25022e331d2370 100644 (file)
@@ -119,7 +119,7 @@ Buffer * BufferList::newBuffer(string const & s, bool const ronly)
                }
        }
        tmpbuf->params().useClassDefaults();
-       if (tmpbuf->fileName().extension() == "internal") {
+       if (tmpbuf->isInternal()) {
                binternal.push_back(tmpbuf.get());
        } else {
                LYXERR(Debug::INFO, "Assigning to buffer " << bstore.size());
@@ -336,4 +336,17 @@ bool BufferList::releaseChild(Buffer * parent, Buffer * child)
 }
 
 
+void BufferList::changed(bool update_metrics) const
+{
+       BufferStorage::const_iterator it = bstore.begin();
+       BufferStorage::const_iterator end = bstore.end();
+       for (; it != end; ++it)
+               (*it)->changed(update_metrics);
+       it = binternal.begin();
+       end = binternal.end();
+       for (; it != end; ++it)
+               (*it)->changed(update_metrics);
+}
+
+
 } // namespace lyx