]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.h
fix typo that put too many include paths for most people
[lyx.git] / src / exporter.h
index 94a832dbb895f843e6d5bb36ce38617b6f226e2b..9944d6c47f43e9c1484c7e76772254948273d1c3 100644 (file)
@@ -1,11 +1,11 @@
 // -*- C++ -*-
 /* This file is part of
- * ====================================================== 
- * 
+ * ======================================================
+ *
  *           LyX, The Document Processor
- *        
+ *
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
 #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<Format const *> const
+       GetExportableFormats(Buffer const * buffer, bool only_viewable);
        ///
+private:
        static
-       std::vector<std::pair<string, string> > const
-       GetViewableFormats(Buffer const * buffer);
+       string const BufferFormat(Buffer const * buffer);
        ///
        static
-       string const BufferExtension(Buffer const * buffer);
+       std::vector<string> const Backends(Buffer const * buffer);
 };
 #endif