2000-08-30 03:40:51 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#ifndef EXPORTER_H
|
|
|
|
#define EXPORTER_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
class Buffer;
|
2000-10-16 13:27:56 +00:00
|
|
|
class FormatPair;
|
2000-08-30 03:40:51 +00:00
|
|
|
|
|
|
|
class Exporter {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
static
|
|
|
|
bool Export(Buffer * buffer, string const & format,
|
2000-09-11 15:42:17 +00:00
|
|
|
bool put_in_tempdir, string * view_file = 0);
|
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-10-16 13:27:56 +00:00
|
|
|
std::vector<FormatPair> const
|
2000-08-30 04:38:32 +00:00
|
|
|
GetExportableFormats(Buffer const * buffer);
|
2000-08-30 03:40:51 +00:00
|
|
|
///
|
|
|
|
static
|
2000-10-16 13:27:56 +00:00
|
|
|
std::vector<FormatPair> const
|
2000-08-30 04:38:32 +00:00
|
|
|
GetViewableFormats(Buffer const * buffer);
|
2000-08-30 03:40:51 +00:00
|
|
|
///
|
|
|
|
static
|
2000-08-30 04:38:32 +00:00
|
|
|
string const BufferExtension(Buffer const * buffer);
|
2000-08-30 03:40:51 +00:00
|
|
|
};
|
|
|
|
#endif
|