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
15 #include "ControlDialog_impl.h"
16 #include "converter.h"
26 class ControlPrefs : public ControlDialogBI {
28 ControlPrefs(LyXView &, Dialogs &);
30 LyXRC & rc() { return rc_; }
31 LyXRC const & rc() const { return rc_; }
33 Converters & converters() { return converters_; }
34 Converters const & converters() const { return converters_; }
36 Formats & formats() { return formats_; }
37 Formats const & formats() const { return formats_; }
39 /// various file pickers
40 std::string const browsebind(std::string const & file) const;
41 std::string const browseUI(std::string const & file) const;
42 std::string const browsekbmap(std::string const & file) const;
43 std::string const browsedict(std::string const & file) const;
46 std::string const browse(std::string const & file,
47 std::string const & title) const;
50 std::string const browsedir(std::string const & path,
51 std::string const & title) const;
53 /// redraw widgets (for xforms color change)
57 void setColor(LColor_color col, std::string const & hex);
59 /// update the screen fonts after change
60 void updateScreenFonts();
64 virtual void setParams();
66 /// apply current lyxrc
72 /// temporary converters
73 Converters converters_;
78 /// A list of colors to be dispatched
79 std::vector<std::string> colors_;
82 bool update_screen_font_;
85 #endif // CONTROLPREFS_H