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.
12 #ifndef CONTROLPREFS_H
13 #define CONTROLPREFS_H
16 #include "converter.h"
28 class ControlPrefs : public Dialog::Controller {
30 ControlPrefs(Dialog &);
32 virtual bool initialiseParams(std::string const &);
34 virtual void clearParams() {}
36 virtual void dispatchParams();
38 virtual bool isBufferDependent() const { return false; }
40 LyXRC & rc() { return rc_; }
41 LyXRC const & rc() const { return rc_; }
43 Converters & converters() { return converters_; }
44 Converters const & converters() const { return converters_; }
46 Formats & formats() { return formats_; }
47 Formats const & formats() const { return formats_; }
49 /// various file pickers
50 std::string const browsebind(std::string const & file) const;
51 std::string const browseUI(std::string const & file) const;
52 std::string const browsekbmap(std::string const & file) const;
53 std::string const browsedict(std::string const & file) const;
56 std::string const browse(std::string const & file,
57 std::string const & title) const;
60 std::string const browsedir(std::string const & path,
61 std::string const & title) const;
63 /// redraw widgets (for xforms color change)
67 void setColor(LColor_color col, std::string const & hex);
69 /// update the screen fonts after change
70 void updateScreenFonts();
76 /// temporary converters
77 Converters converters_;
82 /// A list of colors to be dispatched
83 std::vector<std::string> colors_;
86 bool update_screen_font_;
89 } // namespace frontend
92 #endif // CONTROLPREFS_H