]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrefs.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[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 "LString.h"
18 #include "funcrequest.h"
19 #include "lyxrc.h"
20 #include "LColor.h"
21
22 #include <utility>
23
24 class Converters;
25 class Formats;
26
27 class ControlPrefs : public ControlDialogBI {
28 public:
29         ControlPrefs(LyXView &, Dialogs &);
30
31         // FIXME: we should probably devolve the individual
32         // settings to methods here. But for now, this will
33         // do
34
35         LyXRC & rc() { return rc_; }
36
37         LyXRC const & rc() const { return rc_; }
38
39         /// various file pickers
40         string const browsebind(string const & file);
41         string const browseUI(string const & file);
42         string const browsekbmap(string const & file);
43         string const browsedict(string const & file);
44
45         /// general browse
46         string const browse(string const & file, string const & title);
47
48         /// browse directory
49         string const browsedir(string const & path, string const & title);
50
51         /// redraw widgets (for xforms color change)
52         void redrawGUI();
53
54         /// set a color
55         void setColor(LColor::color col, string const & hex);
56
57         /// update the screen fonts after change
58         void updateScreenFonts();
59
60         /// set global converters
61         void setConverters(Converters const & conv);
62
63         /// set global formats
64         void setFormats(Formats const & form);
65
66 private:
67         /// get current lyxrc
68         virtual void setParams();
69
70         /// apply current lyxrc
71         virtual void apply();
72
73         /// temporary lyxrc
74         LyXRC rc_;
75 };
76
77 #endif // CONTROLPREFS_H