]> git.lyx.org Git - lyx.git/blobdiff - src/format.h
Fix bug 2029 (RtL space width)
[lyx.git] / src / format.h
index 9b5cdec9821cea143bdc399718af14ba2713dddd..54e337ff0abd99b6326561dea7095d1f8f92dd3e 100644 (file)
@@ -86,6 +86,13 @@ public:
        }
        /// \returns format named \p name if it exists, otherwise 0
        Format const * getFormat(std::string const & name) const;
+       /*!
+        * Get the format of \p filename from file contents or, if this
+        * fails, from file extension.
+        * \returns file format if it could be found, otherwise an empty
+        * string.
+        */
+       std::string getFormatFromFile(std::string const & filename) const;
        ///
        int getNumber(std::string const & name) const;
        ///