2000-08-30 03:40:51 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file exporter.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author Jean-Marc Lasgouttes
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
2000-08-30 03:40:51 +00:00
|
|
|
|
|
|
|
|
|
#ifndef EXPORTER_H
|
|
|
|
|
#define EXPORTER_H
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
2003-09-05 17:23:11 +00:00
|
|
|
|
#include "support/std_string.h"
|
2000-08-30 03:40:51 +00:00
|
|
|
|
|
|
|
|
|
class Buffer;
|
2000-11-13 10:35:02 +00:00
|
|
|
|
class Format;
|
2000-08-30 03:40:51 +00:00
|
|
|
|
|
|
|
|
|
class Exporter {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
static
|
|
|
|
|
bool Export(Buffer * buffer, string const & format,
|
2000-10-23 12:16:05 +00:00
|
|
|
|
bool put_in_tempdir, string & result_file);
|
|
|
|
|
///
|
|
|
|
|
static
|
|
|
|
|
bool Export(Buffer * buffer, string const & format,
|
|
|
|
|
bool put_in_tempdir);
|
2000-08-30 03:40:51 +00:00
|
|
|
|
///
|
|
|
|
|
static
|
|
|
|
|
bool Preview(Buffer * buffer, string const & format);
|
|
|
|
|
///
|
|
|
|
|
static
|
2003-08-28 07:41:31 +00:00
|
|
|
|
bool IsExportable(Buffer const & buffer, string const & format);
|
2000-10-02 16:44:47 +00:00
|
|
|
|
///
|
|
|
|
|
static
|
2000-11-13 10:35:02 +00:00
|
|
|
|
std::vector<Format const *> const
|
2003-08-28 07:41:31 +00:00
|
|
|
|
GetExportableFormats(Buffer const & buffer, bool only_viewable);
|
2000-08-30 03:40:51 +00:00
|
|
|
|
///
|
|
|
|
|
};
|
|
|
|
|
#endif
|