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-08-30 04:38:32 +00:00
|
|
|
///
|
2000-08-30 03:40:51 +00:00
|
|
|
class Exporter {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
static
|
|
|
|
bool Export(Buffer * buffer, string const & format,
|
|
|
|
bool put_in_tempdir);
|
|
|
|
///
|
|
|
|
static
|
|
|
|
bool Preview(Buffer * buffer, string const & format);
|
|
|
|
///
|
|
|
|
static
|
2000-08-30 04:38:32 +00:00
|
|
|
std::vector<std::pair<string, string> > const
|
|
|
|
GetExportableFormats(Buffer const * buffer);
|
2000-08-30 03:40:51 +00:00
|
|
|
///
|
|
|
|
static
|
2000-08-30 04:38:32 +00:00
|
|
|
std::vector<std::pair<string, string> > const
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
//#define NEW_EXPORT 1
|
|
|
|
|
|
|
|
#endif
|