]> git.lyx.org Git - features.git/blobdiff - src/exporter.h
Replace LString.h with support/std_string.h,
[features.git] / src / exporter.h
index f8c9ac7d45eb49b76fd2e1abc4287b2ab5b82200..02afbfcfca96849ad364c45a9b8dd799b1a81c61 100644 (file)
@@ -1,49 +1,44 @@
 // -*- 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 <vector>
-#include "LString.h"
+#include "support/std_string.h"
 
 class Buffer;
-class FormatPair;
+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 Preview(Buffer * buffer, string const & format);
+       bool Export(Buffer * buffer, string const & format,
+                   bool put_in_tempdir);
        ///
        static
-       bool IsExportable(Buffer const * buffer, string const & format);
+       bool Preview(Buffer * buffer, string const & format);
        ///
        static
-       std::vector<FormatPair> const
-       GetExportableFormats(Buffer const * buffer);
+       bool IsExportable(Buffer const & buffer, string const & format);
        ///
        static
-       std::vector<FormatPair> const
-       GetViewableFormats(Buffer const * buffer);
+       std::vector<Format const *> const
+       GetExportableFormats(Buffer const & buffer, bool only_viewable);
        ///
-       static
-       string const BufferExtension(Buffer const * buffer);
 };
 #endif