]> git.lyx.org Git - lyx.git/blob - src/exporter.h
Alfredo's second patch
[lyx.git] / src / exporter.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef EXPORTER_H
13 #define EXPORTER_H
14
15 #include <vector>
16 #include "LString.h"
17
18 class Buffer;
19 class Format;
20
21 class Exporter {
22 public:
23         ///
24         static
25         bool Export(Buffer * buffer, string const & format,
26                     bool put_in_tempdir, string & result_file);
27         ///
28         static
29         bool Export(Buffer * buffer, string const & format,
30                     bool put_in_tempdir);
31         ///
32         static
33         bool Preview(Buffer * buffer, string const & format);
34         ///
35         static
36         bool IsExportable(Buffer const * buffer, string const & format);
37         ///
38         static
39         std::vector<Format const *> const
40         GetExportableFormats(Buffer const * buffer, bool only_viewable);
41         ///
42 private:
43         static
44         string const BufferFormat(Buffer const * buffer);
45         ///
46         static
47         std::vector<string> const Backends(Buffer const * buffer);
48 };
49 #endif