]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.C
fix crash after removing a table row (again due to uncorrected cursor
[lyx.git] / src / buffer.C
index 67127e1ef850efcdf663daf949467057ea5bbc4b..999b1dd041de8faca49231e0cd2dcea4c28431ef 100644 (file)
@@ -137,7 +137,7 @@ extern BufferList bufferlist;
 
 namespace {
 
-const int LYX_FORMAT = 236;
+const int LYX_FORMAT = 237;
 
 } // namespace anon
 
@@ -795,7 +795,7 @@ bool Buffer::do_writeFile(ostream & ofs) const
        ofs << "\\begin_header\n";
        params().writeFile(ofs);
        ofs << "\\end_header\n";
-       
+
        // write the text
        ofs << "\n\\begin_body\n";
        text().write(*this, ofs);
@@ -1002,7 +1002,7 @@ bool Buffer::isSGML() const
 
 void Buffer::makeLinuxDocFile(string const & fname,
                              OutputParams const & runparams,
-                              bool body_only)
+                             bool body_only)
 {
        ofstream ofs;
        if (!openFileWrite(ofs, fname))
@@ -1089,6 +1089,13 @@ void Buffer::makeDocBookFile(string const & fname,
                        ofs << " PUBLIC \"-//OASIS//DTD DocBook V4.2//EN\"";
 
                string preamble = params().preamble;
+               if (runparams.flavor != OutputParams::XML ) {
+                       preamble += "<!ENTITY % output.print.png \"IGNORE\">\n";
+                       preamble += "<!ENTITY % output.print.pdf \"IGNORE\">\n";
+                       preamble += "<!ENTITY % output.print.eps \"IGNORE\">\n";
+                       preamble += "<!ENTITY % output.print.bmp \"IGNORE\">\n";
+               }
+                       
                string const name = runparams.nice ? ChangeExtension(pimpl_->filename, ".sgml")
                         : fname;
                preamble += features.getIncludedFiles(name);