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"
26 class LyXServerSocket;
32 /// are we using the GUI at all
35 /// return a suitable serif font name (called from non-gui context too !)
36 std::string const roman_font_name();
38 /// return a suitable sans serif font name (called from non-gui context too !)
39 std::string const sans_font_name();
41 /// return a suitable monospaced font name (called from non-gui context too !)
42 std::string const typewriter_font_name();
44 /// parse command line and do basic initialisation
45 void parse_init(int & argc, char * argv[]);
48 * set up GUI parameters. At this point lyxrc may
54 * Start the main event loop, after executing the given
55 * batch commands, and loading the given documents
57 void start(std::string const & batch, std::vector<std::string> const & files);
60 * Synchronise all pending events.
70 * return the status flag for a given action. This can be used to tell
71 * that a given lfun is not implemented by a frontend
73 FuncStatus getStatus(FuncRequest const & ev);
75 /** Eg, passing LColor::black returns "000000",
76 * passing LColor::white returns "ffffff".
78 std::string const hexname(LColor_color col);
81 * update an altered GUI color
83 void update_color(LColor_color col);
86 * update the font cache
91 * is the given font available ?
93 bool font_available(LyXFont const & font);
96 * add a callback for I/O read notification
98 void set_read_callback(int fd, LyXComm * comm);
99 void set_datasocket_callback(LyXDataSocket *);
100 void set_serversocket_callback(LyXServerSocket *);
103 * remove a I/O read callback
104 * @param fd file descriptor
106 void remove_read_callback(int fd);
107 void remove_datasocket_callback(LyXDataSocket *);
108 void remove_serversocket_callback(LyXServerSocket *);
110 } // namespace lyx_gui