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 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 docstring const browsebind(docstring const & file) const;
56 docstring const browseUI(docstring const & file) const;
57 docstring const browsekbmap(docstring const & file) const;
58 docstring const browsedict(docstring const & file) const;
61 docstring const browse(docstring const & file,
62 docstring const & title) const;
65 docstring const browsedir(docstring const & path,
66 docstring const & title) const;
69 void setColor(Color_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