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"
26 class ControlPrefs : public Dialog::Controller {
28 ControlPrefs(Dialog &);
30 virtual bool initialiseParams(std::string const &);
32 virtual void clearParams() {}
34 virtual void dispatchParams();
36 virtual bool isBufferDependent() const { return false; }
38 LyXRC & rc() { return rc_; }
39 LyXRC const & rc() const { return rc_; }
41 Converters & converters() { return converters_; }
42 Converters const & converters() const { return converters_; }
44 Formats & formats() { return formats_; }
45 Formats const & formats() const { return formats_; }
47 /// various file pickers
48 std::string const browsebind(std::string const & file) const;
49 std::string const browseUI(std::string const & file) const;
50 std::string const browsekbmap(std::string const & file) const;
51 std::string const browsedict(std::string const & file) const;
54 std::string const browse(std::string const & file,
55 std::string const & title) const;
58 std::string const browsedir(std::string const & path,
59 std::string const & title) const;
61 /// redraw widgets (for xforms color change)
65 void setColor(LColor_color col, std::string const & hex);
67 /// update the screen fonts after change
68 void updateScreenFonts();
74 /// temporary converters
75 Converters converters_;
80 /// A list of colors to be dispatched
81 std::vector<std::string> colors_;
84 bool update_screen_font_;
87 #endif // CONTROLPREFS_H