QString const & label1, QString const & dir1,
QString const & label2, QString const & dir2)
{
- QString const fname = toqstr(makeAbsPath(
- fromqstr(filename), fromqstr(refpath)).absFilename());
+ QString const fname = makeAbsPath(filename, refpath);
QString const outname =
{
/// get global printer parameters
params_ = PrinterParams();
- params_.file_name = changeExtension(buffer().absFileName(),
+ params_.file_name = support::changeExtension(buffer().absFileName(),
lyxrc.print_file_extension);
setButtonsValid(true); // so that the user can press Ok
{
refs_.clear();
string const name = theBufferList().getFileNames()[bufferCO->currentIndex()];
- Buffer const * buf = theBufferList().getBuffer(makeAbsPath(name).absFilename());
+ Buffer const * buf = theBufferList().getBuffer(
+ support::makeAbsPath(name).absFilename());
buf->getLabelList(refs_);
sortCB->setEnabled(!refs_.empty());
refsLW->setEnabled(!refs_.empty());
return;
// get absolute path of file
- FileName const fullname(makeAbsPath(filename));
+ FileName const fullname(support::makeAbsPath(filename));
FileName const lyxfile(support::changeExtension(fullname.absFilename(), ".lyx"));
if (!newname.empty()) {
// FIXME UNICODE
- fname = makeAbsPath(to_utf8(newname), oldname.onlyPath().absFilename());
+ fname = support::makeAbsPath(to_utf8(newname), oldname.onlyPath().absFilename());
} else {
// Switch to this Buffer.
setBuffer(&b);
/// Return the extension of the file (not including the .)
QString getExtension(QString const & name);
QString makeAbsPath(QString const & relpath, QString const & base);
+QString changeExtension(QString const & oldname, QString const & ext);
} // namespace lyx