]> git.lyx.org Git - lyx.git/blobdiff - src/format.h
Partial fix bug 2092: branches not propagated to child documents
[lyx.git] / src / format.h
index 3751b6d0af2111d127d4ce4e46d860860809681e..54e337ff0abd99b6326561dea7095d1f8f92dd3e 100644 (file)
@@ -84,8 +84,15 @@ public:
        Format const & get(FormatList::size_type i) const {
                return formatlist[i];
        }
-       ///
+       /// \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;
        ///