]> git.lyx.org Git - lyx.git/blob - src/frontends/lyx_gui.h
Move fontloader into lyx_gui stuff. Now Qt should compile out of the box
[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         /// initialise graphics
39         void init_graphics();
40
41         /** Eg, passing LColor::black returns "000000",
42          *      passing LColor::white returns "ffffff".
43          */
44         string const hexname(LColor::color col);
45
46         /**
47          * update an altered GUI color
48          */
49         void update_color(LColor::color col);
50
51         /**
52          * update the font cache
53          */
54         void update_fonts();
55
56         /**
57          * is the given font available ?
58          */
59         bool font_available(LyXFont const & font);
60 }
61
62 #endif // LYX_GUI_H