X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFormat.h;h=0cb760fe3622a03ea25d2d1c73e46a9f2054d03c;hb=1d9d51c4b3f955937622efe95764b9f9198d8c19;hp=9d91ae1442f7edaa380c30461d4d6b3c885196e1;hpb=26e5f1a8ec3eb2952e49c87c91395fdcdceddfe9;p=lyx.git diff --git a/src/Format.h b/src/Format.h index 9d91ae1442..0cb760fe36 100644 --- a/src/Format.h +++ b/src/Format.h @@ -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: ///