#include "support/gettext.h"
#include "support/lstrings.h"
#include "support/os.h"
-#include "support/Path.h"
+#include "support/PathChanger.h"
#include "support/Systemcall.h"
#include "support/textutils.h"
#include "support/Translator.h"
} //namespace anon
+bool Format::formatSorter(Format const * lhs, Format const * rhs)
+{
+ return _(lhs->prettyname()) < _(rhs->prettyname());
+}
bool operator<(Format const & a, Format const & b)
{
format = "jpg";
else if (contains(str, "%PDF"))
- format = "pdf";
+ // autodetect pdf format for graphics inclusion
+ format = "pdf6";
else if (contains(str, "PNG"))
format = "png";
// LinkBack files look like PDF, but have the .linkback extension
string const ext = getExtension(filename.absFileName());
- if (format_name == "pdf" && ext == "linkback") {
+ if (format_name == "pdf6" && ext == "linkback") {
#ifdef USE_MACOSX_PACKAGING
return editLinkBackFile(filename.absFileName().c_str());
#else