2000-08-30 03:40:51 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
2002-03-21 17:27:08 +00:00
|
|
|
* ======================================================
|
|
|
|
*
|
2000-08-30 03:40:51 +00:00
|
|
|
* LyX, The Document Processor
|
2002-03-21 17:27:08 +00:00
|
|
|
*
|
2000-08-30 03:40:51 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 1995-2001 The LyX Team.
|
2000-08-30 03:40:51 +00:00
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#ifndef EXPORTER_H
|
|
|
|
#define EXPORTER_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
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
|
2000-10-02 16:44:47 +00:00
|
|
|
bool IsExportable(Buffer const * buffer, string const & format);
|
|
|
|
///
|
|
|
|
static
|
2000-11-13 10:35:02 +00:00
|
|
|
std::vector<Format const *> const
|
2000-11-06 11:20:22 +00:00
|
|
|
GetExportableFormats(Buffer const * buffer, bool only_viewable);
|
2000-08-30 03:40:51 +00:00
|
|
|
///
|
2000-11-13 10:35:02 +00:00
|
|
|
private:
|
2000-08-30 03:40:51 +00:00
|
|
|
static
|
2000-10-23 12:16:05 +00:00
|
|
|
string const BufferFormat(Buffer const * buffer);
|
2000-11-13 10:35:02 +00:00
|
|
|
///
|
|
|
|
static
|
|
|
|
std::vector<string> const Backends(Buffer const * buffer);
|
2000-08-30 03:40:51 +00:00
|
|
|
};
|
|
|
|
#endif
|