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"
18 #include <boost/function.hpp>
36 /// are we using the GUI at all
39 /// return a suitable serif font name (called from non-gui context too !)
40 std::string const roman_font_name();
42 /// return a suitable sans serif font name (called from non-gui context too !)
43 std::string const sans_font_name();
45 /// return a suitable monospaced font name (called from non-gui context too !)
46 std::string const typewriter_font_name();
49 * set up GUI parameters. At this point lyxrc may
55 * Enter the main event loop (\sa LyX::exec2)
57 int exec(int & argc, char * argv[]);
60 * Synchronise all pending events.
65 * return the status flag for a given action. This can be used to tell
66 * that a given lfun is not implemented by a frontend
68 FuncStatus getStatus(FuncRequest const & ev);
71 * Given col, fills r, g, b in the range 0-255.
72 * The function returns true if successful.
73 * It returns false on failure and sets r, g, b to 0.
75 bool getRGBColor(LColor_color col, lyx::RGBColor & rgbcol);
77 /** Eg, passing LColor::black returns "000000",
78 * passing LColor::white returns "ffffff".
80 std::string const hexname(LColor_color col);
83 * update an altered GUI color
85 void update_color(LColor_color col);
88 * update the font cache
93 * is the given font available ?
95 bool font_available(LyXFont const & font);
98 * add a callback for socket read notification
99 * @param fd socket descriptor (file/socket/etc)
101 void register_socket_callback(int fd, boost::function<void()> func);
104 * remove a I/O read callback
105 * @param fd socket descriptor (file/socket/etc)
107 void unregister_socket_callback(int fd);
109 } // namespace lyx_gui