4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
17 #include "FuncStatus.h"
29 /// are we using the GUI at all
32 /// return a suitable serif font name (called from non-gui context too !)
33 string const roman_font_name();
35 /// return a suitable sans serif font name (called from non-gui context too !)
36 string const sans_font_name();
38 /// return a suitable monospaced font name (called from non-gui context too !)
39 string const typewriter_font_name();
41 /// parse command line and do basic initialisation
42 void parse_init(int & argc, char * argv[]);
45 * set up GUI parameters. At this point lyxrc may
51 * Start the main event loop, after executing the given
52 * batch commands, and loading the given documents
54 void start(string const & batch, std::vector<string> const & files);
57 * Synchronise all pending events.
67 * return the status flag for a given action. This can be used to tell
68 * that a given lfun is not implemented by a frontend
70 FuncStatus getStatus(FuncRequest const & ev);
72 /** Eg, passing LColor::black returns "000000",
73 * passing LColor::white returns "ffffff".
75 string const hexname(LColor::color col);
78 * update an altered GUI color
80 void update_color(LColor::color col);
83 * update the font cache
88 * is the given font available ?
90 bool font_available(LyXFont const & font);
93 * add a callback for I/O read notification
95 void set_read_callback(int fd, LyXComm * comm);
98 * remove a I/O read callback
99 * @param fd file descriptor
101 void remove_read_callback(int fd);
103 } // namespace lyx_gui