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"
30 class ControlPrefs : public Dialog::Controller {
32 ControlPrefs(Dialog &);
34 virtual bool initialiseParams(std::string const &);
36 virtual void clearParams() {}
38 virtual void dispatchParams();
40 virtual bool isBufferDependent() const { return false; }
42 LyXRC & rc() { return rc_; }
43 LyXRC const & rc() const { return rc_; }
45 Converters & converters() { return converters_; }
46 Converters const & converters() const { return converters_; }
48 Formats & formats() { return formats_; }
49 Formats const & formats() const { return formats_; }
51 Movers & movers() { return movers_; }
52 Movers const & movers() const { return movers_; }
54 /// various file pickers
55 lyx::docstring const browsebind(lyx::docstring const & file) const;
56 lyx::docstring const browseUI(lyx::docstring const & file) const;
57 lyx::docstring const browsekbmap(lyx::docstring const & file) const;
58 lyx::docstring const browsedict(lyx::docstring const & file) const;
61 lyx::docstring const browse(lyx::docstring const & file,
62 lyx::docstring const & title) const;
65 lyx::docstring const browsedir(lyx::docstring const & path,
66 lyx::docstring const & title) const;
69 void setColor(LColor_color col, std::string const & hex);
71 /// update the screen fonts after change
72 void updateScreenFonts();
74 /// adjust the prefs paper sizes
75 PAPER_SIZE const toPaperSize(int i) const;
76 /// adjust the prefs paper sizes
77 int const fromPaperSize(PAPER_SIZE papersize) const;
83 /// temporary converters
84 Converters converters_;
92 /// A list of colors to be dispatched
93 std::vector<std::string> colors_;
96 bool update_screen_font_;
99 } // namespace frontend
102 #endif // CONTROLPREFS_H