#include <utility>
#include <iostream>
-#include FORMS_H_LOCATION
-
#include "lyx_cb.h"
#include "lyx_gui_misc.h"
#include "lyx_main.h"
+#include "buffer.h"
#include "bufferlist.h"
#include "bufferview_funcs.h"
+#include "debug.h"
#include "lastfiles.h"
#include "LyXView.h"
#include "lyxrc.h"
#include "lyxtext.h"
#include "frontends/FileDialog.h"
+#include "frontends/GUIRunTime.h"
#include "insets/insetlabel.h"
#include "support/FileInfo.h"
#include "support/filetools.h"
#include "support/path.h"
#include "support/syscall.h"
+#include "support/lstrings.h"
#include "gettext.h"
#include "BufferView.h"
bool MenuWrite(BufferView * bv, Buffer * buffer)
{
// FIXME: needed ?
- XFlush(fl_get_display());
+ XFlush(GUIRunTime::x11Display());
if (!buffer->save()) {
string const fname = buffer->fileName();
s = _("No warnings found.");
} else if (ret == 1) {
s = _("One warning found.");
- t = _("Use 'Edit->Go to Error' to find it.");
+ t = _("Use `Navigate->Error' to find it.");
} else {
s += tostr(ret);
s += _(" warnings found.");
- t = _("Use 'Edit->Go to Error' to find them.");
+ t = _("Use `Navigate->Error' to find them.");
}
WriteAlert(_("Chktex run successfully"), s, t);
} else {
// It is dangerous to do this in the child,
// but safe in the parent, so...
if (pid == -1)
- bv->owner()->message(_("Autosave Failed!"));
+ bv->owner()->message(_("Autosave failed!"));
}
}
if (pid == 0) { // we are the child so...
return;
if (AskQuestion(_("Do you want to save the current settings"),
- _("for Character, Document, Paper and Quotes"),
+ _("for document layout"),
_("as default for new documents?")))
bv->buffer()->saveParamsAsDefaults();
}