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"
29 class ControlPrefs : public Dialog::Controller {
31 ControlPrefs(Dialog &);
33 virtual bool initialiseParams(std::string const &);
35 virtual void clearParams() {}
37 virtual void dispatchParams();
39 virtual bool isBufferDependent() const { return false; }
41 LyXRC & rc() { return rc_; }
42 LyXRC const & rc() const { return rc_; }
44 Converters & converters() { return converters_; }
45 Converters const & converters() const { return converters_; }
47 Formats & formats() { return formats_; }
48 Formats const & formats() const { return formats_; }
50 Movers & movers() { return movers_; }
51 Movers const & movers() const { return movers_; }
53 /// various file pickers
54 std::string const browsebind(std::string const & file) const;
55 std::string const browseUI(std::string const & file) const;
56 std::string const browsekbmap(std::string const & file) const;
57 std::string const browsedict(std::string const & file) const;
60 std::string const browse(std::string const & file,
61 std::string const & title) const;
64 std::string const browsedir(std::string const & path,
65 std::string const & title) const;
67 /// redraw widgets (for xforms color change)
71 void setColor(LColor_color col, std::string const & hex);
73 /// update the screen fonts after change
74 void updateScreenFonts();
76 /// adjust the prefs paper sizes
77 PAPER_SIZE const toPaperSize(int i) const;
78 /// adjust the prefs paper sizes
79 int const fromPaperSize(PAPER_SIZE papersize) const;
85 /// temporary converters
86 Converters converters_;
94 /// A list of colors to be dispatched
95 std::vector<std::string> colors_;
98 bool update_screen_font_;
101 } // namespace frontend
104 #endif // CONTROLPREFS_H