#include <vector>
-#ifdef __GNUG__
-#pragma implementation
-#endif
#include <config.h>
#include "LString.h"
using std::make_pair;
-string const browseFile(LyXView * lv, string const & filename,
+string const browseFile(string const & filename,
string const & title,
string const & pattern,
bool save,
if (!filename.empty())
lastPath = OnlyPath(filename);
- FileDialog fileDlg(lv, title, LFUN_SELECT_FILE_SYNC, dir1, dir2);
+ FileDialog fileDlg(title, LFUN_SELECT_FILE_SYNC, dir1, dir2);
FileDialog::Result result;
}
-string const browseRelFile(LyXView * lv, string const & filename,
+string const browseRelFile(string const & filename,
string const & refpath,
string const & title,
string const & pattern,
{
string const fname = MakeAbsPath(filename, refpath);
- string const outname = browseFile(lv, fname, title, pattern, save,
+ string const outname = browseFile(fname, title, pattern, save,
dir1, dir2);
string const reloutname = MakeRelPath(outname, refpath);
if (prefixIs(reloutname, "../"))
}
-string const browseDir(LyXView * lv, string const & pathname,
+string const browseDir(string const & pathname,
string const & title,
pair<string,string> const & dir1,
pair<string,string> const & dir2)
if (!pathname.empty())
lastPath = OnlyPath(pathname);
- FileDialog fileDlg(lv, title, LFUN_SELECT_FILE_SYNC, dir1, dir2);
+ FileDialog fileDlg(title, LFUN_SELECT_FILE_SYNC, dir1, dir2);
FileDialog::Result result;