]> git.lyx.org Git - lyx.git/blob - src/frontends/lyx_gui.h
remove init_graphics()
[lyx.git] / src / frontends / lyx_gui.h
1 // -*- C++ -*-
2 /**
3  * \file lyx_gui.h
4  * Copyright 2002 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  */
9
10 #ifndef LYX_GUI_H
11 #define LYX_GUI_H
12  
13 #include "LColor.h"
14 #include "LString.h" 
15 #include <vector>
16
17 class Dialogs;
18 class LyXFont;
19
20 /// GUI interaction
21 namespace lyx_gui {
22
23         /// parse command line and do basic initialisation
24         void parse_init(int & argc, char * argv[]);
25
26         /**
27          * set up GUI parameters. At this point lyxrc may
28          * be used.
29          */
30         void parse_lyxrc();
31
32         /**
33          * Start the main event loop, after executing the given
34          * batch commands, and loading the given documents
35          */
36         void start(string const & batch, std::vector<std::string> files);
37
38         /** Eg, passing LColor::black returns "000000",
39          *      passing LColor::white returns "ffffff".
40          */
41         string const hexname(LColor::color col);
42
43         /**
44          * update an altered GUI color
45          */
46         void update_color(LColor::color col);
47
48         /**
49          * update the font cache
50          */
51         void update_fonts();
52
53         /**
54          * is the given font available ?
55          */
56         bool font_available(LyXFont const & font);
57 }
58
59 #endif // LYX_GUI_H