mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
8283e978f8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3803 a592a061-630c-0410-9148-cb99ea01b6c8
54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1995-2001 The LyX Team.
|
|
*
|
|
* ====================================================== */
|
|
|
|
#ifndef EXPORTER_H
|
|
#define EXPORTER_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include <vector>
|
|
#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);
|
|
///
|
|
static
|
|
bool Preview(Buffer * buffer, string const & format);
|
|
///
|
|
static
|
|
bool IsExportable(Buffer const * buffer, string const & format);
|
|
///
|
|
static
|
|
std::vector<Format const *> const
|
|
GetExportableFormats(Buffer const * buffer, bool only_viewable);
|
|
///
|
|
private:
|
|
static
|
|
string const BufferFormat(Buffer const * buffer);
|
|
///
|
|
static
|
|
std::vector<string> const Backends(Buffer const * buffer);
|
|
};
|
|
#endif
|