]> git.lyx.org Git - lyx.git/blobdiff - src/Format.h
Whitespace.
[lyx.git] / src / Format.h
index 9d91ae1442f7edaa380c30461d4d6b3c885196e1..0cb760fe3622a03ea25d2d1c73e46a9f2054d03c 100644 (file)
@@ -96,6 +96,9 @@ public:
        bool inExportMenu() const { return flags_ & export_menu; }
        ///
        bool zippedNative() const { return flags_ & zipped_native; }
+       ///
+       static bool formatSorter(Format const * lhs, Format const * rhs);
+
 private:
        /// Internal name. Needs to be unique.
        std::string name_;
@@ -153,8 +156,6 @@ public:
        std::string getFormatFromFile(support::FileName const & filename) const;
        /// Finds a format from a file extension. Returns string() if not found.
        std::string getFormatFromExtension(std::string const & ext) const;
-       /// Finds a format by pretty name. Returns string() if not found.
-       std::string getFormatFromPrettyName(std::string const & prettyname) const;
        /** Returns true if the file referenced by \p filename is zipped and
         ** needs to be unzipped for being handled
         ** @note For natively zipped formats, such as dia/odg, this returns false.
@@ -201,6 +202,8 @@ public:
        ///
        const_iterator end() const { return formatlist.end(); }
        ///
+       bool empty() const { return formatlist.empty(); }
+       ///
        FormatList::size_type size() const { return formatlist.size(); }
 private:
        ///