]> git.lyx.org Git - features.git/blobdiff - src/buffer.h
Nuked the SpaceLess function. Read ChangeLog.
[features.git] / src / buffer.h
index 932fb61731d5a93781ba785336a5fca4602e63af..03dea1ae29aead681ae2a7c7375773c6bfc37c87 100644 (file)
@@ -32,6 +32,7 @@
 #include "bufferparams.h"
 #include "texrow.h"
 #include "lyxtext.h"
+#include "support/filetools.h"
 
 class LyXRC;
 class TeXErrors;
@@ -231,6 +232,11 @@ public:
        ///
        string getFileName() const { return filename; }
 
+       /// A transformed version of the file name, adequate for LaTeX  
+       string getLatexName() const {
+               return ChangeExtension(MakeLatexName(filename), ".tex", true); 
+       }
+
        /// Change name of buffer. Updates "read-only" flag.
        void setFileName(string const & newfile);