]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.h
remove CXX_WORKING_NAMESPACES
[lyx.git] / src / exporter.h
index b052f591b3796a7bbb4e8e76869cc12d5cca7b15..6d95507d59df8803bc23cf88c7bb803776078128 100644 (file)
 #include "LString.h"
 
 class Buffer;
+class Format;
 
-///
 class Exporter {
 public:
        ///
        static
        bool Export(Buffer * buffer, string const & format,
-                   bool put_in_tempdir, string * view_file = 0);
+                   bool put_in_tempdir, string & result_file);
+       ///
+       static
+       bool Export(Buffer * buffer, string const & format,
+                   bool put_in_tempdir);
        ///
        static
        bool Preview(Buffer * buffer, string const & format);
        ///
        static
-       std::vector<std::pair<string, string> > const
-       GetExportableFormats(Buffer const * buffer);
+       bool IsExportable(Buffer const * buffer, string const & format);
        ///
        static
-       std::vector<std::pair<string, string> > const
-       GetViewableFormats(Buffer const * buffer);
+       std::vector<Format const *> const
+       GetExportableFormats(Buffer const * buffer, bool only_viewable);
        ///
+private:
        static
-       string const BufferExtension(Buffer const * buffer);
+       string const BufferFormat(Buffer const * buffer);
+       ///
+       static
+       std::vector<string> const Backends(Buffer const * buffer);
 };
-
-#define NEW_EXPORT 1
-
 #endif