void GuiExternal::updateContents()
{
string const name =
- params_.filename.outputFilename(fromqstr(bufferFilepath()));
+ params_.filename.outputFileName(fromqstr(bufferFilepath()));
fileED->setText(toqstr(name));
int index = 0;
//lyxerr << bufferFilepath();
string const name =
- igp.filename.outputFilename(fromqstr(bufferFilepath()));
+ igp.filename.outputFileName(fromqstr(bufferFilepath()));
filename->setText(toqstr(name));
// set the bounding box values
buffer.filePath();
string const filename = external_in_tmpdir ?
params.filename.mangledFileName() :
- params.filename.outputFilename(parentpath);
+ params.filename.outputFileName(parentpath);
string const basename = changeExtension(
onlyFilename(filename), string());
string const absname = makeAbsPath(filename, parentpath).absFileName();
use_latex_path, external_in_tmpdir);
string const absname = makeAbsPath(
- params.filename.outputFilename(buffer.filePath()), buffer.filePath()).absFileName();
+ params.filename.outputFileName(buffer.filePath()), buffer.filePath()).absFileName();
if (!external_in_tmpdir && !isValidLaTeXFilename(absname)) {
lyx::frontend::Alert::warning(_("Invalid filename"),
<< "\ttemplate " << templatename() << '\n';
if (!filename.empty())
- os << "\tfilename " << filename.outputFilename(buf.filePath()) << '\n';
+ os << "\tfilename " << filename.outputFileName(buf.filePath()) << '\n';
if (!display)
os << "\tdisplay false\n";
if (params_.draft) {
// FIXME UNICODE
os << "\\fbox{\\ttfamily{}"
- << from_utf8(params_.filename.outputFilename(buffer().filePath()))
+ << from_utf8(params_.filename.outputFileName(buffer().filePath()))
<< "}\n";
return 1;
}
// We are not going to change the extension or using the name of the
// temporary file, the code is already complicated enough.
if (runparams.inComment || !params().filename.isReadableFile())
- return params().filename.outputFilename(masterBuffer->filePath());
+ return params().filename.outputFileName(masterBuffer->filePath());
// We place all temporary files in the master buffer's temp dir.
// This is possible because we use mangled file names.
// "nice" means that the buffer is exported to LaTeX format but not
// run through the LaTeX compiler.
string output_file = runparams.nice ?
- params().filename.outputFilename(masterBuffer->filePath()) :
+ params().filename.outputFileName(masterBuffer->filePath()) :
onlyFilename(temp_file.absFileName());
if (runparams.nice && !isValidLaTeXFilename(output_file)) {
{
// Do not write the default values
if (!filename.empty())
- os << "\tfilename " << filename.outputFilename(buffer.filePath()) << '\n';
+ os << "\tfilename " << filename.outputFileName(buffer.filePath()) << '\n';
if (lyxscale != 100)
os << "\tlyxscale " << lyxscale << '\n';
if (!display)
}
-string DocFileName::outputFilename(string const & path) const
+string DocFileName::outputFileName(string const & path) const
{
return save_abs_path_ ? absFileName() : relFileName(path);
}
/// \param buffer_path if empty, uses `pwd`
std::string relFileName(std::string const & buffer_path = empty_string()) const;
/// \param buf_path if empty, uses `pwd`
- std::string outputFilename(std::string const & buf_path = empty_string()) const;
+ std::string outputFileName(std::string const & buf_path = empty_string()) const;
/** @returns a mangled representation of the absolute file name
* suitable for use in the temp dir when, for example, converting