X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fexporter.C;h=098f24979709833f0b653843ff515ba0e9450ec2;hb=b99a5acc7f18c3f885856fa962c0f0a63a0ca5ad;hp=7d9c2b3f09de64253175d85e765b5bade4fd5122;hpb=8283e978f8d621041c432b9b88a476bfd567385c;p=lyx.git diff --git a/src/exporter.C b/src/exporter.C index 7d9c2b3f09..098f249797 100644 --- a/src/exporter.C +++ b/src/exporter.C @@ -10,10 +10,6 @@ #include -#ifdef __GNUG__ -#pragma implementation -#endif - #include #include "exporter.h" @@ -39,7 +35,8 @@ bool Exporter::Export(Buffer * buffer, string const & format, if (bv) { // Remove all error insets if (bv->removeAutoInsets()) { - bv->redraw(); +#warning repaint() or update() or nothing ? + bv->repaint(); bv->fitCursor(); } } @@ -85,7 +82,7 @@ bool Exporter::Export(Buffer * buffer, string const & format, else if (backend_format == format) buffer->makeLaTeXFile(filename, string(), true); else if (contains(buffer->filePath(), ' ')) { - Alert::alert(_("Cannot run latex."), + Alert::alert(_("Cannot run LaTeX."), _("The path to the lyx file cannot contain spaces.")); return false; } else @@ -107,6 +104,7 @@ bool Exporter::Export(Buffer * buffer, string const & format, return true; } + bool Exporter::Export(Buffer * buffer, string const & format, bool put_in_tempdir) { @@ -114,6 +112,7 @@ bool Exporter::Export(Buffer * buffer, string const & format, return Export(buffer, format, put_in_tempdir, result_file); } + bool Exporter::Preview(Buffer * buffer, string const & format) { string result_file; @@ -162,6 +161,7 @@ string const Exporter::BufferFormat(Buffer const * buffer) return "latex"; } + vector const Exporter::Backends(Buffer const * buffer) { vector v;