* 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 & result_file);
+ ///
+ static
bool Export(Buffer * buffer, string const & format,
bool put_in_tempdir);
///
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