]> git.lyx.org Git - lyx.git/blob - src/frontends/lyx_gui.h
Really dull and boring header shit
[lyx.git] / src / frontends / lyx_gui.h
1 // -*- C++ -*-
2 /**
3  * \file lyx_gui.h
4  * Read the file COPYING
5  *
6  * \author John Levon 
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef LYX_GUI_H
12 #define LYX_GUI_H
13  
14 #include "LColor.h"
15 #include "LString.h" 
16 #include <vector>
17
18 class Dialogs;
19 class LyXFont;
20 class LyXComm;
21
22 /// GUI interaction
23 namespace lyx_gui {
24
25         /// parse command line and do basic initialisation
26         void parse_init(int & argc, char * argv[]);
27
28         /**
29          * set up GUI parameters. At this point lyxrc may
30          * be used.
31          */
32         void parse_lyxrc();
33
34         /**
35          * Start the main event loop, after executing the given
36          * batch commands, and loading the given documents
37          */
38         void start(string const & batch, std::vector<std::string> files);
39
40         /**
41          * quit running LyX
42          */
43         void exit();
44  
45         /** Eg, passing LColor::black returns "000000",
46          *      passing LColor::white returns "ffffff".
47          */
48         string const hexname(LColor::color col);
49
50         /**
51          * update an altered GUI color
52          */
53         void update_color(LColor::color col);
54
55         /**
56          * update the font cache
57          */
58         void update_fonts();
59
60         /**
61          * is the given font available ?
62          */
63         bool font_available(LyXFont const & font);
64
65         /**
66          * add a callback for I/O read notification
67          */
68         void set_read_callback(int fd, LyXComm * comm);
69
70         /**
71          * remove a I/O read callback
72          */
73         void remove_read_callback(int fd);
74 }
75
76 #endif // LYX_GUI_H