]> git.lyx.org Git - features.git/commitdiff
DocFileName.outputFilename -> DocFileName.outputFileName
authorPavel Sanda <sanda@lyx.org>
Wed, 21 Apr 2010 01:19:25 +0000 (01:19 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 21 Apr 2010 01:19:25 +0000 (01:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34238 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiExternal.cpp
src/frontends/qt4/GuiGraphics.cpp
src/insets/ExternalSupport.cpp
src/insets/InsetExternal.cpp
src/insets/InsetGraphics.cpp
src/insets/InsetGraphicsParams.cpp
src/support/FileName.cpp
src/support/FileName.h

index 38443e8db5d30872f70a7a4888a6d84d67165084..8f3402f20908b8decec5c2f4a92627e9eb994a3d 100644 (file)
@@ -460,7 +460,7 @@ static void getCrop(external::ClipData & data,
 void GuiExternal::updateContents()
 {
        string const name =
-               params_.filename.outputFilename(fromqstr(bufferFilepath()));
+               params_.filename.outputFileName(fromqstr(bufferFilepath()));
        fileED->setText(toqstr(name));
 
        int index = 0;
index 8552b621d777be72e2b0ca0b85c6510555bd527a..d9fa54a5340075558545777fed7c4cb1fd4674f4 100644 (file)
@@ -497,7 +497,7 @@ void GuiGraphics::paramsToDialog(InsetGraphicsParams const & igp)
 
        //lyxerr << bufferFilepath();
        string const name =
-               igp.filename.outputFilename(fromqstr(bufferFilepath()));
+               igp.filename.outputFileName(fromqstr(bufferFilepath()));
        filename->setText(toqstr(name));
 
        // set the bounding box values
index 7796c796bc2abdf3c45ab229dafab44d08c9fda8..bb708abd6dce69a904055bdacead6bf7f2fc4e70 100644 (file)
@@ -89,7 +89,7 @@ string const doSubstitution(InsetExternalParams const & params,
                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();
@@ -361,7 +361,7 @@ int writeExternal(InsetExternalParams const & params,
                                    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"),
index e69463f20b0cf2cb462119b31f046f608d4b99a7..3ab50c2b63e545673e67cc52c802c4e3f27ed1cc 100644 (file)
@@ -161,7 +161,7 @@ void InsetExternalParams::write(Buffer const & buf, ostream & os) const
           << "\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";
@@ -623,7 +623,7 @@ int InsetExternal::latex(odocstream & os, OutputParams const & runparams) const
        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;
        }
index bd657b2457c1819ffea811b96dc592dfe323a91c..d7c1c74a6893412a56a158574fbdb68f8b2b19e5 100644 (file)
@@ -565,7 +565,7 @@ string InsetGraphics::prepareFile(OutputParams const & runparams) const
        // 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.
@@ -586,7 +586,7 @@ string InsetGraphics::prepareFile(OutputParams const & runparams) const
        // "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)) {
index 6d30ccc42e3a24d814eff38ed178b3d6e21fa95c..6aa0932421da40308ffb13775e472f66e46ad7cb 100644 (file)
@@ -141,7 +141,7 @@ void InsetGraphicsParams::Write(ostream & os, Buffer const & buffer) const
 {
        // 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)
index f37b6dffd052fac09aef9c9d9176a736511391d4..0d6a2bdb6d2842cda5f3aee8f7be6387f84d2d8b 100644 (file)
@@ -1079,7 +1079,7 @@ string DocFileName::relFileName(string const & path) const
 }
 
 
-string DocFileName::outputFilename(string const & path) const
+string DocFileName::outputFileName(string const & path) const
 {
        return save_abs_path_ ? absFileName() : relFileName(path);
 }
index 269834b53695b9b7817860133137e3200f1ab5f1..e1b732d9571964751acd66f5b4b52bc371dcd9b1 100644 (file)
@@ -265,7 +265,7 @@ public:
        /// \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