]> git.lyx.org Git - lyx.git/blob - src/exporter.h
citation patch from Angus
[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
24 ///
25 class Exporter {
26 public:
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         std::vector<std::pair<string, string> > const
37         GetExportableFormats(Buffer const * buffer);
38         ///
39         static
40         std::vector<std::pair<string, string> > const
41         GetViewableFormats(Buffer const * buffer);
42         ///
43         static
44         string const BufferExtension(Buffer const * buffer);
45 };
46
47 #define NEW_EXPORT 1
48
49 #endif