]> git.lyx.org Git - lyx.git/blob - src/exporter.h
f8c9ac7d45eb49b76fd2e1abc4287b2ab5b82200
[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-2000 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef EXPORTER_H
13 #define EXPORTER_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include <vector>
20 #include "LString.h"
21
22 class Buffer;
23 class FormatPair;
24
25 class Exporter {
26 public:
27         ///
28         static
29         bool Export(Buffer * buffer, string const & format,
30                     bool put_in_tempdir, string * view_file = 0);
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<FormatPair> const
40         GetExportableFormats(Buffer const * buffer);
41         ///
42         static
43         std::vector<FormatPair> const
44         GetViewableFormats(Buffer const * buffer);
45         ///
46         static
47         string const BufferExtension(Buffer const * buffer);
48 };
49 #endif