} // namespace frontend
+
QString browseRelFile(QString const & filename, QString const & refpath,
QString const & title, QStringList const & filters, bool save,
QString const & label1, QString const & dir1,
QString const fname = toqstr(makeAbsPath(
fromqstr(filename), fromqstr(refpath)).absFilename());
+
QString const outname =
frontend::browseFile(fname, title, filters, save, label1, dir1, label2, dir2);
}
+
/////////////////////////////////////////////////////////////////////
//
// Helpers
font.setStyleHint(QFont::TypeWriter);
font.setFamily(font_family);
} else {
- lyxerr << "FAILED to find the default font: '"
- << foundry << "', '" << family << '\''<< endl;
+ LYXERR0("FAILED to find the default font: '"
+ << foundry << "', '" << family << '\'');
return;
}
QFontInfo info(font);
string default_font_name, dummyfoundry;
parseFontName(info.family(), default_font_name, dummyfoundry);
- lyxerr << "Apparent font is " << default_font_name << endl;
+ LYXERR0("Apparent font is " << default_font_name);
for (int i = 0; i < cb->count(); ++i) {
- lyxerr << "Looking at " << fromqstr(cb->itemText(i)) << endl;
+ LYXERR0("Looking at " << cb->itemText(i));
if (compare_ascii_no_case(fromqstr(cb->itemText(i)),
default_font_name) == 0) {
cb->setCurrentIndex(i);
}
}
- lyxerr << "FAILED to find the font: '"
- << foundry << "', '" << family << '\'' <<endl;
+ LYXERR0("FAILED to find the font: '"
+ << foundry << "', '" << family << '\'');
}
+
/////////////////////////////////////////////////////////////////////
//
// PrefPlaintext