]> git.lyx.org Git - lyx.git/blobdiff - src/Format.h
Revert previous commit, which committed too much.
[lyx.git] / src / Format.h
index 326a68d3c8bed068cd908f228fb057e791165e49..682f8c5b478ff5420d90fea826b036b954feadc6 100644 (file)
@@ -14,6 +14,8 @@
 
 #include "support/docstring.h"
 
+#include "OutputParams.h"
+
 #include <vector>
 
 
@@ -34,6 +36,8 @@ public:
                document = 1,
                /// Set if this format can contain vector graphics.
                vector = 2,
+               /// This format should  appear in the File > Export menu
+               export_menu = 4
        };
        ///
        Format(std::string const & n, std::string const & e, std::string const & p,
@@ -76,6 +80,8 @@ public:
        bool vectorFormat() const { return flags_ & vector; }
        ///
        void setFlags(int v) { flags_ = v; }
+       ///
+       bool inExportMenu() const { return flags_ & export_menu; }
 private:
        /// Internal name. Needs to be unique.
        std::string name_;
@@ -143,7 +149,7 @@ public:
        void setViewer(std::string const & name, std::string const & command);
        ///
        void setEditor(std::string const & name, std::string const & command);
-       ///
+       /// View the given file. Buffer used for DVI's paper orientation.
        bool view(Buffer const & buffer, support::FileName const & filename,
                  std::string const & format_name) const;
        ///
@@ -164,6 +170,11 @@ private:
        FormatList formatlist;
 };
 
+///
+std::string flavor2format(OutputParams::FLAVOR flavor);
+// Not currently used.
+// OutputParams::FLAVOR format2flavor(std::string fmt);
+
 extern Formats formats;
 
 extern Formats system_formats;