X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fexporter.C;h=098f24979709833f0b653843ff515ba0e9450ec2;hb=dad1fc66e44a4dad94eb1e9ffd5736bf8f59ae6d;hp=c82a0aa9b8d63d2f4da421594ff85b5501818bbe;hpb=e39935204d98de595eac31642b420c71a4a048d5;p=lyx.git diff --git a/src/exporter.C b/src/exporter.C index c82a0aa9b8..098f249797 100644 --- a/src/exporter.C +++ b/src/exporter.C @@ -10,10 +10,6 @@ #include -#ifdef __GNUG__ -#pragma implementation -#endif - #include #include "exporter.h" @@ -86,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 @@ -108,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) { @@ -115,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; @@ -163,6 +161,7 @@ string const Exporter::BufferFormat(Buffer const * buffer) return "latex"; } + vector const Exporter::Backends(Buffer const * buffer) { vector v;