]> git.lyx.org Git - lyx.git/blob - src/frontends/lyx_gui.h
remove a ColorHandler reference
[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
19 /// GUI interaction
20 namespace lyx_gui {
21
22         /// parse command line and do basic initialisation
23         void parse_init(int & argc, char * argv[]);
24
25         /**
26          * set up GUI parameters. At this point lyxrc may
27          * be used.
28          */
29         void parse_lyxrc();
30
31         /**
32          * Start the main event loop, after executing the given
33          * batch commands, and loading the given documents
34          */
35         void start(string const & batch, std::vector<std::string> files);
36
37         /// initialise graphics
38         void init_graphics();
39
40         /** Eg, passing LColor::black returns "000000",
41          *      passing LColor::white returns "ffffff".
42          */
43         string const hexname(LColor::color col);
44
45         /**
46          * update an altered GUI color
47          */
48         void update_color(LColor::color col);
49 }
50
51 #endif // LYX_GUI_H