]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.h
more cursor dispatch
[lyx.git] / src / exporter.h
index 94a832dbb895f843e6d5bb36ce38617b6f226e2b..826ce82addbed93bbc99ccca5073a310ed37a58a 100644 (file)
@@ -1,46 +1,45 @@
 // -*- C++ -*-
-/* This file is part of
- * ====================================================== 
- * 
- *           LyX, The Document Processor
- *        
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+/**
+ * \file exporter.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * ====================================================== */
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
 #ifndef EXPORTER_H
 #define EXPORTER_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
+#include <string>
 #include <vector>
-#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 Export(Buffer * buffer, std::string const & format,
+                   bool put_in_tempdir, std::string & result_file);
        ///
        static
-       bool Preview(Buffer * buffer, string const & format);
+       bool Export(Buffer * buffer, std::string const & format,
+                   bool put_in_tempdir);
        ///
        static
-       std::vector<std::pair<string, string> > const
-       GetExportableFormats(Buffer const * buffer);
+       bool Preview(Buffer * buffer, std::string const & format);
        ///
        static
-       std::vector<std::pair<string, string> > const
-       GetViewableFormats(Buffer const * buffer);
+       bool IsExportable(Buffer const & buffer, std::string const & format);
        ///
        static
-       string const BufferExtension(Buffer const * buffer);
+       std::vector<Format const *> const
+       GetExportableFormats(Buffer const & buffer, bool only_viewable);
+       ///
 };
 #endif