#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include <algorithm>
#include "exporter.h"
#include "support/filetools.h"
#include "lyxrc.h"
#include "converter.h"
+#include "format.h"
#include "frontends/Alert.h"
#include "gettext.h"
#include "BufferView.h"
if (bv) {
// Remove all error insets
if (bv->removeAutoInsets()) {
- bv->redraw();
+#warning repaint() or update() or nothing ?
+ bv->repaint();
bv->fitCursor();
}
}
if (find(backends.begin(), backends.end(), format) == backends.end()) {
for (vector<string>::const_iterator it = backends.begin();
it != backends.end(); ++it) {
- Converters::EdgePath p =
+ Graph::EdgePath p =
converters.getPath(*it, format);
if (!p.empty()) {
lyxrc.pdf_mode = converters.usePdflatex(p);
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
return true;
}
+
bool Exporter::Export(Buffer * buffer, string const & format,
bool put_in_tempdir)
{
return Export(buffer, format, put_in_tempdir, result_file);
}
+
bool Exporter::Preview(Buffer * buffer, string const & format)
{
string result_file;
return "latex";
}
+
vector<string> const Exporter::Backends(Buffer const * buffer)
{
vector<string> v;