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.
16 #include "FuncStatus.h"
30 /// are we using the GUI at all
33 /// return a suitable serif font name (called from non-gui context too !)
34 std::string const roman_font_name();
36 /// return a suitable sans serif font name (called from non-gui context too !)
37 std::string const sans_font_name();
39 /// return a suitable monospaced font name (called from non-gui context too !)
40 std::string const typewriter_font_name();
42 /// parse command line and do basic initialisation
43 void parse_init(int & argc, char * argv[]);
46 * set up GUI parameters. At this point lyxrc may
52 * Start the main event loop, after executing the given
53 * batch commands, and loading the given documents
55 void start(std::string const & batch, std::vector<std::string> const & files);
58 * Synchronise all pending events.
68 * return the status flag for a given action. This can be used to tell
69 * that a given lfun is not implemented by a frontend
71 FuncStatus getStatus(FuncRequest const & ev);
73 /** Eg, passing LColor::black returns "000000",
74 * passing LColor::white returns "ffffff".
76 std::string const hexname(LColor_color col);
79 * update an altered GUI color
81 void update_color(LColor_color col);
84 * update the font cache
89 * is the given font available ?
91 bool font_available(LyXFont const & font);
94 * add a callback for I/O read notification
96 void set_read_callback(int fd, LyXComm * comm);
99 * remove a I/O read callback
100 * @param fd file descriptor
102 void remove_read_callback(int fd);
104 } // namespace lyx_gui