]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.cpp
Allow row-breaking after some insets
[lyx.git] / src / insets / Inset.cpp
index 397a8d0380db6f773df9689221d731b4fdde025a..904ac81686c2708bf4f088a39291e86e0e0dcf71 100644 (file)
@@ -74,6 +74,7 @@ static void build_translator()
        insetnames[TOC_CODE] = InsetName("toc");
        insetnames[QUOTE_CODE] = InsetName("quote");
        insetnames[REF_CODE] = InsetName("ref");
+       insetnames[COUNTER_CODE] = InsetName("counter");
        insetnames[HYPERLINK_CODE] = InsetName("href");
        insetnames[SEPARATOR_CODE] = InsetName("separator");
        insetnames[ENDING_CODE] = InsetName("ending");
@@ -224,7 +225,7 @@ bool Inset::isBufferLoaded() const
 bool Inset::isBufferValid() const
 {
        return buffer_
-               && (isBufferLoaded() || buffer_->isClone());
+               && (isBufferLoaded() || buffer_->isInternal() || buffer_->isClone());
 }
 
 
@@ -471,7 +472,7 @@ int Inset::docbook(odocstream &, OutputParams const &) const
 }
 
 
-docstring Inset::xhtml(XHTMLStream & xs, OutputParams const &) const
+docstring Inset::xhtml(XMLStream & xs, OutputParams const &) const
 {
        xs << "[[Inset: " << from_ascii(insetName(lyxCode())) << "]]";
        return docstring();