]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrefs.h
Add support for the jurabib package (www.jurabib.org), a package for elegant BibTeX...
[lyx.git] / src / frontends / controllers / ControlPrefs.h
1 // -*- C++ -*-
2 /**
3  * \file ControlPrefs.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLPREFS_H
13 #define CONTROLPREFS_H
14
15
16 #include "ControlDialog_impl.h"
17 #include "lyxrc.h"
18
19
20 class Converters;
21 class LColor_color;
22 class Formats;
23
24 class ControlPrefs : public ControlDialogBI {
25 public:
26         ControlPrefs(LyXView &, Dialogs &);
27
28         // FIXME: we should probably devolve the individual
29         // settings to methods here. But for now, this will
30         // do
31
32         LyXRC & rc() { return rc_; }
33
34         LyXRC const & rc() const { return rc_; }
35
36         /// various file pickers
37         std::string const browsebind(std::string const & file) const;
38         std::string const browseUI(std::string const & file) const;
39         std::string const browsekbmap(std::string const & file) const;
40         std::string const browsedict(std::string const & file) const;
41
42         /// general browse
43         std::string const browse(std::string const & file,
44                                  std::string const & title) const;
45
46         /// browse directory
47         std::string const browsedir(std::string const & path,
48                                     std::string const & title) const;
49
50         /// redraw widgets (for xforms color change)
51         void redrawGUI();
52
53         /// set a color
54         void setColor(LColor_color col, std::string const & hex);
55
56         /// update the screen fonts after change
57         void updateScreenFonts();
58
59         /// set global converters
60         void setConverters(Converters const & conv);
61
62         /// set global formats
63         void setFormats(Formats const & form);
64
65 private:
66         /// get current lyxrc
67         virtual void setParams();
68
69         /// apply current lyxrc
70         virtual void apply();
71
72         /// temporary lyxrc
73         LyXRC rc_;
74 };
75
76 #endif // CONTROLPREFS_H