"readable by the current user."),
from_utf8(filename.absFileName()));
Alert::error(_("File not readable!"), text);
"readable by the current user."),
from_utf8(filename.absFileName()));
Alert::error(_("File not readable!"), text);
}
if (filename.extension() == "lyx" && filename.isFileEmpty()) {
// Makes it possible to open an empty (0 bytes) .lyx file
}
if (filename.extension() == "lyx" && filename.isFileEmpty()) {
// Makes it possible to open an empty (0 bytes) .lyx file
}
if (b->loadLyXFile() != Buffer::ReadSuccess) {
// do not save an emergency file when releasing the buffer
b->markClean();
theBufferList().release(b);
}
if (b->loadLyXFile() != Buffer::ReadSuccess) {
// do not save an emergency file when releasing the buffer
b->markClean();
theBufferList().release(b);
"exist.\n\nDo you want to create a new document?"),
from_utf8(filename.absFileName()));
if (!Alert::prompt(_("Create new document?"),
"exist.\n\nDo you want to create a new document?"),
from_utf8(filename.absFileName()));
if (!Alert::prompt(_("Create new document?"),
- text, 0, 1, _("&Create"), _("Cancel")))
+ text, 0, 1, _("&Yes, Create New Document"), _("&No, Do Not Create")))
file);
Alert::error(_("Could not read template"), text);
theBufferList().release(b);
file);
Alert::error(_("Could not read template"), text);
theBufferList().release(b);
prefix + convert<string>(++file_number[prefix]) + ".lyx");
}
while (theBufferList().exists(filename) || filename.isReadableFile());
prefix + convert<string>(++file_number[prefix]) + ".lyx");
}
while (theBufferList().exists(filename) || filename.isReadableFile());
if (buffer->loadLyXFile() != Buffer::ReadSuccess) {
//close the buffer we just opened
theBufferList().release(buffer);
if (buffer->loadLyXFile() != Buffer::ReadSuccess) {
//close the buffer we just opened
theBufferList().release(buffer);